agent-bios 0.19.4 → 0.20.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 (158) hide show
  1. package/DEPENDENCIES.md +19 -5
  2. package/README.md +14 -19
  3. package/claude/agents/frontier.md +1 -1
  4. package/claude/guides/claude-prompting.md +475 -234
  5. package/claude/guides/cli-multi-model-workflow.md +4 -3
  6. package/claude/guides/gpt-prompting.md +235 -136
  7. package/claude/guides/session-distill-workflow.md +93 -43
  8. package/claude/guides/tooling-gotchas.md +3 -1
  9. package/codex/guides/claude-prompting.md +475 -234
  10. package/codex/guides/cli-multi-model-workflow.md +4 -3
  11. package/codex/guides/gpt-prompting.md +235 -136
  12. package/codex/guides/session-distill-workflow.md +93 -43
  13. package/codex/guides/tooling-gotchas.md +3 -1
  14. package/compose/assemble.py +4 -1
  15. package/compose/canary.sh +8 -6
  16. package/compose/host_platform.py +158 -15
  17. package/compose/instructions-state.py +183 -41
  18. package/compose/instructions_install.py +222 -27
  19. package/compose/instructions_session.py +250 -75
  20. package/compose/instructions_setup_cli.py +2 -36
  21. package/compose/instructions_store.py +160 -3
  22. package/compose/instructions_transaction.py +29 -5
  23. package/docs/advanced-launch.md +4 -0
  24. package/docs/releases/0.20.0.md +102 -0
  25. package/install.sh +42 -14
  26. package/launch/agent-launch.py +152 -18
  27. package/launch/agent-launch.toml +17 -7
  28. package/launch/agent-launch.zsh +104 -13
  29. package/launch/claude_subcommands.py +179 -0
  30. package/launch/shell_integration.py +7 -1
  31. package/learn/collect-learning.py +60 -9
  32. package/learn/migrate-learnings.py +70 -4
  33. package/learn/redact.py +2 -1
  34. package/package.json +36 -3
  35. package/provenance.json +1 -1
  36. package/session-cost.py +80 -9
  37. package/session-distill/coverage.json +6 -0
  38. package/session-distill/distill.py +2575 -0
  39. package/session-distill/grammar/__init__.py +0 -0
  40. package/session-distill/grammar/owner_lines.py +874 -0
  41. package/session-distill/originators.json +9 -0
  42. package/session-distill/packets/cross_review.md +31 -0
  43. package/session-distill/packets/form.md +86 -0
  44. package/session-distill/packets/judge.md +81 -0
  45. package/session-distill/packets/placement_contract.md +90 -0
  46. package/session-distill/packets/propose.md +124 -0
  47. package/session-distill/packets/read.md +57 -0
  48. package/session-distill/packets/reconsider.md +53 -0
  49. package/session-distill/packets/s7b.md +65 -0
  50. package/session-distill/packets/s9b.md +39 -0
  51. package/session-distill/packets/stitch.md +35 -0
  52. package/session-distill/packets/sweep.md +33 -0
  53. package/session-distill/runlib/__init__.py +0 -0
  54. package/session-distill/runlib/bound.py +1102 -0
  55. package/session-distill/runlib/breaker.py +467 -0
  56. package/session-distill/runlib/census.py +2347 -0
  57. package/session-distill/runlib/claims.py +420 -0
  58. package/session-distill/runlib/controls.py +902 -0
  59. package/session-distill/runlib/coverage.py +881 -0
  60. package/session-distill/runlib/declare.py +888 -0
  61. package/session-distill/runlib/delivery_evidence.py +1145 -0
  62. package/session-distill/runlib/derive.py +812 -0
  63. package/session-distill/runlib/destinations.py +3072 -0
  64. package/session-distill/runlib/dispatch.py +7939 -0
  65. package/session-distill/runlib/drift.py +1077 -0
  66. package/session-distill/runlib/entry.py +401 -0
  67. package/session-distill/runlib/evidence.py +890 -0
  68. package/session-distill/runlib/exposure.py +1162 -0
  69. package/session-distill/runlib/gate.py +2727 -0
  70. package/session-distill/runlib/gitread.py +79 -0
  71. package/session-distill/runlib/inventory.py +19624 -0
  72. package/session-distill/runlib/journal.py +1919 -0
  73. package/session-distill/runlib/ledger.py +3210 -0
  74. package/session-distill/runlib/ledger_compat.py +101 -0
  75. package/session-distill/runlib/ledger_migration.py +190 -0
  76. package/session-distill/runlib/lifecycle_intake.py +693 -0
  77. package/session-distill/runlib/lineage.py +454 -0
  78. package/session-distill/runlib/measures.py +249 -0
  79. package/session-distill/runlib/monitor.py +1180 -0
  80. package/session-distill/runlib/operations.py +522 -0
  81. package/session-distill/runlib/packet.py +838 -0
  82. package/session-distill/runlib/placement.py +1769 -0
  83. package/session-distill/runlib/projection.py +4090 -0
  84. package/session-distill/runlib/ranking.py +740 -0
  85. package/session-distill/runlib/receipts.py +200 -0
  86. package/session-distill/runlib/records.py +1965 -0
  87. package/session-distill/runlib/search.py +249 -0
  88. package/session-distill/runlib/sequencing.py +829 -0
  89. package/session-distill/runlib/sources.py +641 -0
  90. package/session-distill/runlib/stage_adjudicate.py +845 -0
  91. package/session-distill/runlib/stage_apply.py +1378 -0
  92. package/session-distill/runlib/stage_approvals.py +758 -0
  93. package/session-distill/runlib/stage_close.py +1220 -0
  94. package/session-distill/runlib/stage_confirm.py +929 -0
  95. package/session-distill/runlib/stage_delivery.py +3080 -0
  96. package/session-distill/runlib/stage_form.py +2576 -0
  97. package/session-distill/runlib/stage_judge.py +4248 -0
  98. package/session-distill/runlib/stage_propose.py +3307 -0
  99. package/session-distill/runlib/stage_read.py +5179 -0
  100. package/session-distill/runlib/stage_render.py +2739 -0
  101. package/session-distill/runlib/stage_retrieve.py +924 -0
  102. package/session-distill/runlib/stage_review_korean.py +1002 -0
  103. package/session-distill/runlib/stage_review_proposals.py +1292 -0
  104. package/session-distill/runlib/stagelock.py +412 -0
  105. package/session-distill/runlib/stop.py +1061 -0
  106. package/session-distill/runlib/targets.py +809 -0
  107. package/session-distill/runlib/usage.py +280 -0
  108. package/session-distill/runlib/validate.py +319 -0
  109. package/session-distill/runlib/views.py +4327 -0
  110. package/session-distill/schemas/adjudication.schema.json +35 -0
  111. package/session-distill/schemas/approval.schema.json +35 -0
  112. package/session-distill/schemas/census.schema.json +128 -0
  113. package/session-distill/schemas/checks.schema.json +207 -0
  114. package/session-distill/schemas/claim.schema.json +16 -0
  115. package/session-distill/schemas/confirmation.schema.json +24 -0
  116. package/session-distill/schemas/coverage.schema.json +66 -0
  117. package/session-distill/schemas/cross_review.schema.json +24 -0
  118. package/session-distill/schemas/event.schema.json +20 -0
  119. package/session-distill/schemas/evidence.schema.json +20 -0
  120. package/session-distill/schemas/expected_observation.schema.json +18 -0
  121. package/session-distill/schemas/form.schema.json +103 -0
  122. package/session-distill/schemas/intake.schema.json +71 -0
  123. package/session-distill/schemas/inventory.schema.json +872 -0
  124. package/session-distill/schemas/judge.schema.json +77 -0
  125. package/session-distill/schemas/ledger.schema.json +313 -0
  126. package/session-distill/schemas/observation.schema.json +16 -0
  127. package/session-distill/schemas/propose.schema.json +555 -0
  128. package/session-distill/schemas/read.schema.json +76 -0
  129. package/session-distill/schemas/reconsider.schema.json +122 -0
  130. package/session-distill/schemas/run.schema.json +150 -0
  131. package/session-distill/schemas/s7b.schema.json +200 -0
  132. package/session-distill/schemas/s9b.schema.json +28 -0
  133. package/session-distill/schemas/stitch.schema.json +25 -0
  134. package/session-distill/schemas/sweep.schema.json +25 -0
  135. package/session-distill/seats.json +149 -0
  136. package/session-distill/tables/allowed_pairs.json +257 -0
  137. package/session-distill/tables/controls.json +30 -0
  138. package/session-distill/tables/delivery_evidence.json +36 -0
  139. package/session-distill/tables/delivery_evidence_fixtures.json +731 -0
  140. package/session-distill/tables/destinations.json +684 -0
  141. package/session-distill/tables/drift_layers.json +68 -0
  142. package/session-distill/tables/exposure_rules.json +192 -0
  143. package/session-distill/tables/placement_rules.json +148 -0
  144. package/session-distill/tables/propose_fixtures.json +154 -0
  145. package/session-distill/tables/ranking.json +194 -0
  146. package/session-distill/tables/redundancy.json +10 -0
  147. package/session-distill/tables/structural_rules.json +44 -0
  148. package/session-distill/tables/transition_fixtures.json +398 -0
  149. package/session-distill/tables/transitions.json +69 -0
  150. package/session-distill/tables/unit_outcome.json +67 -0
  151. package/session-distill/tables/unit_outcome_fixtures.json +2364 -0
  152. package/wrappers/claude-run.sh +481 -33
  153. package/wrappers/claude_hermetic_evidence.py +1423 -0
  154. package/wrappers/codex-helm.sh +38 -7
  155. package/wrappers/codex-run.sh +183 -20
  156. package/wrappers/codex_frame_filter.py +1199 -0
  157. package/wrappers/codex_protocol.py +737 -0
  158. package/wrappers/jsonl_lines.py +65 -0
