UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

216 lines (215 loc) • 7.71 kB
{ "repo": "core", "package": "@sema-agent/core-stores-sql", "schema": 2, "version": "7.72.0", "from": "bb2dbd1dc9c258907c827442b60c239f9de93de8", "to": "v7.72.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": "checkpointStore.get(...).gate.kind", "from": "Type '\"human\"' is not assignable to type '\"task_done\"'.", "to": "(read by the compiler)", "direction": "changed", "judged": true } ], "breaking": true, "criteriaCovered": false, "judge": { "verdict": "breaking", "postures": [ "R", "V", "Vo", "Ws" ], "leaves": [ "L-1835a5ccb3cb" ], "subject": "SqlStorageBackend", "judged": true, "home": [ "L-1835a5ccb3cb" ] } } ], "typeKeysUnreadableArms": [], "typeKeysFlattenedCount": 4, "signatures": [], "versionLiterals": [], "declarationMoves": [], "mintMoves": [], "noticeLineage": [], "criteriaObserves": [], "consumersHint": { "cli": [], "server": [ "SqlStorageBackend" ], "sdk": [], "note": "scanned cli@c97d39fea server@6027d70dc sdk@174ccb4 — 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": 186, "breaking": 3 }, "probes": 1015, "leaves": [ { "id": "L-1835a5ccb3cb", "verdict": "breaking", "message": "Type '\"human\"' is not assignable to type '\"task_done\"'.", "count": 3, "representative": [ "SqlStorageBackend", "SqlStorageBackend.checkpointStore", "createSqlStorageBackend" ], "culprits": [ "backend.d.ts#SqlStorageBackend" ], "postures": [ "R", "V", "Vo", "Ws" ], "home": "typeKeys:SqlStorageBackend", "answer": { "answer": "breaking", "why": "This package's own emitted declarations are byte-identical to 7.71.1, but SqlStorageBackend extends @sema-agent/core's EngineStorageBackend, whose checkpointStore hands out parked tool_approval rows carrying core's widened ApprovalTargets (each role may be a readonly (string | null)[]), so a host that holds a SqlStorageBackend or createSqlStorageBackend's result as its 7.71.1 type, or reads a row's targets as one string per role, fails to compile; putting core's 7.71.1 ApprovalTargets back alone moves the EngineStorageBackend reader probe off this message (onto core's CheckpointErrorReason widening, answered in core's manifest)." } } ], "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 of the judge's two cached trees: only the timing sidecar differs), and its 32 method-syntax members' 36 parameters compare equal both ways with the checker against each end's core; what it takes from @sema-agent/core (EngineStorageBackend, SessionStore, SessionLogTransfer, ManagedRetentionCapability) is covered by core's depth-unbounded scan of all 1,914 method-syntax members, which finds no differing method parameter outside ApprovalTargets, ShellReadRefusalDetails and CheckpointErrorReason, each answered breaking in core's manifest." }, { "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 `| undefined`; core's optionality changes are SchedulerLanes.session (answered breaking in core's manifest) and two prepare inputs no published declaration reaches." }, { "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.368, "build": 2.017, "check": 1.456, "total": 3.913 } }, "breakingCount": 1, "breakingItems": [ "type retyped keys: SqlStorageBackend checkpointStore.get(...).gate.kind (changed: Type '\"human\"' is not assignable to type '\"task_done\"'.)" ], "toResolvedAt": "ebe58bb8c510264cb8aa14d6c6d95f633f68a96e" }