@sema-agent/core 7.73.0 → 7.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/CHANGELOG.md +246 -0
  2. package/dist/agents/list-agents-tool.js +1 -1
  3. package/dist/agents/retain-ledger.js +3 -3
  4. package/dist/agents/send-message-tool.js +4 -4
  5. package/dist/brain/anthropic.d.ts +42 -1
  6. package/dist/brain/anthropic.js +54 -4
  7. package/dist/brain/failover.d.ts +5 -0
  8. package/dist/brain/failover.js +51 -22
  9. package/dist/brain/model-lane.d.ts +12 -3
  10. package/dist/brain/model-lane.js +5 -5
  11. package/dist/brain/open-responses.js +3 -3
  12. package/dist/brain/openai.js +1 -1
  13. package/dist/brain/route-adjudicator.d.ts +33 -4
  14. package/dist/brain/route-adjudicator.js +49 -12
  15. package/dist/brain/stream-engine.js +9 -7
  16. package/dist/brain/stream-shared.d.ts +4 -3
  17. package/dist/brain/stream-shared.js +2 -2
  18. package/dist/core/allow-entry.js +1 -1
  19. package/dist/core/ask-class.d.ts +2 -2
  20. package/dist/core/ask-headline.d.ts +1 -1
  21. package/dist/core/ask-origin.d.ts +44 -4
  22. package/dist/core/ask-origin.js +29 -10
  23. package/dist/core/background-agent-store.d.ts +1 -0
  24. package/dist/core/background-agent-store.js +49 -8
  25. package/dist/core/checkpoint-row-verdict.d.ts +1 -1
  26. package/dist/core/checkpoint-row-verdict.js +2 -2
  27. package/dist/core/checkpoint-store.d.ts +2 -0
  28. package/dist/core/checkpoint-store.js +8 -2
  29. package/dist/core/config-refusal-codes.d.ts +1 -1
  30. package/dist/core/config-refusal-codes.js +1 -0
  31. package/dist/core/cron.js +9 -1
  32. package/dist/core/deployment-shape.d.ts +7 -0
  33. package/dist/core/deployment-shape.js +19 -0
  34. package/dist/core/engine-capabilities.d.ts +9 -1
  35. package/dist/core/engine-capabilities.js +1 -1
  36. package/dist/core/engine-notice.d.ts +14 -9
  37. package/dist/core/engine-version.js +1 -1
  38. package/dist/core/gate-fold.js +5 -4
  39. package/dist/core/gate-lanes.js +8 -12
  40. package/dist/core/gate-outcome.d.ts +8 -2
  41. package/dist/core/gate-outcome.js +10 -3
  42. package/dist/core/governance-codes.d.ts +8 -2
  43. package/dist/core/governance-codes.js +9 -1
  44. package/dist/core/hook-condition.d.ts +37 -0
  45. package/dist/core/hook-condition.js +567 -0
  46. package/dist/core/hooks.d.ts +2 -0
  47. package/dist/core/mode-policy.d.ts +4 -0
  48. package/dist/core/mode-policy.js +18 -2
  49. package/dist/core/model-seat.d.ts +8 -5
  50. package/dist/core/model-shell.d.ts +129 -0
  51. package/dist/core/model-shell.js +249 -0
  52. package/dist/core/mods/kernel/digest.d.ts +4 -0
  53. package/dist/core/mods/kernel/digest.js +5 -0
  54. package/dist/core/mods/kernel/dispatch.d.ts +3 -0
  55. package/dist/core/mods/kernel/dispatch.js +15 -6
  56. package/dist/core/mods/kernel/events.d.ts +21 -5
  57. package/dist/core/mods/kernel/events.js +19 -10
  58. package/dist/core/mods/kernel/hash-mirror.d.ts +1 -0
  59. package/dist/core/mods/kernel/hash-mirror.js +55 -0
  60. package/dist/core/mods/kernel/index.d.ts +1 -0
  61. package/dist/core/mods/kernel/index.js +1 -0
  62. package/dist/core/mods/kernel/package-reader.d.ts +48 -0
  63. package/dist/core/mods/kernel/package-reader.js +149 -0
  64. package/dist/core/mods/kernel/site-rules.d.ts +4 -0
  65. package/dist/core/mods/kernel/site-rules.js +13 -0
  66. package/dist/core/mods/package.d.ts +7 -3
  67. package/dist/core/mods/package.js +47 -80
  68. package/dist/core/permission-rule-org.js +13 -3
  69. package/dist/core/permission-rules.js +4 -1
  70. package/dist/core/retain-seat.d.ts +42 -0
  71. package/dist/core/retain-seat.js +76 -0
  72. package/dist/core/rewind-refusal-codes.d.ts +8 -0
  73. package/dist/core/rewind-refusal-codes.js +12 -0
  74. package/dist/core/roles.d.ts +2 -2
  75. package/dist/core/roles.js +15 -1
  76. package/dist/core/rule-store-fault.d.ts +9 -7
  77. package/dist/core/rule-store-fault.js +8 -3
  78. package/dist/core/runner/checkpoint-scope.d.ts +1 -0
  79. package/dist/core/runner/checkpoint-scope.js +4 -2
  80. package/dist/core/runner/compact-session.js +1 -1
  81. package/dist/core/runner/construction-doors.js +2 -0
  82. package/dist/core/runner/cross-boundary-lane.d.ts +8 -1
  83. package/dist/core/runner/cross-boundary-lane.js +4 -0
  84. package/dist/core/runner/gate-exit.d.ts +7 -0
  85. package/dist/core/runner/gate-exit.js +2 -1
  86. package/dist/core/runner/model-lane-seat.d.ts +3 -0
  87. package/dist/core/runner/model-lane-seat.js +4 -0
  88. package/dist/core/runner/person-path-rows.d.ts +6 -0
  89. package/dist/core/runner/person-path-rows.js +13 -0
  90. package/dist/core/runner/prepare-config-doors.js +9 -5
  91. package/dist/core/runner/prepare-gate-stations.d.ts +6 -0
  92. package/dist/core/runner/prepare-gate-stations.js +3 -1
  93. package/dist/core/runner/prepare-hands-readface.js +3 -2
  94. package/dist/core/runner/prepare-offload-wrappers.js +1 -1
  95. package/dist/core/runner/prepare-task.js +6 -3
  96. package/dist/core/runner/prepare-wiring-manifest.js +3 -4
  97. package/dist/core/runner/resume-policy-outcome.js +5 -2
  98. package/dist/core/runner/role-seat-defaulted.d.ts +3 -3
  99. package/dist/core/runner/role-seat-defaulted.js +1 -1
  100. package/dist/core/runner/rule-store-unreadable-notice.d.ts +1 -1
  101. package/dist/core/runner/rule-store-unreadable-notice.js +3 -3
  102. package/dist/core/runner/run-harness-handlers.js +1 -1
  103. package/dist/core/runner/run-leg.js +2 -2
  104. package/dist/core/runner/shell-env-withheld.d.ts +3 -2
  105. package/dist/core/runner/shell-env-withheld.js +24 -1
  106. package/dist/core/runner/sub-agent-deny-lists.js +9 -5
  107. package/dist/core/runner/tool-end-body.d.ts +1 -1
  108. package/dist/core/runner/tool-not-executed.d.ts +27 -8
  109. package/dist/core/runner/tool-not-executed.js +22 -11
  110. package/dist/core/runner/write-protection-station.d.ts +1 -1
  111. package/dist/core/runner/write-protection-station.js +1 -1
  112. package/dist/core/runner-deps.d.ts +4 -0
  113. package/dist/core/secret-env.d.ts +8 -0
  114. package/dist/core/secret-env.js +5 -2
  115. package/dist/core/shell-read-silence.d.ts +40 -2
  116. package/dist/core/shell-read-silence.js +23 -4
  117. package/dist/core/task-event.d.ts +4 -4
  118. package/dist/core/task-notification.js +6 -1
  119. package/dist/core/task-registry-agent.d.ts +1 -0
  120. package/dist/core/task-registry-agent.js +1 -1
  121. package/dist/core/task-registry.d.ts +1 -0
  122. package/dist/core/task-registry.js +4 -3
  123. package/dist/core/task-result.d.ts +5 -3
  124. package/dist/core/task-spec-members.js +8 -0
  125. package/dist/core/tool-gate-phase.d.ts +6 -3
  126. package/dist/core/tool-gate-phase.js +1 -0
  127. package/dist/core/tool-mount-facts.d.ts +7 -3
  128. package/dist/core/tool-mount-facts.js +6 -2
  129. package/dist/core/tool-mount-plan.d.ts +1 -1
  130. package/dist/core/tool-mount-plan.js +4 -3
  131. package/dist/core/tool-result-store.d.ts +37 -1
  132. package/dist/core/tool-result-store.js +168 -23
  133. package/dist/core/trace.d.ts +3 -3
  134. package/dist/engine/execution-env/node-execution-env.d.ts +75 -1
  135. package/dist/engine/execution-env/node-execution-env.js +225 -13
  136. package/dist/engine/harness/types.d.ts +25 -0
  137. package/dist/engine/llm/types.d.ts +8 -0
  138. package/dist/engine/llm/validation.d.ts +8 -1
  139. package/dist/engine/llm/validation.js +31 -2
  140. package/dist/host-env.d.ts +10 -0
  141. package/dist/host-env.js +1 -0
  142. package/dist/index.d.ts +10 -2
  143. package/dist/index.js +9 -2
  144. package/dist/internal/harness-types.d.ts +1 -1
  145. package/dist/orchestration/goal.js +1 -1
  146. package/dist/orchestration/workflow-primitives.js +10 -1
  147. package/dist/orchestration/workflow-script-runner.d.ts +2 -2
  148. package/dist/orchestration/workflow.d.ts +1 -1
  149. package/dist/orchestration/workflow.js +2 -2
  150. package/dist/shell/lex.d.ts +2 -2
  151. package/dist/shell/lex.js +1 -1
  152. package/dist/tools/fs/bash-model-shell.d.ts +23 -0
  153. package/dist/tools/fs/bash-model-shell.js +25 -0
  154. package/dist/tools/fs/bash-readonly-classifier.d.ts +6 -0
  155. package/dist/tools/fs/bash-readonly-classifier.js +3 -0
  156. package/dist/tools/fs/fs-bash.js +13 -11
  157. package/dist/tools/fs/shell-read-argv.js +1 -0
  158. package/dist/tools/fs/shell-read-check.js +39 -9
  159. package/dist/tools/fs/shell-read-plan.d.ts +2 -3
  160. package/dist/tools/fs/shell-read-plan.js +8 -5
  161. package/dist/tools/fs/shell-read-word.d.ts +8 -0
  162. package/dist/tools/fs/shell-read-word.js +13 -4
  163. package/dist/tools/monitor.js +12 -8
  164. package/dist/tools/scheduler-tools.d.ts +1 -0
  165. package/dist/tools/scheduler-tools.js +5 -2
  166. package/package.json +3 -2
  167. package/test/export-surface.snapshot.json +62 -3
  168. package/wire-changes/answers/core-stores-sql@7.74.0.json +7 -0
  169. package/wire-changes/answers/core@7.74.0.json +68 -0
  170. package/wire-changes/answers/mods-kernel@7.74.0.json +21 -0
  171. package/wire-changes/answers/primitives@7.74.0.json +7 -0
  172. package/wire-changes/answers/wiki-gate@7.74.0.json +8 -0
  173. package/wire-changes/core-stores-sql@7.74.0.json +143 -0
  174. package/wire-changes/core@7.74.0.json +2210 -0
  175. package/wire-changes/mods-kernel@7.74.0.json +421 -0
  176. package/wire-changes/primitives@7.74.0.json +174 -0
  177. package/wire-changes/wiki-gate@7.74.0.json +145 -0
