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,122 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "design §6.2: a unit either sweep or Judge B flagged returns to both judges; plan WP-11 J3c. The judge schema's `units` and `matching_units` and the definitions they reach, nothing else: the candidate is not judged again. Projected from judge.schema.json (stage_judge.reconsider_projection), and held equal to it by stage_judge's self-test.",
4
+ "title": "S6 reconsideration",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "units",
9
+ "matching_units"
10
+ ],
11
+ "properties": {
12
+ "units": {
13
+ "$ref": "#/$defs/units"
14
+ },
15
+ "matching_units": {
16
+ "type": "array",
17
+ "items": {
18
+ "$ref": "#/$defs/matching_unit"
19
+ }
20
+ }
21
+ },
22
+ "$defs": {
23
+ "match": {
24
+ "type": "string",
25
+ "enum": [
26
+ "yes",
27
+ "no"
28
+ ]
29
+ },
30
+ "matching_unit": {
31
+ "$comment": "§6.2 per candidate, for each matching unit: its following and its contribution to the outcome, each with evidence ids, kept apart from the event's consequence",
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": [
35
+ "unit",
36
+ "following",
37
+ "following_evidence_ids",
38
+ "contribution",
39
+ "contribution_evidence_ids"
40
+ ],
41
+ "properties": {
42
+ "unit": {
43
+ "$ref": "#/$defs/unit_label"
44
+ },
45
+ "following": {
46
+ "type": "string",
47
+ "enum": [
48
+ "followed",
49
+ "not_followed",
50
+ "unknown"
51
+ ]
52
+ },
53
+ "following_evidence_ids": {
54
+ "$ref": "#/$defs/quote_ids"
55
+ },
56
+ "contribution": {
57
+ "type": "string",
58
+ "enum": [
59
+ "helped",
60
+ "harmed",
61
+ "neutral",
62
+ "unknown"
63
+ ]
64
+ },
65
+ "contribution_evidence_ids": {
66
+ "$ref": "#/$defs/quote_ids"
67
+ }
68
+ }
69
+ },
70
+ "quote_ids": {
71
+ "type": "array",
72
+ "uniqueItems": true,
73
+ "items": {
74
+ "type": "string",
75
+ "pattern": "^q[1-9][0-9]*(?![\\s\\S])"
76
+ }
77
+ },
78
+ "text": {
79
+ "type": "string",
80
+ "minLength": 1
81
+ },
82
+ "unit_judgment": {
83
+ "$comment": "§6.2 per unit: situation match, action match, a one-line reason, and (D14) a quote of the unit only where either match is yes, empty otherwise",
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": [
87
+ "unit",
88
+ "situation",
89
+ "action",
90
+ "reason",
91
+ "quote"
92
+ ],
93
+ "properties": {
94
+ "unit": {
95
+ "$ref": "#/$defs/unit_label"
96
+ },
97
+ "situation": {
98
+ "$ref": "#/$defs/match"
99
+ },
100
+ "action": {
101
+ "$ref": "#/$defs/match"
102
+ },
103
+ "reason": {
104
+ "$ref": "#/$defs/text"
105
+ },
106
+ "quote": {
107
+ "type": "string"
108
+ }
109
+ }
110
+ },
111
+ "unit_label": {
112
+ "type": "string",
113
+ "pattern": "^n[1-9][0-9]*(?![\\s\\S])"
114
+ },
115
+ "units": {
116
+ "type": "array",
117
+ "items": {
118
+ "$ref": "#/$defs/unit_judgment"
119
+ }
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,150 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "design §4.1; posture: design/session-distill/2026-10-21T0318--2d4fbd4--plan-addendum-wp01.md; output_caps: design/session-distill/2026-11-03T2155--6779ed7--the-output-cap-is-declared-and-a-reading-cites-its-own-quotes.md; density (optional): design/session-distill/2026-11-11T0410--c4a9a24--a-run-may-declare-an-earlier-runs-measured-density-and-an-unmeasured-class-is-reserved-at-its-estimate.md; retry (optional): design/session-distill/2026-11-11T0535--c4a9a24--a-call-past-its-claim-stops-the-run-and-a-density-belongs-to-its-class.md; retrieval (optional) and judge (optional): design/session-distill/2026-11-11T1545--58ad0cf--a-run-declares-what-s5-retrieves-and-which-candidates-s6-judges.md; sweeps (optional): plan WP-11 J3a, lead decision E2 (2026-11-11); environment (optional): what the run HANDS its writers rather than where they may write, WP-21",
4
+ "title": "Run declaration",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["question", "kind", "posture", "window", "sources", "checks", "budget", "seats",
8
+ "actor_seats", "config_manifest_B", "starting_hashes", "account", "hosts",
9
+ "declaration_seq", "host_allowance", "output_caps", "destinations"],
10
+ "$defs": {
11
+ "judged_scope": {
12
+ "$comment": "plan WP-11: `all` of a source's candidates, or a sample of that many (0 judges none, and is reported as left out)",
13
+ "type": ["string", "integer"], "pattern": "^all$", "minimum": 0
14
+ },
15
+ "text": {"type": "string", "minLength": 1},
16
+ "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
17
+ "count": {"type": "integer", "minimum": 0},
18
+ "root": {"type": "string", "pattern": "^/"}
19
+ },
20
+ "properties": {
21
+ "environment": {
22
+ "$comment": "What the run HANDS its writers, as opposed to where they may write. `home` is the HOME every S11/S12 writer is given: a writer that derives a root from HOME derives it from this one, and `destinations.py` computes each fixed root from it and compares the result with its class root. Optional here and REQUIRED by the destination manifest (ENVIRONMENT_HOME_UNDECLARED), so a declaration written before this block existed stays valid while no manifest can be produced without it.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": ["home"],
26
+ "properties": {"home": {"$ref": "#/$defs/root"}}
27
+ },
28
+ "question": {"$ref": "#/$defs/text"},
29
+ "kind": {"type": "string", "enum": ["periodic", "targeted"]},
30
+ "posture": {"type": "string", "enum": ["production", "rehearsal", "development"]},
31
+ "window": {
32
+ "type": "object", "additionalProperties": false, "required": ["start", "end", "tz"],
33
+ "properties": {"start": {"$ref": "#/$defs/text"}, "end": {"$ref": "#/$defs/text"}, "tz": {"$ref": "#/$defs/text"}}
34
+ },
35
+ "sources": {
36
+ "type": "array", "minItems": 1,
37
+ "items": {"type": "object", "additionalProperties": false, "required": ["name", "path"],
38
+ "properties": {"name": {"$ref": "#/$defs/text"}, "path": {"$ref": "#/$defs/root"},
39
+ "sha256": {"$ref": "#/$defs/sha256"}}}
40
+ },
41
+ "checks": {
42
+ "type": "object", "additionalProperties": false, "minProperties": 1,
43
+ "patternProperties": {"^[a-z][a-z0-9_]*$": {"type": "number"}}
44
+ },
45
+ "budget": {
46
+ "type": "object", "additionalProperties": false, "required": ["per_stage", "per_episode", "reserve"],
47
+ "properties": {
48
+ "per_stage": {"type": "object", "additionalProperties": false, "minProperties": 1,
49
+ "patternProperties": {"^S[0-9]+b?$": {"$ref": "#/$defs/count"}}},
50
+ "per_episode": {"type": "object", "additionalProperties": false,
51
+ "required": ["tokens", "compactions", "max_budget_usd", "max_turns"],
52
+ "properties": {"tokens": {"$ref": "#/$defs/count"}, "compactions": {"$ref": "#/$defs/count"},
53
+ "max_budget_usd": {"type": "number", "minimum": 0},
54
+ "max_turns": {"$ref": "#/$defs/count"}}},
55
+ "reserve": {"type": "number", "minimum": 0}
56
+ }
57
+ },
58
+ "seats": {
59
+ "type": "object", "additionalProperties": false, "required": ["S3"],
60
+ "patternProperties": {"^S[0-9]+b?(\\.[A-Za-z0-9_-]+)?$": {"$ref": "#/$defs/text"}}
61
+ },
62
+ "actor_seats": {
63
+ "type": "array", "minItems": 4, "maxItems": 4,
64
+ "items": {"type": "object", "additionalProperties": false, "required": ["stratum", "seat", "provenance"],
65
+ "properties": {
66
+ "stratum": {"type": "string", "enum": ["claude-main", "claude-subagent", "codex-main", "codex-subagent"]},
67
+ "seat": {"$ref": "#/$defs/text"},
68
+ "provenance": {"type": "string", "enum": ["observed", "fallback"]}}}
69
+ },
70
+ "config_manifest_B": {
71
+ "type": "object", "additionalProperties": false, "minProperties": 1,
72
+ "patternProperties": {"^.+$": {"$ref": "#/$defs/sha256"}}
73
+ },
74
+ "starting_hashes": {
75
+ "type": "object", "additionalProperties": false, "required": ["ledger", "coverage", "layers"],
76
+ "properties": {
77
+ "ledger": {"$ref": "#/$defs/sha256"}, "coverage": {"$ref": "#/$defs/sha256"},
78
+ "layers": {"type": "object", "additionalProperties": false, "minProperties": 1,
79
+ "patternProperties": {"^.+$": {"$ref": "#/$defs/sha256"}}}
80
+ }
81
+ },
82
+ "account": {
83
+ "type": "object", "additionalProperties": false, "required": ["extra_usage", "declared_on"],
84
+ "properties": {"extra_usage": {"type": "string", "enum": ["off", "on-accepted"]},
85
+ "declared_on": {"type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"}}
86
+ },
87
+ "hosts": {
88
+ "type": "object", "additionalProperties": false, "required": ["claude", "codex"],
89
+ "properties": {"claude": {"$ref": "#/$defs/text"}, "codex": {"$ref": "#/$defs/text"}}
90
+ },
91
+ "declaration_seq": {"$ref": "#/$defs/count"},
92
+ "host_allowance": {
93
+ "type": "object", "additionalProperties": false,
94
+ "patternProperties": {"^.+$": {"type": "object", "additionalProperties": false,
95
+ "required": ["allowance_tokens", "host_version", "flag_set_sha256"],
96
+ "properties": {"allowance_tokens": {"$ref": "#/$defs/count"},
97
+ "host_version": {"$ref": "#/$defs/text"},
98
+ "flag_set_sha256": {"$ref": "#/$defs/sha256"}}}}
99
+ },
100
+ "output_caps": {
101
+ "type": "object", "additionalProperties": false, "required": ["S3"],
102
+ "properties": {"S3": {"type": "integer", "minimum": 1}}
103
+ },
104
+ "retrieval": {
105
+ "$comment": "plan WP-11, lead decision on J0's numbers (2026-11-11): the counts S5 retrieves per candidate, declared so a run's declaration chooses its scope and budget - `per_layer` units of each layer by score and `top_entries` ledger entries, every named unit and entry kept beside them. Absent, S5's own constants (stage_retrieve.PER_LAYER, TOP_ENTRIES), and checks.json says which each count came from.",
106
+ "type": "object", "additionalProperties": false,
107
+ "properties": {"per_layer": {"type": "integer", "minimum": 1}, "top_entries": {"type": "integer", "minimum": 1}}
108
+ },
109
+ "judge": {
110
+ "$comment": "plan WP-11, lead decision on J0's numbers (2026-11-11): which candidates S6 judges, per source as S5's population names it - `all`, or a sample of that many drawn by code from the run id. A source the map leaves out is judged not at all, and S6 reports every candidate it did not judge by source and count; absent, every candidate is judged. `formed` is `all` whenever the map is declared (declare: FORMED_SAMPLED), since design §6.5's planted controls take the formed shape and S6 cannot tell them apart (F27, D4).",
111
+ "type": "object", "additionalProperties": false,
112
+ "properties": {"candidate_kinds": {
113
+ "type": "object", "additionalProperties": false, "minProperties": 1,
114
+ "properties": {"formed": {"$ref": "#/$defs/judged_scope"}, "due_decision": {"$ref": "#/$defs/judged_scope"},
115
+ "legacy": {"$ref": "#/$defs/judged_scope"}, "obsolete_hint": {"$ref": "#/$defs/judged_scope"},
116
+ "redundancy_hint": {"$ref": "#/$defs/judged_scope"}, "g_cluster": {"$ref": "#/$defs/judged_scope"}}}}
117
+ },
118
+ "sweeps": {
119
+ "$comment": "plan WP-11 done-when 6 and lead decisions D9 and E2 (2026-11-11): how S6's absence sweeps are cut - `shard_units` remaining units per shard, `candidates_per_shard` candidates per group of shards - and the output cap each sweep call declares (`output_cap`). Absent, S6's own constants (stage_judge.SWEEP_DEFAULTS: 100, 5 and 20,000), and judgments/judge.json says which each value came from.",
120
+ "type": "object", "additionalProperties": false,
121
+ "properties": {"shard_units": {"type": "integer", "minimum": 1}, "candidates_per_shard": {"type": "integer", "minimum": 1},
122
+ "output_cap": {"type": "integer", "minimum": 1}}
123
+ },
124
+ "retry": {
125
+ "$comment": "W review of WP-08e r1, F4 (lead decision): the host's retries one call's 'at most' claim holds (count, default 1) and the error share each carries (margin, default RETRY_ERROR_TOKENS, raised by a larger measured one). A request past the claim stops the run (CLAIM_EXCEEDED), and only a later amendment of this key lifts it.",
126
+ "type": "object", "additionalProperties": false,
127
+ "properties": {"count": {"type": "integer", "minimum": 1}, "margin": {"type": "integer", "minimum": 0}}
128
+ },
129
+ "density": {
130
+ "type": "object", "additionalProperties": false,
131
+ "patternProperties": {"^.+$": {
132
+ "type": "object", "additionalProperties": false,
133
+ "patternProperties": {"^S[0-9]+[a-z]?:[a-z_]+$": {
134
+ "type": "object", "additionalProperties": false, "required": ["bytes_per_token"],
135
+ "properties": {"bytes_per_token": {"type": "number", "minimum": 0},
136
+ "measured_in": {"type": "string"}, "samples": {"type": "integer"},
137
+ "at": {"type": "string"}}}}}}
138
+ },
139
+ "destinations": {
140
+ "type": "object", "additionalProperties": false,
141
+ "$comment": "RELEASE 1's classes only (D-20261112-2cf1c4): S11 writes the declared checkout and commits, and runs no writer that would need the others, so requiring their roots would refuse the narrowed declaration the release promises to accept. The full vocabulary stays in `properties`, typed, so a wider declaration is still admitted and still judged; `destinations.resolution_problems` at scope=\"all\" is what requires a root for the rest. A control holds this list against the table's own release-1 classes.",
142
+ "required": ["checkout", "runtime_state", "recovery"],
143
+ "properties": {"checkout": {"$ref": "#/$defs/root"}, "install_roots": {"$ref": "#/$defs/root"},
144
+ "personal_layers": {"$ref": "#/$defs/root"},
145
+ "launcher_shell_integration": {"$ref": "#/$defs/root"},
146
+ "runtime_state": {"$ref": "#/$defs/root"}, "nudge": {"$ref": "#/$defs/root"},
147
+ "recovery": {"$ref": "#/$defs/root"}}
148
+ }
149
+ }
150
+ }
@@ -0,0 +1,200 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "design §7.3's S7b paragraph (gpt-6-astra reviews each disposition and destination against the evidence, the kind and the placement contract, and for every merge judges whether meaning is preserved and no unrelated obligation is introduced; disagreement is SHOWN rather than resolved, and the owner resolves it by approving, by 수정 naming the alternative, or by rejecting), §7.4's semantic bars (packets/placement_contract.md, which this call is judged against and which travels into the packet whole with its digest), plan WP-12 (`review-s7b.json` {item_id, verdict, faithful_merge, alternative|null, notes}). This schema holds the SHAPE of one review. What it does not hold: which disposition is allowed (tables/allowed_pairs.json), the decidable placement rules (tables/placement_rules.json) - code has already refused a proposal that breaks either before this call is made, so a review is asked only about what a person's judgment decides.",
4
+ "title": "S7b review of one proposal",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "verdict",
9
+ "disposition_review",
10
+ "destination_review",
11
+ "faithful_merge",
12
+ "alternative",
13
+ "bars",
14
+ "notes",
15
+ "merge_findings"
16
+ ],
17
+ "properties": {
18
+ "verdict": {
19
+ "type": "string",
20
+ "enum": [
21
+ "agree",
22
+ "disagree"
23
+ ],
24
+ "$comment": "Two values, not three: a review that could answer \"unsure\" would let a disagreement reach the owner as a shrug. An uncertainty belongs in `notes` beside the verdict the reviewer would act on."
25
+ },
26
+ "disposition_review": {
27
+ "$ref": "#/$defs/judgment"
28
+ },
29
+ "destination_review": {
30
+ "$ref": "#/$defs/judgment"
31
+ },
32
+ "faithful_merge": {
33
+ "type": "string",
34
+ "enum": [
35
+ "yes",
36
+ "no",
37
+ "n/a"
38
+ ],
39
+ "$comment": "For every merge: whether meaning is preserved and no unrelated obligation is introduced. `n/a` only where the proposal holds no merge operation; code checks that against the operations rather than trusting the value."
40
+ },
41
+ "merge_findings": {
42
+ "type": [
43
+ "array",
44
+ "null"
45
+ ],
46
+ "items": {
47
+ "$ref": "#/$defs/merge_finding"
48
+ },
49
+ "$comment": "Nullable AND required: the strict provider dialect requires every property, so absence cannot carry a meaning. `null` is what absence meant — this candidate has no merge operation to review — and `[]` is a merge reviewed with nothing found. The two are different answers and the field keeps both; code reads null exactly as it read absence (`or []`), so no reader gains a third case."
50
+ },
51
+ "alternative": {
52
+ "$ref": "#/$defs/alternative_or_null"
53
+ },
54
+ "bars": {
55
+ "type": "array",
56
+ "minItems": 1,
57
+ "items": {
58
+ "$ref": "#/$defs/bar_judgment"
59
+ },
60
+ "$comment": "One entry per semantic bar of the contract text. Code checks the set against the bars that text states, so a review that skipped one is returned rather than read as a pass."
61
+ },
62
+ "notes": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "$comment": "Korean: the owner reads this beside the Korean reason fields of the proposal."
66
+ }
67
+ },
68
+ "$defs": {
69
+ "text": {
70
+ "type": "string",
71
+ "minLength": 1
72
+ },
73
+ "judgment": {
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "holds",
78
+ "reason",
79
+ "evidence"
80
+ ],
81
+ "properties": {
82
+ "holds": {
83
+ "type": "boolean"
84
+ },
85
+ "reason": {
86
+ "$ref": "#/$defs/text"
87
+ },
88
+ "evidence": {
89
+ "type": "array",
90
+ "items": {
91
+ "$ref": "#/$defs/text"
92
+ },
93
+ "$comment": "Required, and NOT nullable: an empty list is already the answer this field exists to make visible — a reason resting on nothing. Absence and `[]` meant the same thing, so requiring it adds no state downstream; a nullable stand-in would have added one."
94
+ }
95
+ }
96
+ },
97
+ "merge_finding": {
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "required": [
101
+ "operation_target",
102
+ "meaning_preserved",
103
+ "unrelated_obligation",
104
+ "reason"
105
+ ],
106
+ "properties": {
107
+ "operation_target": {
108
+ "$ref": "#/$defs/text"
109
+ },
110
+ "meaning_preserved": {
111
+ "type": "boolean"
112
+ },
113
+ "unrelated_obligation": {
114
+ "type": "boolean",
115
+ "$comment": "true means the merge INTRODUCES one, which is the failing direction; the field is named for what it finds, not for what passes."
116
+ },
117
+ "reason": {
118
+ "$ref": "#/$defs/text"
119
+ }
120
+ }
121
+ },
122
+ "bar_judgment": {
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": [
126
+ "bar",
127
+ "holds",
128
+ "reason"
129
+ ],
130
+ "properties": {
131
+ "bar": {
132
+ "$ref": "#/$defs/text"
133
+ },
134
+ "holds": {
135
+ "type": "boolean"
136
+ },
137
+ "reason": {
138
+ "$ref": "#/$defs/text"
139
+ }
140
+ }
141
+ },
142
+ "alternative_or_null": {
143
+ "type": [
144
+ "object",
145
+ "null"
146
+ ],
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "disposition",
150
+ "reason",
151
+ "destination"
152
+ ],
153
+ "properties": {
154
+ "disposition": {
155
+ "type": "string",
156
+ "enum": [
157
+ "place",
158
+ "correct",
159
+ "re-deliver",
160
+ "keep",
161
+ "reduce",
162
+ "incubate",
163
+ "drop",
164
+ "none"
165
+ ]
166
+ },
167
+ "destination": {
168
+ "type": [
169
+ "object",
170
+ "null"
171
+ ],
172
+ "additionalProperties": false,
173
+ "required": [
174
+ "layer",
175
+ "carrier"
176
+ ],
177
+ "properties": {
178
+ "layer": {
179
+ "$ref": "#/$defs/text"
180
+ },
181
+ "carrier": {
182
+ "type": [
183
+ "string",
184
+ "null"
185
+ ],
186
+ "minLength": 1,
187
+ "$comment": "Nullable: the policy of runlib/validate.py admits a nullable as a type list and refuses oneOf. 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.",
188
+ "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$"
189
+ }
190
+ },
191
+ "$comment": "Nullable AND required, for the strict dialect: `null` is what absence meant — the alternative names no destination, which is the answer for a disposition that places nothing (keep, drop, none). WHICH layers exist and whether the carrier is a relative path inside the tree are `runlib/placement.destination_problems`'s, which this review's alternative goes through exactly as S7's own proposal does."
192
+ },
193
+ "reason": {
194
+ "$ref": "#/$defs/text"
195
+ }
196
+ },
197
+ "$comment": "Nullable: null when the verdict is agree. The alternative the owner can take with 수정. Code holds it to the same allowed pairs as the proposal: an alternative §7.2 forbids is not an alternative."
198
+ }
199
+ }
200
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "S9b's answer for one review row (design §9; plan WP-20 done-when 2): each of the row's six Korean reason fields (stage_propose.REASON_FIELDS, the Korean the owner reads; the flat proposal's singular `reason` is a copy of `reasons.reason`) judged against the row's English payload for faithfulness and plain wording. Code holds the field set to the six, each once, and the verdict to the fields: `pass` exactly when every field is both faithful and plain.",
4
+ "title": "S9b review of a row's Korean",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["verdict", "fields", "notes"],
8
+ "properties": {
9
+ "verdict": {"type": "string", "enum": ["pass", "fail"],
10
+ "$comment": "Two values: a row either reads as its payload says, plainly, or it is regenerated once."},
11
+ "fields": {"type": "array", "minItems": 6, "maxItems": 6, "items": {"$ref": "#/$defs/field"}},
12
+ "notes": {"$ref": "#/$defs/text"}
13
+ },
14
+ "$defs": {
15
+ "text": {"type": "string", "minLength": 1},
16
+ "field": {
17
+ "type": "object", "additionalProperties": false, "required": ["field", "faithful", "plain", "finding"],
18
+ "properties": {
19
+ "field": {"type": "string", "enum": ["what_happened", "proposal", "reason", "cost", "serves", "falsifier"]},
20
+ "faithful": {"type": "boolean",
21
+ "$comment": "No fact of the payload dropped, none added, no condition or exception lost, no claim made stronger or weaker."},
22
+ "plain": {"type": "boolean",
23
+ "$comment": "A person new to the work can follow it: plain words, a technical term explained where it first appears."},
24
+ "finding": {"$ref": "#/$defs/text"}
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "design §5.4 (stitching): after every window of a unit is read, one call receives the unit's pending events and the claims recorded after each, and answers once for every pending event - resolved with the claims and evidence records that show its outcome, or unresolved with none. Every id here is the packet's own label of an event, a claim or a quote it lists (WP-08b: v, c, q), which code turns back into the stored id; nothing is retyped.",
4
+ "title": "S3 unit stitch",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["resolutions"],
8
+ "properties": {
9
+ "resolutions": {"type": "array", "items": {"$ref": "#/$defs/resolution"}}
10
+ },
11
+ "$defs": {
12
+ "claim_ids": {"type": "array", "uniqueItems": true, "items": {"type": "string", "pattern": "^c[1-9][0-9]*(?![\\s\\S])"}},
13
+ "quote_ids": {"type": "array", "uniqueItems": true, "items": {"type": "string", "pattern": "^q[1-9][0-9]*(?![\\s\\S])"}},
14
+ "resolution": {
15
+ "type": "object", "additionalProperties": false,
16
+ "required": ["event_id", "outcome", "claim_ids", "evidence_ids"],
17
+ "properties": {
18
+ "event_id": {"type": "string", "pattern": "^v[1-9][0-9]*(?![\\s\\S])"},
19
+ "outcome": {"type": "string", "enum": ["resolved", "unresolved"]},
20
+ "claim_ids": {"$ref": "#/$defs/claim_ids"},
21
+ "evidence_ids": {"$ref": "#/$defs/quote_ids"}
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$comment": "design §6.2 (S6's absence sweeps); plan WP-11 done-when 6; lead decisions E2 and E3 (2026-11-11): a shard of a reference point's remaining units judged for the candidates its packet lists, each candidate against only the units its packet names for it. Candidates and units are named by the packet's own labels (k, n); code turns them back into stored ids and checks that every listed pair is judged exactly once and no other (stage_judge.sweep_problems). This schema holds the shape.",
4
+ "title": "S6 absence sweep",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["pairs"],
8
+ "properties": {
9
+ "pairs": {"type": "array", "items": {"$ref": "#/$defs/pair"}}
10
+ },
11
+ "$defs": {
12
+ "text": {"type": "string", "minLength": 1},
13
+ "match": {"type": "string", "enum": ["yes", "no"]},
14
+ "pair": {
15
+ "type": "object", "additionalProperties": false, "required": ["candidate", "unit", "situation", "action", "reason"],
16
+ "properties": {
17
+ "candidate": {"type": "string", "pattern": "^k[1-9][0-9]*(?![\\s\\S])"},
18
+ "unit": {"type": "string", "pattern": "^n[1-9][0-9]*(?![\\s\\S])"},
19
+ "situation": {"$ref": "#/$defs/match"},
20
+ "action": {"$ref": "#/$defs/match"},
21
+ "reason": {"$ref": "#/$defs/text"}
22
+ }
23
+ }
24
+ }
25
+ }