agent-bios 0.20.0 → 0.21.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 (38) hide show
  1. package/DEPENDENCIES.md +3 -2
  2. package/README.md +25 -9
  3. package/claude/guides/cli-multi-model-workflow.md +6 -6
  4. package/claude/guides/gpt-prompting.md +151 -75
  5. package/codex/agents/frontier.toml +1 -1
  6. package/codex/agents/reviewer.toml +1 -1
  7. package/codex/agents/workhorse.toml +1 -1
  8. package/codex/guides/cli-multi-model-workflow.md +6 -6
  9. package/codex/guides/gpt-prompting.md +151 -75
  10. package/compose/app_bridge/scripts/bridge.py +8 -0
  11. package/compose/instructions_app.py +20 -2
  12. package/compose/instructions_install.py +34 -8
  13. package/compose/instructions_setup.py +4 -1
  14. package/docs/advanced-launch.md +1 -1
  15. package/docs/macos-linux.md +92 -0
  16. package/docs/recovery.md +1 -1
  17. package/docs/releases/0.20.1.md +76 -0
  18. package/docs/releases/0.21.0.md +101 -0
  19. package/docs/setup.md +7 -3
  20. package/docs/windows.md +23 -14
  21. package/install.sh +72 -41
  22. package/launch/agent-launch.toml +11 -9
  23. package/launch/provision-venv.sh +3 -2
  24. package/package.json +3 -2
  25. package/provenance.json +1 -1
  26. package/session-distill/distill.py +22 -2
  27. package/session-distill/runlib/declare.py +70 -3
  28. package/session-distill/runlib/dispatch.py +26 -20
  29. package/session-distill/runlib/gate.py +149 -11
  30. package/session-distill/runlib/packet.py +3 -2
  31. package/session-distill/runlib/stage_form.py +1 -1
  32. package/session-distill/runlib/stage_judge.py +8 -4
  33. package/session-distill/runlib/views.py +1 -1
  34. package/session-distill/schemas/run.schema.json +10 -1
  35. package/session-distill/seats.json +35 -60
  36. package/wrappers/claude-run.sh +10 -7
  37. package/wrappers/codex-helm.sh +8 -8
  38. package/wrappers/codex-run.sh +9 -6
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$comment": "design §4.1; posture: design/session-distill/2026-10-21T0318--2d4fbd4--plan-addendum-wp01.md; output_caps: design/session-distill/2026-11-03T2155--6779ed7--the-output-cap-is-declared-and-a-reading-cites-its-own-quotes.md; density (optional): design/session-distill/2026-11-11T0410--c4a9a24--a-run-may-declare-an-earlier-runs-measured-density-and-an-unmeasured-class-is-reserved-at-its-estimate.md; retry (optional): design/session-distill/2026-11-11T0535--c4a9a24--a-call-past-its-claim-stops-the-run-and-a-density-belongs-to-its-class.md; retrieval (optional) and judge (optional): design/session-distill/2026-11-11T1545--58ad0cf--a-run-declares-what-s5-retrieves-and-which-candidates-s6-judges.md; sweeps (optional): plan WP-11 J3a, lead decision E2 (2026-11-11); environment (optional): what the run HANDS its writers rather than where they may write, WP-21",
3
+ "$comment": "design §4.1; posture: design/session-distill/2026-10-21T0318--2d4fbd4--plan-addendum-wp01.md; output_caps: design/session-distill/2026-11-03T2155--6779ed7--the-output-cap-is-declared-and-a-reading-cites-its-own-quotes.md; density (optional): design/session-distill/2026-11-11T0410--c4a9a24--a-run-may-declare-an-earlier-runs-measured-density-and-an-unmeasured-class-is-reserved-at-its-estimate.md; retry (optional): design/session-distill/2026-11-11T0535--c4a9a24--a-call-past-its-claim-stops-the-run-and-a-density-belongs-to-its-class.md; retrieval (optional) and judge (optional): design/session-distill/2026-11-11T1545--58ad0cf--a-run-declares-what-s5-retrieves-and-which-candidates-s6-judges.md; sweeps (optional): plan WP-11 J3a, lead decision E2 (2026-11-11); environment (optional): what the run HANDS its writers rather than where they may write, WP-21; seat_resolution (optional): written by declare.fill_seats when it fills a seat from seats.json's launch-profile tiers, never declared, design/session-distill/2026-11-29T0047--2245338--distill-seats-take-their-launch-profile-tier-and-no-stage-sits-on-sweep.md",
4
4
  "title": "Run declaration",