@@ -0,0 +1,421 @@
1
+ {
2
+ "repo": "core",
3
+ "package": "@sema-agent/mods-kernel",
4
+ "schema": 2,
5
+ "version": "7.74.0",
6
+ "from": "4e7f0eab1c80cc3181103d96790caf781cf5fa39",
7
+ "to": "v7.74.0",
8
+ "added": [
9
+ {
10
+ "name": "MOD_PACKAGE_FILES",
11
+ "kind": "variable",
12
+ "tier": null,
13
+ "at": [
14
+ "src/index.ts:94",
15
+ "src/package-reader.ts:12"
16
+ ],
17
+ "criteriaCovered": false,
18
+ "breaking": false
19
+ },
20
+ {
21
+ "name": "ModPackageRead",
22
+ "kind": "interface",
23
+ "tier": null,
24
+ "at": [
25
+ "src/index.ts:94",
26
+ "src/package-reader.ts:37"
27
+ ],
28
+ "criteriaCovered": false,
29
+ "breaking": false
30
+ },
31
+ {
32
+ "name": "ModPackageSource",
33
+ "kind": "interface",
34
+ "tier": null,
35
+ "at": [
36
+ "src/index.ts:94",
37
+ "src/package-reader.ts:15"
38
+ ],
39
+ "criteriaCovered": false,
40
+ "breaking": false
41
+ },
42
+ {
43
+ "name": "ModPackageUnreadMember",
44
+ "kind": "interface",
45
+ "tier": null,
46
+ "at": [
47
+ "src/index.ts:94",
48
+ "src/package-reader.ts:31"
49
+ ],
50
+ "criteriaCovered": false,
51
+ "breaking": false
52
+ },
53
+ {
54
+ "name": "readModPackage",
55
+ "kind": "function",
56
+ "tier": null,
57
+ "at": [
58
+ "src/index.ts:94",
59
+ "src/package-reader.ts:78"
60
+ ],
61
+ "criteriaCovered": false,
62
+ "breaking": false
63
+ }
64
+ ],
65
+ "removed": [],
66
+ "changed": [],
67
+ "subpaths": [],
68
+ "subpathsUnread": [
69
+ "from",
70
+ "to"
71
+ ],
72
+ "narrowed": [],
73
+ "faces": {
74
+ "open": [],
75
+ "source": null
76
+ },
77
+ "closedSetMembers": [],
78
+ "closedSetsUnreadable": [],
79
+ "typeKeys": [
80
+ {
81
+ "type": "MOD_EVENT_TABLE",
82
+ "at": [
83
+ "src/events.ts"
84
+ ],
85
+ "added": [],
86
+ "addedDetail": [],
87
+ "addedRequired": [],
88
+ "removed": [],
89
+ "madeRequired": [],
90
+ "madeOptional": [],
91
+ "retyped": [
92
+ {
93
+ "key": "MOD_EVENT_TABLE",
94
+ "from": "Type 'Readonly<{ \"classic.PreToolUse\": ModEventRow, \"classic.PostToolUse\": ModEventRow, \"classic.PostToolUseFailure\": ModEventRow, \"classic.PostToolBatch\": ModEventRow, ... 140 more ..., \"env.set\": ModEventRow, }>' is missing the following…",
95
+ "to": "(read by the compiler)",
96
+ "direction": "changed",
97
+ "judged": true
98
+ }
99
+ ],
100
+ "breaking": true,
101
+ "criteriaCovered": false,
102
+ "judge": {
103
+ "verdict": "breaking",
104
+ "postures": [
105
+ "Wv"
106
+ ],
107
+ "leaves": [
108
+ "L-4dfb66af74da"
109
+ ],
110
+ "subject": "MOD_EVENT_TABLE",
111
+ "judged": true,
112
+ "home": [
113
+ "L-4dfb66af74da"
114
+ ]
115
+ }
116
+ },
117
+ {
118
+ "type": "ModDispatchOptions",
119
+ "at": [
120
+ "src/dispatch.ts:108"
121
+ ],
122
+ "added": [
123
+ "owner"
124
+ ],
125
+ "addedDetail": [
126
+ {
127
+ "key": "owner",
128
+ "optional": true
129
+ }
130
+ ],
131
+ "addedRequired": [],
132
+ "removed": [],
133
+ "madeRequired": [],
134
+ "madeOptional": [],
135
+ "retyped": [
136
+ {
137
+ "key": "event",
138
+ "from": "Type '\"prompt.paint\"' is not assignable to type '\"classic.PreToolUse\" | \"classic.PostToolUse\" | \"classic.PostToolUseFailure\" | \"classic.PostToolBatch\" | \"classic.Notification\" | \"classic.UserPromptSubmit\" | \"classic.UserPromptExpansion\" | …",
139
+ "to": "(read by the compiler)",
140
+ "direction": "changed",
141
+ "judged": true
142
+ }
143
+ ],
144
+ "breaking": true,
145
+ "criteriaCovered": false,
146
+ "judge": {
147
+ "verdict": "breaking",
148
+ "postures": [
149
+ "R",
150
+ "Rs",
151
+ "W",
152
+ "Ws"
153
+ ],
154
+ "leaves": [
155
+ "L-6d71986bc8a1"
156
+ ],
157
+ "subject": "ModDispatchOptions",
158
+ "home": [
159
+ "L-6d71986bc8a1"
160
+ ]
161
+ }
162
+ },
163
+ {
164
+ "type": "ModStation",
165
+ "at": [
166
+ "src/events.ts:141"
167
+ ],
168
+ "added": [
169
+ "answers",
170
+ "closed",
171
+ "ownerOnly"
172
+ ],
173
+ "addedDetail": [
174
+ {
175
+ "key": "answers",
176
+ "optional": true
177
+ },
178
+ {
179
+ "key": "closed",
180
+ "optional": true
181
+ },
182
+ {
183
+ "key": "ownerOnly",
184
+ "optional": true
185
+ }
186
+ ],
187
+ "addedRequired": [],
188
+ "removed": [],
189
+ "madeRequired": [],
190
+ "madeOptional": [],
191
+ "retyped": [],
192
+ "breaking": false,
193
+ "criteriaCovered": false,
194
+ "judge": {
195
+ "verdict": "same",
196
+ "postures": [],
197
+ "leaves": [],
198
+ "subject": "ModStation"
199
+ }
200
+ }
201
+ ],
202
+ "typeKeysUnreadableArms": [],
203
+ "typeKeysFlattenedCount": 1,
204
+ "signatures": [],
205
+ "versionLiterals": [
206
+ {
207
+ "name": "KERNEL_CONTRACT_VERSION",
208
+ "kind": "constant",
209
+ "from": "12",
210
+ "to": "13",
211
+ "at": "src/events.ts:71",
212
+ "criteriaCovered": false,
213
+ "breaking": true
214
+ }
215
+ ],
216
+ "declarationMoves": [],
217
+ "mintMoves": [],
218
+ "noticeLineage": [],
219
+ "criteriaObserves": [],
220
+ "consumersHint": {
221
+ "cli": [
222
+ "MOD_EVENT_TABLE",
223
+ "ModDispatchOptions",
224
+ "ModStation"
225
+ ],
226
+ "server": [
227
+ "MOD_EVENT_TABLE"
228
+ ],
229
+ "sdk": [],
230
+ "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)"
231
+ },
232
+ "judge": {
233
+ "judgeVersion": "2",
234
+ "typescript": "5.7.2",
235
+ "counts": {
236
+ "same": 231,
237
+ "breaking": 320
238
+ },
239
+ "probes": 3086,
240
+ "leaves": [
241
+ {
242
+ "id": "L-6d71986bc8a1",
243
+ "verdict": "breaking",
244
+ "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\"'.",
245
+ "count": 318,
246
+ "representative": [
247
+ "ModBottomContext",
248
+ "ModBottomContext.frames",
249
+ "ModBus",
250
+ "ModBus.dispatch",
251
+ "ModBus.hasHandlers"
252
+ ],
253
+ "culprits": [
254
+ "dispatch.d.ts#ModFrame",
255
+ "registration.d.ts#ScreenedRegistration"
256
+ ],
257
+ "postures": [
258
+ "Mo",
259
+ "R",
260
+ "R0",
261
+ "Rs",
262
+ "V",
263
+ "Vo",
264
+ "Vs",
265
+ "W",
266
+ "W0",
267
+ "Wp",
268
+ "Ws"
269
+ ],
270
+ "home": "typeKeys:ModDispatchOptions",
271
+ "answer": {
272
+ "answer": "breaking",
273
+ "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)."
274
+ }
275
+ },
276
+ {
277
+ "id": "L-4dfb66af74da",
278
+ "verdict": "breaking",
279
+ "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.",
280
+ "count": 1,
281
+ "representative": [
282
+ "MOD_EVENT_TABLE"
283
+ ],
284
+ "culprits": [],
285
+ "postures": [
286
+ "Wv"
287
+ ],
288
+ "home": "typeKeys:MOD_EVENT_TABLE",
289
+ "answer": {
290
+ "answer": "breaking",
291
+ "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)."
292
+ }
293
+ },
294
+ {
295
+ "owed": false,
296
+ "id": "L-99a162cefd6b",
297
+ "verdict": "breaking",
298
+ "message": "Type '12' is not assignable to type '13'. · Type '13' is not assignable to type '12'.",
299
+ "count": 1,
300
+ "representative": [
301
+ "KERNEL_CONTRACT_VERSION"
302
+ ],
303
+ "culprits": [],
304
+ "postures": [
305
+ "V",
306
+ "Vs",
307
+ "Wv"
308
+ ],
309
+ "home": "versionLiterals:KERNEL_CONTRACT_VERSION",
310
+ "answer": {
311
+ "answer": "breaking",
312
+ "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)."
313
+ }
314
+ }
315
+ ],
316
+ "mustCheck": [
317
+ {
318
+ "id": "deep-nesting",
319
+ "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)",
320
+ "measured": {
321
+ "count": 0,
322
+ "examples": [],
323
+ "note": "not measured: the depth a consumer reaches is not bounded by the declarations"
324
+ },
325
+ "owed": true,
326
+ "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."
327
+ },
328
+ {
329
+ "id": "strict-generic",
330
+ "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",
331
+ "measured": {
332
+ "count": 3,
333
+ "examples": [
334
+ "admitMods",
335
+ "receive#appendOwn",
336
+ "registration#screenModSeats"
337
+ ]
338
+ },
339
+ "owed": true,
340
+ "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."
341
+ },
342
+ {
343
+ "id": "ambient-modules",
344
+ "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",
345
+ "measured": {
346
+ "count": 0,
347
+ "examples": []
348
+ },
349
+ "owed": false,
350
+ "answer": null
351
+ },
352
+ {
353
+ "id": "shared-dependency",
354
+ "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",
355
+ "measured": {
356
+ "count": 0,
357
+ "examples": []
358
+ },
359
+ "owed": false,
360
+ "answer": null
361
+ },
362
+ {
363
+ "id": "export-equals",
364
+ "form": "a module written `export =`: its members are not enumerated as named exports",
365
+ "measured": {
366
+ "count": 0,
367
+ "examples": []
368
+ },
369
+ "owed": false,
370
+ "answer": null
371
+ },
372
+ {
373
+ "id": "exact-optional",
374
+ "form": "a consumer compiled with `exactOptionalPropertyTypes`: the probes compile without it, so `k?: T` -> `k?: T | undefined` (and back) is not compared under it",
375
+ "measured": {
376
+ "count": 0,
377
+ "examples": [],
378
+ "note": "not measured: a consumer's compiler option"
379
+ },
380
+ "owed": true,
381
+ "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."
382
+ },
383
+ {
384
+ "id": "unresolved-imports",
385
+ "form": "an import inside the emitted declarations that does not resolve: what it names reads as `any`, which every posture accepts",
386
+ "measured": {
387
+ "count": 0,
388
+ "examples": []
389
+ },
390
+ "owed": false,
391
+ "answer": null
392
+ },
393
+ {
394
+ "id": "declaration-errors",
395
+ "form": "a declaration the end could not emit cleanly (`declaration emit` errors): the emitted file may say less than the source",
396
+ "measured": {
397
+ "count": 0,
398
+ "examples": []
399
+ },
400
+ "owed": false,
401
+ "answer": null
402
+ }
403
+ ],
404
+ "policyNotes": [],
405
+ "staleAnswers": [],
406
+ "seconds": {
407
+ "emitFrom": 2.839,
408
+ "emitTo": 0.865,
409
+ "build": 0.177,
410
+ "check": 5.805,
411
+ "total": 9.961
412
+ }
413
+ },
414
+ "breakingCount": 3,
415
+ "breakingItems": [
416
+ "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…)",
417
+ "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\" | …)",
418
+ "version literal changed: KERNEL_CONTRACT_VERSION 12 -> 13"
419
+ ],
420
+ "toResolvedAt": "5d5c8f6de0542dc2b9e48a1c16447d7ccc2605b6"
421
+ }
@@ -0,0 +1,174 @@
1
+ {
2
+ "repo": "core",
3
+ "package": "@sema-agent/primitives",
4
+ "schema": 2,
5
+ "version": "7.74.0",
6
+ "from": "4e7f0eab1c80cc3181103d96790caf781cf5fa39",
7
+ "to": "v7.74.0",
8
+ "added": [],
9
+ "removed": [],
10
+ "changed": [],
11
+ "subpaths": [],
12
+ "subpathsUnread": [
13
+ "from",
14
+ "to"
15
+ ],
16
+ "narrowed": [],
17
+ "faces": {
18
+ "open": [],
19
+ "source": null
20
+ },
21
+ "closedSetMembers": [],
22
+ "closedSetsUnreadable": [],
23
+ "typeKeys": [],
24
+ "typeKeysUnreadableArms": [],
25
+ "typeKeysFlattenedCount": 9,
26
+ "signatures": [
27
+ {
28
+ "name": "sha256Hex",
29
+ "at": [
30
+ "src/sha256-hex.ts:19"
31
+ ],
32
+ "from": [
33
+ "(text: string): string"
34
+ ],
35
+ "to": [
36
+ "(data: Uint8Array | string): string"
37
+ ],
38
+ "changes": [
39
+ {
40
+ "aspect": "param",
41
+ "detail": "param 1 `data` type widened: [ -> Uint8Array | ]string"
42
+ }
43
+ ],
44
+ "breaking": false,
45
+ "criteriaCovered": false,
46
+ "judge": {
47
+ "verdict": "same",
48
+ "postures": [],
49
+ "leaves": [],
50
+ "subject": "sha256Hex"
51
+ }
52
+ }
53
+ ],
54
+ "versionLiterals": [],
55
+ "declarationMoves": [],
56
+ "mintMoves": [],
57
+ "noticeLineage": [],
58
+ "criteriaObserves": [],
59
+ "consumersHint": {
60
+ "cli": [
61
+ "sha256Hex"
62
+ ],
63
+ "server": [
64
+ "sha256Hex"
65
+ ],
66
+ "sdk": [],
67
+ "note": "scanned cli@73a4991c0 server@797d4d621 sdk@93fdd82 — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
68
+ },
69
+ "judge": {
70
+ "judgeVersion": "2",
71
+ "typescript": "5.7.2",
72
+ "counts": {
73
+ "same": 293
74
+ },
75
+ "probes": 1502,
76
+ "leaves": [],
77
+ "mustCheck": [
78
+ {
79
+ "id": "deep-nesting",
80
+ "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)",
81
+ "measured": {
82
+ "count": 0,
83
+ "examples": [],
84
+ "note": "not measured: the depth a consumer reaches is not bounded by the declarations"
85
+ },
86
+ "owed": true,
87
+ "answer": "Not measurable by the run, so the hole was checked: the package imports nothing from outside itself, and the diff of its two ends' emitted declarations (diff -ru of the judge's cached trees) is one line: sha256-hex.d.ts widens sha256Hex's parameter from text: string to data: Uint8Array | string (a top-level function, judged by the compiler); no other declaration changed, so nothing can hide behind a bivariant method at any depth."
88
+ },
89
+ {
90
+ "id": "strict-generic",
91
+ "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",
92
+ "measured": {
93
+ "count": 0,
94
+ "examples": []
95
+ },
96
+ "owed": false,
97
+ "answer": null
98
+ },
99
+ {
100
+ "id": "ambient-modules",
101
+ "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",
102
+ "measured": {
103
+ "count": 0,
104
+ "examples": []
105
+ },
106
+ "owed": false,
107
+ "answer": null
108
+ },
109
+ {
110
+ "id": "shared-dependency",
111
+ "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",
112
+ "measured": {
113
+ "count": 0,
114
+ "examples": []
115
+ },
116
+ "owed": false,
117
+ "answer": null
118
+ },
119
+ {
120
+ "id": "export-equals",
121
+ "form": "a module written `export =`: its members are not enumerated as named exports",
122
+ "measured": {
123
+ "count": 0,
124
+ "examples": []
125
+ },
126
+ "owed": false,
127
+ "answer": null
128
+ },
129
+ {
130
+ "id": "exact-optional",
131
+ "form": "a consumer compiled with `exactOptionalPropertyTypes`: the probes compile without it, so `k?: T` -> `k?: T | undefined` (and back) is not compared under it",
132
+ "measured": {
133
+ "count": 0,
134
+ "examples": [],
135
+ "note": "not measured: a consumer's compiler option"
136
+ },
137
+ "owed": true,
138
+ "answer": "Not measurable (a consumer's compiler option): the package imports nothing from outside itself and its only declaration change is sha256Hex's widened parameter, which has no optional member, so no member both ends declare gained or lost `?` or `| undefined`."
139
+ },
140
+ {
141
+ "id": "unresolved-imports",
142
+ "form": "an import inside the emitted declarations that does not resolve: what it names reads as `any`, which every posture accepts",
143
+ "measured": {
144
+ "count": 0,
145
+ "examples": []
146
+ },
147
+ "owed": false,
148
+ "answer": null
149
+ },
150
+ {
151
+ "id": "declaration-errors",
152
+ "form": "a declaration the end could not emit cleanly (`declaration emit` errors): the emitted file may say less than the source",
153
+ "measured": {
154
+ "count": 0,
155
+ "examples": []
156
+ },
157
+ "owed": false,
158
+ "answer": null
159
+ }
160
+ ],
161
+ "policyNotes": [],
162
+ "staleAnswers": [],
163
+ "seconds": {
164
+ "emitFrom": 1.591,
165
+ "emitTo": 0.746,
166
+ "build": 0.175,
167
+ "check": 0.876,
168
+ "total": 3.43
169
+ }
170
+ },
171
+ "breakingCount": 0,
172
+ "breakingItems": [],
173
+ "toResolvedAt": "5d5c8f6de0542dc2b9e48a1c16447d7ccc2605b6"
174
+ }