{
  "repo": "core",
  "package": "@sema-agent/core-stores-sql",
  "schema": 2,
  "version": "7.76.0",
  "releaseChannel": "stable",
  "from": "ca968a6f41aa577a44c041d70769cf2c88bcc6d9",
  "to": "v7.76.0",
  "added": [],
  "removed": [],
  "changed": [],
  "subpaths": [],
  "subpathsUnread": [
    "from",
    "to"
  ],
  "narrowed": [],
  "faces": {
    "open": [],
    "source": null
  },
  "closedSetMembers": [],
  "closedSetsUnreadable": [],
  "typeKeys": [
    {
      "type": "SqlStorageBackend",
      "at": [
        "src/backend.ts"
      ],
      "added": [],
      "addedDetail": [],
      "addedRequired": [],
      "removed": [],
      "madeRequired": [],
      "madeOptional": [],
      "retyped": [
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind",
          "from": "Type '\"media_items_refused\"' is not assignable to type '\"length_empty\" | \"degenerate\" | \"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | \"output_cap_too_large\" | undefined'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind",
          "from": "Type '\"media_items_refused\"' is not assignable to type '\"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | \"output_cap_too_large\" | undefined'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind",
          "from": "Type '\"approval_window_expired\"' is not assignable to type '\"approver_unavailable\" | \"no_approver_wired\" | \"mandate_unreconstructible\"'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        }
      ],
      "breaking": true,
      "criteriaCovered": false,
      "judge": {
        "verdict": "breaking",
        "postures": [
          "R",
          "V",
          "Vo",
          "Ws"
        ],
        "leaves": [
          "L-1273d3be3e73",
          "L-4802da611c64",
          "L-c7b67a182202"
        ],
        "subject": "SqlStorageBackend",
        "judged": true,
        "home": [
          "L-1273d3be3e73",
          "L-4802da611c64",
          "L-c7b67a182202"
        ]
      }
    }
  ],
  "typeKeysUnreadableArms": [],
  "typeKeysFlattenedCount": 4,
  "signatures": [],
  "versionLiterals": [],
  "declarationMoves": [],
  "mintMoves": [],
  "noticeLineage": [],
  "criteriaObserves": [],
  "consumersHint": {
    "cli": [],
    "server": [
      "SqlStorageBackend"
    ],
    "sdk": [],
    "note": "scanned cli@73a4991c0 server@6005a43b8 sdk@740fdcb2 — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
  },
  "judge": {
    "judgeVersion": "3",
    "typescript": "5.7.2",
    "counts": {
      "same": 187,
      "breaking": 6
    },
    "probes": 1035,
    "leaves": [
      {
        "id": "L-1273d3be3e73",
        "verdict": "breaking",
        "message": "Type '\"media_items_refused\"' is not assignable to type '\"length_empty\" | \"degenerate\" | \"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | \"output_cap_too_large\" | undefined'.",
        "count": 4,
        "representative": [
          "SqlStorageBackend",
          "SqlStorageBackend.checkpointStore",
          "SqlStorageBackend.sessionStore",
          "createSqlStorageBackend"
        ],
        "culprits": [
          "backend.d.ts#SqlStorageBackend"
        ],
        "postures": [
          "R",
          "V",
          "Vo",
          "Ws"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "SqlStorageBackend's session store hands back stored entries whose AssistantMessage.errorKind gains \"media_items_refused\" (core head src/engine/llm/types.ts:796; v7.75.0 :796) [read]; packages/core-stores-sql/src has no change between the ends (git diff --name-only = 0 files) — the widening comes from core's types. A reader exhaustive over errorKind does not compile."
        }
      },
      {
        "id": "L-4802da611c64",
        "verdict": "breaking",
        "message": "Type '\"media_items_refused\"' is not assignable to type '\"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | \"output_cap_too_large\" | undefined'.",
        "count": 1,
        "representative": [
          "SqlStorageBackend.workflowJournalStore"
        ],
        "culprits": [],
        "postures": [
          "R",
          "Ws"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "The same core widening read on the refused-request part (core head src/core/terminal-cause.ts:434) through SqlStorageBackend's stored terminals [read]; the package's own source did not change."
        }
      },
      {
        "id": "L-c7b67a182202",
        "verdict": "breaking",
        "message": "Type '\"approval_window_expired\"' is not assignable to type '\"approver_unavailable\" | \"no_approver_wired\" | \"mandate_unreconstructible\"'.",
        "count": 1,
        "representative": [
          "SqlStorageBackend.backgroundAgentStore"
        ],
        "culprits": [],
        "postures": [
          "R",
          "Ws"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "AskUnresolvableCause gains \"approval_window_expired\" (core head src/core/ask-unresolvable-notice.ts:44) and reaches SqlStorageBackend through stored records [read]; the package's own source did not change."
        }
      }
    ],
    "mustCheck": [
      {
        "id": "deep-nesting",
        "form": "a method or callback nested deeper than 10 levels of anonymous object types under an export: the strict postures stop there (a method there is compared bivariantly)",
        "measured": {
          "count": 0,
          "examples": [],
          "note": "not measured: the depth a consumer reaches is not bounded by the declarations"
        },
        "owed": true,
        "answer": "[read] the package's sources have no change between v7.75.0 and this head (git diff --name-only v7.75.0 HEAD -- packages/core-stores-sql/src = 0 files; control: src/core = 88 files), and the package.json and package-lock.json dependency rows are unchanged (package.json differs only by three new script rows; package-lock.json identical). The emitted declarations therefore read the same at both ends; nothing nests deeper than before."
      },
      {
        "id": "strict-generic",
        "form": "a method-syntax member (compared bivariantly) inside a parameter or result of a GENERIC or OVERLOADED exported function: the strict posture is not written for those functions",
        "measured": {
          "count": 0,
          "examples": []
        },
        "owed": false,
        "answer": null
      },
      {
        "id": "ambient-modules",
        "form": "an ambient module (`declare module \"x\"`) both ends declare: in the one program the judge builds, the two declarations merge, so a change between them is not compared",
        "measured": {
          "count": 0,
          "examples": []
        },
        "owed": false,
        "answer": null
      },
      {
        "id": "shared-dependency",
        "form": "a type the package takes from another installed package: both ends are judged against the ONE copy installed now, so a dependency that moved between the two refs is not compared",
        "measured": {
          "count": 0,
          "examples": []
        },
        "owed": false,
        "answer": null
      },
      {
        "id": "export-equals",
        "form": "a module written `export =`: its members are not enumerated as named exports",
        "measured": {
          "count": 0,
          "examples": []
        },
        "owed": false,
        "answer": null
      },
      {
        "id": "exact-optional",
        "form": "a consumer compiled with `exactOptionalPropertyTypes`: the probes compile without it, so `k?: T` -> `k?: T | undefined` (and back) is not compared under it",
        "measured": {
          "count": 0,
          "examples": [],
          "note": "not measured: a consumer's compiler option"
        },
        "owed": true,
        "answer": "[read] the package's sources have no change between v7.75.0 and this head (git diff --name-only v7.75.0 HEAD -- packages/core-stores-sql/src = 0 files; control: src/core = 88 files), and the package.json and package-lock.json dependency rows are unchanged (package.json differs only by three new script rows; package-lock.json identical). No property gained or lost `?` or `| undefined`."
      },
      {
        "id": "unresolved-imports",
        "form": "an import inside the emitted declarations that does not resolve: what it names reads as `any`, which every posture accepts",
        "measured": {
          "count": 0,
          "examples": []
        },
        "owed": false,
        "answer": null
      },
      {
        "id": "declaration-errors",
        "form": "a declaration the end could not emit cleanly (`declaration emit` errors): the emitted file may say less than the source",
        "measured": {
          "count": 0,
          "examples": []
        },
        "owed": false,
        "answer": null
      }
    ],
    "policyNotes": [],
    "staleAnswers": []
  },
  "breakingCount": 1,
  "breakingItems": [
    "type retyped keys: SqlStorageBackend sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind (changed: Type '\"media_items_refused\"' is not assignable to type '\"length_empty\" | \"degenerate\" | \"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | \"output_cap_too_large\" | undefined'.); sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind (changed: Type '\"media_items_refused\"' is not assignable to type '\"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | \"output_cap_too_large\" | undefined'.); sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind (changed: Type '\"approval_window_expired\"' is not assignable to type '\"approver_unavailable\" | \"no_approver_wired\" | \"mandate_unreconstructible\"'.)"
  ],
  "toResolvedAt": "f043719812d3ba36a8d95266750c589ba72678c5"
}
