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.
Files changed (172) hide show
  1. package/DEPENDENCIES.md +62 -20
  2. package/INSTALL.md +1 -1
  3. package/README.md +16 -21
  4. package/claude/agents/frontier.md +1 -1
  5. package/claude/agents/sweep.md +2 -1
  6. package/claude/agents/workhorse.md +2 -2
  7. package/claude/guides/claude-prompting.md +494 -167
  8. package/claude/guides/cli-multi-model-workflow.md +8 -7
  9. package/claude/guides/gpt-prompting.md +241 -111
  10. package/claude/guides/session-distill-workflow.md +93 -43
  11. package/claude/guides/tooling-gotchas.md +3 -1
  12. package/codex/agents/reviewer.toml +2 -2
  13. package/codex/agents/sweep.toml +1 -1
  14. package/codex/agents/workhorse.toml +2 -2
  15. package/codex/guides/claude-prompting.md +494 -167
  16. package/codex/guides/cli-multi-model-workflow.md +8 -7
  17. package/codex/guides/gpt-prompting.md +241 -111
  18. package/codex/guides/session-distill-workflow.md +93 -43
  19. package/codex/guides/tooling-gotchas.md +3 -1
  20. package/compose/assemble.py +4 -1
  21. package/compose/canary.sh +8 -6
  22. package/compose/host_platform.py +158 -15
  23. package/compose/instructions-state.py +183 -41
  24. package/compose/instructions_app.py +2 -2
  25. package/compose/instructions_install.py +222 -27
  26. package/compose/instructions_session.py +250 -75
  27. package/compose/instructions_setup.py +6 -6
  28. package/compose/instructions_setup_cli.py +2 -36
  29. package/compose/instructions_setup_i18n.py +3 -3
  30. package/compose/instructions_store.py +160 -3
  31. package/compose/instructions_transaction.py +29 -5
  32. package/compose/instructions_ui_runtime.py +2 -2
  33. package/compose/setup/START.md +1 -1
  34. package/docs/advanced-launch.md +4 -0
  35. package/docs/releases/0.19.4.md +99 -0
  36. package/docs/releases/0.20.0.md +102 -0
  37. package/docs/setup.md +4 -4
  38. package/install.sh +54 -20
  39. package/launch/agent-launch.py +171 -22
  40. package/launch/agent-launch.toml +64 -29
  41. package/launch/agent-launch.zsh +104 -13
  42. package/launch/claude_subcommands.py +179 -0
  43. package/launch/provision-venv.sh +1 -1
  44. package/launch/shell_integration.py +7 -1
  45. package/learn/collect-learning.py +60 -9
  46. package/learn/migrate-learnings.py +70 -4
  47. package/learn/redact.py +2 -1
  48. package/package.json +37 -4
  49. package/provenance.json +1 -1
  50. package/session-cost.py +141 -18
  51. package/session-distill/coverage.json +6 -0
  52. package/session-distill/distill.py +2575 -0
  53. package/session-distill/grammar/__init__.py +0 -0
  54. package/session-distill/grammar/owner_lines.py +874 -0
  55. package/session-distill/originators.json +9 -0
  56. package/session-distill/packets/cross_review.md +31 -0
  57. package/session-distill/packets/form.md +86 -0
  58. package/session-distill/packets/judge.md +81 -0
  59. package/session-distill/packets/placement_contract.md +90 -0
  60. package/session-distill/packets/propose.md +124 -0
  61. package/session-distill/packets/read.md +57 -0
  62. package/session-distill/packets/reconsider.md +53 -0
  63. package/session-distill/packets/s7b.md +65 -0
  64. package/session-distill/packets/s9b.md +39 -0
  65. package/session-distill/packets/stitch.md +35 -0
  66. package/session-distill/packets/sweep.md +33 -0
  67. package/session-distill/runlib/__init__.py +0 -0
  68. package/session-distill/runlib/bound.py +1102 -0
  69. package/session-distill/runlib/breaker.py +467 -0
  70. package/session-distill/runlib/census.py +2347 -0
  71. package/session-distill/runlib/claims.py +420 -0
  72. package/session-distill/runlib/controls.py +902 -0
  73. package/session-distill/runlib/coverage.py +881 -0
  74. package/session-distill/runlib/declare.py +888 -0
  75. package/session-distill/runlib/delivery_evidence.py +1145 -0
  76. package/session-distill/runlib/derive.py +812 -0
  77. package/session-distill/runlib/destinations.py +3072 -0
  78. package/session-distill/runlib/dispatch.py +7939 -0
  79. package/session-distill/runlib/drift.py +1077 -0
  80. package/session-distill/runlib/entry.py +401 -0
  81. package/session-distill/runlib/evidence.py +890 -0
  82. package/session-distill/runlib/exposure.py +1162 -0
  83. package/session-distill/runlib/gate.py +2727 -0
  84. package/session-distill/runlib/gitread.py +79 -0
  85. package/session-distill/runlib/inventory.py +19624 -0
  86. package/session-distill/runlib/journal.py +1919 -0
  87. package/session-distill/runlib/ledger.py +3210 -0
  88. package/session-distill/runlib/ledger_compat.py +101 -0
  89. package/session-distill/runlib/ledger_migration.py +190 -0
  90. package/session-distill/runlib/lifecycle_intake.py +693 -0
  91. package/session-distill/runlib/lineage.py +454 -0
  92. package/session-distill/runlib/measures.py +249 -0
  93. package/session-distill/runlib/monitor.py +1180 -0
  94. package/session-distill/runlib/operations.py +522 -0
  95. package/session-distill/runlib/packet.py +838 -0
  96. package/session-distill/runlib/placement.py +1769 -0
  97. package/session-distill/runlib/projection.py +4090 -0
  98. package/session-distill/runlib/ranking.py +740 -0
  99. package/session-distill/runlib/receipts.py +200 -0
  100. package/session-distill/runlib/records.py +1965 -0
  101. package/session-distill/runlib/search.py +249 -0
  102. package/session-distill/runlib/sequencing.py +829 -0
  103. package/session-distill/runlib/sources.py +641 -0
  104. package/session-distill/runlib/stage_adjudicate.py +845 -0
  105. package/session-distill/runlib/stage_apply.py +1378 -0
  106. package/session-distill/runlib/stage_approvals.py +758 -0
  107. package/session-distill/runlib/stage_close.py +1220 -0
  108. package/session-distill/runlib/stage_confirm.py +929 -0
  109. package/session-distill/runlib/stage_delivery.py +3080 -0
  110. package/session-distill/runlib/stage_form.py +2576 -0
  111. package/session-distill/runlib/stage_judge.py +4248 -0
  112. package/session-distill/runlib/stage_propose.py +3307 -0
  113. package/session-distill/runlib/stage_read.py +5179 -0
  114. package/session-distill/runlib/stage_render.py +2739 -0
  115. package/session-distill/runlib/stage_retrieve.py +924 -0
  116. package/session-distill/runlib/stage_review_korean.py +1002 -0
  117. package/session-distill/runlib/stage_review_proposals.py +1292 -0
  118. package/session-distill/runlib/stagelock.py +412 -0
  119. package/session-distill/runlib/stop.py +1061 -0
  120. package/session-distill/runlib/targets.py +809 -0
  121. package/session-distill/runlib/usage.py +280 -0
  122. package/session-distill/runlib/validate.py +319 -0
  123. package/session-distill/runlib/views.py +4327 -0
  124. package/session-distill/schemas/adjudication.schema.json +35 -0
  125. package/session-distill/schemas/approval.schema.json +35 -0
  126. package/session-distill/schemas/census.schema.json +128 -0
  127. package/session-distill/schemas/checks.schema.json +207 -0
  128. package/session-distill/schemas/claim.schema.json +16 -0
  129. package/session-distill/schemas/confirmation.schema.json +24 -0
  130. package/session-distill/schemas/coverage.schema.json +66 -0
  131. package/session-distill/schemas/cross_review.schema.json +24 -0
  132. package/session-distill/schemas/event.schema.json +20 -0
  133. package/session-distill/schemas/evidence.schema.json +20 -0
  134. package/session-distill/schemas/expected_observation.schema.json +18 -0
  135. package/session-distill/schemas/form.schema.json +103 -0
  136. package/session-distill/schemas/intake.schema.json +71 -0
  137. package/session-distill/schemas/inventory.schema.json +872 -0
  138. package/session-distill/schemas/judge.schema.json +77 -0
  139. package/session-distill/schemas/ledger.schema.json +313 -0
  140. package/session-distill/schemas/observation.schema.json +16 -0
  141. package/session-distill/schemas/propose.schema.json +555 -0
  142. package/session-distill/schemas/read.schema.json +76 -0
  143. package/session-distill/schemas/reconsider.schema.json +122 -0
  144. package/session-distill/schemas/run.schema.json +150 -0
  145. package/session-distill/schemas/s7b.schema.json +200 -0
  146. package/session-distill/schemas/s9b.schema.json +28 -0
  147. package/session-distill/schemas/stitch.schema.json +25 -0
  148. package/session-distill/schemas/sweep.schema.json +25 -0
  149. package/session-distill/seats.json +149 -0
  150. package/session-distill/tables/allowed_pairs.json +257 -0
  151. package/session-distill/tables/controls.json +30 -0
  152. package/session-distill/tables/delivery_evidence.json +36 -0
  153. package/session-distill/tables/delivery_evidence_fixtures.json +731 -0
  154. package/session-distill/tables/destinations.json +684 -0
  155. package/session-distill/tables/drift_layers.json +68 -0
  156. package/session-distill/tables/exposure_rules.json +192 -0
  157. package/session-distill/tables/placement_rules.json +148 -0
  158. package/session-distill/tables/propose_fixtures.json +154 -0
  159. package/session-distill/tables/ranking.json +194 -0
  160. package/session-distill/tables/redundancy.json +10 -0
  161. package/session-distill/tables/structural_rules.json +44 -0
  162. package/session-distill/tables/transition_fixtures.json +398 -0
  163. package/session-distill/tables/transitions.json +69 -0
  164. package/session-distill/tables/unit_outcome.json +67 -0
  165. package/session-distill/tables/unit_outcome_fixtures.json +2364 -0
  166. package/wrappers/claude-run.sh +481 -33
  167. package/wrappers/claude_hermetic_evidence.py +1423 -0
  168. package/wrappers/codex-helm.sh +44 -13
  169. package/wrappers/codex-run.sh +183 -20
  170. package/wrappers/codex_frame_filter.py +1199 -0
  171. package/wrappers/codex_protocol.py +737 -0
  172. package/wrappers/jsonl_lines.py +65 -0
