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,555 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "design §7.2 (the four closed vocabularies), §7.3 (proposal content and the structural rules), §7.4 (placement, through tables/placement_rules.json and packets/placement_contract.md), §7.5 (the ranking keys this carries), §10.4 (ledger-only dispositions carry no operations); plan WP-12. This schema holds the SHAPE of one S7 answer. What it may not hold is the contract: the allowed (kind, diagnosis) -> disposition pairs, the structural rules and the placement rules live in tables/allowed_pairs.json, tables/structural_rules.json and tables/placement_rules.json, read by runlib/placement.py, because a vocabulary written twice is two authorities. So `disposition` is an enum here and WHICH disposition is allowed for this candidate is not. `unknowns` is where a named state of the derivation (a unit outcome not derived, delivery not assembled, an arc confirmation undetermined) is carried forward instead of being read as a negative answer.",
4
+ "title": "S7 proposal",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "disposition",
9
+ "consequence",
10
+ "operations",
11
+ "destination",
12
+ "reasons",
13
+ "unknowns",
14
+ "placement"
15
+ ],
16
+ "properties": {
17
+ "disposition": {
18
+ "$ref": "#/$defs/disposition"
19
+ },
20
+ "consequence": {
21
+ "$ref": "#/$defs/consequence"
22
+ },
23
+ "operations": {
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "#/$defs/operation"
27
+ }
28
+ },
29
+ "artifact_set": {
30
+ "$ref": "#/$defs/artifact_set"
31
+ },
32
+ "behavior_contract": {
33
+ "$ref": "#/$defs/behavior_contract"
34
+ },
35
+ "expected_observation": {
36
+ "$ref": "#/$defs/expected_observation_or_null"
37
+ },
38
+ "destination": {
39
+ "$ref": "#/$defs/destination"
40
+ },
41
+ "reasons": {
42
+ "$ref": "#/$defs/reasons"
43
+ },
44
+ "unknowns": {
45
+ "type": "array",
46
+ "items": {
47
+ "$ref": "#/$defs/unknown"
48
+ }
49
+ },
50
+ "keep_record_named": {
51
+ "type": "string",
52
+ "minLength": 1,
53
+ "$comment": "The active keep record a reduce or merge supersedes; structural rule KEEP_GUARDED reads it."
54
+ },
55
+ "harmful": {
56
+ "type": "boolean",
57
+ "$comment": "A reduce of a unit that is covered and followed is allowed only when the unit is harmful (§7.2's condition `reduce_when_harmful`, read by runlib/placement.py). The flag is the model's claim, and the reason field says on what."
58
+ },
59
+ "requires_R": {
60
+ "type": "boolean",
61
+ "$comment": "A core item needs an R comparison; §10.4 and WP-20 read it, and an item admitted by adjudication in the second pass is awaiting_R and enters no F this run."
62
+ },
63
+ "placement": {
64
+ "$ref": "#/$defs/placement_claims"
65
+ }
66
+ },
67
+ "$defs": {
68
+ "text": {
69
+ "type": "string",
70
+ "minLength": 1
71
+ },
72
+ "disposition": {
73
+ "type": "string",
74
+ "enum": [
75
+ "place",
76
+ "correct",
77
+ "re-deliver",
78
+ "keep",
79
+ "reduce",
80
+ "incubate",
81
+ "drop",
82
+ "none"
83
+ ]
84
+ },
85
+ "consequence": {
86
+ "type": "string",
87
+ "enum": [
88
+ "irreversible",
89
+ "security",
90
+ "verification-corrupting",
91
+ "cost",
92
+ "quality",
93
+ "none"
94
+ ]
95
+ },
96
+ "operation": {
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": [
100
+ "type",
101
+ "target",
102
+ "before_state_sha256"
103
+ ],
104
+ "properties": {
105
+ "type": {
106
+ "type": "string",
107
+ "enum": [
108
+ "create",
109
+ "edit",
110
+ "delete",
111
+ "merge",
112
+ "route"
113
+ ]
114
+ },
115
+ "target": {
116
+ "$ref": "#/$defs/text"
117
+ },
118
+ "before_state_sha256": {
119
+ "type": "string",
120
+ "pattern": "^([0-9a-f]{64}|absent)(?![\\s\\S])",
121
+ "$comment": "Every operation carries the expected before-state hash of its target (§7.3); `absent` is the create case, where the target does not exist yet and the hash of nothing would be a hash of something."
122
+ },
123
+ "content": {
124
+ "type": "string"
125
+ },
126
+ "anchor": {
127
+ "type": "string"
128
+ },
129
+ "diff": {
130
+ "type": "string"
131
+ },
132
+ "units": {
133
+ "type": "array",
134
+ "items": {
135
+ "$ref": "#/$defs/text"
136
+ }
137
+ },
138
+ "unit_states": {
139
+ "type": "array",
140
+ "$comment": "Set by code, never by the model (runlib/stage_propose.py with_before_states): for a merge, the state of each unit that lives in another file than the target, as S7 read it. S11 holds that file to it before it removes the unit; a merge whose other-file unit carries no state is refused.",
141
+ "items": {
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "required": ["unit", "state"],
145
+ "properties": {
146
+ "unit": {"$ref": "#/$defs/text"},
147
+ "state": {"type": "string", "pattern": "^([0-9a-f]{64}|absent)(?![\\s\\S])"}
148
+ }
149
+ }
150
+ },
151
+ "names": {
152
+ "type": "string",
153
+ "$comment": "For a route: the path the entry points at. runlib/sequencing.py reads it to ask whether an intermediate tree would hold a route to nothing."
154
+ },
155
+ "entry": {
156
+ "type": "string"
157
+ }
158
+ }
159
+ },
160
+ "artifact_set": {
161
+ "type": "object",
162
+ "additionalProperties": false,
163
+ "required": [
164
+ "english",
165
+ "korean",
166
+ "registration",
167
+ "gate_change"
168
+ ],
169
+ "properties": {
170
+ "english": {
171
+ "$ref": "#/$defs/text"
172
+ },
173
+ "korean": {
174
+ "type": [
175
+ "string",
176
+ "null"
177
+ ],
178
+ "minLength": 1,
179
+ "$comment": "null only where the item is not user-facing; the reason belongs in reasons.proposal."
180
+ },
181
+ "registration": {
182
+ "$ref": "#/$defs/text"
183
+ },
184
+ "gate_change": {
185
+ "$ref": "#/$defs/gate_change_or_null"
186
+ }
187
+ }
188
+ },
189
+ "gate_change": {
190
+ "type": "object",
191
+ "additionalProperties": false,
192
+ "required": [
193
+ "change",
194
+ "negative_control"
195
+ ],
196
+ "properties": {
197
+ "change": {
198
+ "$ref": "#/$defs/text"
199
+ },
200
+ "negative_control": {
201
+ "$ref": "#/$defs/text"
202
+ }
203
+ }
204
+ },
205
+ "behavior_contract": {
206
+ "type": "object",
207
+ "additionalProperties": false,
208
+ "required": [
209
+ "recognition",
210
+ "completed_action",
211
+ "meaning",
212
+ "boundary",
213
+ "competing_value",
214
+ "roles_and_routes",
215
+ "failure_criteria"
216
+ ],
217
+ "properties": {
218
+ "recognition": {
219
+ "$ref": "#/$defs/text"
220
+ },
221
+ "completed_action": {
222
+ "$ref": "#/$defs/text"
223
+ },
224
+ "meaning": {
225
+ "$ref": "#/$defs/text"
226
+ },
227
+ "boundary": {
228
+ "$ref": "#/$defs/text"
229
+ },
230
+ "competing_value": {
231
+ "$ref": "#/$defs/text"
232
+ },
233
+ "roles_and_routes": {
234
+ "type": "array",
235
+ "minItems": 1,
236
+ "items": {
237
+ "$ref": "#/$defs/text"
238
+ }
239
+ },
240
+ "failure_criteria": {
241
+ "type": "array",
242
+ "minItems": 1,
243
+ "items": {
244
+ "$ref": "#/$defs/text"
245
+ }
246
+ }
247
+ }
248
+ },
249
+ "expected_observation": {
250
+ "type": "object",
251
+ "additionalProperties": false,
252
+ "required": [
253
+ "occasion",
254
+ "exposure_rule",
255
+ "expected_behavior",
256
+ "retrieval_terms",
257
+ "expiry"
258
+ ],
259
+ "properties": {
260
+ "occasion": {
261
+ "$ref": "#/$defs/text"
262
+ },
263
+ "exposure_rule": {
264
+ "$ref": "#/$defs/text"
265
+ },
266
+ "expected_behavior": {
267
+ "$ref": "#/$defs/text"
268
+ },
269
+ "retrieval_terms": {
270
+ "type": "array",
271
+ "minItems": 1,
272
+ "items": {
273
+ "$ref": "#/$defs/text"
274
+ }
275
+ },
276
+ "expiry": {
277
+ "type": "string",
278
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}(?![\\s\\S])"
279
+ },
280
+ "counter": {
281
+ "$ref": "#/$defs/counter_or_null"
282
+ }
283
+ }
284
+ },
285
+ "counter": {
286
+ "type": "object",
287
+ "additionalProperties": false,
288
+ "required": [
289
+ "name",
290
+ "threshold"
291
+ ],
292
+ "properties": {
293
+ "name": {
294
+ "$ref": "#/$defs/text"
295
+ },
296
+ "threshold": {
297
+ "type": "integer",
298
+ "minimum": 1
299
+ }
300
+ }
301
+ },
302
+ "destination": {
303
+ "type": "object",
304
+ "additionalProperties": false,
305
+ "required": [
306
+ "layer",
307
+ "carrier"
308
+ ],
309
+ "properties": {
310
+ "layer": {
311
+ "type": "string",
312
+ "minLength": 1,
313
+ "$comment": "Judged against tables/placement_rules.json `destinations.order`, not enumerated here: one authority for the layers."
314
+ },
315
+ "carrier": {
316
+ "type": [
317
+ "string",
318
+ "null"
319
+ ],
320
+ "minLength": 1,
321
+ "$comment": "null for a disposition that carries no operations; a placed item names the file or entry that carries it. The pattern refuses a control character only - a single line. WHICH layers exist and whether the path is relative are `runlib/placement.destination_problems`'s, so one rule has one authority; the pattern is here because a schema can say 'one line' without restating anything.",
322
+ "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$"
323
+ },
324
+ "consumer": {
325
+ "type": "string",
326
+ "minLength": 1
327
+ },
328
+ "situation": {
329
+ "type": "string",
330
+ "minLength": 1
331
+ }
332
+ }
333
+ },
334
+ "reasons": {
335
+ "type": "object",
336
+ "additionalProperties": false,
337
+ "required": [
338
+ "what_happened",
339
+ "proposal",
340
+ "reason",
341
+ "cost",
342
+ "serves",
343
+ "falsifier"
344
+ ],
345
+ "properties": {
346
+ "what_happened": {
347
+ "$ref": "#/$defs/text"
348
+ },
349
+ "proposal": {
350
+ "$ref": "#/$defs/text"
351
+ },
352
+ "reason": {
353
+ "$ref": "#/$defs/text"
354
+ },
355
+ "cost": {
356
+ "$ref": "#/$defs/text"
357
+ },
358
+ "serves": {
359
+ "$ref": "#/$defs/text"
360
+ },
361
+ "falsifier": {
362
+ "$ref": "#/$defs/text"
363
+ }
364
+ },
365
+ "$comment": "The person reads these, so they are Korean; the share is a non-blocking diagnostic of S9b, never a gate here."
366
+ },
367
+ "unknown": {
368
+ "type": "object",
369
+ "additionalProperties": false,
370
+ "required": [
371
+ "field",
372
+ "state",
373
+ "effect"
374
+ ],
375
+ "properties": {
376
+ "field": {
377
+ "$ref": "#/$defs/text"
378
+ },
379
+ "state": {
380
+ "$ref": "#/$defs/text"
381
+ },
382
+ "effect": {
383
+ "$ref": "#/$defs/text"
384
+ }
385
+ },
386
+ "$comment": "A named state of the derivation this proposal would have rested on, carried forward by name: the field, the state as the derivation spelled it, and what the proposal does about it."
387
+ },
388
+ "counter_or_null": {
389
+ "type": [
390
+ "object",
391
+ "null"
392
+ ],
393
+ "additionalProperties": false,
394
+ "required": [
395
+ "name",
396
+ "threshold"
397
+ ],
398
+ "properties": {
399
+ "name": {
400
+ "$ref": "#/$defs/text"
401
+ },
402
+ "threshold": {
403
+ "type": "integer",
404
+ "minimum": 1
405
+ }
406
+ },
407
+ "$comment": "Nullable: null where no counter can resolve the observation. "
408
+ },
409
+ "gate_change_or_null": {
410
+ "type": [
411
+ "object",
412
+ "null"
413
+ ],
414
+ "additionalProperties": false,
415
+ "required": [
416
+ "change",
417
+ "negative_control"
418
+ ],
419
+ "properties": {
420
+ "change": {
421
+ "$ref": "#/$defs/text"
422
+ },
423
+ "negative_control": {
424
+ "$ref": "#/$defs/text"
425
+ }
426
+ },
427
+ "$comment": "Nullable: null where the item is not author-side. "
428
+ },
429
+ "expected_observation_or_null": {
430
+ "type": [
431
+ "object",
432
+ "null"
433
+ ],
434
+ "additionalProperties": false,
435
+ "required": [
436
+ "occasion",
437
+ "exposure_rule",
438
+ "expected_behavior",
439
+ "retrieval_terms",
440
+ "expiry"
441
+ ],
442
+ "properties": {
443
+ "occasion": {
444
+ "$ref": "#/$defs/text"
445
+ },
446
+ "exposure_rule": {
447
+ "$ref": "#/$defs/text"
448
+ },
449
+ "expected_behavior": {
450
+ "$ref": "#/$defs/text"
451
+ },
452
+ "retrieval_terms": {
453
+ "type": "array",
454
+ "minItems": 1,
455
+ "items": {
456
+ "$ref": "#/$defs/text"
457
+ }
458
+ },
459
+ "expiry": {
460
+ "type": "string",
461
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}(?![\\s\\S])"
462
+ },
463
+ "counter": {
464
+ "$ref": "#/$defs/counter_or_null"
465
+ }
466
+ },
467
+ "$comment": "Nullable: null where the disposition asks for no observation. The policy of runlib/validate.py admits a nullable as a type list and refuses oneOf, so the shape is stated once and this twin carries the null. "
468
+ },
469
+ "placement_claims": {
470
+ "type": "object",
471
+ "additionalProperties": false,
472
+ "required": [
473
+ "consumer",
474
+ "artifact_form",
475
+ "blocking",
476
+ "criterion",
477
+ "judges",
478
+ "situation_promoted_items",
479
+ "situation_covered_by_guide",
480
+ "names_situation_of_guide",
481
+ "owner_only"
482
+ ],
483
+ "properties": {
484
+ "consumer": {
485
+ "type": [
486
+ "string",
487
+ "null"
488
+ ],
489
+ "minLength": 1,
490
+ "$comment": "Who the instruction is aimed at. tables/placement_rules.json `consumers.reads` says what each consumer reads; a consumer it does not name is not refused here, because the table is the authority on the set."
491
+ },
492
+ "artifact_form": {
493
+ "type": [
494
+ "string",
495
+ "null"
496
+ ],
497
+ "minLength": 1,
498
+ "$comment": "`instruction` when the item instructs someone; something else when it is code, a gate or a hook registration."
499
+ },
500
+ "blocking": {
501
+ "type": [
502
+ "boolean",
503
+ "null"
504
+ ],
505
+ "$comment": "Whether the proposed gate or hook BLOCKS. Required by the rules' scopes when the destination is gates or hooks."
506
+ },
507
+ "criterion": {
508
+ "type": [
509
+ "string",
510
+ "null"
511
+ ],
512
+ "minLength": 1,
513
+ "$comment": "`semantic` when a person must judge it, `decidable` when code can. A blocking gate on a semantic criterion is refused."
514
+ },
515
+ "judges": {
516
+ "type": [
517
+ "boolean",
518
+ "null"
519
+ ],
520
+ "$comment": "Whether the proposed hook JUDGES. A hook that blocks or judges is outside a hook's charter."
521
+ },
522
+ "situation_promoted_items": {
523
+ "type": [
524
+ "integer",
525
+ "null"
526
+ ],
527
+ "minimum": 0,
528
+ "$comment": "How many promoted items already share this situation. §7.4 asks for at least five before a new guide."
529
+ },
530
+ "situation_covered_by_guide": {
531
+ "type": [
532
+ "boolean",
533
+ "null"
534
+ ],
535
+ "$comment": "Whether a guide already covers the situation."
536
+ },
537
+ "names_situation_of_guide": {
538
+ "type": [
539
+ "boolean",
540
+ "null"
541
+ ],
542
+ "$comment": "For a C principle placed in a guide: whether it names the situation of the guide that holds it."
543
+ },
544
+ "owner_only": {
545
+ "type": [
546
+ "boolean",
547
+ "null"
548
+ ],
549
+ "$comment": "For session-level injection: whether the item is the owner's alone."
550
+ }
551
+ },
552
+ "$comment": "The claims §7.4's decidable rules read. Every field is present and may be null, and `placement.py` refuses a null for a rule whose scope the proposal is in (PLACEMENT_INPUT_ABSENT) - so a null is an honest 'not applicable here' and never a way past a rule. `typology` is NOT here: it is the candidate's own type, which S6 derived, and an answer that carried it would give that field two sources."
553
+ }
554
+ }
555
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "design §4 (S3), §3.3, §5.4, §11: one window's reading. evidence_ids name this answer's quotes; code makes each quote an evidence record (evidence.from_view) and derives every stored id. An entry, an omission and an expected observation are named by the packet's own label of it (WP-08b: e, o, x), which code turns back into what it labels",
4
+ "title": "S3 window reading",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["quotes", "claims", "events", "decisions", "observations"],
8
+ "properties": {
9
+ "quotes": {"type": "array", "items": {"$ref": "#/$defs/quote"}},
10
+ "claims": {"type": "array", "items": {"$ref": "#/$defs/claim"}},
11
+ "events": {"type": "array", "items": {"$ref": "#/$defs/event"}},
12
+ "decisions": {"type": "array", "items": {"$ref": "#/$defs/decision"}},
13
+ "observations": {"type": "array", "items": {"$ref": "#/$defs/observation"}}
14
+ },
15
+ "$defs": {
16
+ "entry": {"type": "string", "pattern": "^e[1-9][0-9]*(?![\\s\\S])"},
17
+ "quote_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^q[1-9][0-9]*(?![\\s\\S])"}},
18
+ "quote": {
19
+ "type": "object", "additionalProperties": false,
20
+ "required": ["quote_id", "entry", "text"],
21
+ "properties": {
22
+ "quote_id": {"type": "string", "pattern": "^q[1-9][0-9]*(?![\\s\\S])"},
23
+ "entry": {"$ref": "#/$defs/entry"},
24
+ "text": {"type": "string", "minLength": 1},
25
+ "occurrence": {"type": "integer", "minimum": 0}
26
+ }
27
+ },
28
+ "claim": {
29
+ "$comment": "design §3.3",
30
+ "type": "object", "additionalProperties": false,
31
+ "required": ["claim_id", "fact", "interpretation", "uncertainty", "evidence_ids", "call_id"],
32
+ "properties": {
33
+ "claim_id": {"type": "string", "pattern": "^c[1-9][0-9]*(?![\\s\\S])"},
34
+ "fact": {"type": "string", "minLength": 1},
35
+ "interpretation": {"type": "string"},
36
+ "uncertainty": {"type": "string"},
37
+ "evidence_ids": {"$ref": "#/$defs/quote_ids"},
38
+ "call_id": {"type": "string", "minLength": 1}
39
+ }
40
+ },
41
+ "event": {
42
+ "$comment": "design §5.4; unresolved is the stitch call's answer, never a window's",
43
+ "type": "object", "additionalProperties": false,
44
+ "required": ["event_id", "kind", "at_record", "claim_ids", "outcome", "description"],
45
+ "properties": {
46
+ "event_id": {"type": "string", "pattern": "^v[1-9][0-9]*(?![\\s\\S])"},
47
+ "kind": {"type": "string", "minLength": 1},
48
+ "at_record": {"$ref": "#/$defs/entry"},
49
+ "claim_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^c[1-9][0-9]*(?![\\s\\S])"}},
50
+ "outcome": {"type": "string", "enum": ["resolved", "pending"]},
51
+ "description": {"type": "string", "minLength": 1}
52
+ }
53
+ },
54
+ "decision": {
55
+ "type": "object", "additionalProperties": false,
56
+ "required": ["omission_id", "decision", "reason"],
57
+ "properties": {
58
+ "omission_id": {"type": "string", "pattern": "^o[1-9][0-9]*(?![\\s\\S])"},
59
+ "decision": {"type": "string", "enum": ["expand", "skip"]},
60
+ "reason": {"type": "string", "minLength": 1}
61
+ }
62
+ },
63
+ "observation": {
64
+ "$comment": "design §11; the coverage basis is set by code",
65
+ "type": "object", "additionalProperties": false,
66
+ "required": ["expected_id", "occasion_locator", "exposure", "verdict", "evidence_ids"],
67
+ "properties": {
68
+ "expected_id": {"type": "string", "pattern": "^x[1-9][0-9]*(?![\\s\\S])"},
69
+ "occasion_locator": {"$ref": "#/$defs/entry"},
70
+ "exposure": {"type": "string", "enum": ["eligible", "exposure_unknown"]},
71
+ "verdict": {"type": "string", "enum": ["observed", "not_observed"]},
72
+ "evidence_ids": {"$ref": "#/$defs/quote_ids"}
73
+ }
74
+ }
75
+ }
76
+ }