UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

157 lines (156 loc) • 17.9 kB
{ "leaves": { "L-1273d3be3e73": { "answer": "breaking", "why": "AssistantMessage.errorKind gains \"media_items_refused\" (head src/engine/llm/types.ts:796; v7.75.0 :796 has six words) [read]; the culprits (AssistantMessage, AssistantMessageEvent, TerminalCauseCarrier, AdvisorCard / AdvisorHold / AdvisorFailure, SideQueryResult, TurnBoundaryEvent, TrailingToolBatchSettlement, PrepareNextTurnContext, ShouldStopAfterTurnContext) carry the widened member unchanged in text, and reach the root through TaskResult, the session store and the loop hooks. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-4802da611c64": { "answer": "breaking", "why": "The refused-request part word list gains \"media_items_refused\": TerminalFailureDetail / provider error errorKind (head src/brain/errors.ts:722; v7.75.0 has four words) and REFUSED_REQUEST_PARTS (head src/core/terminal-cause.ts:434; v7.75.0 :433) [read]; RetentionCascadeStores and the other culprits reach it through stored terminals. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-11dc980684ea": { "answer": "breaking", "why": "RefusedRequestPart = (typeof REFUSED_REQUEST_PARTS)[number] gains \"media_items_refused\" (head src/core/terminal-cause.ts:434; v7.75.0 :433, four words) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-77949adc9d17": { "answer": "breaking", "why": "LoopContinueReason gains \"media_items_refusal_retry\" (head src/engine/loop/agent-loop.ts:98-100; absent at v7.75.0 :83-) [read]. The type is not named by the package root's declarations (the rolling package's dist/index.d.ts has no match; [ran] grep); a deep-import reader of the loop trace that is exhaustive over it does not compile. Breaking for that reader." }, "L-61e694bfebc7": { "answer": "breaking", "why": "IMAGE_ADMISSION.request gains the member refusalRungs ([510, 255, 127]; head src/core/image-admission.ts:127; the v7.75.0 request block :117- has no such key) [read]. A value or type written against the 7.75.0 shape (a Readonly<typeof IMAGE_ADMISSION> stand-in, a fixture typed by the old literal) lacks the required key." }, "L-e6fbe2ba0ef8": { "answer": "breaking", "why": "findEntries did not change text (src/engine/session/storage-base.ts: no change between the ends; src/engine/harness/types.ts:1902 changes only an unrelated optional key and a comment) [read]. A stored MessageEntry (head src/engine/harness/types.ts:959) carries an AssistantMessage whose errorKind gains \"media_items_refused\" (L-1273d3be3e73), and the judge reads that widening through the generic result Extract<RunLedgerEntry, {type}>. An implementer of SessionStorage typed against 7.75.0's entry types meets the new word; breaking at type level for that implementer, the same reading as 7.75.0's for output_cap_too_large." }, "L-ffb5b41d581b": { "answer": "breaking", "why": "sessionStoreContract keeps its text (src/core/store-contracts/session-store-contract.ts: no change between the ends; head :362) [read]. The SessionStore it is handed carries stored messages whose AssistantMessage.errorKind gains \"media_items_refused\" (L-1273d3be3e73), so a host store typed against 7.75.0's union can no longer be handed to the kit as typed; a store written against the current types compiles. Breaking at type level, as 7.75.0 read the same kit for output_cap_too_large." }, "L-c7b67a182202": { "answer": "breaking", "why": "ASK_UNRESOLVABLE_CAUSES gains \"approval_window_expired\" (head src/core/ask-unresolvable-notice.ts:44; v7.75.0 :40, three words) and so AskUnresolvableCause (head :46); SendMessageToolOptions and the other culprit carry it unchanged in text [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-8602e357770e": { "answer": "breaking", "why": "EngineAttestation.unresolvableCause?: AskUnresolvableCause (head src/core/engine-attestation.ts:69; v7.75.0 :66) widens with ASK_UNRESOLVABLE_CAUSES +approval_window_expired (head src/core/ask-unresolvable-notice.ts:44) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-a60a735db193": { "answer": "breaking", "why": "AskOutcome gains the literal \"window_expired\" (head src/core/tool-policy.ts:3439; v7.75.0 :3438) [read]. RunnerDeps.onAsk and the other culprits return it. A layer that wraps onAsk and is exhaustive over its result (or reads .allow after excluding only \"unavailable\") does not compile; a host that only returns AskOutcome is unaffected." }, "L-088f3653e8b9": { "answer": "breaking", "why": "Same change as L-a60a735db193 read through the inline AskOutcome union on RunnerDeps (head src/core/tool-policy.ts:3439) [read]: a value typed with 7.75.0's union no longer covers the new word for a reader exhaustive over it." }, "L-afc1c2e36fcb": { "answer": "breaking", "why": "UnresolvedAskCause gains \"approval_window_expired\" (head src/core/ask-origin.ts:1398; v7.75.0 :1397, two words) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-3c53e3362d6d": { "answer": "breaking", "why": "HeadlessApproverSeat gains \"window_expired\" (head src/core/ask-origin.ts:1497; v7.75.0 :1491) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-676a22d76286": { "answer": "breaking", "why": "ASK_UNRESOLVABLE_CAUSES has four elements, not three (head src/core/ask-unresolvable-notice.ts:44; v7.75.0 :40) [read]; a tuple typed to the old three does not hold the new array." }, "L-96fbc6e36b68": { "answer": "breaking", "why": "AskOutcome gains \"window_expired\" (head src/core/tool-policy.ts:3439; v7.75.0 :3438) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-bc25cb73113a": { "answer": "breaking", "why": "The same AskOutcome widening as L-96fbc6e36b68, read on the inline union [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-3c6459056960": { "answer": "breaking", "why": "DecidedVia (head src/core/gate-outcome.ts:174 from DECIDED_VIA :173; v7.75.0 :169-170, two words) gains \"host_window_closed\"; ResumeOutcome.hostDecision.decidedVia and the other culprits carry it [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-4a93486d8bbe": { "answer": "breaking", "why": "DecidedVia gains \"host_window_closed\" (head src/core/gate-outcome.ts:173-174; v7.75.0 :169-170) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-061484bfd527": { "answer": "breaking", "why": "DECIDED_VIA has three elements, not two (head src/core/gate-outcome.ts:173; v7.75.0 :169) [read]; a tuple typed to the old two does not hold it." }, "L-b50e9eba4d78": { "answer": "breaking", "why": "ScreenedSwappableDeps.seats widens with SWAPPABLE_DEP_SEATS +readDenyBuiltinRequestExcludable (head src/core/swappable-deps.ts:108) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-c0a596d28f3c": { "answer": "breaking", "why": "READ_DENY_DEPLOYMENT_SEATS gains \"readDenyBuiltinRequestExcludable\" (head src/core/read-face-seats.ts:44; v7.75.0 :42, four elements) [read]. Not named by the package root's declarations (the rolling package's dist/index.d.ts has no match; [ran] grep); a deep-import reader exhaustive over it breaks." }, "L-473862f023d0": { "answer": "breaking", "why": "SWAPPABLE_DEP_SEATS has eleven elements, not ten (head src/core/swappable-deps.ts:108; v7.75.0 :108) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-78daecc67d2d": { "answer": "breaking", "why": "ENGINE_NOTICE_CODES has 207 elements, not 206: + \"config.read_deny_request_excluded\" (head src/core/governance-codes.ts:918; v7.75.0 list from :444 without it) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-925f6471b0ec": { "answer": "breaking", "why": "EngineNoticeCode (head src/core/governance-codes.ts:924) gains \"config.read_deny_request_excluded\" (:918) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-926fd137907c": { "answer": "breaking", "why": "EngineCapability (head src/core/engine-capabilities.ts:239) gains \"read_deny.request_release\" (ENGINE_CAPABILITIES head :236; v7.75.0 :230) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-a98990bae839": { "answer": "breaking", "why": "SWAP_SEAT_NOTICE gains the row readDenyBuiltinRequestExcludable (head src/core/swappable-deps.ts:134) [read]; a value typed by the 7.75.0 table lacks the key." }, "L-e2e025599275": { "answer": "breaking", "why": "ENGINE_CAPABILITIES has 26 elements, not 25 (head src/core/engine-capabilities.ts:236; v7.75.0 :230) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-e82fe16102f9": { "answer": "breaking", "why": "NOTICE_MINTER, a Record keyed by EngineNoticeCode, gains the row config.read_deny_request_excluded (head src/core/governance-codes.ts:2005, table :2011) [read]; a host table keyed the same way does not compile until it has it." }, "L-8e8f6c10dc34": { "answer": "breaking", "why": "DelegationLifecycleEvent's terminal arm gains two required members, stations and origin (head src/core/delegation-frames.ts:461, :469; the v7.75.0 arm at :429- has neither) [read]. A host that constructs the frame (a fixture, a replay) lacks them; a reader is not broken." }, "L-eab3bb7cda95": { "answer": "breaking", "why": "Same change as L-8e8f6c10dc34 read through the identity-typed arm (head src/core/delegation-frames.ts:461-469) [read]: a constructed terminal frame without stations / origin no longer satisfies the type." }, "L-036ee514ad94": { "answer": "breaking", "why": "PEER_TASK_FAILURE_CODES gains peer_task_outcome_unknown: \"a2a.peer_task_outcome_unknown\" (head src/core/peer-task-lane.ts:84; v7.75.0 :65-69, three rows) [read]. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-08f8cfbd3225": { "answer": "breaking", "why": "RetentionCascadeStores gains the required member peerTaskStore (head src/core/retention.ts:161; v7.75.0 :154- has none) [read]. A host deletion coordinator that builds the stores record does not compile without it." }, "L-4afb5b24d6e3": { "answer": "breaking", "why": "RETENTION_CASCADE gains the row peerTaskStore (head src/core/retention.ts:295-298, a leg at step 14) [read]; a value typed by the 7.75.0 record lacks it, and a reader keyed by the old rows misses one." }, "L-54c6080ae370": { "answer": "breaking", "why": "Same change as L-08f8cfbd3225 read through the store-row shape (head src/core/retention.ts:161, :295) [read]." }, "L-e40854661901": { "answer": "breaking", "why": "RETENTION_SESSION_TREE_STEPS' store key gains \"peerTaskStore\" (head src/core/retention.ts:296, store type :422 keyof RetentionCascadeStores) [read]; the step numbers after it move. A consumer that is exhaustive over it (a switch with a never default, a Record keyed by it, an equality list, a schema that validates the words) does not compile or rejects the new word." }, "L-a0f97aae588a": { "answer": "not-breaking", "why": "The judge could not take the old overload list apart, so it was checked by hand [read]: clampValuesOf is one signature at both ends, `(...records: ReadonlyArray<object | undefined>): ClampValues` (v7.75.0 and head src/core/child-clamp-seats.ts:541), and the emitted core/child-clamp-seats.d.ts is byte-identical at both ends (sha256 0fc5681b70d7509c06ff63a4564dd1b1b2fc1ebc7ad9c19b13826c887cb2ff39 in the judge's cache). ClampValues maps ClampSeat (keyof CLAMP_SET, unchanged) to CLAMP_SET's value or TaskSpec[K]; the 19 clamp seats' TaskSpec members have the same declaration text at both ends ([ran] per-member compare of core/task-spec.d.ts; its only change is the new optional readDenyBuiltinExclude, which is not a clamp seat: head src/core/child-clamp-seats.ts:572 lists it as not carried), and the types those members name (ReadDenyEntry, ContainmentFace, WriteProtectedEntry, ComplianceCapability, MemorySpecInput, ApprovalReach) are unchanged (their declaration files identical, or the declaration text identical where the file changed). Nothing a caller passes or reads moved." } }, "mustCheck": { "deep-nesting": "Not measurable by the run, so the two ends' emitted declarations were diffed directly ([ran] diff -ruN of the judge's cached core declarations at v7.75.0 and this head: 57 changed and 7 added .d.ts, 0 removed). Changed non-comment lines by indentation depth (4 spaces a level): depth 0: 183, 1: 168, 2: 54, 3: 17, 4: 2. Method-syntax members among them: 12, at depth 1 or 2, all added (core/runner/media-item-limit.d.ts six, the new MediaItemLimitModel seat; core/runner/person-path-rows.d.ts forCall; engine/harness/agent-harness.d.ts and engine/loop/types.d.ts lower / answered, the media-item limit seat on the loop options; tools/fs/read-deny.d.ts add). Nothing changed anywhere near 10 levels of anonymous object types.", "strict-generic": "[ran] over the changed and added declarations: 39 exported functions have a changed declaration line; 2 of them are generic or overloaded — normalizeReplayedImportReport (core/memory-engine/layout.d.ts) and seatInputsOfCall (core/mode-policy.d.ts) — and both are new at this head (no declaration at v7.75.0), so no change of a both-ends method hides behind them. The 327 counted are, as at 7.75.0, mostly the dependency namespace Type.* re-exported from typebox, whose installed copy is the same at both ends (package-lock.json identical).", "ambient-modules": "[read] the two ambient modules are undici's handler shims (undici/lib/handler/unwrap-handler.js, wrap-handler.js); package-lock.json is identical between v7.75.0 and this head, so both ends declare them from the one installed undici and nothing between them moved.", "shared-dependency": "[read] @modelcontextprotocol/client, typebox and undici: package-lock.json is identical between v7.75.0 and this head (git diff --stat = no change) and package.json differs only by three new script rows, so the one installed copy each end is judged against is the copy each end ships with.", "export-equals": "[read] brain/undici-handler-api.d.ts (the `export =` module) is not among the declarations that changed between the ends (diff -ruN of the cached declarations lists it neither as changed nor as added), and the undici it describes is the same installed copy (package-lock.json identical).", "exact-optional": "Not measurable (a consumer's compiler option) [read] in the declaration diff: no property both ends declare gained or lost `?` or `| undefined`; the optional additions are new keys (TaskSpec.readDenyBuiltinExclude, RunnerDeps.readDenyBuiltinRequestExcludable, RunnerDeps.peerTaskStore, the inheritEnvForms declaration, the media-item limit seat's members), a new trailing optional parameter (orchestration/workflow-stop.d.ts `cancel(reason, opts?)`) or members of new types ([ran] a per-file compare of every key both ends declare in the changed declarations: none changed its `?` or its `| undefined`)." } }