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,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "The hosts distill dispatches to, pinned per host version: the versioned binary (plan P2: the file itself, never a symlink an update moves), the flag set of each runner profile (its sha256 is what a receipt and a capture must carry; `wrappers/claude-run.sh` sends `hermetic` for `--use judge|authoring` and `hermetic-producing` for `--use producing`, whose manifest directory is hashed as `<manifest>`), and `context`, what the host loads by itself under a profile, which dispatch.py declares in every call's manifest (codex-cli's built-in skills, as codex-run's capture records them by name: wrappers/codex_frame_filter.py, WP-04), and the auxiliary roles a host runs beside the declared seat (design §3.2 step 2, plan S-7). Read by runlib/gate.py (flag-set hash, auxiliary roles) and runlib/dispatch.py (pinned paths). An auxiliary role is accepted only in a call's closing aggregate, never as a main or child response, and for a live call only once `measured` is true (gate.auxiliary_models); a provisional entry serves replayed and golden captures. The request kind an auxiliary role serves is added by preflight (WP-23) together with the check that reads it. `stage_seats` pins each model stage's seats from design §4's stage table (the defaults a run may use without declaring them; run.json seats add to them), read by dispatch.py, which refuses a seat neither names for the call's stage. `host_allowance` is the host's own share of a view-window request, per host version and runner profile (the input-bound amendment of 2026-10-21): preflight (WP-23) measures it; a slot preflight has not measured is unmeasured, and dispatch.py refuses a view-window call that needs it; the Claude hermetic slot was measured live in WP-03v. Everything measured or observed for a host is valid at the version it was established at, and says which: a measured host allowance its `measured_version`, a profile's `context` its `observed_version` (or `carried`, with the basis for carrying it to the pinned version until a capture observes it), a seat capacity its `host_version`. A version move takes each of them with it: re-measure it, mark it unmeasured, or declare it carried. gate.seats_problems holds the file to that, and to a pinned path that names its version.",
|
|
3
|
+
"schema": "DistillSeats/v1",
|
|
4
|
+
"hosts": {
|
|
5
|
+
"claude": {
|
|
6
|
+
"version": "2.1.317",
|
|
7
|
+
"path": "~/.local/share/claude/versions/2.1.317",
|
|
8
|
+
"profiles": {
|
|
9
|
+
"hermetic": [
|
|
10
|
+
"--safe-mode",
|
|
11
|
+
"--setting-sources",
|
|
12
|
+
"",
|
|
13
|
+
"--strict-mcp-config",
|
|
14
|
+
"--disable-slash-commands",
|
|
15
|
+
"--tools",
|
|
16
|
+
""
|
|
17
|
+
],
|
|
18
|
+
"hermetic-producing": [
|
|
19
|
+
"--safe-mode",
|
|
20
|
+
"--setting-sources",
|
|
21
|
+
"",
|
|
22
|
+
"--strict-mcp-config",
|
|
23
|
+
"--disable-slash-commands",
|
|
24
|
+
"--tools",
|
|
25
|
+
"Read",
|
|
26
|
+
"--allowedTools",
|
|
27
|
+
"Read(//<manifest>/**)",
|
|
28
|
+
"--permission-mode",
|
|
29
|
+
"dontAsk"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"auxiliary": [
|
|
33
|
+
{
|
|
34
|
+
"model": "claude-haiku-4-5",
|
|
35
|
+
"measured": false,
|
|
36
|
+
"basis": "provisional: the auxiliary model this host was seen to run beside a declared seat before this file declared it; preflight (WP-23) measures the roles per host version and replaces this entry"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"host_allowance": {
|
|
40
|
+
"hermetic": {
|
|
41
|
+
"allowance_tokens": 3795,
|
|
42
|
+
"measured": true,
|
|
43
|
+
"measured_version": "2.1.317",
|
|
44
|
+
"basis": "A-1 re-pin 2026-11-04 (WP-08 commit 6): observed main-request input tokens, max over 5 hermetic judge calls through dispatch (claude 2.1.317, claude-sonnet-5-5/high, stage S3, structured output; 3795, 3784, 3784, 3784, 3794); includes the packet, so it overstates the host's share. WP-03v measured 3886 the same way on 2.1.304 at /medium"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"codex": {
|
|
49
|
+
"version": "0.167.0",
|
|
50
|
+
"path": "/opt/homebrew/Caskroom/codex/0.167.0/bin/codex",
|
|
51
|
+
"profiles": {
|
|
52
|
+
"hermetic": [
|
|
53
|
+
"--ignore-user-config",
|
|
54
|
+
"--ephemeral",
|
|
55
|
+
"-c",
|
|
56
|
+
"project_doc_max_bytes=0"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"auxiliary": [],
|
|
60
|
+
"host_allowance": {
|
|
61
|
+
"hermetic": {
|
|
62
|
+
"allowance_tokens": 19167,
|
|
63
|
+
"measured": true,
|
|
64
|
+
"measured_version": "0.167.0",
|
|
65
|
+
"basis": "D13 re-pin 2026-11-12 from D7's live run at commit 6670341: observed main-request input tokens (input + cache read + cache creation), max over the 4 hermetic S6 calls through dispatch (codex-cli 0.167.0, structured output through the strict projection): gpt-6-astra/xhigh judge 19167 and 18829, gpt-6-astra/xhigh cross-review 16392, gpt-6-luna/medium sweep 15670; each call's warm-up request was 2 input tokens. Includes the packet and the handed schema (7.0 to 18.7 KB), so it overstates the host's share, as the Claude allowance does. It is the largest observed main-request input of a call, the packet and the schema it was handed included, so as an allowance it is an upper bound on the host's own share, not that share"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"context": {
|
|
69
|
+
"hermetic": {
|
|
70
|
+
"skills": [
|
|
71
|
+
"imagegen",
|
|
72
|
+
"openai-docs",
|
|
73
|
+
"skill-creator",
|
|
74
|
+
"skill-installer"
|
|
75
|
+
],
|
|
76
|
+
"observed_version": "0.167.0",
|
|
77
|
+
"basis": "the four built-in skills codex-cli loads under this profile, as its capture names them: observed at 0.163.0 (WP-04) and again at 0.167.0 in each of D7's four live calls on 2026-11-12 (commit 6670341), the same four"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"stage_seats": {
|
|
83
|
+
"$comment": "design §4: S3 claude-sonnet-5-5/high (plan amendment row 13, D-20261103-4b967e); S4 claude-opus-5-5/high; S6 A claude-opus-5-5/high, B gpt-6.1-sol/xhigh (owner, 2026-11-12, for the C3 run; the design named gpt-6-astra/xhigh), sweeps claude-sonnet-5-5/medium and gpt-6-luna/medium; S7 claude-opus-5-5/high; S7b gpt-6.1-sol/xhigh and S9b gpt-6.1-sol/high (owner, 2026-11-13, the same model as Judge B; the design named gpt-6-astra for both). S8 and S10b seat their actors from run.json actor_seats (design §8.4).",
|
|
84
|
+
"S3": [
|
|
85
|
+
"claude:claude-sonnet-5-5/high"
|
|
86
|
+
],
|
|
87
|
+
"S4": [
|
|
88
|
+
"claude:claude-opus-5-5/high"
|
|
89
|
+
],
|
|
90
|
+
"S6": [
|
|
91
|
+
"claude:claude-opus-5-5/high",
|
|
92
|
+
"codex:gpt-6.1-sol/xhigh",
|
|
93
|
+
"claude:claude-sonnet-5-5/medium",
|
|
94
|
+
"codex:gpt-6-luna/medium"
|
|
95
|
+
],
|
|
96
|
+
"S7": [
|
|
97
|
+
"claude:claude-opus-5-5/high"
|
|
98
|
+
],
|
|
99
|
+
"S7b": [
|
|
100
|
+
"codex:gpt-6.1-sol/xhigh"
|
|
101
|
+
],
|
|
102
|
+
"S9b": [
|
|
103
|
+
"codex:gpt-6.1-sol/high"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"seat_capacity": {
|
|
107
|
+
"$comment": "The seat's context window, as the host states it: host-reported where the host reports one, else the host's own model catalogue at the pinned version, the basis saying which. A view-window call on a seat with no entry here is refused (CAPACITY_UNDECLARED): check (d) is about the context, and an invented capacity is a check about nothing. Every seat stage_seats names has an entry (gate.seats_problems, CAPACITY_UNDECLARED).",
|
|
108
|
+
"claude:claude-sonnet-5-5/high": {
|
|
109
|
+
"context_capacity": 1000000,
|
|
110
|
+
"host_version": "2.1.317",
|
|
111
|
+
"basis": "host-reported modelUsage.contextWindow, A-1 re-pin 2026-11-04 (claude 2.1.317, claude-sonnet-5-5/high: one standalone hermetic call and five judge calls through dispatch, all 1000000; maxOutputTokens 128000 in the same records)"
|
|
112
|
+
},
|
|
113
|
+
"claude:claude-opus-5-5/high": {
|
|
114
|
+
"context_capacity": 1000000,
|
|
115
|
+
"host_version": "2.1.317",
|
|
116
|
+
"basis": "host catalogue, read 2026-11-06 for S4's bound (W review of WP-09 r1, F5): the model catalogue the installed claude caches under ~/.claude/cache/model-catalog gives claude-opus-5-5 runtime.max_input_tokens 1000000 (max_output_tokens 128000) in each of the three catalogue files that carry runtime, the freshest fetched 2026-11-06T01:08+09:00. The same catalogue gives claude-sonnet-5-5 1000000, which is that seat's measured modelUsage.contextWindow above. Not yet compared with a host-reported contextWindow of an opus call: the first live S4 call's result carries one. Compared 2026-11-12: D7's two live S6 judge calls (claude 2.1.317, claude-opus-5-5/high, commit 6670341) reported modelUsage.contextWindow 1000000, the catalogue's figure."
|
|
117
|
+
},
|
|
118
|
+
"claude:claude-sonnet-5-5/medium": {
|
|
119
|
+
"context_capacity": 1000000,
|
|
120
|
+
"host_version": "2.1.317",
|
|
121
|
+
"basis": "host-reported modelUsage.contextWindow, D13 re-pin 2026-11-12: D7's live S6 sweep call (claude 2.1.317, claude-sonnet-5-5/medium, commit 6670341) reported 1000000"
|
|
122
|
+
},
|
|
123
|
+
"codex:gpt-6-astra/xhigh": {
|
|
124
|
+
"context_capacity": 272000,
|
|
125
|
+
"host_version": "0.167.0",
|
|
126
|
+
"basis": "host catalogue, read 2026-11-12 (D13 follow-up): the model catalogue the pinned codex-cli 0.167.0 binary bundles (the versioned file at hosts.codex.path, read as bytes for its models list; no owner data, no network, ~/.codex not read) gives gpt-6-astra context_window 272000. The same entry carries max_context_window 872000, which is the entry's ceiling and is not what is declared. Codex captures report no context size (D7, codex-cli 0.167.0), so this is the host's catalogue, not a host-reported window. The window is the model's, so it holds for the xhigh seat; bound to 0.167.0 and re-read from the binary on a re-pin"
|
|
127
|
+
},
|
|
128
|
+
"codex:gpt-6.1-sol/xhigh": {
|
|
129
|
+
"context_capacity": 272000,
|
|
130
|
+
"host_version": "0.167.0",
|
|
131
|
+
"basis": "host catalogue, read 2026-11-12: the model catalogue the pinned codex-cli 0.167.0 binary bundles (the versioned file at hosts.codex.path, read as bytes for its models list; no owner data, no network, ~/.codex not read) gives gpt-6.1-sol context_window 272000 and lists xhigh among its supported reasoning levels. The same entry carries max_context_window 872000, which is the entry's ceiling and is not what is declared. Codex captures report no context size (D7, codex-cli 0.167.0), so this is the host's catalogue, not a host-reported window; bound to 0.167.0 and re-read from the binary on a re-pin"
|
|
132
|
+
},
|
|
133
|
+
"codex:gpt-6.1-sol/high": {
|
|
134
|
+
"context_capacity": 272000,
|
|
135
|
+
"host_version": "0.167.0",
|
|
136
|
+
"basis": "host catalogue, read 2026-11-13: the model catalogue the pinned codex-cli 0.167.0 binary bundles (the versioned file at hosts.codex.path, read as bytes for its models list; no owner data, no network, ~/.codex not read) gives gpt-6.1-sol context_window 272000 and lists high among its supported reasoning levels. The same entry carries max_context_window 872000, which is the entry's ceiling and is not what is declared. Codex captures report no context size (D7, codex-cli 0.167.0), so this is the host's catalogue, not a host-reported window; bound to 0.167.0 and re-read from the binary on a re-pin"
|
|
137
|
+
},
|
|
138
|
+
"codex:gpt-6-astra/high": {
|
|
139
|
+
"context_capacity": 272000,
|
|
140
|
+
"host_version": "0.167.0",
|
|
141
|
+
"basis": "host catalogue, read 2026-11-12 (D13 follow-up): the model catalogue the pinned codex-cli 0.167.0 binary bundles (the versioned file at hosts.codex.path, read as bytes for its models list; no owner data, no network, ~/.codex not read) gives gpt-6-astra context_window 272000. The same entry carries max_context_window 872000, which is the entry's ceiling and is not what is declared. Codex captures report no context size (D7, codex-cli 0.167.0), so this is the host's catalogue, not a host-reported window. The window is the model's, so it holds for the high seat; bound to 0.167.0 and re-read from the binary on a re-pin"
|
|
142
|
+
},
|
|
143
|
+
"codex:gpt-6-luna/medium": {
|
|
144
|
+
"context_capacity": 272000,
|
|
145
|
+
"host_version": "0.167.0",
|
|
146
|
+
"basis": "host catalogue, read 2026-11-12 (D13 follow-up): the model catalogue the pinned codex-cli 0.167.0 binary bundles (the versioned file at hosts.codex.path, read as bytes for its models list; no owner data, no network, ~/.codex not read) gives gpt-6-luna context_window 272000. The same entry carries max_context_window 872000, which is the entry's ceiling and is not what is declared. Codex captures report no context size (D7, codex-cli 0.167.0), so this is the host's catalogue, not a host-reported window. The window is the model's, so it holds for the medium seat; bound to 0.167.0 and re-read from the binary on a re-pin"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "design §7.2: the four closed vocabularies, and the dispositions allowed for each (kind, diagnosis) pair. Data, not code: `runlib/placement.py` reads it and `PAIR_DISALLOWED` names any other pair. The rows are the design's table in its order; `placement.fidelity_problems` holds them against the copied and cited list in that module's suite, so an edit here that the design does not carry fails by name.",
|
|
3
|
+
"vocabularies": {
|
|
4
|
+
"kind": [
|
|
5
|
+
"misfire",
|
|
6
|
+
"gap",
|
|
7
|
+
"not delivered",
|
|
8
|
+
"confirmed",
|
|
9
|
+
"obsolete",
|
|
10
|
+
"already resolved",
|
|
11
|
+
"unclassified"
|
|
12
|
+
],
|
|
13
|
+
"diagnosis": [
|
|
14
|
+
"covered",
|
|
15
|
+
"wrong or insufficient",
|
|
16
|
+
"trigger problem",
|
|
17
|
+
"gap",
|
|
18
|
+
"redundant",
|
|
19
|
+
"unknown"
|
|
20
|
+
],
|
|
21
|
+
"disposition": [
|
|
22
|
+
"place",
|
|
23
|
+
"correct",
|
|
24
|
+
"re-deliver",
|
|
25
|
+
"keep",
|
|
26
|
+
"reduce",
|
|
27
|
+
"incubate",
|
|
28
|
+
"drop",
|
|
29
|
+
"none"
|
|
30
|
+
],
|
|
31
|
+
"status": [
|
|
32
|
+
"rejected",
|
|
33
|
+
"disputed",
|
|
34
|
+
"admitted",
|
|
35
|
+
"quarantined",
|
|
36
|
+
"proposed",
|
|
37
|
+
"tested",
|
|
38
|
+
"untested",
|
|
39
|
+
"approved",
|
|
40
|
+
"confirmed",
|
|
41
|
+
"applied",
|
|
42
|
+
"delivery_verified",
|
|
43
|
+
"delivery_failed",
|
|
44
|
+
"returned"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"conditions": {
|
|
48
|
+
"$comment": "the parenthetical requirements of §7.2's rows, named once here and carried by the rows that use them. Each is checked by `runlib/placement.py` against the proposal, never by the reader of this file.",
|
|
49
|
+
"drop_reason_acceptable_miss": "the drop carries a reason naming why the miss is acceptable",
|
|
50
|
+
"reduce_when_harmful": "the reduce is proposed only where the judges found the unit harmful",
|
|
51
|
+
"reduce_by_merge": "the reduce is a merge of the redundant units",
|
|
52
|
+
"keep_with_reason": "the keep carries its reason",
|
|
53
|
+
"incubate_owner_approved": "the incubate carries a prospective observation and expiry, owner-approved",
|
|
54
|
+
"drop_retire_with_reason": "the drop retires the entry and carries its reason",
|
|
55
|
+
"none_stays_in_intake": "the entry stays in the legacy intake",
|
|
56
|
+
"place_admitted_and_eligible": "the entry is admitted and promotion eligible on its own evidence, like any candidate"
|
|
57
|
+
},
|
|
58
|
+
"rows": [
|
|
59
|
+
{
|
|
60
|
+
"id": "gap",
|
|
61
|
+
"kind": "gap",
|
|
62
|
+
"diagnosis": "any",
|
|
63
|
+
"allowed": [
|
|
64
|
+
{
|
|
65
|
+
"disposition": "place"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"disposition": "incubate"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"disposition": "drop"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "misfire_trigger",
|
|
77
|
+
"kind": "misfire",
|
|
78
|
+
"diagnosis": "trigger problem",
|
|
79
|
+
"allowed": [
|
|
80
|
+
{
|
|
81
|
+
"disposition": "re-deliver"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"disposition": "correct"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"disposition": "incubate"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"disposition": "drop",
|
|
91
|
+
"requires": "drop_reason_acceptable_miss"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "misfire_wrong",
|
|
97
|
+
"kind": "misfire",
|
|
98
|
+
"diagnosis": "wrong or insufficient",
|
|
99
|
+
"allowed": [
|
|
100
|
+
{
|
|
101
|
+
"disposition": "correct"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"disposition": "incubate"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"disposition": "drop",
|
|
108
|
+
"requires": "drop_reason_acceptable_miss"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "misfire_covered",
|
|
114
|
+
"kind": "misfire",
|
|
115
|
+
"diagnosis": "covered",
|
|
116
|
+
"$comment": "§7.2 names this row 'covered (not followed or harmed)': the diagnosis is covered, and which of the two it was decides whether reduce is open",
|
|
117
|
+
"allowed": [
|
|
118
|
+
{
|
|
119
|
+
"disposition": "correct"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"disposition": "re-deliver"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"disposition": "reduce",
|
|
126
|
+
"requires": "reduce_when_harmful"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"disposition": "incubate"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"disposition": "drop",
|
|
133
|
+
"requires": "drop_reason_acceptable_miss"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "not_delivered",
|
|
139
|
+
"kind": "not delivered",
|
|
140
|
+
"diagnosis": "any",
|
|
141
|
+
"allowed": [
|
|
142
|
+
{
|
|
143
|
+
"disposition": "re-deliver"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"disposition": "incubate"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"disposition": "drop"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "confirmed",
|
|
155
|
+
"kind": "confirmed",
|
|
156
|
+
"diagnosis": "any",
|
|
157
|
+
"allowed": [
|
|
158
|
+
{
|
|
159
|
+
"disposition": "keep"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"disposition": "none"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "redundant",
|
|
168
|
+
"kind": "any",
|
|
169
|
+
"diagnosis": "redundant",
|
|
170
|
+
"allowed": [
|
|
171
|
+
{
|
|
172
|
+
"disposition": "reduce",
|
|
173
|
+
"requires": "reduce_by_merge"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"disposition": "keep",
|
|
177
|
+
"requires": "keep_with_reason"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"disposition": "none"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "obsolete",
|
|
186
|
+
"kind": "obsolete",
|
|
187
|
+
"diagnosis": "any",
|
|
188
|
+
"allowed": [
|
|
189
|
+
{
|
|
190
|
+
"disposition": "reduce"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"disposition": "keep",
|
|
194
|
+
"requires": "keep_with_reason"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"disposition": "none"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "legacy_maintenance",
|
|
203
|
+
"kind": "any",
|
|
204
|
+
"diagnosis": "any",
|
|
205
|
+
"legacy_incubating": true,
|
|
206
|
+
"$comment": "design §7.2's legacy row, over §7.1's lifecycle inputs: it holds for a legacy incubating entry of ANY kind, unclassified included, and is the only row under which such an entry is proposed. Its wording is the owner's (the plan's review gate O, decided 2026-11-11, D-20261111-e53a01), and `packets/propose.md` carries that text.",
|
|
207
|
+
"allowed": [
|
|
208
|
+
{
|
|
209
|
+
"disposition": "incubate",
|
|
210
|
+
"requires": "incubate_owner_approved"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"disposition": "drop",
|
|
214
|
+
"requires": "drop_retire_with_reason"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"disposition": "none",
|
|
218
|
+
"requires": "none_stays_in_intake"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"disposition": "place",
|
|
222
|
+
"requires": "place_admitted_and_eligible"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"owner_default": {
|
|
226
|
+
"disposition": "none",
|
|
227
|
+
"decided": "2026-11-11",
|
|
228
|
+
"decision": "D-20261111-e53a01",
|
|
229
|
+
"text": "A legacy incubating entry stays in the intake unless it earns something on its own evidence. The default is `none`: not a judgment that the entry is worthless, but the absence of a new one. An entry that later reaches admission and promotion eligibility on this window's evidence is proposed as `place` like any other candidate, and one the owner retires is `drop` with its reason. `incubate` remains open and remains owner-approved, and it carries a prospective observation and an expiry, because an incubation nobody will check is a default wearing a decision's clothes.",
|
|
230
|
+
"call_spent": "classified_only",
|
|
231
|
+
"call_spent_text": "A call is spent on an entry that carries a classification block, because that block names the layer someone meant to write it into and is worth reading one at a time. An entry without one differs from its neighbours only in the single line of its legacy decision, so its proposal is the default `none` produced by code, with its group named, and no model call. This is the plan's done-when 5 - items at `none` stay in the intake - read as what it costs.",
|
|
232
|
+
"groups_by": "decision1_kind",
|
|
233
|
+
"$comment": "The owner's answer, as data rather than as prose a reader has to interpret: `placement.py` reads nothing of this block, and `stage_propose.py` reads `disposition`, `call_spent` and `groups_by` to decide which entries reach a packet. A default that lived only in a comment would be a default nobody applies."
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": "already_resolved",
|
|
238
|
+
"kind": "already resolved",
|
|
239
|
+
"diagnosis": "any",
|
|
240
|
+
"allowed": [
|
|
241
|
+
{
|
|
242
|
+
"disposition": "none"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "unclassified",
|
|
248
|
+
"kind": "unclassified",
|
|
249
|
+
"diagnosis": "any",
|
|
250
|
+
"allowed": [
|
|
251
|
+
{
|
|
252
|
+
"disposition": "none"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "design §6.5 and §3.2 as data (plan WP-10 done-when 4): the population planted in every run, each kind with its count, the stage that checks it and the verdict it must receive: per stage, the design's words (`text`) and the rule runlib/controls.py's evaluators apply (`rule`; S5: `retrieved`, `problem`/`of`/`in`, `fields`; S6: `unit_diagnosis`, `admission`, `requirements`), so the verdict a run is held to is this table's. runlib/controls.py plants the §6.5 kinds into S5's population under ordinary ids, borrowing a natural formed candidate's events and quotes, and writes their expected verdicts to controls.json, a file no packet carries and S6 never reads. The §3.2 gate controls are judged by the gate over planted call directories of the stage that dispatches calls; a run that lacks any kind's verdict is CONTROLS_INCOMPLETE.",
|
|
3
|
+
"planted": [
|
|
4
|
+
{"kind": "paraphrase_covered", "count": 2, "design": "two paraphrases of covered units (must match their unit)",
|
|
5
|
+
"checked_at": ["S5", "S6"],
|
|
6
|
+
"expected": {"S5": {"text": "its unit is among the units retrieved for it", "rule": {"retrieved": "unit_id"}},
|
|
7
|
+
"S6": {"text": "its unit diagnosis at the current point is covers", "rule": {"unit_diagnosis": {"of": "unit_id", "is": "covers"}}}}},
|
|
8
|
+
{"kind": "temporal_order_cause", "count": 1, "design": "an admission failure: cause by temporal order only",
|
|
9
|
+
"checked_at": ["S6"], "expected": {"S6": {"text": "rejected, both judges marking causal_support unmet", "rule": {"admission": "rejected", "requirements": {"causal_support": "unmet"}}}}},
|
|
10
|
+
{"kind": "task_specific_requirement", "count": 1, "design": "an admission failure: a task-specific requirement",
|
|
11
|
+
"checked_at": ["S6"], "expected": {"S6": {"text": "rejected", "rule": {"admission": "rejected"}}}},
|
|
12
|
+
{"kind": "altered_quote", "count": 1, "design": "one altered quote",
|
|
13
|
+
"checked_at": ["S5"], "expected": {"S5": {"text": "QUOTE_MISMATCH on the altered quote", "rule": {"problem": "QUOTE_MISMATCH", "of": "evidence_id", "in": "quote_problems", "fields": {"quote_ok": false}}}}},
|
|
14
|
+
{"kind": "fabricated_session", "count": 1, "design": "one fabricated session id",
|
|
15
|
+
"checked_at": ["S5"], "expected": {"S5": {"text": "SESSION_UNKNOWN on the fabricated session", "rule": {"problem": "SESSION_UNKNOWN", "of": "session", "in": "session_problems"}}}}
|
|
16
|
+
],
|
|
17
|
+
"gate": [
|
|
18
|
+
{"kind": "truncated_output", "design": "a truncated output (Claude, a small CLAUDE_CODE_MAX_OUTPUT_TOKENS)", "code": "COMPLETION_INCOMPLETE"},
|
|
19
|
+
{"kind": "aborted_stream", "design": "a real aborted stream (Codex)", "code": "COMPLETION_INCOMPLETE"},
|
|
20
|
+
{"kind": "incomplete_frame", "design": "a planted response.incomplete frame (Codex)", "code": "COMPLETION_INCOMPLETE"},
|
|
21
|
+
{"kind": "refusal", "design": "a refusal (Claude stop_reason refusal; planted refusal frames for both runners)", "code": "COMPLETION_INCOMPLETE"},
|
|
22
|
+
{"kind": "nonzero_exit", "design": "a nonzero exit", "code": "COMPLETION_INCOMPLETE"},
|
|
23
|
+
{"kind": "stale_receipt", "design": "a stale receipt", "code": "RECEIPT_STALE"},
|
|
24
|
+
{"kind": "mismatched_result_hash", "design": "a mismatched result hash", "code": "RECORD_INTEGRITY"},
|
|
25
|
+
{"kind": "inherited_profile", "design": "an inherited profile", "code": "PROFILE_INHERITED"},
|
|
26
|
+
{"kind": "contaminated_working_directory", "design": "a contaminated working directory: an undeclared working-directory, ancestor and configuration-home instruction file, a skill, and a memory file", "code": "CONTEXT_UNDECLARED"},
|
|
27
|
+
{"kind": "unattested_model", "design": "an unattested model", "code": "MODEL_UNATTESTED"}
|
|
28
|
+
],
|
|
29
|
+
"rejection_share": {"natural_more_than": 20, "design": "more than twenty natural candidates with no rejection fails O4"}
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "design §6.3 (design/session-distill/2026-10-20T1942--9684f05--mechanism-design.md) as data: the surfaces with their evidence levels in the design's words, the delivery states, and the one level this package adds. runlib/delivery_evidence.py reads it, and its fixture generator writes one frozen fixture per row (`delivery.py --generate-fixtures`). A surface whose evidence no producer reads yet says so here (`producer: absent`, with its reason), and every answer for a unit on it is `unknown` naming that reason - never silent.",
|
|
3
|
+
"states": ["delivered", "exposed_not_read", "selected_unavailable", "not_delivered", "unknown"],
|
|
4
|
+
"surfaces": [
|
|
5
|
+
{"id": "always_rule", "design": "Rule on the always surface", "levels": ["selected", "exposed"],
|
|
6
|
+
"item_surfaces": ["always"], "delivered_at": "exposed", "exposed_at": null, "selection": true, "producer": "implemented"},
|
|
7
|
+
{"id": "guide", "design": "Guide", "levels": ["selected", "pointer exposed", "router read", "unit read"],
|
|
8
|
+
"item_surfaces": ["relevant", "requested"], "delivered_at": "unit read", "exposed_at": "pointer exposed", "selection": true,
|
|
9
|
+
"producer": "implemented"},
|
|
10
|
+
{"id": "executable_invoked", "design": "Executable invoked directly (hook script, skill script, tool, wrapper)",
|
|
11
|
+
"levels": ["identity", "invoked", "completed"], "item_surfaces": ["executable"], "delivered_at": "completed", "exposed_at": null,
|
|
12
|
+
"selection": false, "producer": "absent",
|
|
13
|
+
"reason_absent": "no producer reads a transcript tool call, process record or receipt against an artifact hash in release 1"},
|
|
14
|
+
{"id": "executable_consumed", "design": "Executable producing consumed artifacts (catalog compiler, installer)",
|
|
15
|
+
"levels": ["identity of the producing version", "consumed"], "item_surfaces": [], "delivered_at": "consumed",
|
|
16
|
+
"exposed_at": null, "selection": false, "producer": "implemented",
|
|
17
|
+
"realization": "golden until WP-15's installation receipt is installed and read live (lane L); the live case waits by name: receipt_live_waiting_wp15"},
|
|
18
|
+
{"id": "skill", "design": "Skill", "levels": ["selected", "listed", "invoked"], "item_surfaces": ["skill"],
|
|
19
|
+
"delivered_at": "invoked", "exposed_at": "listed", "selection": true, "producer": "absent",
|
|
20
|
+
"reason_absent": "no producer reads a skill listing or invocation from a transcript in release 1"},
|
|
21
|
+
{"id": "hook", "design": "Hook", "levels": ["selected", "registered for the route", "fired"], "item_surfaces": ["event"],
|
|
22
|
+
"delivered_at": "fired", "exposed_at": "registered for the route", "selection": true, "producer": "absent",
|
|
23
|
+
"reason_absent": "no producer reads hook execution evidence (Claude --include-hook-events, a Codex executor-side marker) in release 1"},
|
|
24
|
+
{"id": "native_layer", "design": "Native layer", "levels": ["identity", "loaded"],
|
|
25
|
+
"layers": ["native_global", "native_project", "native_memory"], "item_surfaces": [], "delivered_at": "loaded",
|
|
26
|
+
"exposed_at": null, "selection": false, "producer": "implemented"},
|
|
27
|
+
{"id": "child_session", "design": "Child session (subagent reach)", "levels": ["the child's own record"],
|
|
28
|
+
"item_surfaces": ["delegated"], "delivered_at": "the child's own record", "exposed_at": null, "selection": true,
|
|
29
|
+
"producer": "absent", "reason_absent": "no producer reads a child's own record against an artifact id line in release 1"}
|
|
30
|
+
],
|
|
31
|
+
"licensed_levels": [
|
|
32
|
+
{"id": "library_selected", "level": "library_selected", "state": "unknown", "basis": "selection_history",
|
|
33
|
+
"decision": "D-20261110-9c60bc",
|
|
34
|
+
"$comment": "not a level of §6.3: the baseline-selection history says what the owner's library had selected at the session's time, never what the session received (lead direction for WP-10, 2026-11-11). It ranks below every delivered level and above unknown, and its state is unknown, so the owner reads 'the library held this; delivery unknown' and never a delivered claim"}
|
|
35
|
+
]
|
|
36
|
+
}
|