5
5
  "type": "object",
6
6
  "additionalProperties": false,
@@ -59,6 +59,15 @@
59
59
  "type": "object", "additionalProperties": false, "required": ["S3"],
60
60
  "patternProperties": {"^S[0-9]+b?(\\.[A-Za-z0-9_-]+)?$": {"$ref": "#/$defs/text"}}
61
61
  },
62
+ "seat_resolution": {
63
+ "$comment": "written by declare.fill_seats at declaration_seq 0, never declared: the seat keys it filled from seats.json's launch-profile tiers, the tier each came from (host:tier), and the sha256 of the launch profile resolved against",
64
+ "type": "object", "additionalProperties": false, "required": ["profile", "profile_sha256", "filled"],
65
+ "properties": {
66
+ "profile": {"$ref": "#/$defs/text"},
67
+ "profile_sha256": {"$ref": "#/$defs/sha256"},
68
+ "filled": {"type": "object", "additionalProperties": false, "minProperties": 1,
69
+ "patternProperties": {"^S[0-9]+b?(\\.[A-Za-z0-9_-]+)?$": {"type": "string", "pattern": "^[a-z]+:[a-z]+$"}}}}
70
+ },
62
71
  "actor_seats": {
63
72
  "type": "array", "minItems": 4, "maxItems": 4,
64
73
  "items": {"type": "object", "additionalProperties": false, "required": ["stratum", "seat", "provenance"],
@@ -1,5 +1,5 @@
1
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.",
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. `seat_tiers` names, per run.json seat key, the launch-profile tier that seats it (`host:tier`; owner, 2026-11-29): gate.stage_seats resolves each through the checkout's launch/agent-launch.toml to `host:model/effort`, so a model change in the launch profile moves distill's seats with it. Those are the defaults a run may use without declaring them (run.json seats add to them, and `distill.py declare --from` writes them into run.json for every key the declaration leaves out, recording the tier and the profile's sha256 under `seat_resolution`); dispatch.py refuses a seat neither names for the call's stage. `cross_review` names, per reviewing key, the key whose work it reviews; the two must resolve to different hosts (gate.seats_problems, CROSS_REVIEW_SAME_PROVIDER). `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
3
  "schema": "DistillSeats/v1",
4
4
  "hosts": {
5
5
  "claude": {
@@ -46,8 +46,8 @@
46
46
  }
47
47
  },
48
48
  "codex": {
49
- "version": "0.167.0",
50
- "path": "/opt/homebrew/Caskroom/codex/0.167.0/bin/codex",
49
+ "version": "0.171.0",
50
+ "path": "/opt/homebrew/Caskroom/codex/0.171.0/bin/codex",
51
51
  "profiles": {
52
52
  "hermetic": [
53
53
  "--ignore-user-config",
@@ -59,10 +59,9 @@
59
59
  "auxiliary": [],
60
60
  "host_allowance": {
61
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"
62
+ "allowance_tokens": null,
63
+ "measured": false,
64
+ "basis": "unmeasured at 0.171.0 (re-pin 2026-11-24, D-20261124-ebb701): D13 measured 19167 on codex-cli 0.167.0 (the maximum main-request input over D7's four hermetic S6 calls, gpt-6-astra/xhigh and gpt-6-luna/medium, commit 6670341), kept here in prose only as the order of size, not as the slot's number. A run declares its own allowance, measured on its host (declare.py HOST_ALLOWANCE_STALE); re-measure it on 0.171.0 by session-distill/REPIN.md before a Codex seat takes S3, the one stage that reads view windows"
66
65
  }
67
66
  },
68
67
  "context": {
@@ -74,37 +73,33 @@
74
73
  "skill-installer"
75
74
  ],
76
75
  "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"
76
+ "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; carried to 0.171.0 on 2026-11-24 without a capture, until the first 0.171.0 capture observes them (session-distill/REPIN.md): a capture that loads other skills is refused by the gate's effective-context check by name",
77
+ "carried": true
78
78
  }
79
79
  }
80
80
  }
81
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
- ]
82
+ "seat_tiers": {
83
+ "$comment": "Launch-profile tiers, per run.json seat key (owner, 2026-11-29, D-20261129-946698): a stage takes the tier of the launch profile its work matches, and SWEEP is not a distill tier (gate.SEAT_TIERS; SEAT_TIER_EXCLUDED), so the absence sweeps sit on WORKHORSE. A cross review sits on the tier of the work it reviews, on the other host: Judge B on HELM beside Judge A, the OpenAI-side sweep on WORKHORSE beside the Claude-side one, S7b on HELM beside S7. S9b checks each row's Korean against its English payload, per-item work, so it sits on WORKHORSE. Before 2026-11-29 the seats were model names (design §4 and the owner's departures from it); resolved today they are the same seats except the two sweeps, which were claude-sonnet-5-5/medium and gpt-6-luna/medium.",
84
+ "S3": "claude:workhorse",
85
+ "S4": "claude:helm",
86
+ "S6.A": "claude:helm",
87
+ "S6.B": "codex:helm",
88
+ "S6.sweep_a": "claude:workhorse",
89
+ "S6.sweep_b": "codex:workhorse",
90
+ "S7": "claude:helm",
91
+ "S7b": "codex:helm",
92
+ "S9b": "codex:workhorse"
93
+ },
94
+ "cross_review": {
95
+ "$comment": "The reviewing seat key -> the seat key whose work it reviews. The pair must resolve to different hosts: independent judgment is the other provider's (design §3.1). Sitting on the same tier is the convention seat_tiers states, not a check: S9b reviews S7's Korean on WORKHORSE.",
96
+ "S6.B": "S6.A",
97
+ "S6.sweep_b": "S6.sweep_a",
98
+ "S7b": "S7",
99
+ "S9b": "S7"
105
100
  },
106
101
  "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).",
102
+ "$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 seat_tiers resolves to has an entry (gate.seats_problems, CAPACITY_UNDECLARED).",
108
103
  "claude:claude-sonnet-5-5/high": {
109
104
  "context_capacity": 1000000,
110
105
  "host_version": "2.1.317",
@@ -115,35 +110,15 @@
115
110
  "host_version": "2.1.317",
116
111
  "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
112
  },
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"
113
+ "codex:gpt-6.2-sol/xhigh": {
114
+ "context_capacity": 500000,
115
+ "host_version": "0.171.0",
116
+ "basis": "host catalogue, read 2026-11-24 (re-pin D-20261124-ebb701): the model catalogue the pinned codex-cli 0.171.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.2-sol context_window 500000 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.171.0 and re-read from the binary on a re-pin"
142
117
  },
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"
118
+ "codex:gpt-6.2-sol/high": {
119
+ "context_capacity": 500000,
120
+ "host_version": "0.171.0",
121
+ "basis": "host catalogue, read 2026-11-24 (re-pin D-20261124-ebb701): the model catalogue the pinned codex-cli 0.171.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.2-sol context_window 500000 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.171.0 and re-read from the binary on a re-pin"
147
122
  }
148
123
  }
149
124
  }
@@ -45,6 +45,9 @@
45
45
  # Verified against claude 2.1.221 (inherit). The hermetic flag set is verified per host version by
46
46
  # the author-side re-pin, on the version session-distill/seats.json pins.
47
47
  set -euo pipefail
48
+ # The helpers run under the interpreter the installation bound (the agent-launch
49
+ # launcher exports AGENT_BIOS_PYTHON on the standalone route), else python3 on PATH.
50
+ helper_python="${AGENT_BIOS_PYTHON:-python3}"
48
51
 
49
52
  usage() {
50
53
  cat <<'USAGE'
@@ -358,7 +361,7 @@ if [ "$needs_evidence" = 1 ]; then
358
361
  echo "claude-run: CAPTURE_HELPER_MISSING the evidence helper is missing beside the adapter: $helper" >&2
359
362
  exit 2
360
363
  fi
361
- command -v python3 >/dev/null 2>&1 || { echo "claude-run: CAPTURE_HELPER_MISSING python3 is required by $helper" >&2; exit 2; }
364
+ command -v "$helper_python" >/dev/null 2>&1 || { echo "claude-run: CAPTURE_HELPER_MISSING $helper_python is required by $helper" >&2; exit 2; }
362
365
  fi
363
366
 
364
367
  # Builtins only: the token never reaches an argv (where any process listing shows it), a
@@ -383,7 +386,7 @@ read_token() {
383
386
  # database, so a HOME pointed elsewhere changes nothing), the operator's own, mode 700, and no
384
387
  # instruction surface in it or any ancestor.
385
388
  if [ "$profile" = hermetic ]; then
386
- python3 "$helper" check-root --root "${cell_root:-$(dirname "$cell")}" --home "$HOME" || exit 2
389
+ "$helper_python" "$helper" check-root --root "${cell_root:-$(dirname "$cell")}" --home "$HOME" || exit 2
387
390
  fi
388
391
  if [ -n "$cell" ]; then
389
392
  for part in home config cwd; do
@@ -421,7 +424,7 @@ fi
421
424
  # The cell used is the cell validated: it and its homes resolve beneath the checked root, and the
422
425
  # producing profile reads only the working directory the manifest declares.
423
426
  if [ "$profile" = hermetic ]; then
424
- python3 "$helper" bind --root "${cell_root:-$(dirname "$cell")}" --cell "$cell" --cwd "$cd_dir" \
427
+ "$helper_python" "$helper" bind --root "${cell_root:-$(dirname "$cell")}" --cell "$cell" --cwd "$cd_dir" \
425
428
  ${manifest:+--manifest "$manifest"} || exit 2
426
429
  fi
427
430
 
@@ -450,7 +453,7 @@ fi
450
453
  # the environment the call gets, so the organisation the token belongs to is the one reported. The
451
454
  # helper runs `claude doctor` with stdin closed and a bound, and prints only the status of its one line.
452
455
  if [ "$server_policy_probe" = 1 ]; then
453
- py="$(command -v python3)"
456
+ py="$(command -v "$helper_python")"
454
457
  (
455
458
  for name in $(compgen -e); do unset "$name" 2>/dev/null || true; done
456
459
  export PATH=/usr/bin:/bin:/usr/sbin:/sbin HOME="$cell/home" CLAUDE_CONFIG_DIR="$cell/config" \
@@ -471,7 +474,7 @@ appended_snaps=()
471
474
  if [ "$needs_evidence" = 1 ]; then
472
475
  strict=()
473
476
  if [ "$profile" = hermetic ]; then strict=(--strict); fi
474
- session_id="$(python3 "$helper" prepare --cell "$cell" --cwd "${cd_dir:-$PWD}" --home "$HOME" \
477
+ session_id="$("$helper_python" "$helper" prepare --cell "$cell" --cwd "${cd_dir:-$PWD}" --home "$HOME" \
475
478
  --out "$work/pre.json" ${strict[@]+"${strict[@]}"})" || exit 2
476
479
  fi
477
480
  if [ "$profile" = hermetic ]; then
@@ -625,14 +628,14 @@ if [ "$needs_evidence" = 1 ]; then
625
628
  --appended-declared "${append_declared[$i]}")
626
629
  i=$((i + 1))
627
630
  done
628
- if python3 "$helper" "${render[@]}" > "$work/result"; then
631
+ if "$helper_python" "$helper" "${render[@]}" > "$work/result"; then
629
632
  cat "$work/result"
630
633
  else
631
634
  # A hermetic call without its evidence is not a completed call, whatever claude said.
632
635
  echo "claude-run: the evidence of call $call_id could not be rendered" >&2
633
636
  [ "$status" -ne 0 ] || status=70
634
637
  fi
635
- elif ! python3 "$helper" "${render[@]}" >/dev/null; then
638
+ elif ! "$helper_python" "$helper" "${render[@]}" >/dev/null; then
636
639
  echo "claude-run: WARNING: the evidence of call $call_id could not be rendered" >&2
637
640
  fi
638
641
  # A cell this adapter made is deleted on exit; its transcripts are evidence, kept first.
@@ -24,7 +24,7 @@ Reach:
24
24
  --reach custom CODEX_HOME from --home
25
25
 
26
26
  Options:
27
- --model MODEL Main model (default gpt-6.1-sol)
27
+ --model MODEL Main model (default gpt-6.2-sol)
28
28
  --effort EFFORT Reasoning effort override (default xhigh; ultra explicitly opts in)
29
29
  --sandbox MODE Disable default bypass; use read-only | workspace-write | danger-full-access
30
30
  --cd DIR Working root for Codex (default current directory; hermetic defaults empty)
@@ -123,22 +123,22 @@ esac
123
123
 
124
124
  case "$mode" in
125
125
  auto|implement)
126
- : "${model:=gpt-6.1-sol}"
126
+ : "${model:=gpt-6.2-sol}"
127
127
  : "${effort:=xhigh}"
128
128
  : "${sandbox:=workspace-write}"
129
129
  ;;
130
130
  review)
131
- : "${model:=gpt-6.1-sol}"
131
+ : "${model:=gpt-6.2-sol}"
132
132
  : "${effort:=xhigh}"
133
133
  : "${sandbox:=read-only}"
134
134
  ;;
135
135
  scout)
136
- : "${model:=gpt-6.1-sol}"
136
+ : "${model:=gpt-6.2-sol}"
137
137
  : "${effort:=xhigh}"
138
138
  : "${sandbox:=read-only}"
139
139
  ;;
140
140
  single)
141
- : "${model:=gpt-6.1-sol}"
141
+ : "${model:=gpt-6.2-sol}"
142
142
  : "${effort:=xhigh}"
143
143
  : "${sandbox:=workspace-write}"
144
144
  fanout=0
@@ -264,9 +264,9 @@ EOF
264
264
  if [ "$fanout" -eq 1 ]; then
265
265
  cat <<EOF
266
266
  - Fan-out is authorized when delegation gates fire; do de-minimis work directly. Native multi-agent is off unless the main is explicit Ultra.
267
- - Internal roles via codex-run --profile inherit and bounded stdin packet: WORKHORSE=gpt-6.1-sol/high/read-only-or-workspace-write; SWEEP=gpt-6-luna/max/read-only; REVIEWER=gpt-6.1-sol/high/read-only.
268
- - Native spawn cannot pin role/effort. Do not use native spawn_agent for FRONTIER. Use codex-run with gpt-6-astra/read-only and task-fit effort: max default, Ultra for divisible work, lower when cost/latency dominates.
269
- - Internal FRONTIER command base: $codex_run --profile inherit --model gpt-6-astra --effort <effort> --multi-agent auto --sandbox read-only --cd "\$PWD" -c agents.max_threads=$max_threads -c agents.max_depth=$max_depth. The adapter enables native multi-agent only for ultra. Send a self-contained packet on stdin; never full-history resume.
267
+ - Internal roles via codex-run --profile inherit and bounded stdin packet: WORKHORSE=gpt-6.2-sol/high/read-only-or-workspace-write; SWEEP=gpt-6-luna/max/read-only; REVIEWER=gpt-6.2-sol/high/read-only.
268
+ - Native spawn cannot pin role/effort. Do not use native spawn_agent for FRONTIER. Use codex-run with gpt-6.2-astra/read-only and task-fit effort: max default, Ultra for divisible work, lower when cost/latency dominates.
269
+ - Internal FRONTIER command base: $codex_run --profile inherit --model gpt-6.2-astra --effort <effort> --multi-agent auto --sandbox read-only --cd "\$PWD" -c agents.max_threads=$max_threads -c agents.max_depth=$max_depth. The adapter enables native multi-agent only for ultra. Send a self-contained packet on stdin; never full-history resume.
270
270
  - Run independent units in parallel; respect depth/thread limits; wait and synthesize bounded reports.
271
271
  EOF
272
272
  else
@@ -42,6 +42,9 @@
42
42
  #
43
43
  # Verified against codex-cli 0.144.1; capture against 0.163.0.
44
44
  set -euo pipefail
45
+ # The helpers run under the interpreter the installation bound (the agent-launch
46
+ # launcher exports AGENT_BIOS_PYTHON on the standalone route), else python3 on PATH.
47
+ helper_python="${AGENT_BIOS_PYTHON:-python3}"
45
48
 
46
49
  usage() {
47
50
  cat <<'USAGE'
@@ -356,23 +359,23 @@ if [ -n "$capture_dir" ]; then
356
359
  if [ "$prev" = "-c" ]; then render_c+=(-c "$a"); fi
357
360
  prev="$a"
358
361
  done
359
- env ${run_env[@]+"${run_env[@]}"} DISABLE_AUTOUPDATER=1 python3 "$helper" context --codex "$codex_bin" \
362
+ env ${run_env[@]+"${run_env[@]}"} DISABLE_AUTOUPDATER=1 "$helper_python" "$helper" context --codex "$codex_bin" \
360
363
  --version "$CODEX_RUN_VERSION" --codex-home "$run_home" --child-home "$child_home" \
361
364
  --cwd "$cd_dir" --capture "$capture_dir" --work "$work" "${render_c[@]}" \
362
365
  || { echo "codex-run: CONTEXT_EVIDENCE_MISSING the effective-context evidence failed, so nothing is dispatched" >&2; exit 3; }
363
- t0="$(python3 -c 'import time; print(int(time.time() * 1000))')"
366
+ t0="$("$helper_python" -c 'import time; print(int(time.time() * 1000))')"
364
367
  set +e
365
368
  # codex's stdout (the --json events) goes to fd 9, its stderr through the filter, which
366
369
  # passes every line on to this script's stderr and keeps the reduced records.
367
370
  exec 9> "$work/events.raw"
368
371
  env ${run_env[@]+"${run_env[@]}"} CODEX_HOME="$run_home" DISABLE_AUTOUPDATER=1 "$codex_bin" "${args[@]}" --json -o "$work/result" \
369
372
  < "$work/packet" 2>&1 >&9 9>&- \
370
- | python3 "$helper" filter --frames "$capture_dir/frames.jsonl" --rust-log "${RUST_LOG:-}" 9>&-
373
+ | "$helper_python" "$helper" filter --frames "$capture_dir/frames.jsonl" --rust-log "${RUST_LOG:-}" 9>&-
371
374
  status=${PIPESTATUS[0]}
372
375
  exec 9>&-
373
376
  set -e
374
- t1="$(python3 -c 'import time; print(int(time.time() * 1000))')"
375
- python3 "$helper" events --out "$capture_dir/events.jsonl" < "$work/events.raw" \
377
+ t1="$("$helper_python" -c 'import time; print(int(time.time() * 1000))')"
378
+ "$helper_python" "$helper" events --out "$capture_dir/events.jsonl" < "$work/events.raw" \
376
379
  || echo "codex-run: WARNING: events not captured" >&2
377
380
  # the bytes delivered on stdout are the final message and one newline, as without capture
378
381
  if [ -s "$work/result" ]; then { cat "$work/result"; printf '\n'; } > "$work/stdout"; else : > "$work/stdout"; fi
@@ -382,7 +385,7 @@ if [ -n "$capture_dir" ]; then
382
385
  fi
383
386
  evidence=()
384
387
  while IFS= read -r line; do evidence+=(--evidence "$line"); done < <(
385
- python3 "$helper" finish --capture "$capture_dir" --work "$work" --call-id "$call_id" --profile "$profile" \
388
+ "$helper_python" "$helper" finish --capture "$capture_dir" --work "$work" --call-id "$call_id" --profile "$profile" \
386
389
  --cwd "$cd_dir" --packet "$work/packet" --model "${cmodel:-$model}" --effort "${ceffort:-$effort}" \
387
390
  --exit-status "$status" --wall-ms "$((t1 - t0))" ${schema:+--schema "$schema"} \
388
391
  ${REVIEW_CONTEXT_MANIFEST:+--manifest "$REVIEW_CONTEXT_MANIFEST"} ${flag_args[@]+"${flag_args[@]}"} \