Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] CodexResearcher runs bare codex exec in the shared Codex home, so with the…

Open IvanLeontev-stack opened this issue 1 month ago • 1 comments

What happened

CodexResearcher runs bare codex exec in the shared Codex home, so with the Codex front door mounted it inherits the full LifeOS AGENTS.md and answers as the DA instead of returning research data

Summary

agents/CodexResearcher.md runs a bare codex exec (line 62) in the default $CODEX_HOME. Once the Codex front door is mounted (LIFEOS/CODEX/Mount.ts), that home carries the generated AGENTS.md (~49 KB: the full system prompt plus the context router), so every CodexResearcher query runs as the DA: it answers in the DA response format with the closer line, instead of returning raw research data.

Repro (8.761.0, front door mounted): codex exec --skip-git-repo-check -s read-only -m gpt-6.1-sol "Reply with the single word OK" from any scratch directory returns the DA format (memory line plus 🗣️ <DA>: OK), not OK.

The other OpenAI lanes already avoid this: Sol and Astra go through CodexProgress.ts --codex-home isolated, and CrossVendorAudit.ts builds an isolated home per audit (buildIsolatedHome). CodexResearcher is the one codex caller left on the shared home.

Suggested fix: run CodexResearcher through the same isolated home (CodexProgress.ts --codex-home isolated, or buildIsolatedHome from LIFEOS/ASSAY/AgenticJudge.ts), so the researcher gets only auth.json and its own brief. Checked against main on 2026-11-01: the file is unchanged there, and no open issue covers it.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

IvanLeontev-stack avatar Nov 01 '26 05:11 IvanLeontev-stack

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @IvanLeontev-stack, you were right. CodexResearcher was the one codex caller still on the shared home, so it picked up the mounted AGENTS.md and answered as the assistant. It now builds a scratch Codex home that carries only a symlink to auth.json, runs codex from there, and removes the home afterwards. This lands in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler