@sema-agent/core
Version:
Stateless, task-oriented AI agent core
422 lines (421 loc) • 14.5 kB
JSON
{
"repo": "core",
"package": "@sema-agent/mods-kernel",
"schema": 2,
"version": "7.74.0",
"from": "4e7f0eab1c80cc3181103d96790caf781cf5fa39",
"to": "v7.74.0",
"added": [
{
"name": "MOD_PACKAGE_FILES",
"kind": "variable",
"tier": null,
"at": [
"src/index.ts:94",
"src/package-reader.ts:12"
],
"criteriaCovered": false,
"breaking": false
},
{
"name": "ModPackageRead",
"kind": "interface",
"tier": null,
"at": [
"src/index.ts:94",
"src/package-reader.ts:37"
],
"criteriaCovered": false,
"breaking": false
},
{
"name": "ModPackageSource",
"kind": "interface",
"tier": null,
"at": [
"src/index.ts:94",
"src/package-reader.ts:15"
],
"criteriaCovered": false,
"breaking": false
},
{
"name": "ModPackageUnreadMember",
"kind": "interface",
"tier": null,
"at": [
"src/index.ts:94",
"src/package-reader.ts:31"
],
"criteriaCovered": false,
"breaking": false
},
{
"name": "readModPackage",
"kind": "function",
"tier": null,
"at": [
"src/index.ts:94",
"src/package-reader.ts:78"
],
"criteriaCovered": false,
"breaking": false
}
],
"removed": [],
"changed": [],
"subpaths": [],
"subpathsUnread": [
"from",
"to"
],
"narrowed": [],
"faces": {
"open": [],
"source": null
},
"closedSetMembers": [],
"closedSetsUnreadable": [],
"typeKeys": [
{
"type": "MOD_EVENT_TABLE",
"at": [
"src/events.ts"
],
"added": [],
"addedDetail": [],
"addedRequired": [],
"removed": [],
"madeRequired": [],
"madeOptional": [],
"retyped": [
{
"key": "MOD_EVENT_TABLE",
"from": "Type 'Readonly<{ \"classic.PreToolUse\": ModEventRow, \"classic.PostToolUse\": ModEventRow, \"classic.PostToolUseFailure\": ModEventRow, \"classic.PostToolBatch\": ModEventRow, ... 140 more ..., \"env.set\": ModEventRow, }>' is missing the following…",
"to": "(read by the compiler)",
"direction": "changed",
"judged": true
}
],
"breaking": true,
"criteriaCovered": false,
"judge": {
"verdict": "breaking",
"postures": [
"Wv"
],
"leaves": [
"L-4dfb66af74da"
],
"subject": "MOD_EVENT_TABLE",
"judged": true,
"home": [
"L-4dfb66af74da"
]
}
},
{
"type": "ModDispatchOptions",
"at": [
"src/dispatch.ts:108"
],
"added": [
"owner"
],
"addedDetail": [
{
"key": "owner",
"optional": true
}
],
"addedRequired": [],
"removed": [],
"madeRequired": [],
"madeOptional": [],
"retyped": [
{
"key": "event",
"from": "Type '\"prompt.paint\"' is not assignable to type '\"classic.PreToolUse\" | \"classic.PostToolUse\" | \"classic.PostToolUseFailure\" | \"classic.PostToolBatch\" | \"classic.Notification\" | \"classic.UserPromptSubmit\" | \"classic.UserPromptExpansion\" | …",
"to": "(read by the compiler)",
"direction": "changed",
"judged": true
}
],
"breaking": true,
"criteriaCovered": false,
"judge": {
"verdict": "breaking",
"postures": [
"R",
"Rs",
"W",
"Ws"
],
"leaves": [
"L-6d71986bc8a1"
],
"subject": "ModDispatchOptions",
"home": [
"L-6d71986bc8a1"
]
}
},
{
"type": "ModStation",
"at": [
"src/events.ts:141"
],
"added": [
"answers",
"closed",
"ownerOnly"
],
"addedDetail": [
{
"key": "answers",
"optional": true
},
{
"key": "closed",
"optional": true
},
{
"key": "ownerOnly",
"optional": true
}
],
"addedRequired": [],
"removed": [],
"madeRequired": [],
"madeOptional": [],
"retyped": [],
"breaking": false,
"criteriaCovered": false,
"judge": {
"verdict": "same",
"postures": [],
"leaves": [],
"subject": "ModStation"
}
}
],
"typeKeysUnreadableArms": [],
"typeKeysFlattenedCount": 1,
"signatures": [],
"versionLiterals": [
{
"name": "KERNEL_CONTRACT_VERSION",
"kind": "constant",
"from": "12",
"to": "13",
"at": "src/events.ts:71",
"criteriaCovered": false,
"breaking": true
}
],
"declarationMoves": [],
"mintMoves": [],
"noticeLineage": [],
"criteriaObserves": [],
"consumersHint": {
"cli": [
"MOD_EVENT_TABLE",
"ModDispatchOptions",
"ModStation"
],
"server": [
"MOD_EVENT_TABLE"
],
"sdk": [],
"note": "scanned cli@73a4991c0 server@797d4d621 sdk@93fdd82 — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it. Ledger files (**/docs/core-consumption/**, **/docs/wire-consumption/**, **/*LEDGER*.json) are not evidence of use — server: 1 name(s) matched ONLY in bookkeeping files and were set aside (ModStation)"
},
"judge": {
"judgeVersion": "2",
"typescript": "5.7.2",
"counts": {
"same": 231,
"breaking": 320
},
"probes": 3086,
"leaves": [
{
"id": "L-6d71986bc8a1",
"verdict": "breaking",
"message": "Type '\"prompt.paint\"' is not assignable to type '\"classic.PreToolUse\" | \"classic.PostToolUse\" | \"classic.PostToolUseFailure\" | \"classic.PostToolBatch\" | \"classic.Notification\" | \"classic.UserPromptSubmit\" | \"classic.UserPromptExpansion\" | ... 137 more ... | \"env.set\"'.",
"count": 318,
"representative": [
"ModBottomContext",
"ModBottomContext.frames",
"ModBus",
"ModBus.dispatch",
"ModBus.hasHandlers"
],
"culprits": [
"dispatch.d.ts#ModFrame",
"registration.d.ts#ScreenedRegistration"
],
"postures": [
"Mo",
"R",
"R0",
"Rs",
"V",
"Vo",
"Vs",
"W",
"W0",
"Wp",
"Ws"
],
"home": "typeKeys:ModDispatchOptions",
"answer": {
"answer": "breaking",
"why": "The package's ModEventName (keyof typeof MOD_EVENT_TABLE, src/core/mods/kernel/events.ts:431) widens by six names (events.ts:219), so every export carrying an event name (ModBus.dispatch / hasHandlers, ModBottomContext.frames, ModDispatchOptions.frames' ModFrame.event and the rest the leaf lists) widens with it: a reader exhaustive over it, or an implementer of ModBus taking the 7.73.0 union, fails to compile. Named by CHANGELOG.md:126 (2)."
}
},
{
"id": "L-4dfb66af74da",
"verdict": "breaking",
"message": "Type 'Readonly<{ \"classic.PreToolUse\": ModEventRow; \"classic.PostToolUse\": ModEventRow; \"classic.PostToolUseFailure\": ModEventRow; \"classic.PostToolBatch\": ModEventRow; ... 140 more ...; \"env.set\": ModEventRow; }>' is missing the following properties from type 'Readonly<{ \"classic.PreToolUse\": ModEventRow; \"classic.PostToolUse\": ModEventRow; \"classic.PostToolUseFailure\": ModEventRow; \"classic.PostToolBatch\": ModEventRow; ... 146 more ...; \"env.set\": ModEventRow; }>': \"prompt.paint\", \"theme.set\", \"theme.clear\", \"decision.ask\", and 2 more.",
"count": 1,
"representative": [
"MOD_EVENT_TABLE"
],
"culprits": [],
"postures": [
"Wv"
],
"home": "typeKeys:MOD_EVENT_TABLE",
"answer": {
"answer": "breaking",
"why": "MOD_EVENT_TABLE (src/core/mods/kernel/events.ts:219) gains six rows, so a value typed typeof MOD_EVENT_TABLE written to 7.73.0's 145 rows fails to compile until it adds them. Named by CHANGELOG.md:126 (2)."
}
},
{
"owed": false,
"id": "L-99a162cefd6b",
"verdict": "breaking",
"message": "Type '12' is not assignable to type '13'. · Type '13' is not assignable to type '12'.",
"count": 1,
"representative": [
"KERNEL_CONTRACT_VERSION"
],
"culprits": [],
"postures": [
"V",
"Vs",
"Wv"
],
"home": "versionLiterals:KERNEL_CONTRACT_VERSION",
"answer": {
"answer": "breaking",
"why": "KERNEL_CONTRACT_VERSION moves from 12 (v7.73.0 src/core/mods/kernel/events.ts:68) to 13 (events.ts:71): a host comparing it across @sema-agent/core and @sema-agent/mods-kernel must upgrade both, and a package declaring 12 is refused config.mods_invalid. Named by CHANGELOG.md:126 (1)."
}
}
],
"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 emitted declarations import nothing from outside the package, and the diff of the two ends (diff -ru of the judge's cached trees: dispatch, events, index and site-rules changed; digest, hash-mirror and package-reader new) changes nothing deeper than depth 1 (ModDispatchOptions.owner?, ModStation ownerOnly? / closed? / answers?, six MOD_EVENT_TABLE rows, KERNEL_CONTRACT_VERSION 12 -> 13, new exports), so nothing can hide behind a bivariant method deeper than 10 levels."
},
{
"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": 3,
"examples": [
"admitMods",
"receive#appendOwn",
"registration#screenModSeats"
]
},
"owed": true,
"answer": "Measured admitMods, receive#appendOwn and registration#screenModSeats: receive.d.ts and registration.d.ts are byte-identical at both ends; admitMods' own declaration line did not change, and the members its result reaches that moved are ModDispatchOptions' new optional owner (a wider parameter, which an implementer typed to 7.73.0 still accepts) and the widened event name, answered breaking under L-6d71986bc8a1; the package imports nothing from outside itself."
},
{
"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 imports nothing from outside itself and its declaration diff, paired by member name, has no member both ends declare that gained or lost `?` or `| undefined`; the optional members added (ModDispatchOptions.owner, ModStation ownerOnly / closed / answers) are new keys."
},
{
"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": 2.839,
"emitTo": 0.865,
"build": 0.177,
"check": 5.805,
"total": 9.961
}
},
"breakingCount": 3,
"breakingItems": [
"type retyped keys: MOD_EVENT_TABLE MOD_EVENT_TABLE (changed: Type 'Readonly<{ \"classic.PreToolUse\": ModEventRow, \"classic.PostToolUse\": ModEventRow, \"classic.PostToolUseFailure\": ModEventRow, \"classic.PostToolBatch\": ModEventRow, ... 140 more ..., \"env.set\": ModEventRow, }>' is missing the following…)",
"type retyped keys: ModDispatchOptions event (changed: Type '\"prompt.paint\"' is not assignable to type '\"classic.PreToolUse\" | \"classic.PostToolUse\" | \"classic.PostToolUseFailure\" | \"classic.PostToolBatch\" | \"classic.Notification\" | \"classic.UserPromptSubmit\" | \"classic.UserPromptExpansion\" | …)",
"version literal changed: KERNEL_CONTRACT_VERSION 12 -> 13"
],
"toResolvedAt": "5d5c8f6de0542dc2b9e48a1c16447d7ccc2605b6"
}