@@ -13,7 +13,7 @@ core_rules:
13
13
  - the ledger is the SSOT for state; read it before touching the pipeline
14
14
  - placement follows PLACEMENT-FRAMEWORK.md, never ad-hoc judgment
15
15
  - every promotion passes an explicit user-approval gate
16
- - the canonical always surface is frozen to reductions; route additions to guides, skills, or session-level injection
16
+ - the canonical always surface is capped at 20 KiB and distill proposes only deletions and merges there; route additions to guides, skills, or session-level injection
17
17
  - close the window by updating mirrors, parity, deployment, and the nudge baseline
18
18
  ---
19
19
 
@@ -61,7 +61,9 @@ A run should produce:
61
61
  gate, or other existing mechanism that reaches its consumer. Keep evidence
62
62
  and decisions in the ledger; report what was applied and verified and what
63
63
  remains open. A review-ready proposal and an applied change are distinct
64
- outcomes, and promotion still requires explicit user approval.
64
+ outcomes, and promotion still requires explicit user approval. In release 1
65
+ the driver applies none of them: an approved change to the library is an
66
+ author's own work by hand (Stages 2 to 5).
65
67
 
66
68
  Judge success by useful, justified learning and its appropriate application.
67
69
  Candidate counts and added text measure output volume. A supported decision to
