Repository navigation
Landscape sweep: the gateway lane home carries the host's Codex user instructions (AGENTS.md) - #418
Conversation
… installer import GPT-6 review of 2854514 (P3): importing tools/adoption/apply_codex_lane.py runs its line 69, which prepends the repository root to sys.path, so sys.path.pop(0) removed that root and left tools/adoption ahead of the harness. codex_user_instructions() now snapshots and restores the full sys.path. New test (installer unloaded first): red without the fix, green with it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
GPT-6 cross-family review of
The review found nothing else. Its requested checks passed: 172 tests (11 skipped) and After the repair: 🤖 Generated with Claude Code |
…instructions (AGENTS.md) The OmniRoute lane (build_args.py --gpt6-provider omniroute) runs Codex with CODEX_HOME set to a lane-local home holding only config.toml and the stack-worker profile. Codex reads $CODEX_HOME/AGENTS.md as global instructions, so the lane's GPT-6 got neither the repository's top rule nor RTK's instructions, which the native lane's workers get from ~/.codex/AGENTS.md. That is one cause of the low RTK prefix rate measured on GPT-6 lanes (M6c). - build_args.py: codex_user_instructions() imports the checkout's tools/adoption/apply_codex_lane.py and returns agents_block(), the managed block of adoption/templates/codex.AGENTS.template.md (the top rule, rtk-ai/rtk v0.50.0 hooks/rtk-awareness-full.md verbatim, the RTK exactness exceptions). stage_lane_home writes it as codex-home/AGENTS.md and records agents_sha256 in staged.json. No copy of the text. - tests: the staged AGENTS.md equals the template bytes and its sha256 is recorded; red before the change (no AGENTS.md). - README (harness) lists the third file. recipes/README.md's OmniRoute "Workers" bullet no longer says the lane has no key filter (#393 added [shell_environment_policy.filters]) and names AGENTS.md. Tests: 10 covering modules, 719 run, OK. validate.py passed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… installer import GPT-6 review of 2854514 (P3): importing tools/adoption/apply_codex_lane.py runs its line 69, which prepends the repository root to sys.path, so sys.path.pop(0) removed that root and left tools/adoption ahead of the harness. codex_user_instructions() now snapshots and restores the full sys.path. New test (installer unloaded first): red without the fix, green with it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
5d9276b to
bf3846a
Compare
What
The landscape sweep's OmniRoute lane (
build_args.py --gpt6-provider omniroute) runs Codex withCODEX_HOMEset to a lane-local home. That home held onlyconfig.tomland thestack-workerprofile.Codex reads
$CODEX_HOME/AGENTS.mdas its global instructions. So the lane's GPT-6 never got the repository's top rule or RTK's instructions, while the native lane's workers get both from~/.codex/AGENTS.md. This is one cause of the low RTK prefix rate measured on GPT-6 lanes (M6c).Change
build_args.py: newcodex_user_instructions()imports the checkout'stools/adoption/apply_codex_lane.pyand returns itsagents_block(), the same patternrender_codex_templatealready uses forrender_config.adoption/templates/codex.AGENTS.template.md: the top rule, rtk-ai/rtk v0.50.0'shooks/rtk-awareness-full.mdverbatim, and the RTK exactness exceptions.stage_lane_homewrites it ascodex-home/AGENTS.mdand records itsagents_sha256instaged.json. There is no copy of the text in the harness.recipes/README.md's OmniRoute "Workers" bullet no longer says the lane has no key filter (Landscape-sweep OmniRoute lane: exact context-mode read rules for the pinned skills; keep the gateway key out of model shells #393 added[shell_environment_policy.filters]), and it now namesAGENTS.md.adoption/templates/codex.omniroute.config.tomlis left to that template's owner, because hosts compare the installed profile with it.Verification
test_lane_home_carries_the_hosts_codex_user_instructions: the stagedAGENTS.mdequals the template bytes, and its sha256 is recorded. It fails before the change, because noAGENTS.mdis written.test_landscape_sweep_harness,test_codex_worker_lane,test_adoption_docs_consistencyandtest_render_config.python3 scripts/validate.py: passed.SOTA sources
hooks/codex/README.md: RTK's Codex integration writes the awareness document toRTK.md, referenced fromAGENTS.md. This repository inlines it, because Codex expands no@reference (docs/decisions/2026-09-26-codex-worker-lane.md:29).tools/adoption/apply_codex_lane.py(agents_block()) and its templateadoption/templates/codex.AGENTS.template.md.codex-rs/codex-home/src/instructions/mod.rs:41-62:load_from_codex_homereadsAGENTS.override.md, thenAGENTS.md, fromcodex_homeas the "global AGENTS.md instructions".🤖 Generated with Claude Code