agent-bios 0.19.3 → 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.
- package/DEPENDENCIES.md +62 -20
- package/INSTALL.md +1 -1
- package/README.md +16 -21
- package/claude/agents/frontier.md +1 -1
- package/claude/agents/sweep.md +2 -1
- package/claude/agents/workhorse.md +2 -2
- package/claude/guides/claude-prompting.md +494 -167
- package/claude/guides/cli-multi-model-workflow.md +8 -7
- package/claude/guides/gpt-prompting.md +241 -111
- package/claude/guides/session-distill-workflow.md +93 -43
- package/claude/guides/tooling-gotchas.md +3 -1
- package/codex/agents/reviewer.toml +2 -2
- package/codex/agents/sweep.toml +1 -1
- package/codex/agents/workhorse.toml +2 -2
- package/codex/guides/claude-prompting.md +494 -167
- package/codex/guides/cli-multi-model-workflow.md +8 -7
- package/codex/guides/gpt-prompting.md +241 -111
- package/codex/guides/session-distill-workflow.md +93 -43
- package/codex/guides/tooling-gotchas.md +3 -1
- package/compose/assemble.py +4 -1
- package/compose/canary.sh +8 -6
- package/compose/host_platform.py +158 -15
- package/compose/instructions-state.py +183 -41
- package/compose/instructions_app.py +2 -2
- package/compose/instructions_install.py +222 -27
- package/compose/instructions_session.py +250 -75
- package/compose/instructions_setup.py +6 -6
- package/compose/instructions_setup_cli.py +2 -36
- package/compose/instructions_setup_i18n.py +3 -3
- package/compose/instructions_store.py +160 -3
- package/compose/instructions_transaction.py +29 -5
- package/compose/instructions_ui_runtime.py +2 -2
- package/compose/setup/START.md +1 -1
- package/docs/advanced-launch.md +4 -0
- package/docs/releases/0.19.4.md +99 -0
- package/docs/releases/0.20.0.md +102 -0
- package/docs/setup.md +4 -4
- package/install.sh +54 -20
- package/launch/agent-launch.py +171 -22
- package/launch/agent-launch.toml +64 -29
- package/launch/agent-launch.zsh +104 -13
- package/launch/claude_subcommands.py +179 -0
- package/launch/provision-venv.sh +1 -1
- package/launch/shell_integration.py +7 -1
- package/learn/collect-learning.py +60 -9
- package/learn/migrate-learnings.py +70 -4
- package/learn/redact.py +2 -1
- package/package.json +37 -4
- package/provenance.json +1 -1
- package/session-cost.py +141 -18
- package/session-distill/coverage.json +6 -0
- package/session-distill/distill.py +2575 -0
- package/session-distill/grammar/__init__.py +0 -0
- package/session-distill/grammar/owner_lines.py +874 -0
- package/session-distill/originators.json +9 -0
- package/session-distill/packets/cross_review.md +31 -0
- package/session-distill/packets/form.md +86 -0
- package/session-distill/packets/judge.md +81 -0
- package/session-distill/packets/placement_contract.md +90 -0
- package/session-distill/packets/propose.md +124 -0
- package/session-distill/packets/read.md +57 -0
- package/session-distill/packets/reconsider.md +53 -0
- package/session-distill/packets/s7b.md +65 -0
- package/session-distill/packets/s9b.md +39 -0
- package/session-distill/packets/stitch.md +35 -0
- package/session-distill/packets/sweep.md +33 -0
- package/session-distill/runlib/__init__.py +0 -0
- package/session-distill/runlib/bound.py +1102 -0
- package/session-distill/runlib/breaker.py +467 -0
- package/session-distill/runlib/census.py +2347 -0
- package/session-distill/runlib/claims.py +420 -0
- package/session-distill/runlib/controls.py +902 -0
- package/session-distill/runlib/coverage.py +881 -0
- package/session-distill/runlib/declare.py +888 -0
- package/session-distill/runlib/delivery_evidence.py +1145 -0
- package/session-distill/runlib/derive.py +812 -0
- package/session-distill/runlib/destinations.py +3072 -0
- package/session-distill/runlib/dispatch.py +7939 -0
- package/session-distill/runlib/drift.py +1077 -0
- package/session-distill/runlib/entry.py +401 -0
- package/session-distill/runlib/evidence.py +890 -0
- package/session-distill/runlib/exposure.py +1162 -0
- package/session-distill/runlib/gate.py +2727 -0
- package/session-distill/runlib/gitread.py +79 -0
- package/session-distill/runlib/inventory.py +19624 -0
- package/session-distill/runlib/journal.py +1919 -0
- package/session-distill/runlib/ledger.py +3210 -0
- package/session-distill/runlib/ledger_compat.py +101 -0
- package/session-distill/runlib/ledger_migration.py +190 -0
- package/session-distill/runlib/lifecycle_intake.py +693 -0
- package/session-distill/runlib/lineage.py +454 -0
- package/session-distill/runlib/measures.py +249 -0
- package/session-distill/runlib/monitor.py +1180 -0
- package/session-distill/runlib/operations.py +522 -0
- package/session-distill/runlib/packet.py +838 -0
- package/session-distill/runlib/placement.py +1769 -0
- package/session-distill/runlib/projection.py +4090 -0
- package/session-distill/runlib/ranking.py +740 -0
- package/session-distill/runlib/receipts.py +200 -0
- package/session-distill/runlib/records.py +1965 -0
- package/session-distill/runlib/search.py +249 -0
- package/session-distill/runlib/sequencing.py +829 -0
- package/session-distill/runlib/sources.py +641 -0
- package/session-distill/runlib/stage_adjudicate.py +845 -0
- package/session-distill/runlib/stage_apply.py +1378 -0
- package/session-distill/runlib/stage_approvals.py +758 -0
- package/session-distill/runlib/stage_close.py +1220 -0
- package/session-distill/runlib/stage_confirm.py +929 -0
- package/session-distill/runlib/stage_delivery.py +3080 -0
- package/session-distill/runlib/stage_form.py +2576 -0
- package/session-distill/runlib/stage_judge.py +4248 -0
- package/session-distill/runlib/stage_propose.py +3307 -0
- package/session-distill/runlib/stage_read.py +5179 -0
- package/session-distill/runlib/stage_render.py +2739 -0
- package/session-distill/runlib/stage_retrieve.py +924 -0
- package/session-distill/runlib/stage_review_korean.py +1002 -0
- package/session-distill/runlib/stage_review_proposals.py +1292 -0
- package/session-distill/runlib/stagelock.py +412 -0
- package/session-distill/runlib/stop.py +1061 -0
- package/session-distill/runlib/targets.py +809 -0
- package/session-distill/runlib/usage.py +280 -0
- package/session-distill/runlib/validate.py +319 -0
- package/session-distill/runlib/views.py +4327 -0
- package/session-distill/schemas/adjudication.schema.json +35 -0
- package/session-distill/schemas/approval.schema.json +35 -0
- package/session-distill/schemas/census.schema.json +128 -0
- package/session-distill/schemas/checks.schema.json +207 -0
- package/session-distill/schemas/claim.schema.json +16 -0
- package/session-distill/schemas/confirmation.schema.json +24 -0
- package/session-distill/schemas/coverage.schema.json +66 -0
- package/session-distill/schemas/cross_review.schema.json +24 -0
- package/session-distill/schemas/event.schema.json +20 -0
- package/session-distill/schemas/evidence.schema.json +20 -0
- package/session-distill/schemas/expected_observation.schema.json +18 -0
- package/session-distill/schemas/form.schema.json +103 -0
- package/session-distill/schemas/intake.schema.json +71 -0
- package/session-distill/schemas/inventory.schema.json +872 -0
- package/session-distill/schemas/judge.schema.json +77 -0
- package/session-distill/schemas/ledger.schema.json +313 -0
- package/session-distill/schemas/observation.schema.json +16 -0
- package/session-distill/schemas/propose.schema.json +555 -0
- package/session-distill/schemas/read.schema.json +76 -0
- package/session-distill/schemas/reconsider.schema.json +122 -0
- package/session-distill/schemas/run.schema.json +150 -0
- package/session-distill/schemas/s7b.schema.json +200 -0
- package/session-distill/schemas/s9b.schema.json +28 -0
- package/session-distill/schemas/stitch.schema.json +25 -0
- package/session-distill/schemas/sweep.schema.json +25 -0
- package/session-distill/seats.json +149 -0
- package/session-distill/tables/allowed_pairs.json +257 -0
- package/session-distill/tables/controls.json +30 -0
- package/session-distill/tables/delivery_evidence.json +36 -0
- package/session-distill/tables/delivery_evidence_fixtures.json +731 -0
- package/session-distill/tables/destinations.json +684 -0
- package/session-distill/tables/drift_layers.json +68 -0
- package/session-distill/tables/exposure_rules.json +192 -0
- package/session-distill/tables/placement_rules.json +148 -0
- package/session-distill/tables/propose_fixtures.json +154 -0
- package/session-distill/tables/ranking.json +194 -0
- package/session-distill/tables/redundancy.json +10 -0
- package/session-distill/tables/structural_rules.json +44 -0
- package/session-distill/tables/transition_fixtures.json +398 -0
- package/session-distill/tables/transitions.json +69 -0
- package/session-distill/tables/unit_outcome.json +67 -0
- package/session-distill/tables/unit_outcome_fixtures.json +2364 -0
- package/wrappers/claude-run.sh +481 -33
- package/wrappers/claude_hermetic_evidence.py +1423 -0
- package/wrappers/codex-helm.sh +44 -13
- package/wrappers/codex-run.sh +183 -20
- package/wrappers/codex_frame_filter.py +1199 -0
- package/wrappers/codex_protocol.py +737 -0
- package/wrappers/jsonl_lines.py +65 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The §7.5 total order over review rows, as DATA. The module computes a key from these rows and judges nothing they do not say. Each ordered list is copied from the design sentence quoted in `design`, and `runlib/stage_propose.py` holds the same sentence as DESIGN_7_5 and compares the two, so a one-sided edit fails rather than drifts.",
|
|
3
|
+
"design": "A total order over all review rows, computed by code and printed per row: status group (§9), consequence class (irreversible, security, verification-corrupting, cost, quality, none), affirmed independent lineages (descending), kind (misfire, gap, not delivered, obsolete, confirmed, already resolved, unclassified), diagnosis (trigger problem, wrong or insufficient, gap, redundant, covered, unknown), change before no-change, candidate id.",
|
|
4
|
+
"keys": [
|
|
5
|
+
{
|
|
6
|
+
"id": "status_group",
|
|
7
|
+
"direction": "ascending",
|
|
8
|
+
"source": "groups",
|
|
9
|
+
"$comment": "§9's grouping, which is the first key because the report is grouped by it."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "consequence",
|
|
13
|
+
"direction": "ascending",
|
|
14
|
+
"source": "consequence_classes"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "lineages",
|
|
18
|
+
"direction": "descending",
|
|
19
|
+
"source": "affirmed independent lineages",
|
|
20
|
+
"$comment": "The one numeric key, and the only descending one: more affirmed lineages first."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "owner_resolves",
|
|
24
|
+
"direction": "ascending",
|
|
25
|
+
"source": "the S7b review's own owner_resolves",
|
|
26
|
+
"values": {
|
|
27
|
+
"true": 0,
|
|
28
|
+
"absent": 1,
|
|
29
|
+
"false": 1
|
|
30
|
+
},
|
|
31
|
+
"design": "plan amendment 2026-11-11T0040 (release 1 ships distill without S8), the WP-20 row: \"the §7.5 order falls back to the judges and S7b, and the header names the fallback\".",
|
|
32
|
+
"$comment": "This key rests on the AMENDMENT, not on §7.5. §7.5's own seven keys carry no S7b part: with S8 deferred no row can be tested, so the ordering signal S8 would have supplied is replaced by the two that remain - the judges' (already here as `lineages`, the affirmed independent lineages S6's judges agree on) and S7b's, which is this key. It sits after `lineages` and before `kind` so the two fallback signals are adjacent and both ahead of the structural keys. A row whose S7b review disagrees and leaves the question to the owner (`owner_resolves` true) sorts FIRST, because the owner reading the report is the person who resolves it. A row that carries no S7b record at all is NEUTRAL, not last: it ranks exactly where S7's own keys put it, so adding the key cannot reorder a run that has no reviews. The direction of the first group is a lead decision, since the amendment's sentence says the order falls back to S7b without saying which way; revisit the key when S8 lands and §7.5's test signal returns."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "kind",
|
|
36
|
+
"direction": "ascending",
|
|
37
|
+
"source": "kind_order"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "diagnosis",
|
|
41
|
+
"direction": "ascending",
|
|
42
|
+
"source": "diagnosis_order"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "change",
|
|
46
|
+
"direction": "ascending",
|
|
47
|
+
"source": "change_order",
|
|
48
|
+
"$comment": "\"change before no-change\": whether the disposition changes the library."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "candidate_id",
|
|
52
|
+
"direction": "ascending",
|
|
53
|
+
"source": "the candidate's own id",
|
|
54
|
+
"$comment": "The last key, and the only one that cannot tie, which is what makes the order total."
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"consequence_classes": [
|
|
58
|
+
"irreversible",
|
|
59
|
+
"security",
|
|
60
|
+
"verification-corrupting",
|
|
61
|
+
"cost",
|
|
62
|
+
"quality",
|
|
63
|
+
"none"
|
|
64
|
+
],
|
|
65
|
+
"kind_order": [
|
|
66
|
+
"misfire",
|
|
67
|
+
"gap",
|
|
68
|
+
"not delivered",
|
|
69
|
+
"obsolete",
|
|
70
|
+
"confirmed",
|
|
71
|
+
"already resolved",
|
|
72
|
+
"unclassified"
|
|
73
|
+
],
|
|
74
|
+
"diagnosis_order": [
|
|
75
|
+
"trigger problem",
|
|
76
|
+
"wrong or insufficient",
|
|
77
|
+
"gap",
|
|
78
|
+
"redundant",
|
|
79
|
+
"covered",
|
|
80
|
+
"unknown"
|
|
81
|
+
],
|
|
82
|
+
"change_order": [
|
|
83
|
+
"change",
|
|
84
|
+
"no-change"
|
|
85
|
+
],
|
|
86
|
+
"groups": [
|
|
87
|
+
{
|
|
88
|
+
"id": "proposed_and_tested",
|
|
89
|
+
"members": [
|
|
90
|
+
{
|
|
91
|
+
"field": "status",
|
|
92
|
+
"value": "proposed"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"field": "status",
|
|
96
|
+
"value": "tested"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"field": "status",
|
|
100
|
+
"value": "untested"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"$comment": "§9 names this group \"proposed and tested\". `untested` is in it for release 1 and for release 1's reason: S8 is deferred (D-818391), so no row can be `tested` and an untested row is a proposed row whose test stage does not run - not a row offered for testing and skipped. The report prints it as `proposed (untested: s8_deferred)` through `test_state_label`. §9's sentence does not name `untested` itself, so this placement rests on the deferral rather than on that sentence, and it is the entry to revisit when S8 lands: with S8 running, an untested row means something §9 has not placed."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "disputed",
|
|
107
|
+
"members": [
|
|
108
|
+
{
|
|
109
|
+
"field": "status",
|
|
110
|
+
"value": "disputed"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"$comment": "§9 writes it \"disputed (adjudicate)\": the parenthesis names what the owner does with the group, not a second status."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"id": "confirmed_and_keep",
|
|
117
|
+
"members": [
|
|
118
|
+
{
|
|
119
|
+
"field": "status",
|
|
120
|
+
"value": "confirmed"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"field": "kind",
|
|
124
|
+
"value": "confirmed"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"field": "disposition",
|
|
128
|
+
"value": "keep"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "already_resolved_and_unclassified",
|
|
134
|
+
"members": [
|
|
135
|
+
{
|
|
136
|
+
"field": "kind",
|
|
137
|
+
"value": "already resolved"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"field": "kind",
|
|
141
|
+
"value": "unclassified"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "rejected",
|
|
147
|
+
"members": [
|
|
148
|
+
{
|
|
149
|
+
"field": "status",
|
|
150
|
+
"value": "rejected"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": "quarantined_or_failed",
|
|
156
|
+
"members": [
|
|
157
|
+
{
|
|
158
|
+
"field": "status",
|
|
159
|
+
"value": "quarantined"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"field": "status",
|
|
163
|
+
"value": "delivery_failed"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"field": "status",
|
|
167
|
+
"value": "failed"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"field": "status",
|
|
171
|
+
"value": "returned"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"$comment": "§9's population sentence names \"every quarantined or failed item\", so `failed` is a status this group holds by §9's own words: WP-20 uses it for an item that failed upstream - an S5 check that did not pass, an S6 candidate in `not_derived`, an S7 answer returned. `returned` is here by the same sentence read one step further: §10.4 says an ineligible item is RETURNED with the failing condition named, which is a failure of eligibility and nothing else in §9's population. Before both were members, a returned proposal fell into the resolved/unclassified group by its KIND, and a returned row whose kind is gap was refused outright - which is how lane E found this."
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"groups_design": "Rows appear in the single total order of §7.5, grouped by status: proposed and tested; disputed (adjudicate); confirmed and keep; already resolved and unclassified; rejected; quarantined or failed.",
|
|
178
|
+
"groups_note": "§9 calls this grouping \"by status\", and four of the six groups are indeed named by statuses of §7.2. Two are not: \"confirmed and keep\" names a status, a KIND (confirmed) and a DISPOSITION (keep), and \"already resolved and unclassified\" names two kinds only. So each member carries the field it belongs to, and the module places a row in two passes: a status a group names decides first, since §9 says the rows are grouped by status; a row whose status no group holds is then placed by its kind or its disposition. Without the second pass those two groups would be unreachable for the rows they exist for, because an approved keep carries a status §9 never mentions. A row no pass places is a named problem (ROW_GROUP_UNDECLARED), never a silent last bucket. This reading is recorded as an interpretation with the sentence it rests on.",
|
|
179
|
+
"unplaced_statuses": [
|
|
180
|
+
"admitted",
|
|
181
|
+
"approved",
|
|
182
|
+
"applied",
|
|
183
|
+
"delivery_verified"
|
|
184
|
+
],
|
|
185
|
+
"unplaced_note": "The statuses of §7.2 that no group sentence holds. A row carrying one is placed by its kind or disposition in the second pass, and refused by name only when neither places it either - so the gap is visible and countable rather than discovered by a row falling through. When §9 is extended, a status moves into a group and leaves this list in the same change. `returned` and `untested` left this list on 2026-11-12: the first by §9's population sentence, the second by release 1's deferral of S8, each with its reason in its group's comment.",
|
|
186
|
+
"test_state_label": {
|
|
187
|
+
"applies_to_status": [
|
|
188
|
+
"proposed",
|
|
189
|
+
"untested"
|
|
190
|
+
],
|
|
191
|
+
"format": "{status} ({test_state})",
|
|
192
|
+
"$comment": "Release 1 defers S8 (D-818391), so no row is `tested` and every row of the first group carries a test state instead. The report prints `<status> (<test state>)` for the statuses listed here; the label never decides a group, which is the status's job."
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Design §7.1's redundancy hints (plan WP-09 done-when 3 (d); lead decision D5 and its scope, WP-09 stage 0): code pairs the operative units of the current library whose BM25 similarity reaches a fixed threshold. Read by session-distill/runlib/lifecycle_intake.py. The similarity of a pair is the smaller of the two directions, each BM25 of one unit's keys over the other divided by that unit's BM25 over itself. Units of identical text (one fragment sha) are one instruction delivered by several carriers: they are folded into one before pairing and counted, never paired with each other. A unit with fewer than min_keys distinct keys (a JSON value, a bare marker) is too short to be an instruction anyone merges and is left out, counted.",
|
|
3
|
+
"threshold": 0.7,
|
|
4
|
+
"min_keys": 3,
|
|
5
|
+
"ceiling": 200,
|
|
6
|
+
"basis": "measured 2026-11-06 (work/impl/wp09/logs/redundancy-measure-1.log and -2.log) on the 1,435 operative units of this repository's shipped instructions and on C2-pre w1's current inventory (3,022 eligible operative units, 2,346 distinct texts): planted near-duplicates of 40 units (one word changed, the last fifth dropped, halves swapped, every fourth word dropped) score 0.725 at least, so 0.7 finds every one; with identical texts folded and units of fewer than 3 keys left out, 0.7 pairs 13 of the repository's units and 17 of w1's (0.6 would pair 32 and 40). Without the folding and the floor, 532 one- or two-key units of w1 form one clique of 141,250 pairs at 0.9. The ceiling is about ten times w1's count; above it the threshold is measured again.",
|
|
7
|
+
"excluded_layers": {
|
|
8
|
+
"native_undivided": "the host's own base instructions (Codex base_instructions), captured once per scope: not instructions the owner can reduce, and the same text repeated per scope turns about 3,000 operative units into about 22,700 (C2-pre, 2026-11-06); lead decision on D5's scope"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "design §7.3's structural rules, plus §10.4's ledger-only rule, as data. `runlib/placement.py` applies them in this order and refuses by the row's `code`. Every row names the design sentence it comes from, and `placement.fidelity_problems` holds the list against the copied and cited sentences in that module's suite.",
|
|
3
|
+
"operations": {
|
|
4
|
+
"$comment": "§7.3's typed operations. `merge` is executed as deletes plus one edit and is labelled merge for the global rule (§13.1), so the label is part of the data rather than a reader's inference.",
|
|
5
|
+
"types": ["create", "edit", "delete", "merge", "route"],
|
|
6
|
+
"library": ["create", "edit", "delete", "merge", "route"],
|
|
7
|
+
"global_files": ["claude/CLAUDE.md", "ko/claude/CLAUDE.md"],
|
|
8
|
+
"$comment_global": "the always-loaded global file and its Korean counterpart: §13.1's gate compares `claude/CLAUDE.md`, and the Korean file is the same surface in the other language, so a growth there is the same change. `codex/AGENTS.md` is not listed: it is a generated projection and no proposal may edit it by hand (AGENTS.md §4).",
|
|
9
|
+
"global_allowed": ["delete", "merge"],
|
|
10
|
+
"before_state_hash_required": ["create", "edit", "delete", "merge", "route"]
|
|
11
|
+
},
|
|
12
|
+
"rules": [
|
|
13
|
+
{"id": "global_op", "code": "GLOBAL_OP_DISALLOWED",
|
|
14
|
+
"design": "Global-file operations other than delete and merge are rejected",
|
|
15
|
+
"applies_to": "an operation whose target is the always-loaded global file",
|
|
16
|
+
"requires": "the operation's type is one of operations.global_allowed"},
|
|
17
|
+
{"id": "incubate_expiry", "code": "EXPIRY_REQUIRED",
|
|
18
|
+
"design": "an incubate without observation and expiry",
|
|
19
|
+
"applies_to": "a proposal whose disposition is incubate",
|
|
20
|
+
"requires": "the proposal carries an expected observation and an expiry"},
|
|
21
|
+
{"id": "keep_reason", "code": "REASON_REQUIRED",
|
|
22
|
+
"design": "keep or drop without reason",
|
|
23
|
+
"applies_to": "a proposal whose disposition is keep or drop",
|
|
24
|
+
"requires": "the proposal carries a reason"},
|
|
25
|
+
{"id": "pair", "code": "PAIR_DISALLOWED",
|
|
26
|
+
"design": "a disposition the promotion eligibility or §7.2 does not allow",
|
|
27
|
+
"applies_to": "every proposal",
|
|
28
|
+
"requires": "the (kind, diagnosis, disposition) triple is a row of tables/allowed_pairs.json, and its condition holds"},
|
|
29
|
+
{"id": "promotion", "code": "PAIR_DISALLOWED",
|
|
30
|
+
"$comment": "the same code, because §7.2 and the promotion bar are one sentence in the design: a disposition neither allows is the same refusal. The row is separate so the reason says which of the two closed it.",
|
|
31
|
+
"design": "a disposition the promotion eligibility or §7.2 does not allow",
|
|
32
|
+
"applies_to": "a proposal for a candidate below the promotion bar",
|
|
33
|
+
"requires": "the disposition is one of incubate, keep, drop, none"},
|
|
34
|
+
{"id": "keep_record", "code": "KEEP_GUARDED",
|
|
35
|
+
"design": "a `reduce` or `merge` touching a unit with an active `keep` record unless the proposal names the record",
|
|
36
|
+
"applies_to": "a reduce disposition, or a merge operation, touching a unit with an active keep record",
|
|
37
|
+
"requires": "the proposal names that keep record"},
|
|
38
|
+
{"id": "ledger_only", "code": "LEDGER_ONLY_VIOLATED",
|
|
39
|
+
"$comment": "design §10.4, carried here because it is a structural property of the proposal and not of its placement: the plan's done-when 6.",
|
|
40
|
+
"design": "Keep/incubate/drop proposals carry no library operations and `requires_test == false`",
|
|
41
|
+
"applies_to": "a proposal whose disposition is keep, incubate or drop",
|
|
42
|
+
"requires": "the proposal carries no library operation and its requires_test is false"}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "design §12.3: one frozen fixture per allowed cell of tables/transitions.json, written once by `runlib/ledger.py --generate-transition-fixtures`; the self-test never regenerates them.",
|
|
3
|
+
"fixtures": [
|
|
4
|
+
{
|
|
5
|
+
"id": "absorbed_retired/drop",
|
|
6
|
+
"row": "absorbed_retired",
|
|
7
|
+
"disposition": "drop",
|
|
8
|
+
"before": "retired",
|
|
9
|
+
"updates": {},
|
|
10
|
+
"after": {
|
|
11
|
+
"new_entry": false,
|
|
12
|
+
"status": "unchanged",
|
|
13
|
+
"effects": []
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "absorbed_retired/incubate",
|
|
18
|
+
"row": "absorbed_retired",
|
|
19
|
+
"disposition": "incubate",
|
|
20
|
+
"before": "retired",
|
|
21
|
+
"updates": {},
|
|
22
|
+
"after": {
|
|
23
|
+
"new_entry": false,
|
|
24
|
+
"status": "incubating",
|
|
25
|
+
"effects": [
|
|
26
|
+
"revival"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "absorbed_retired/none",
|
|
32
|
+
"row": "absorbed_retired",
|
|
33
|
+
"disposition": "none",
|
|
34
|
+
"before": "retired",
|
|
35
|
+
"updates": {},
|
|
36
|
+
"after": {
|
|
37
|
+
"new_entry": false,
|
|
38
|
+
"status": "unchanged",
|
|
39
|
+
"effects": []
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "absorbed_retired/place",
|
|
44
|
+
"row": "absorbed_retired",
|
|
45
|
+
"disposition": "place",
|
|
46
|
+
"before": "retired",
|
|
47
|
+
"updates": {},
|
|
48
|
+
"after": {
|
|
49
|
+
"new_entry": false,
|
|
50
|
+
"status": "placed",
|
|
51
|
+
"effects": [
|
|
52
|
+
"revival"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "incubating/correct",
|
|
58
|
+
"row": "incubating",
|
|
59
|
+
"disposition": "correct",
|
|
60
|
+
"before": "incubating",
|
|
61
|
+
"updates": {
|
|
62
|
+
"lesson": "a revised lesson"
|
|
63
|
+
},
|
|
64
|
+
"after": {
|
|
65
|
+
"new_entry": false,
|
|
66
|
+
"status": "incubating",
|
|
67
|
+
"effects": [
|
|
68
|
+
"text_revised"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "incubating/drop",
|
|
74
|
+
"row": "incubating",
|
|
75
|
+
"disposition": "drop",
|
|
76
|
+
"before": "incubating",
|
|
77
|
+
"updates": {},
|
|
78
|
+
"after": {
|
|
79
|
+
"new_entry": false,
|
|
80
|
+
"status": "retired",
|
|
81
|
+
"effects": []
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "incubating/incubate",
|
|
86
|
+
"row": "incubating",
|
|
87
|
+
"disposition": "incubate",
|
|
88
|
+
"before": "incubating",
|
|
89
|
+
"updates": {},
|
|
90
|
+
"after": {
|
|
91
|
+
"new_entry": false,
|
|
92
|
+
"status": "incubating",
|
|
93
|
+
"effects": [
|
|
94
|
+
"expiry_renewed"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "incubating/none",
|
|
100
|
+
"row": "incubating",
|
|
101
|
+
"disposition": "none",
|
|
102
|
+
"before": "incubating",
|
|
103
|
+
"updates": {},
|
|
104
|
+
"after": {
|
|
105
|
+
"new_entry": false,
|
|
106
|
+
"status": "unchanged",
|
|
107
|
+
"effects": []
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "incubating/place",
|
|
112
|
+
"row": "incubating",
|
|
113
|
+
"disposition": "place",
|
|
114
|
+
"before": "incubating",
|
|
115
|
+
"updates": {},
|
|
116
|
+
"after": {
|
|
117
|
+
"new_entry": false,
|
|
118
|
+
"status": "placed",
|
|
119
|
+
"effects": []
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "no_entry_existing_unit/correct",
|
|
124
|
+
"row": "no_entry_existing_unit",
|
|
125
|
+
"disposition": "correct",
|
|
126
|
+
"before": null,
|
|
127
|
+
"updates": {},
|
|
128
|
+
"after": {
|
|
129
|
+
"new_entry": true,
|
|
130
|
+
"status": "placed",
|
|
131
|
+
"effects": []
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "no_entry_existing_unit/drop",
|
|
136
|
+
"row": "no_entry_existing_unit",
|
|
137
|
+
"disposition": "drop",
|
|
138
|
+
"before": null,
|
|
139
|
+
"updates": {},
|
|
140
|
+
"after": {
|
|
141
|
+
"new_entry": true,
|
|
142
|
+
"status": "placed",
|
|
143
|
+
"effects": [
|
|
144
|
+
"dropped_intervention"
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "no_entry_existing_unit/incubate",
|
|
150
|
+
"row": "no_entry_existing_unit",
|
|
151
|
+
"disposition": "incubate",
|
|
152
|
+
"before": null,
|
|
153
|
+
"updates": {},
|
|
154
|
+
"after": {
|
|
155
|
+
"new_entry": true,
|
|
156
|
+
"status": "placed",
|
|
157
|
+
"effects": [
|
|
158
|
+
"pending_intervention"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "no_entry_existing_unit/keep",
|
|
164
|
+
"row": "no_entry_existing_unit",
|
|
165
|
+
"disposition": "keep",
|
|
166
|
+
"before": null,
|
|
167
|
+
"updates": {
|
|
168
|
+
"keep": {
|
|
169
|
+
"units": [
|
|
170
|
+
"unit-1"
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"after": {
|
|
175
|
+
"new_entry": true,
|
|
176
|
+
"status": "placed",
|
|
177
|
+
"effects": [
|
|
178
|
+
"keep_record"
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": "no_entry_existing_unit/none",
|
|
184
|
+
"row": "no_entry_existing_unit",
|
|
185
|
+
"disposition": "none",
|
|
186
|
+
"before": null,
|
|
187
|
+
"updates": {},
|
|
188
|
+
"after": {
|
|
189
|
+
"new_entry": false,
|
|
190
|
+
"status": null,
|
|
191
|
+
"effects": []
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "no_entry_existing_unit/re-deliver",
|
|
196
|
+
"row": "no_entry_existing_unit",
|
|
197
|
+
"disposition": "re-deliver",
|
|
198
|
+
"before": null,
|
|
199
|
+
"updates": {},
|
|
200
|
+
"after": {
|
|
201
|
+
"new_entry": true,
|
|
202
|
+
"status": "placed",
|
|
203
|
+
"effects": []
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": "no_entry_existing_unit/reduce_delete",
|
|
208
|
+
"row": "no_entry_existing_unit",
|
|
209
|
+
"disposition": "reduce_delete",
|
|
210
|
+
"before": null,
|
|
211
|
+
"updates": {},
|
|
212
|
+
"after": {
|
|
213
|
+
"new_entry": true,
|
|
214
|
+
"status": "retired",
|
|
215
|
+
"effects": []
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": "no_entry_existing_unit/reduce_merge",
|
|
220
|
+
"row": "no_entry_existing_unit",
|
|
221
|
+
"disposition": "reduce_merge",
|
|
222
|
+
"before": null,
|
|
223
|
+
"updates": {
|
|
224
|
+
"absorbed_by": "G-0"
|
|
225
|
+
},
|
|
226
|
+
"after": {
|
|
227
|
+
"new_entry": true,
|
|
228
|
+
"status": "absorbed",
|
|
229
|
+
"effects": [
|
|
230
|
+
"allocate_destination_entry"
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": "no_entry_new_learning/drop",
|
|
236
|
+
"row": "no_entry_new_learning",
|
|
237
|
+
"disposition": "drop",
|
|
238
|
+
"before": null,
|
|
239
|
+
"updates": {},
|
|
240
|
+
"after": {
|
|
241
|
+
"new_entry": true,
|
|
242
|
+
"status": "retired",
|
|
243
|
+
"effects": [
|
|
244
|
+
"never_placed"
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": "no_entry_new_learning/incubate",
|
|
250
|
+
"row": "no_entry_new_learning",
|
|
251
|
+
"disposition": "incubate",
|
|
252
|
+
"before": null,
|
|
253
|
+
"updates": {},
|
|
254
|
+
"after": {
|
|
255
|
+
"new_entry": true,
|
|
256
|
+
"status": "incubating",
|
|
257
|
+
"effects": []
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": "no_entry_new_learning/none",
|
|
262
|
+
"row": "no_entry_new_learning",
|
|
263
|
+
"disposition": "none",
|
|
264
|
+
"before": null,
|
|
265
|
+
"updates": {},
|
|
266
|
+
"after": {
|
|
267
|
+
"new_entry": false,
|
|
268
|
+
"status": null,
|
|
269
|
+
"effects": []
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "no_entry_new_learning/place",
|
|
274
|
+
"row": "no_entry_new_learning",
|
|
275
|
+
"disposition": "place",
|
|
276
|
+
"before": null,
|
|
277
|
+
"updates": {},
|
|
278
|
+
"after": {
|
|
279
|
+
"new_entry": true,
|
|
280
|
+
"status": "placed",
|
|
281
|
+
"effects": []
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": "placed/correct",
|
|
286
|
+
"row": "placed",
|
|
287
|
+
"disposition": "correct",
|
|
288
|
+
"before": "placed",
|
|
289
|
+
"updates": {},
|
|
290
|
+
"after": {
|
|
291
|
+
"new_entry": false,
|
|
292
|
+
"status": "unchanged",
|
|
293
|
+
"effects": []
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"id": "placed/drop",
|
|
298
|
+
"row": "placed",
|
|
299
|
+
"disposition": "drop",
|
|
300
|
+
"before": "placed",
|
|
301
|
+
"updates": {},
|
|
302
|
+
"after": {
|
|
303
|
+
"new_entry": false,
|
|
304
|
+
"status": "unchanged",
|
|
305
|
+
"effects": [
|
|
306
|
+
"dropped_intervention"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"id": "placed/incubate",
|
|
312
|
+
"row": "placed",
|
|
313
|
+
"disposition": "incubate",
|
|
314
|
+
"before": "placed",
|
|
315
|
+
"updates": {},
|
|
316
|
+
"after": {
|
|
317
|
+
"new_entry": false,
|
|
318
|
+
"status": "unchanged",
|
|
319
|
+
"effects": [
|
|
320
|
+
"pending_intervention"
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"id": "placed/keep",
|
|
326
|
+
"row": "placed",
|
|
327
|
+
"disposition": "keep",
|
|
328
|
+
"before": "placed",
|
|
329
|
+
"updates": {
|
|
330
|
+
"keep": {
|
|
331
|
+
"units": [
|
|
332
|
+
"unit-1"
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"after": {
|
|
337
|
+
"new_entry": false,
|
|
338
|
+
"status": "unchanged",
|
|
339
|
+
"effects": [
|
|
340
|
+
"keep_record"
|
|
341
|
+
]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"id": "placed/none",
|
|
346
|
+
"row": "placed",
|
|
347
|
+
"disposition": "none",
|
|
348
|
+
"before": "placed",
|
|
349
|
+
"updates": {},
|
|
350
|
+
"after": {
|
|
351
|
+
"new_entry": false,
|
|
352
|
+
"status": "unchanged",
|
|
353
|
+
"effects": []
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"id": "placed/re-deliver",
|
|
358
|
+
"row": "placed",
|
|
359
|
+
"disposition": "re-deliver",
|
|
360
|
+
"before": "placed",
|
|
361
|
+
"updates": {},
|
|
362
|
+
"after": {
|
|
363
|
+
"new_entry": false,
|
|
364
|
+
"status": "unchanged",
|
|
365
|
+
"effects": []
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"id": "placed/reduce_delete",
|
|
370
|
+
"row": "placed",
|
|
371
|
+
"disposition": "reduce_delete",
|
|
372
|
+
"before": "placed",
|
|
373
|
+
"updates": {},
|
|
374
|
+
"after": {
|
|
375
|
+
"new_entry": false,
|
|
376
|
+
"status": "retired",
|
|
377
|
+
"effects": []
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"id": "placed/reduce_merge",
|
|
382
|
+
"row": "placed",
|
|
383
|
+
"disposition": "reduce_merge",
|
|
384
|
+
"before": "placed",
|
|
385
|
+
"updates": {
|
|
386
|
+
"absorbed_by": "G-0"
|
|
387
|
+
},
|
|
388
|
+
"after": {
|
|
389
|
+
"new_entry": false,
|
|
390
|
+
"status": "absorbed",
|
|
391
|
+
"effects": [
|
|
392
|
+
"absorbed_by",
|
|
393
|
+
"receiver_merge_decision"
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
}
|