{
  "repo": "core",
  "package": "@sema-agent/core-stores-sql",
  "schema": 2,
  "version": "7.75.0",
  "from": "17de7ad443ad704511219dc8d8cfad8a873bcbe6",
  "to": "v7.75.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 '\"output_cap_too_large\"' is not assignable to type '\"length_empty\" | \"degenerate\" | \"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | undefined'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind",
          "from": "Type '\"isolated_checks\"' is not assignable to type '\"background_delegation\" | \"report_tool\" | \"read_hands\" | \"worker_transcript\" | \"worker_write_approval\" | \"task_list\"'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind",
          "from": "Type '\"manager_allowed\"' is not assignable to type '\"approver_unavailable\" | \"no_approver\" | \"approver_error\" | \"approver_contract\" | \"presentation_failed\" | \"blanket_allow_refused\" | \"task_aborted\"'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind",
          "from": "Type '\"output_cap_too_large\"' is not assignable to type '\"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | undefined'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind",
          "from": "Type '\"manager_allowed\"' is not assignable to type '\"approver_unavailable\" | \"human_allowed\" | \"human_refused\" | \"approval_window_expired\" | \"denial_limit_window_expired\" | \"park_sla_expired\" | \"no_approver\" | \"approver_error\" | ... 7 more…",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        }
      ],
      "breaking": true,
      "criteriaCovered": false,
      "judge": {
        "verdict": "breaking",
        "postures": [
          "R",
          "V",
          "Vo",
          "Ws"
        ],
        "leaves": [
          "L-324ff8f9d49e",
          "L-efa04edb34e6",
          "L-2b2200fce12c",
          "L-199058328e36",
          "L-f3251608ebdf"
        ],
        "subject": "SqlStorageBackend",
        "judged": true,
        "home": [
          "L-324ff8f9d49e",
          "L-efa04edb34e6",
          "L-2b2200fce12c",
          "L-199058328e36",
          "L-f3251608ebdf"
        ]
      }
    }
  ],
  "typeKeysUnreadableArms": [],
  "typeKeysFlattenedCount": 4,
  "signatures": [],
  "versionLiterals": [],
  "declarationMoves": [],
  "mintMoves": [],
  "noticeLineage": [],
  "criteriaObserves": [],
  "consumersHint": {
    "cli": [],
    "server": [
      "SqlStorageBackend"
    ],
    "sdk": [],
    "note": "scanned cli@73a4991c0 server@6005a43b8 sdk@a99251ea — 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": 183,
      "breaking": 6
    },
    "probes": 1015,
    "leaves": [
      {
        "id": "L-324ff8f9d49e",
        "verdict": "breaking",
        "message": "Type '\"output_cap_too_large\"' is not assignable to type '\"length_empty\" | \"degenerate\" | \"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | 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": "Not a change in this package's own declarations; it is core's widened `AssistantMessage.errorKind` (`output_cap_too_large`, @sema-agent/core src/engine/llm/types.ts:796; v7.74.0 :854), answered breaking under the same leaf id in core@7.75.0. [read] It reaches this package's root through `SqlStorageBackend extends EngineStorageBackend` (packages/core-stores-sql/src/backend.ts:47; v7.74.0 :48), along the path the manifest names: `sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind`, and through `createSqlStorageBackend`'s result. A consumer of this package that is exhaustive over an assistant message's `errorKind` read through the backend's session seat fails to compile once it installs the 7.75.0 pair (this package declares core as an exact peer)."
        }
      },
      {
        "id": "L-efa04edb34e6",
        "verdict": "breaking",
        "message": "Type '\"isolated_checks\"' is not assignable to type '\"background_delegation\" | \"report_tool\" | \"read_hands\" | \"worker_transcript\" | \"worker_write_approval\" | \"task_list\"'.",
        "count": 4,
        "representative": [
          "SqlStorageBackend",
          "SqlStorageBackend.checkpointStore",
          "SqlStorageBackend.workflowJournalStore",
          "createSqlStorageBackend"
        ],
        "culprits": [],
        "postures": [
          "Rs",
          "Vs",
          "W"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "Core's `MANAGER_LAUNCH_ITEMS` drops `isolated_checks` (@sema-agent/core v7.74.0 src/core/manager-launch-check.ts:17), so `ManagerLaunchItem` narrows; core@7.75.0 answers it breaking under the same leaf id. [read] It reaches this package's root through `SqlStorageBackend extends EngineStorageBackend` (packages/core-stores-sql/src/backend.ts:47): the checkpoint store's and the workflow journal store's stored results carry `runLedger.launch` (the manifest's paths `SqlStorageBackend.checkpointStore` and `SqlStorageBackend.workflowJournalStore`). A consumer of this package that builds or keeps such a record naming `isolated_checks` fails to compile with the 7.75.0 pair. Nothing in this package's own declarations changed for it."
        }
      },
      {
        "id": "L-2b2200fce12c",
        "verdict": "breaking",
        "message": "Type '\"manager_allowed\"' is not assignable to type '\"approver_unavailable\" | \"no_approver\" | \"approver_error\" | \"approver_contract\" | \"presentation_failed\" | \"blanket_allow_refused\" | \"task_aborted\"'.",
        "count": 2,
        "representative": [
          "SqlStorageBackend",
          "SqlStorageBackend.checkpointStore"
        ],
        "culprits": [
          "backend.d.ts#SqlStorageBackend"
        ],
        "postures": [
          "W"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "Core's `Settlement` union gains the arm `{ kind: manager_allowed | manager_refused; who: { party: manager } }` (@sema-agent/core src/core/gate-outcome.ts; v7.74.0 union :110-125 has none); core@7.75.0 answers it breaking under the same leaf id. [read] It reaches this package's root through `SqlStorageBackend extends EngineStorageBackend` (packages/core-stores-sql/src/backend.ts:47) and the checkpoint store's records (`executionOutcome` / `resolvedOutcome`; the manifest's path `SqlStorageBackend.checkpointStore`). A consumer that narrows a stored settlement exhaustively, or holds one as 7.74.0's union, fails to compile with the 7.75.0 pair. Nothing in this package's own declarations changed for it."
        }
      },
      {
        "id": "L-199058328e36",
        "verdict": "breaking",
        "message": "Type '\"output_cap_too_large\"' is not assignable to type '\"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | undefined'.",
        "count": 1,
        "representative": [
          "SqlStorageBackend.workflowJournalStore"
        ],
        "culprits": [],
        "postures": [
          "R",
          "Ws"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "Core's `RefusedRequestPart` gains `output_cap_too_large` (@sema-agent/core src/core/terminal-cause.ts:433-434; v7.74.0 :423-424), so the `provider_rejected` arm's `errorKind` in `TerminalFailureDetail` widens; core@7.75.0 answers it breaking under the same leaf id. [read] It reaches this package's root through `SqlStorageBackend extends EngineStorageBackend` (packages/core-stores-sql/src/backend.ts:47) and the workflow journal store's stored results (`terminal.detail`; the manifest's path `SqlStorageBackend.workflowJournalStore`). A consumer exhaustive over `terminal.detail.errorKind` read from a journal fails to compile with the 7.75.0 pair. Nothing in this package's own declarations changed for it."
        }
      },
      {
        "id": "L-f3251608ebdf",
        "verdict": "breaking",
        "message": "Type '\"manager_allowed\"' is not assignable to type '\"approver_unavailable\" | \"human_allowed\" | \"human_refused\" | \"approval_window_expired\" | \"denial_limit_window_expired\" | \"park_sla_expired\" | \"no_approver\" | \"approver_error\" | ... 7 more ... | undefined'. Did you mean '\"human_allowed\"'?",
        "count": 1,
        "representative": [
          "SqlStorageBackend.backgroundAgentStore"
        ],
        "culprits": [],
        "postures": [
          "R",
          "Ws"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "Core's `SETTLEMENT_KINDS` gains `manager_allowed` / `manager_refused` (@sema-agent/core src/core/gate-outcome.ts; v7.74.0 set :66-82, 15 words), so `SettlementKind` widens; core@7.75.0 answers it breaking under the same leaf id. [read] It reaches this package's root through `SqlStorageBackend extends EngineStorageBackend` (packages/core-stores-sql/src/backend.ts:47) and the background agent store's rows (a refusal's `settlement`; the manifest's path `SqlStorageBackend.backgroundAgentStore`). A consumer exhaustive over a stored settlement kind fails to compile with the 7.75.0 pair. Nothing in this package's own declarations changed for it."
        }
      }
    ],
    "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": "The run cannot measure this, so the hole was checked directly. This package's own emitted declarations: [ran] a diff of the judge's cached emits, v7.74.0 against a later commit whose packages/core-stores-sql/src is identical to HEAD's (`git diff --stat` empty). Three non-comment changes: `readonly command?: string;` on the unexported `PgResultLike` (driver.d.ts, one level, a data member), `export declare function memberOf` in refusal.d.ts, and the new driver-runtime.d.ts (three top-level functions). Neither of the last two is re-exported from index.d.ts. The core types it reaches through `SqlStorageBackend extends EngineStorageBackend`: [ran] a diff of the judge's own core emits for exactly this range (v7.74.0 against HEAD; 207 changed and 31 added .d.ts, 0 removed). Changed non-comment lines by indentation depth (4 spaces a level): 0: 761, 1: 621, 2: 121, 3: 22, 4: 5, 5: 3, 6: 1. The deepest are data rows in core/checkpoint-requirements.d.ts. Changed method-syntax members below depth 1: seven, all at depth 2 (core/runner/contracts.d.ts, prepare-tool-disclosure-mount.d.ts, restore-seat.d.ts, task-registry-shared.d.ts). No change sits anywhere near 10 levels, so none can hide behind a bivariant method there."
      },
      {
        "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": "Not measurable, because it is a consumer's compiler option. This package's own declarations add one optional member, `PgResultLike.command?: string` (a new key on the result a caller's pool returns; pg's own result type declares `command: string`), and no member that both ends declare gained or lost `?` or `| undefined`. [ran] For the core types it reaches: within each hunk of the judge's own core emits for this range (v7.74.0 against HEAD), a removed and an added member line with the same name and indentation were compared for `?` and `| undefined` (positive control `k?: T` against `k: T` detected). There were 100 removed member lines and 602 added, and 0 pairs were flagged. The optional members the range adds are new keys (for example `SessionStore.durableFence?`, `SessionStorage.getResidence?`, `AssistantMessage.refusedOutputCap?`), which the option does not make breaking. Limit: a member whose removed and added lines fall in different hunks is not paired."
      },
      {
        "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 '\"output_cap_too_large\"' is not assignable to type '\"length_empty\" | \"degenerate\" | \"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | undefined'.); sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind (changed: Type '\"isolated_checks\"' is not assignable to type '\"background_delegation\" | \"report_tool\" | \"read_hands\" | \"worker_transcript\" | \"worker_write_approval\" | \"task_list\"'.); sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind (changed: Type '\"manager_allowed\"' is not assignable to type '\"approver_unavailable\" | \"no_approver\" | \"approver_error\" | \"approver_contract\" | \"presentation_failed\" | \"blanket_allow_refused\" | \"task_aborted\"'.); sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind (changed: Type '\"output_cap_too_large\"' is not assignable to type '\"input_too_long\" | \"image_unprocessable\" | \"tool_schema_refused\" | undefined'.); sessionStore.acquire(...).session.getStorage().getEntry(...).message.errorKind (changed: Type '\"manager_allowed\"' is not assignable to type '\"approver_unavailable\" | \"human_allowed\" | \"human_refused\" | \"approval_window_expired\" | \"denial_limit_window_expired\" | \"park_sla_expired\" | \"no_approver\" | \"approver_error\" | ... 7 more…)"
  ],
  "toResolvedAt": "4dded751b0948e2537d42d567ba6cc36c906c3e8"
}
