@sema-agent/core
Version:
Stateless, task-oriented AI agent core
85 lines (84 loc) • 12.3 kB
JSON
{
"leaves": {
"L-24a1312fb646": {
"answer": "breaking",
"why": "ShellReadRefusalDetails (tools/fs/shell-read-check) gains the arm { type: \"read_targets_refused\"; code: \"read_targets_over_limit\" | \"read_target_not_a_path\" } (readTargetsRefusedDetails), and every export that hands out a station refusal's details carries it (ShellReadQuestion.details, EngineAttestation's stationRefusal.details, and through them PermissionResult, ToolPolicy, TaskSpec, RunInternals), so a consumer that switches exhaustively on details.type, assigns details to a type spelled from the 7.71.x arms, or implements a callback typed against them fails to compile; a compile probe on the two ends' emitted declarations fails on this arm and passes once the 7.71.1 union is put back."
},
"L-1835a5ccb3cb": {
"answer": "breaking",
"why": "ApprovalTargets widens each role to string | null | readonly (string | null)[] and PendingAction's tool_approval arm holds targets?: ApprovalTargets, so every export that holds a parked tool_approval row (Checkpoint, CheckpointStore, CheckpointPause, pauseOf, RunInternals, EngineStorageBackend) is no longer assignable to its 7.71.1 type and a reader of a row's targets as one string per role fails to compile; the checker's \"human\" / \"task_done\" line is only where its discriminated-union elaboration stopped (pause-registry and checkpoint-store declarations are byte-identical), and putting the 7.71.1 ApprovalTargets back alone makes the Checkpoint, CheckpointPause, PendingAction and pauseOf probes compile."
},
"L-6b5041418fee": {
"answer": "breaking",
"why": "CheckpointErrorReason gains constraint_changed, constraint_chain_damaged and constraint_unjudgeable, which CheckpointError.detail.reason, CheckpointRowVerdict and ResumeConfigVerdict (and the CheckpointStore listings that carry them) hand out, so a consumer that switches exhaustively on detail.reason or holds it as the 7.71.1 union fails to compile; putting the 7.71.1 union back alone makes the CheckpointError probe compile."
},
"L-bc44fedb1fbf": {
"answer": "breaking",
"why": "ApprovalTargets (exported, core/approval-object) changes each role's value from string | null to string | null | readonly (string | null)[], so code that reads a parked row's targets.protective / targets.declared as a string or holds the new type as the 7.71.1 one fails to compile (reader probe fails); a value built to the 7.71.1 shape is still accepted (writer probe compiles)."
},
"L-a0f97aae588a": {
"answer": "not-breaking",
"why": "No declaration moved: the six rest-parameter functions folded here (clampValuesOf, foldClampSources, toolPolicySkippedRules, joinFloors, joinedFloors, mayCarryGitVariables) are declared byte-identically in both ends' emitted declarations, the judge's overload extraction (__Ov1) yields never for each of them at the 7.71.1 end as well (a readonly rest parameter; it does not for reviewSubjectOf), and a call probe built from the rest element (no, one and three arguments, and a spread readonly list, result held as the 7.71.1 result) compiles against the new end for all six while V and strict Vs pass, so every call that compiled against 7.71.1 compiles against 7.72.0; toolPolicySkippedRules's ToolPolicy parameter does reach the new ShellReadRefusalDetails arm, which only an old-typed function value assigned to the new function type meets and which L-24a1312fb646 answers as breaking."
},
"L-30e8b471ffa8": {
"answer": "breaking",
"why": "SchedulerLanes.session (tools/scheduler-tools) goes from SchedulerContext to optional (session?: SchedulerContext), so under strictNullChecks a reader of lanes.session or of schedulerLanesOf(...).session that does not check for undefined fails to compile; this leaf is the strict-posture spelling of the same change as L-c168acc77508."
},
"L-a48778242784": {
"answer": "breaking",
"why": "SchedulerToolContext loses its required key scope (sessionLaneScopeOf is removed with it), so code that reads ctx.scope, or passes scope in an object literal to schedulerLanesOf / createSchedulerTools, fails to compile (both probed); createSchedulerTools' new optional third parameter breaks no caller by itself."
},
"L-c168acc77508": {
"answer": "breaking",
"why": "SchedulerLanes.session goes from required to optional, so a value of the new SchedulerLanes (or schedulerLanesOf's result) held as the 7.71.1 type, or a read of .session used as a SchedulerContext without a check, fails to compile under strictNullChecks (probe: Type 'undefined' is not assignable to type 'SchedulerContext')."
},
"L-4edf92987865": {
"answer": "breaking",
"why": "The exported TypeBox schema values ToolRosterEntry and ToolRoster (whose entries items are ToolRosterEntry) gain the property schema registration: TOptional<TString> and the nested pathTarget.each: TOptional<TLiteral<true>>, so a host value written to the 7.71.1 schema's type and declared as typeof ToolRosterEntry / typeof ToolRoster fails to compile until it adds them (Wv probe); reading the schema values still compiles."
},
"L-1c9ecd4c84ab": {
"answer": "breaking",
"why": "ROSTER_APPROVAL_BINDING (core/tool-roster) gains the row registration: \"declaration\", so a host value typed typeof ROSTER_APPROVAL_BINDING, or a table or switch exhaustive over its keys, fails to compile until it places registration (Wv probe); reading the table still compiles."
},
"L-1f27f6543af2": {
"answer": "breaking",
"why": "The strict generic probes of CheckpointPause<A0> fail because ApprovalTargets widened under its tool_approval pendingAction (putting the 7.71.1 ApprovalTargets back alone makes them compile): the reader side is a real break, as the non-strict generic reader probe fails too (L-f8e225640533), while the strict writer probe fails only because the checker will not relate two deferred __DS instantiations that are no longer identical (the non-strict writer probe compiles)."
},
"L-25f7c87d92c4": {
"answer": "breaking",
"why": "NOTICE_MINTER, typed Readonly<Record<EngineNoticeCode, NoticeMinter>>, gains the row config.scheduler_store_unmoved: \"engine\" with the new code, so a host value typed typeof NOTICE_MINTER written to the 7.71.1 table fails to compile until it adds the row; reading the table still compiles."
},
"L-4598ae6fcf1e": {
"answer": "breaking",
"why": "SchedulerToolContext no longer declares scope, so a value of the new SchedulerToolContext held as the 7.71.1 type (which requires scope: string) fails to compile; same change as L-a48778242784, seen from the reader posture."
},
"L-4950133af1b1": {
"answer": "breaking",
"why": "ENGINE_NOTICE_CODES is a readonly tuple that grows from 197 to 198 elements (config.scheduler_store_unmoved inserted after config.peer_lane_unmounted, shifting every later position), so a value typed typeof ENGINE_NOTICE_CODES on either side of the change fails to compile against the other (probed both ways)."
},
"L-694b006eed34": {
"answer": "breaking",
"why": "EngineNoticeCode, derived from ENGINE_NOTICE_CODES, gains config.scheduler_store_unmoved, so a Record<EngineNoticeCode, ...> table or a switch exhaustive over the codes fails to compile until it places the word, and a new code held as the 7.71.1 union is refused (reader probe)."
},
"L-6f3a314fd1e1": {
"answer": "breaking",
"why": "pauseOf's declaration is unchanged, but its pendingAction parameter and CheckpointPause<K> result reach the widened ApprovalTargets of the tool_approval arm, so the new pauseOf held where the 7.71.1 pauseOf's type is expected fails to compile (V probe) and passes once the 7.71.1 ApprovalTargets is put back alone."
},
"L-b13fc188fe3a": {
"answer": "breaking",
"why": "The closed set CheckpointErrorReason (core/checkpoint-features) gains constraint_changed, constraint_chain_damaged and constraint_unjudgeable, so a consumer exhaustive over it, or holding a new reason as the 7.71.1 union, fails to compile (reader probe); a 7.71.1 word still fits the new union."
},
"L-f8e225640533": {
"answer": "breaking",
"why": "CheckpointPause<K>'s human pair (pending tool_approval) carries the widened ApprovalTargets in pendingAction.targets, so a new CheckpointPause<A0> held as the 7.71.1 CheckpointPause<A0> fails to compile (generic reader probe) and compiles once the 7.71.1 ApprovalTargets is put back alone; a 7.71.1 pause still fits the new type."
}
},
"mustCheck": {
"deep-nesting": "Not measurable by the run, so the hole itself was checked: a method-syntax member's parameters are what the strict postures leave bivariant past depth 10, and all 1,914 method-syntax members of the 7.71.1 end's emitted declarations were matched to the 7.72.0 end's by file, container path, name and overload index (every one has a twin; the 5 new ones are in the new file core/judged-read.d.ts), each of their 2,578 parameters compared both ways with the checker at every depth; with the three changes already answered breaking (ApprovalTargets, ShellReadRefusalDetails, CheckpointErrorReason) put back in the new end, none differs except 70 parameters typed by their own declaration's type parameters (identical text), whose 12 referenced named types compile strictly both ways — no change of this range hides behind a bivariant method at any depth.",
"strict-generic": "Measured 308 generic or overloaded exported functions without a strict probe (the five listed are typebox's Type.* builders, re-exported from typebox 1.1.39, pinned with the same lockfile integrity at both refs); the hole is a method-syntax member compared bivariantly inside their parameters or results, and the depth-unbounded scan of every method-syntax member of both ends (1,914 matched, 2,578 parameters compared both ways, as for deep-nesting) finds no differing method parameter outside the three changes already answered breaking and type-parameter-only parameters whose referenced types compile strictly both ways, so none of the 308 hides a further change; the functions themselves were still compared by the non-strict V posture (pauseOf among them, answered breaking).",
"ambient-modules": "Both ambient modules (\"undici/lib/handler/unwrap-handler.js\", \"undici/lib/handler/wrap-handler.js\") are declared only in brain/undici-handler-api.d.ts, which is byte-identical in the two ends' emitted declarations (same sha-256; src/brain has no diff from v7.71.1), and they type undici 7.30.2, pinned with the same lockfile integrity at both refs — the two declarations the judge merged are one text, so nothing between them went uncompared.",
"shared-dependency": "@modelcontextprotocol/client 2.4.0, typebox 1.1.39 and undici 7.30.2: package.json and package-lock.json are unchanged between v7.71.1 and this commit (git diff --quiet exits 0; the same exact versions and integrity hashes at both refs) and the installed copy the judge compiled against is those versions, so the one copy both ends were judged against is the copy both ends declare.",
"export-equals": "The one `export =` measured is inside the two ambient undici handler modules of brain/undici-handler-api.d.ts (UnwrapHandler.unwrap / WrapHandler.wrap), a file byte-identical at both ends that no other emitted declaration references (an internal shim of the transport), so no member went unenumerated in this range.",
"exact-optional": "Not measurable (a consumer's compiler option), so the declaration diff of the two ends' emitted declarations (49 changed .d.ts files, 6 new, none removed) was read for the forms the option changes: no member both ends declare gained or lost `| undefined`; the only optionality changes are SchedulerLanes.session (required to optional, answered breaking in L-c168acc77508 / L-30e8b471ffa8) and mountedMcp on PrepareInheritedGateInput and the memory-engine-session prepare input (optional to required), which no published declaration reaches (no other emitted file imports those two modules); the 39 optional members added are new keys, which the option does not make breaking."
}
}