{
  "repo": "core",
  "package": "@sema-agent/core-stores-sql",
  "schema": 2,
  "version": "7.73.0",
  "from": "9ef3bb54f3d11c5e0001a3b4c6a27d05abe1e880",
  "to": "v7.73.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(...)",
          "from": "Property 'mark' is missing in type 'RunLedgerEntry' but required in type 'ReminderMarkEntry'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
          "from": "Type '\"run_ledger\"' is not assignable to type '\"session_checkout\" | \"message\" | \"thinking_level_change\" | \"model_change\" | \"compaction\" | \"custom\" | \"custom_message\" | \"label\" | \"session_info\" | \"leaf\" | \"prompt_epoch\" | \"announced_listing…",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
          "from": "Property 'owner' is missing in type '{ readonly row: { readonly owner: string | null, readonly incarnation?: string | undefined, }, }' but required in type '{ owner: string | null, }'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
          "from": "Type '\"config.project_id_invalid\"' is not assignable to type '\"config.spec_retired_key\" | \"config.output_style_invalid\" | \"config.language_invalid\" | \"config.permission_mode_invalid\" | \"config.shell_gate_value_retired\" | \"config.approval_r…",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        },
        {
          "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
          "from": "Type '\"workflow\"' is not assignable to type '\"subagent\" | \"workflow_member\" | \"background_agent\"'.",
          "to": "(read by the compiler)",
          "direction": "changed",
          "judged": true
        }
      ],
      "breaking": true,
      "criteriaCovered": false,
      "judge": {
        "verdict": "breaking",
        "postures": [
          "R",
          "V",
          "Vo"
        ],
        "leaves": [
          "L-f544552e14e2",
          "L-0d0a39205718",
          "L-e26a48133049",
          "L-6d53ef239ac5",
          "L-89dc1bd1221b"
        ],
        "subject": "SqlStorageBackend",
        "judged": true,
        "home": [
          "L-f544552e14e2",
          "L-0d0a39205718",
          "L-e26a48133049",
          "L-6d53ef239ac5",
          "L-89dc1bd1221b"
        ]
      }
    }
  ],
  "typeKeysUnreadableArms": [],
  "typeKeysFlattenedCount": 4,
  "signatures": [],
  "versionLiterals": [],
  "declarationMoves": [],
  "mintMoves": [],
  "noticeLineage": [],
  "criteriaObserves": [],
  "consumersHint": {
    "cli": [],
    "server": [
      "SqlStorageBackend"
    ],
    "sdk": [],
    "note": "scanned cli@c97d39fea server@a9070a7a5 sdk@93fdd82 — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
  },
  "judge": {
    "judgeVersion": "2",
    "typescript": "5.7.2",
    "counts": {
      "same": 184,
      "breaking": 5
    },
    "probes": 1015,
    "leaves": [
      {
        "id": "L-f544552e14e2",
        "verdict": "breaking",
        "message": "Property 'mark' is missing in type 'RunLedgerEntry' but required in type 'ReminderMarkEntry'.",
        "count": 3,
        "representative": [
          "SqlStorageBackend",
          "SqlStorageBackend.sessionStore",
          "createSqlStorageBackend"
        ],
        "culprits": [
          "backend.d.ts#SqlStorageBackend"
        ],
        "postures": [
          "R",
          "V",
          "Vo"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "This package's own emitted declarations are byte-identical to 7.72.0 (diff of the judge's two cached trees: only the timing sidecar differs), but SqlStorageBackend extends @sema-agent/core's EngineStorageBackend, whose sessionStore hands out sessions whose entries now include core's RunLedgerEntry (no mark, so the checker's elaboration stops at reminder_mark): a host that holds a SqlStorageBackend, its sessionStore or createSqlStorageBackend's result as its 7.72.0 type, or reads entries exhaustively by type, fails to compile; answered in core's manifest as L-f544552e14e2 / L-2b77b74a868a."
        }
      },
      {
        "id": "L-0d0a39205718",
        "verdict": "breaking",
        "message": "Type '\"run_ledger\"' is not assignable to type '\"session_checkout\" | \"message\" | \"thinking_level_change\" | \"model_change\" | \"compaction\" | \"custom\" | \"custom_message\" | \"label\" | \"session_info\" | \"leaf\" | \"prompt_epoch\" | \"announced_listing\" | \"git_announcement\" | \"workspace_state\" | \"reminder_mark\"'.",
        "count": 2,
        "representative": [
          "SqlStorageBackend",
          "SqlStorageBackend.sessionStore"
        ],
        "culprits": [
          "backend.d.ts#SqlStorageBackend"
        ],
        "postures": [
          "W"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "The writer side of the same core change: a session store value built to the 7.72.0 entry union, handed where SqlStorageBackend.sessionStore is expected, meets core's new run_ledger entry type (\"run_ledger\" is not one of the 7.72.0 entry types) and fails to compile; the package's own declarations are byte-identical to 7.72.0, the change is core's SessionTreeEntry (L-2b77b74a868a in core's manifest)."
        }
      },
      {
        "id": "L-e26a48133049",
        "verdict": "breaking",
        "message": "Property 'owner' is missing in type '{ readonly row: { readonly owner: string | null; readonly incarnation?: string | undefined; }; }' but required in type '{ owner: string | null; }'.",
        "count": 2,
        "representative": [
          "SqlStorageBackend",
          "SqlStorageBackend.sessionStore"
        ],
        "culprits": [],
        "postures": [
          "Ws"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "SqlStorageBackend.sessionStore is core's SessionStore, whose delete guard widens to { owner } | { row } (core's L-e26a48133049 / L-0f38ff17ef27): a sessionStore whose delete was written as a function value against the 7.72.0 guard { owner }, handed where SqlStorageBackend's is expected, fails under strictFunctionTypes, and an implementation that reads guard.owner off the contextual type fails to compile; this package's own declarations are byte-identical to 7.72.0."
        }
      },
      {
        "id": "L-6d53ef239ac5",
        "verdict": "breaking",
        "message": "Type '\"config.project_id_invalid\"' is not assignable to type '\"config.spec_retired_key\" | \"config.output_style_invalid\" | \"config.language_invalid\" | \"config.permission_mode_invalid\" | \"config.shell_gate_value_retired\" | \"config.approval_reach_invalid\" | ... 51 more ... | undefined'.",
        "count": 1,
        "representative": [
          "SqlStorageBackend.checkpointStore"
        ],
        "culprits": [],
        "postures": [
          "R"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "SqlStorageBackend.checkpointStore is core's CheckpointStore, whose listings carry CheckpointConfigRefusalCode, which gains config.project_id_invalid (core's L-6d53ef239ac5): a reader exhaustive over a listed row's detail.code, or holding the store or a row as its 7.72.0 type, fails to compile; this package's own declarations are byte-identical to 7.72.0."
        }
      },
      {
        "id": "L-89dc1bd1221b",
        "verdict": "breaking",
        "message": "Type '\"workflow\"' is not assignable to type '\"subagent\" | \"workflow_member\" | \"background_agent\"'.",
        "count": 1,
        "representative": [
          "SqlStorageBackend.backgroundAgentStore"
        ],
        "culprits": [],
        "postures": [
          "R",
          "Ws"
        ],
        "home": "typeKeys:SqlStorageBackend",
        "answer": {
          "answer": "breaking",
          "why": "SqlStorageBackend.backgroundAgentStore hands out core's background agent rows, whose member outcome kind widens with MEMBER_KINDS (+workflow, +peer_task; core's L-89dc1bd1221b): a reader exhaustive over the kind, or holding a row as its 7.72.0 type, fails to compile; this package's own declarations are byte-identical to 7.72.0."
        }
      }
    ],
    "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": "Not measurable by the run, so the hole was checked: the package's own emitted declarations are byte-identical at both ends (diff -r of the judge's two cached trees, 11 .d.ts files: only the timing sidecar differs), and its only outside import is @sema-agent/core (EngineStorageBackend, SessionStore and the store types reached through them), whose declaration diff is answered in core's manifest (deep-nesting there: read, not re-scanned member by member) — every change this package reaches through core is one of the leaves above, each answered breaking."
      },
      {
        "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 (a consumer's compiler option): the package's own emitted declarations are byte-identical at both ends, so no `?` or `| undefined` of its own moved, and in core's declaration diff (what it reaches through @sema-agent/core) no member both ends declare gained or lost `?` or `| undefined` (every change hunk paired by member name: 0 pairs; answered in core's manifest)."
      },
      {
        "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": [],
    "seconds": {
      "emitFrom": 0,
      "emitTo": 0.253,
      "build": 1.45,
      "check": 1.383,
      "total": 3.156
    }
  },
  "breakingCount": 1,
  "breakingItems": [
    "type retyped keys: SqlStorageBackend sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Property 'mark' is missing in type 'RunLedgerEntry' but required in type 'ReminderMarkEntry'.); sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Type '\"run_ledger\"' is not assignable to type '\"session_checkout\" | \"message\" | \"thinking_level_change\" | \"model_change\" | \"compaction\" | \"custom\" | \"custom_message\" | \"label\" | \"session_info\" | \"leaf\" | \"prompt_epoch\" | \"announced_listing…); sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Property 'owner' is missing in type '{ readonly row: { readonly owner: string | null, readonly incarnation?: string | undefined, }, }' but required in type '{ owner: string | null, }'.); sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Type '\"config.project_id_invalid\"' is not assignable to type '\"config.spec_retired_key\" | \"config.output_style_invalid\" | \"config.language_invalid\" | \"config.permission_mode_invalid\" | \"config.shell_gate_value_retired\" | \"config.approval_r…); sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Type '\"workflow\"' is not assignable to type '\"subagent\" | \"workflow_member\" | \"background_agent\"'.)"
  ],
  "toResolvedAt": "a03a2cd1e6fc6fbaf1e83d9c5a750abc8faadccb"
}