@@ -79,52 +81,100 @@ Everything durable lives in the agent-bios repo.
79
81
 
80
82
  ## Read next (SSOT)
81
83
 
82
- 1. `design/session-distill/ledger.json` — the initiative's state. Every item
83
- carries its status (placed / incubating / incubating-G / absorbed /
84
- adopted-no-text), strength, and provenance, so what is open, what was
85
- promoted, and what is still incubating are all queries against this file.
86
- Read state here and nowhere else: a count or a status written into prose is
87
- correct on the day it is written and silently wrong afterwards.
84
+ 1. `design/session-distill/ledger.json` — the initiative's state, schema 2 since
85
+ the WP-22 cutover. An entry's `status` is one of incubating / placed /
86
+ adopted-no-text / absorbed / retired, its history is `decisions[]`, and its
87
+ type is `classification.type`; so what is open, what was promoted and what is
88
+ still incubating are all queries against this file. Read state here and nowhere
89
+ else: a count or a status written into prose is correct on the day it is written
90
+ and silently wrong afterwards. Schema 1's `verdict`, `strength` and `criteria`
91
+ are gone from the entry — `criteria` became `consequence.kinds`, and the dropped
92
+ values are written down in the dated migration record, not recoverable from the
93
+ file. The reader of the ledger is `runlib/ledger.py`; the schema is
94
+ `session-distill/schemas/ledger.schema.json`.
88
95
  2. `design/session-distill/versions.json` — authoring provenance mapping each
