@sema-agent/core
Version:
Stateless, task-oriented AI agent core
29 lines (28 loc) • 6.24 kB
JSON
{
"leaves": {
"L-324ff8f9d49e": {
"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)."
},
"L-efa04edb34e6": {
"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."
},
"L-2b2200fce12c": {
"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."
},
"L-199058328e36": {
"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."
},
"L-f3251608ebdf": {
"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": {
"deep-nesting": "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.",
"exact-optional": "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."
}
}