@@ -0,0 +1,731 @@
1
+ {
2
+ "$comment": "design §6.3: one frozen fixture per row of tables/delivery_evidence.json, written once by `runlib/delivery_evidence.py --generate-fixtures`; the self-test never regenerates them.",
3
+ "fixtures": [
4
+ {
5
+ "id": "surfaces/always_rule",
6
+ "cases": [
7
+ {
8
+ "kind": "delivery",
9
+ "unit": {
10
+ "unit_id": "u-a",
11
+ "path": "claude/CLAUDE.md",
12
+ "text": "- Verify before you claim.",
13
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
14
+ "layer": "catalog",
15
+ "item_ref": "claude:core",
16
+ "operative_context": [
17
+ "u-a"
18
+ ],
19
+ "n": 1
20
+ },
21
+ "units": {
22
+ "u-a": {
23
+ "unit_id": "u-a",
24
+ "path": "claude/CLAUDE.md",
25
+ "text": "- Verify before you claim.",
26
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
27
+ "layer": "catalog",
28
+ "item_ref": "claude:core",
29
+ "operative_context": [
30
+ "u-a"
31
+ ],
32
+ "n": 1
33
+ }
34
+ },
35
+ "session": {
36
+ "session_ref": "claude:s",
37
+ "basis": "pin",
38
+ "selected": {
39
+ "claude:core": "always"
40
+ },
41
+ "instruction_text": "# Activated private instructions\n- Verify before you claim.\n"
42
+ },
43
+ "decision_at": 5,
44
+ "expected": {
45
+ "state": "unknown",
46
+ "level": "selected"
47
+ }
48
+ },
49
+ {
50
+ "kind": "delivery",
51
+ "unit": {
52
+ "unit_id": "u-a",
53
+ "path": "claude/CLAUDE.md",
54
+ "text": "- Verify before you claim.",
55
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
56
+ "layer": "catalog",
57
+ "item_ref": "claude:core",
58
+ "operative_context": [
59
+ "u-a"
60
+ ],
61
+ "n": 1
62
+ },
63
+ "units": {
64
+ "u-a": {
65
+ "unit_id": "u-a",
66
+ "path": "claude/CLAUDE.md",
67
+ "text": "- Verify before you claim.",
68
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
69
+ "layer": "catalog",
70
+ "item_ref": "claude:core",
71
+ "operative_context": [
72
+ "u-a"
73
+ ],
74
+ "n": 1
75
+ }
76
+ },
77
+ "session": {
78
+ "session_ref": "claude:s",
79
+ "basis": "pin",
80
+ "selected": {
81
+ "claude:core": "always"
82
+ },
83
+ "instruction_text": "# Activated private instructions\n- Verify before you claim.\n",
84
+ "injection_at": 1
85
+ },
86
+ "decision_at": 5,
87
+ "expected": {
88
+ "state": "delivered",
89
+ "level": "exposed"
90
+ }
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "id": "surfaces/guide",
96
+ "cases": [
97
+ {
98
+ "kind": "delivery",
99
+ "unit": {
100
+ "unit_id": "u-g",
101
+ "path": "claude/guides/g.md",
102
+ "text": "- Read the log before you retry.",
103
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
104
+ "layer": "catalog",
105
+ "item_ref": "claude:guides/g",
106
+ "operative_context": [
107
+ "u-g"
108
+ ],
109
+ "n": 1
110
+ },
111
+ "units": {
112
+ "u-g": {
113
+ "unit_id": "u-g",
114
+ "path": "claude/guides/g.md",
115
+ "text": "- Read the log before you retry.",
116
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
117
+ "layer": "catalog",
118
+ "item_ref": "claude:guides/g",
119
+ "operative_context": [
120
+ "u-g"
121
+ ],
122
+ "n": 1
123
+ }
124
+ },
125
+ "session": {
126
+ "session_ref": "claude:s",
127
+ "basis": "pin",
128
+ "selected": {
129
+ "claude:guides/g": "relevant"
130
+ },
131
+ "router_path": "/state/runtime/x/router/relevant.md",
132
+ "instruction_text": "Relevant procedures: /state/runtime/x/router/relevant.md\n",
133
+ "reads": []
134
+ },
135
+ "decision_at": 5,
136
+ "expected": {
137
+ "state": "unknown",
138
+ "level": "selected"
139
+ }
140
+ },
141
+ {
142
+ "kind": "delivery",
143
+ "unit": {
144
+ "unit_id": "u-g",
145
+ "path": "claude/guides/g.md",
146
+ "text": "- Read the log before you retry.",
147
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
148
+ "layer": "catalog",
149
+ "item_ref": "claude:guides/g",
150
+ "operative_context": [
151
+ "u-g"
152
+ ],
153
+ "n": 1
154
+ },
155
+ "units": {
156
+ "u-g": {
157
+ "unit_id": "u-g",
158
+ "path": "claude/guides/g.md",
159
+ "text": "- Read the log before you retry.",
160
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
161
+ "layer": "catalog",
162
+ "item_ref": "claude:guides/g",
163
+ "operative_context": [
164
+ "u-g"
165
+ ],
166
+ "n": 1
167
+ }
168
+ },
169
+ "session": {
170
+ "session_ref": "claude:s",
171
+ "basis": "pin",
172
+ "selected": {
173
+ "claude:guides/g": "relevant"
174
+ },
175
+ "router_path": "/state/runtime/x/router/relevant.md",
176
+ "instruction_text": "Relevant procedures: /state/runtime/x/router/relevant.md\n",
177
+ "reads": [],
178
+ "injection_at": 1
179
+ },
180
+ "decision_at": 5,
181
+ "expected": {
182
+ "state": "exposed_not_read",
183
+ "level": "pointer exposed"
184
+ }
185
+ },
186
+ {
187
+ "kind": "delivery",
188
+ "unit": {
189
+ "unit_id": "u-g",
190
+ "path": "claude/guides/g.md",
191
+ "text": "- Read the log before you retry.",
192
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
193
+ "layer": "catalog",
194
+ "item_ref": "claude:guides/g",
195
+ "operative_context": [
196
+ "u-g"
197
+ ],
198
+ "n": 1
199
+ },
200
+ "units": {
201
+ "u-g": {
202
+ "unit_id": "u-g",
203
+ "path": "claude/guides/g.md",
204
+ "text": "- Read the log before you retry.",
205
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
206
+ "layer": "catalog",
207
+ "item_ref": "claude:guides/g",
208
+ "operative_context": [
209
+ "u-g"
210
+ ],
211
+ "n": 1
212
+ }
213
+ },
214
+ "session": {
215
+ "session_ref": "claude:s",
216
+ "basis": "pin",
217
+ "selected": {
218
+ "claude:guides/g": "relevant"
219
+ },
220
+ "router_path": "/state/runtime/x/router/relevant.md",
221
+ "instruction_text": "Relevant procedures: /state/runtime/x/router/relevant.md\n",
222
+ "reads": [
223
+ {
224
+ "at": 2,
225
+ "path": "/state/runtime/x/router/relevant.md",
226
+ "returned": "- [g](/state/runtime/x/items/item-g/guides/g.md) — retries (claude:guides/g)\n"
227
+ }
228
+ ],
229
+ "injection_at": 1
230
+ },
231
+ "decision_at": 5,
232
+ "expected": {
233
+ "state": "exposed_not_read",
234
+ "level": "router read"
235
+ }
236
+ },
237
+ {
238
+ "kind": "delivery",
239
+ "unit": {
240
+ "unit_id": "u-g",
241
+ "path": "claude/guides/g.md",
242
+ "text": "- Read the log before you retry.",
243
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
244
+ "layer": "catalog",
245
+ "item_ref": "claude:guides/g",
246
+ "operative_context": [
247
+ "u-g"
248
+ ],
249
+ "n": 1
250
+ },
251
+ "units": {
252
+ "u-g": {
253
+ "unit_id": "u-g",
254
+ "path": "claude/guides/g.md",
255
+ "text": "- Read the log before you retry.",
256
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
257
+ "layer": "catalog",
258
+ "item_ref": "claude:guides/g",
259
+ "operative_context": [
260
+ "u-g"
261
+ ],
262
+ "n": 1
263
+ }
264
+ },
265
+ "session": {
266
+ "session_ref": "claude:s",
267
+ "basis": "pin",
268
+ "selected": {
269
+ "claude:guides/g": "relevant"
270
+ },
271
+ "router_path": "/state/runtime/x/router/relevant.md",
272
+ "instruction_text": "Relevant procedures: /state/runtime/x/router/relevant.md\n",
273
+ "reads": [
274
+ {
275
+ "at": 2,
276
+ "path": "/state/runtime/x/router/relevant.md",
277
+ "returned": "- [g](/state/runtime/x/items/item-g/guides/g.md) — retries (claude:guides/g)\n"
278
+ },
279
+ {
280
+ "at": 3,
281
+ "path": "/state/runtime/x/items/item-g/guides/g.md",
282
+ "returned": " 1\t- Read the log before you retry.\n"
283
+ }
284
+ ],
285
+ "injection_at": 1
286
+ },
287
+ "decision_at": 5,
288
+ "expected": {
289
+ "state": "delivered",
290
+ "level": "unit read"
291
+ }
292
+ },
293
+ {
294
+ "kind": "delivery",
295
+ "unit": {
296
+ "unit_id": "u-q",
297
+ "path": "claude/guides/q.md",
298
+ "text": "- An item no source names.",
299
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
300
+ "layer": "catalog",
301
+ "item_ref": "claude:guides/q",
302
+ "operative_context": [
303
+ "u-q"
304
+ ],
305
+ "n": 1
306
+ },
307
+ "units": {
308
+ "u-q": {
309
+ "unit_id": "u-q",
310
+ "path": "claude/guides/q.md",
311
+ "text": "- An item no source names.",
312
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
313
+ "layer": "catalog",
314
+ "item_ref": "claude:guides/q",
315
+ "operative_context": [
316
+ "u-q"
317
+ ],
318
+ "n": 1
319
+ }
320
+ },
321
+ "session": {
322
+ "session_ref": "claude:s",
323
+ "basis": "pin",
324
+ "selected": {
325
+ "claude:guides/g": "relevant"
326
+ }
327
+ },
328
+ "decision_at": 5,
329
+ "expected": {
330
+ "state": "unknown",
331
+ "level": null,
332
+ "reason": "surface_unclassified"
333
+ }
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "id": "surfaces/executable_invoked",
339
+ "cases": [
340
+ {
341
+ "kind": "delivery",
342
+ "unit": {
343
+ "unit_id": "u-executable_invoked",
344
+ "path": "claude/x",
345
+ "text": "- x",
346
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
347
+ "layer": "catalog",
348
+ "item_ref": "claude:guides/g",
349
+ "operative_context": [
350
+ "u-executable_invoked"
351
+ ],
352
+ "n": 1
353
+ },
354
+ "units": {
355
+ "u-executable_invoked": {
356
+ "unit_id": "u-executable_invoked",
357
+ "path": "claude/x",
358
+ "text": "- x",
359
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
360
+ "layer": "catalog",
361
+ "item_ref": "claude:guides/g",
362
+ "operative_context": [
363
+ "u-executable_invoked"
364
+ ],
365
+ "n": 1
366
+ }
367
+ },
368
+ "session": {
369
+ "session_ref": "claude:s",
370
+ "basis": "pin"
371
+ },
372
+ "decision_at": 5,
373
+ "expected": {
374
+ "state": "unknown",
375
+ "level": null,
376
+ "reason": "producer_absent:executable_invoked"
377
+ },
378
+ "catalogue_surface": "executable"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "id": "surfaces/executable_consumed",
384
+ "cases": [
385
+ {
386
+ "kind": "installer",
387
+ "binding": {
388
+ "bound": true,
389
+ "receipt_id": "rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr",
390
+ "transaction_id": "t1",
391
+ "installer_digest": "d1",
392
+ "release_digest": "rd",
393
+ "begun_by_installer_digest": null
394
+ },
395
+ "receipt": {
396
+ "schema": "InstallationReceipt/v1",
397
+ "transaction_id": "t1",
398
+ "result": "success",
399
+ "artifacts": [
400
+ {
401
+ "path": "runtime/baselines/b/inventory.json",
402
+ "sha256": "s1",
403
+ "role": "release"
404
+ },
405
+ {
406
+ "path": "launch/bin/x",
407
+ "sha256": "s2",
408
+ "role": "owned"
409
+ }
410
+ ]
411
+ },
412
+ "artifacts": [
413
+ {
414
+ "path": "runtime/baselines/b/inventory.json",
415
+ "sha256": "s1"
416
+ }
417
+ ],
418
+ "expected": {
419
+ "state": "delivered",
420
+ "level": "consumed"
421
+ }
422
+ },
423
+ {
424
+ "kind": "installer",
425
+ "binding": {
426
+ "bound": false
427
+ },
428
+ "receipt": null,
429
+ "artifacts": [
430
+ {
431
+ "path": "runtime/baselines/b/inventory.json",
432
+ "sha256": "s1"
433
+ }
434
+ ],
435
+ "expected": {
436
+ "state": "unknown",
437
+ "level": null
438
+ }
439
+ }
440
+ ]
441
+ },
442
+ {
443
+ "id": "surfaces/skill",
444
+ "cases": [
445
+ {
446
+ "kind": "delivery",
447
+ "unit": {
448
+ "unit_id": "u-skill",
449
+ "path": "claude/x",
450
+ "text": "- x",
451
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
452
+ "layer": "catalog",
453
+ "item_ref": "claude:guides/g",
454
+ "operative_context": [
455
+ "u-skill"
456
+ ],
457
+ "n": 1
458
+ },
459
+ "units": {
460
+ "u-skill": {
461
+ "unit_id": "u-skill",
462
+ "path": "claude/x",
463
+ "text": "- x",
464
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
465
+ "layer": "catalog",
466
+ "item_ref": "claude:guides/g",
467
+ "operative_context": [
468
+ "u-skill"
469
+ ],
470
+ "n": 1
471
+ }
472
+ },
473
+ "session": {
474
+ "session_ref": "claude:s",
475
+ "basis": "pin"
476
+ },
477
+ "decision_at": 5,
478
+ "expected": {
479
+ "state": "unknown",
480
+ "level": null,
481
+ "reason": "producer_absent:skill"
482
+ },
483
+ "catalogue_surface": "skill"
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "id": "surfaces/hook",
489
+ "cases": [
490
+ {
491
+ "kind": "delivery",
492
+ "unit": {
493
+ "unit_id": "u-hook",
494
+ "path": "claude/x",
495
+ "text": "- x",
496
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
497
+ "layer": "catalog",
498
+ "item_ref": "claude:guides/g",
499
+ "operative_context": [
500
+ "u-hook"
501
+ ],
502
+ "n": 1
503
+ },
504
+ "units": {
505
+ "u-hook": {
506
+ "unit_id": "u-hook",
507
+ "path": "claude/x",
508
+ "text": "- x",
509
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
510
+ "layer": "catalog",
511
+ "item_ref": "claude:guides/g",
512
+ "operative_context": [
513
+ "u-hook"
514
+ ],
515
+ "n": 1
516
+ }
517
+ },
518
+ "session": {
519
+ "session_ref": "claude:s",
520
+ "basis": "pin"
521
+ },
522
+ "decision_at": 5,
523
+ "expected": {
524
+ "state": "unknown",
525
+ "level": null,
526
+ "reason": "producer_absent:hook"
527
+ },
528
+ "catalogue_surface": "event"
529
+ }
530
+ ]
531
+ },
532
+ {
533
+ "id": "surfaces/native_layer",
534
+ "cases": [
535
+ {
536
+ "kind": "delivery",
537
+ "unit": {
538
+ "unit_id": "u-n",
539
+ "path": "native_global",
540
+ "text": "- Answer in Korean.",
541
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
542
+ "layer": "native_global",
543
+ "item_ref": null,
544
+ "operative_context": [
545
+ "u-n"
546
+ ],
547
+ "n": 1
548
+ },
549
+ "units": {
550
+ "u-n": {
551
+ "unit_id": "u-n",
552
+ "path": "native_global",
553
+ "text": "- Answer in Korean.",
554
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
555
+ "layer": "native_global",
556
+ "item_ref": null,
557
+ "operative_context": [
558
+ "u-n"
559
+ ],
560
+ "n": 1
561
+ }
562
+ },
563
+ "session": {
564
+ "session_ref": "claude:s",
565
+ "native_events": [
566
+ {
567
+ "at": 1,
568
+ "unit_ids": []
569
+ }
570
+ ],
571
+ "release": {
572
+ "complete": false,
573
+ "layers": {
574
+ "native_settings": "unknown"
575
+ },
576
+ "items": []
577
+ }
578
+ },
579
+ "decision_at": 5,
580
+ "expected": {
581
+ "state": "unknown",
582
+ "level": "identity"
583
+ }
584
+ },
585
+ {
586
+ "kind": "delivery",
587
+ "unit": {
588
+ "unit_id": "u-n",
589
+ "path": "native_global",
590
+ "text": "- Answer in Korean.",
591
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
592
+ "layer": "native_global",
593
+ "item_ref": null,
594
+ "operative_context": [
595
+ "u-n"
596
+ ],
597
+ "n": 1
598
+ },
599
+ "units": {
600
+ "u-n": {
601
+ "unit_id": "u-n",
602
+ "path": "native_global",
603
+ "text": "- Answer in Korean.",
604
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
605
+ "layer": "native_global",
606
+ "item_ref": null,
607
+ "operative_context": [
608
+ "u-n"
609
+ ],
610
+ "n": 1
611
+ }
612
+ },
613
+ "session": {
614
+ "session_ref": "claude:s",
615
+ "native_events": [
616
+ {
617
+ "at": 1,
618
+ "unit_ids": [
619
+ "u-n"
620
+ ]
621
+ }
622
+ ],
623
+ "release": {
624
+ "complete": false,
625
+ "layers": {
626
+ "native_settings": "unknown"
627
+ },
628
+ "items": []
629
+ }
630
+ },
631
+ "decision_at": 5,
632
+ "expected": {
633
+ "state": "delivered",
634
+ "level": "loaded"
635
+ }
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "id": "surfaces/child_session",
641
+ "cases": [
642
+ {
643
+ "kind": "delivery",
644
+ "unit": {
645
+ "unit_id": "u-child_session",
646
+ "path": "claude/x",
647
+ "text": "- x",
648
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
649
+ "layer": "catalog",
650
+ "item_ref": "claude:guides/g",
651
+ "operative_context": [
652
+ "u-child_session"
653
+ ],
654
+ "n": 1
655
+ },
656
+ "units": {
657
+ "u-child_session": {
658
+ "unit_id": "u-child_session",
659
+ "path": "claude/x",
660
+ "text": "- x",
661
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
662
+ "layer": "catalog",
663
+ "item_ref": "claude:guides/g",
664
+ "operative_context": [
665
+ "u-child_session"
666
+ ],
667
+ "n": 1
668
+ }
669
+ },
670
+ "session": {
671
+ "session_ref": "claude:s",
672
+ "basis": "pin"
673
+ },
674
+ "decision_at": 5,
675
+ "expected": {
676
+ "state": "unknown",
677
+ "level": null,
678
+ "reason": "producer_absent:child_session"
679
+ },
680
+ "catalogue_surface": "delegated"
681
+ }
682
+ ]
683
+ },
684
+ {
685
+ "id": "licensed_levels/library_selected",
686
+ "cases": [
687
+ {
688
+ "kind": "delivery",
689
+ "unit": {
690
+ "unit_id": "u-h",
691
+ "path": "claude/guides/h.md",
692
+ "text": "- h",
693
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
694
+ "layer": "catalog",
695
+ "item_ref": "claude:guides/h",
696
+ "operative_context": [
697
+ "u-h"
698
+ ],
699
+ "n": 1
700
+ },
701
+ "units": {
702
+ "u-h": {
703
+ "unit_id": "u-h",
704
+ "path": "claude/guides/h.md",
705
+ "text": "- h",
706
+ "version_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
707
+ "layer": "catalog",
708
+ "item_ref": "claude:guides/h",
709
+ "operative_context": [
710
+ "u-h"
711
+ ],
712
+ "n": 1
713
+ }
714
+ },
715
+ "session": {
716
+ "session_ref": "claude:s",
717
+ "basis": "selection_history",
718
+ "history_selected": {
719
+ "claude:guides/h": "relevant"
720
+ }
721
+ },
722
+ "decision_at": 5,
723
+ "expected": {
724
+ "state": "unknown",
725
+ "level": "library_selected"
726
+ }
727
+ }
728
+ ]
729
+ }
730
+ ]
731
+ }