89
96
  closed mining window to its commit. Private rollback selects an installed
90
97
  `baseline_ref` through the instructions plan; this registry is not that authority.
91
98
  3. `design/session-distill/PLACEMENT-FRAMEWORK.md` — the placement framework
92
99
  (typology A–G, layers, admission bars, lifecycle). Apply the current
93
- `AGENTS.md` reductions-only rule and `SURFACES.md` delivery contract when
94
- choosing a destination; the framework does not authorize global growth.
95
-
96
- ## Stage 1 — Mine (pipeline in `session-distill/`)
97
-
98
- The current collectors read Claude Code and Codex session histories.
99
- Run in order; each stage reads the previous stage's `out/`:
100
-
101
- 1. `census.py --end YYYY-MM-DD` — enumerate from both providers'
102
- history.jsonl; keep only directly-handled main-context sessions by
103
- transcript-side provenance (dispatched = Codex source=exec /
104
- Claude sidechain/sdk-cli/agentId).
105
- 2. `digest.py` — one secret-redacted digest per session with deterministic
106
- 6-criteria signals. Screen ALL digests; triage orders, never drops.
107
- 3. `batch.py` — the baseline blob (`claude/CLAUDE.md` + every guide, the
108
- repo's canonical instructions) and per-provider batches; writes
109
- `out/batch_index.json`, which the screeners take as their `args`.
110
- 4. Provider-affine screening against that baseline: `screen-claude.js`
111
- (Claude sessions; a Workflow script — pass the index as `args`, one
112
- WORKHORSE screener per batch) and `screen-codex.py` (Codex sessions;
113
- one hermetic read-only `codex exec` per batch, packet on stdin). Novelty
114
- is judged against real baseline text, not memory. Then `collect.py`
115
- unions the two outputs into `out/candidates-all.json` and fails when a
116
- provider's screened set is smaller than its batch.
117
- 5. `consolidate.js` (Workflow; `args` = baseline, candidates path, count,
118
- and the ledger's `{id, lesson}` list) — dedup + independent novelty
119
- verification, then a match pass naming which survivor recurs an
120
- existing ledger entry. Rank by strength (recurrence × materiality),
121
- never by self-reported confidence. Save its return value as
122
- `out/consolidated.json`.
123
- 6. `bundle_final.py` — tiered bundle. `merge-ledger.py --window-end <date>`
124
- (dry-run; `--apply` writes) merges survivors into `ledger.json`: a
125
- recurrence gains the window's sessions under `recurrence`, a new lesson
126
- becomes a `candidate` entry — so recurrence accumulates across windows
127
- and incubated items promote when they re-occur.
100
+ `AGENTS.md` cap on the canonical always surface and `SURFACES.md` delivery contract when
101
+ choosing a destination; the framework does not authorize additions to the global file.
102
+
103
+ ## Stage 1 — Run the driver (`session-distill/distill.py`)
104
+
105
+ One run, one run directory, one subcommand per stage. The v1 pipeline that used to
106
+ stand here — the per-session digests, the batches, the two provider screeners, the
107
+ union, the consolidation and the bundles — was deleted at the WP-22 cutover; the
108
+ driver replaces it. Every stage writes into `<run root>/<run-id>/`, the run root
109
+ being `--out` or, unset, the XDG state directory the driver resolves. **A run root
110
+ inside this checkout is refused** — `inventory` protects the checkout
111
+ unconditionally and exits `PROTECTED_OVERLAP` before writing anything, which is
112
+ the protection working: a run writes a copy of the owner's session records, and
113
+ the repository is not a place for them. So leave `--out` unset and let the driver
114
+ resolve the XDG state directory, or name a directory outside every protected root
115
+ (the checkout, the owner's state root, `~/.claude`, `~/.codex`).
116
+
117
+ **Every stage but S8 runs, and what does not refuses by name rather than doing
118
+ something approximate.** `STAGE_NOT_IMPLEMENTED <command> (<stage>)` on
119
+ stderr, exit 2. The table is what this checkout does today, not the design:
120
+
121
+ | Stage | Command | Today |
122
+ | --- | --- | --- |
123
+ | S0 | `distill.py declare --run-id ID --from DECLARATION.json` | runs; `--set PATH=VALUE` edits it until a stage has read it, `--amend --reason TEXT` after |
124
+ | S1 | `distill.py census --run-id ID --coverage session-distill/local/coverage.json` | runs; `--reconcile RESULTS.json` folds S3's results back into the statuses. `--coverage` names the state the last periodic close promoted, and the declaration's `starting_hashes.coverage` pins its sha256 (a mismatch is `COVERAGE_BASE_STALE`); left out, the census reads the tracked `session-distill/coverage.json`, the empty state of a checkout no periodic close has written to |
125
+ | S2 | `distill.py views --run-id ID` | runs: the immutable copies, the redaction projection, the windows, the search index, the evidence store |
126
+ | S2 | `distill.py inventory --run-id ID --ledger design/session-distill/ledger.json` | runs: the units per reference point. The ledger path is the caller's to name |
127
+ | S3 | `distill.py read --run-id ID --dry --checkout-ledger design/session-distill/ledger.json` | runs: every window packet measured, no call, record partial |
128
+ | S3 | `distill.py read --run-id ID --cells DIR --checkout-ledger design/session-distill/ledger.json [--tranche calibration] [--jobs N] [--golden-plan PLAN.json]` | runs: the window readings and stitches through the supervisor, live (token only as `CLAUDE_RUN_TOKEN_FILE`) or golden with a plan |
129
+ | S4 | `distill.py form --run-id ID --dry --checkout-ledger design/session-distill/ledger.json` | runs: the barrier, the lifecycle intake and the packet held to its bound, record partial |
130
+ | S4 | `distill.py form --run-id ID --cells DIR --checkout-ledger design/session-distill/ledger.json [--golden-plan PLAN.json]` | runs: the one formation call, live (token only as `CLAUDE_RUN_TOKEN_FILE`) or golden with a plan |
131
+ | S5 | `distill.py retrieve --run-id ID --checkout-ledger design/session-distill/ledger.json` | runs: code only - each candidate's retrieved units, lineages and checks, with the planted controls |
132
+ | S5b | `distill.py deliver --run-id ID` | runs: code only - per (session, unit, decision) whether the unit was delivered. A pair whose candidate names no session is counted apart (`not_session_derived`) |
133
+ | S6 | `distill.py judge --run-id ID --checkout-ledger design/session-distill/ledger.json --dry`, then the same with `--cells DIR [--golden-plan PLAN.json]` in place of `--dry` | runs: two judges per candidate through the supervisor, then the derivations |
134
+ | S7, S7b | `distill.py propose --run-id ID --checkout-ledger design/session-distill/ledger.json` with `--dry`, `--cells DIR [--golden-plan PLAN.json]` or answers in hand (`--answers ANSWERS.json`); then `distill.py review-proposals --run-id ID` with `--dry`, `--cells DIR [--golden-plan PLAN.json]` or `--reviews REVIEWS.json` | runs: one proposal per candidate S6 admitted, held to the contract and to what S11 would refuse of its operations; a second seat's review of each proposal a model wrote. In release 1 a proposal or an alternative that would change a library file is refused by name (`RELEASE_1_NO_LIBRARY_CHANGE`) |
135
+ | S8 | `distill.py test` | refuses, and **stays refused in release 1: S8 is deferred to release 2 by name (D-20261111-818391).** No run tests whether an applied change helped; a row that would carry a test result carries the named state `untested: s8_deferred` |
136
+ | S9, S9b | `distill.py render --run-id ID --checkout-ledger design/session-distill/ledger.json`, then `distill.py review-korean --run-id ID --cells DIR` | runs: the Korean review file `decisions.ko.v<n>.md` in the run directory, and a faithfulness check of its Korean against the proposals. Without S8 the order falls back to the judges and S7b, and the header says so. The header also states how many planted controls got their expected verdict after S6, recorded in `review.v<n>.json`; a failed control is shown, never a stop (D-20261115-18d56b) |
137
+ | S10, S10b | `distill.py parse-decisions --run-id ID`, `distill.py adjudicate --run-id ID --cells DIR` (when the owner wrote a `판정`), `distill.py confirm --run-id ID`, then `distill.py confirm --run-id ID --decide` | runs: the owner's decisions parsed from their edited copy, the adjudications recomputed, the final set built, and the owner's confirmation line read. In release 1 a final set that holds a change to a library file is refused by name before the owner confirms it |
138
+ | S11 | `distill.py apply --run-id ID` | runs: **writes no library file in release 1 (D-20261116-7853bc).** A confirmed set that holds a change is refused by name (`RELEASE_1_NO_LIBRARY_CHANGE`) before any plan or effect; a set that changes no file is recorded as such, and no command is printed. No git, no installer, no personal layer |
139
+ | S12 | `distill.py close --run-id ID --checkout-ledger design/session-distill/ledger.json --checkout-coverage session-distill/local/coverage.json` | runs: records the window and each decision on an existing ledger entry in the checkout's ledger (a `none` on a new candidate makes no ledger row and is kept in the run's `close.json`, F-40) and, for a periodic run, promotes the coverage state into the file named. Name the file under the ignored `session-distill/local/`, as the command shows: the state is keyed by session ids and stays out of git; a periodic close without the flag is refused (`COVERAGE_UNNAMED`). Its report carries the planted controls' evaluation as S9 recorded it. It runs no process and names what it leaves to you: the commit, the install, the launcher state, the version-registry line. `--recovery` is reserved |
140
+
141
+ **What a release 1 run produces.** Evidence about the window, the owner's review
142
+ of it, and a record of what the owner decided. **Release 1 changes no library file
143
+ (D-20261116-7853bc).** A disposition that would - `place`, `correct`, `re-deliver`,
144
+ `reduce` - and any operation are refused by name (`RELEASE_1_NO_LIBRARY_CHANGE`)
145
+ where S7 and S7b accept an answer, where S10b builds the final set and where S11
146
+ takes its items. Every kind of candidate keeps an answer among `keep`, `incubate`,
147
+ `drop` and `none`; where the evidence supports a change to a library file, the
148
+ proposal names it in its Korean reason for the owner to read. Reopening those
149
+ dispositions waits on a redesign of the write path, after release 1 is published.
150
+ Nothing tests whether a change would help: that is S8, in release 2. The run
151
+ changes the declared checkout's ledger (S12) and, for a periodic run, the coverage
152
+ file it names; the commit, the install and the publish are yours.
153
+
154
+ The evidence that the runnable stages run is the driver's own suite,
155
+ `python3 session-distill/distill.py --self-test` (declare → stage → amend → stage on
156
+ real files), and the module suites `python3 session-distill/runlib/<name>.py
157
+ --self-test`, which are the checkout's tooling rather than a packaged user's.
158
+
159
+ Author-side window tools that are not stages of the driver and still run:
160
+ `census.py` (the v1 window census), `plain-asks.py` and `update-state.py
161
+ --window-end <date>` (the launcher's nudge baseline). `migrate-ledger.py` is the
162
+ ledger's schema 1 → 2 migration, performed once and idempotent after.
163
+
164
+ `merge-ledger.py` belongs to the v1 window flow and **is not part of this
165
+ workflow any more.** It writes schema 1 fields — a top-level `window` and
166
+ per-entry `strength` and `supporting_sessions` — which schema 2 does not have, so
167
+ against the migrated ledger it would leave a document the schema no longer
168
+ describes. It now refuses a ledger that is not schema 1 by name
169
+ (`LEDGER_SCHEMA_UNSUPPORTED`) before reading or writing anything. After the
170
+ migration a window is folded in by the lifecycle intake.
171
+
172
+ **Stages 2 to 5 are the author's own work, not the driver's.** In release 1 the
173
+ driver changes no library file (D-20261116-7853bc). Where the owner decides that a
174
+ run's finding should change the library, an author makes the change by hand, as
175
+ Stage 3 describes: on a branch, through the placement framework, verified and
176
+ committed like any other change to this repository. The run's ledger records the
177
+ owner's decision, not the edit.
128
178
 
129
179
  ## Stage 2 — Review with the user
130
180
 
@@ -107,7 +107,9 @@ depends on it, pin it explicitly instead of trusting the environment.
107
107
  that may contain `$`, backticks, quotes, or globs must not be inlined as
108
108
  raw CLI arguments — the shell expands or mangles them before the target
109
109
  process sees them. Pass via stdin, heredoc, or a temp file. (Our dispatch
110
- scripts codex-run/codex-helm already accept stdin — use that path.)
110
+ scripts codex-run/codex-helm already accept stdin — use that path; beside a
111
+ prompt argument, codex-helm reads a pipe only with a `-` argument, as in
112
+ `git diff | codex-helm.sh "review" -`, and appends a redirected file either way.)
111
113
  - **Multi-line pasted commands**: a command pasted across lines without
112
114
  continuation markers can be re-wrapped into two invocations, silently
113
115
  dropping trailing flags (a real incident: `--scopes` lost during an auth
@@ -1,7 +1,7 @@
1
1
  name = "reviewer"
2
2
  description = "Adversarial review focused on correctness, regressions, security, and missing tests."
3
- model = "gpt-5.6-terra"
4
- model_reasoning_effort = "xhigh"
3
+ model = "gpt-6.1-sol"
4
+ model_reasoning_effort = "high"
5
5
  sandbox_mode = "read-only"
6
6
 
7
7
  developer_instructions = """
@@ -1,6 +1,6 @@
1
1
  name = "sweep"
2
2
  description = "Read-only checks applying one explicit rule to each item; report ambiguity as an exception."
3
- model = "gpt-5.6-luna"
3
+ model = "gpt-6-luna"
4
4
  model_reasoning_effort = "max"
5
5
  sandbox_mode = "read-only"
6
6
 
@@ -1,7 +1,7 @@
1
1
  name = "workhorse"
2
2
  description = "Bounded implementation, fixes, and per-item judgment for delegated Codex work."
3
- model = "gpt-5.6-terra"
4
- model_reasoning_effort = "xhigh"
3
+ model = "gpt-6.1-sol"
4
+ model_reasoning_effort = "high"
5
5
 
6
6
  developer_instructions = """
7
7
  Complete one bounded implementation, fix, or per-item judgment from a packet naming objective, frozen scope/inputs, allowed actions, output, done-when, and verification. Preserve out-of-scope behavior, batch independent reads, and escalate missing decisions/authority. Inherit sandbox; dangerous, remote, credential, install, OAuth, push, or live-network-expanding actions require exact original-user authorization. Run the narrowest reliable changed-path check and report status, files_or_items_touched, evidence, verification or gap, and risks_or_escalations.