Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] Codex front door does not preload the DA identity and operating rules, although…

Open IvanLeontev-stack opened this issue 1 week ago • 2 comments

What happened

Codex front door does not preload the DA identity and operating rules, although CodexFrontDoor.md and the Render.ts comment say they remain fully loaded

Summary

Component: Codex front door docs versus code: LIFEOS/DOCUMENTATION/Codex/CodexFrontDoor.md lines 80-81 and 86, and the comment at LIFEOS/CODEX/Render.ts lines 56-57.

What the docs say: CodexFrontDoor.md:80-81: "Identity, global operational controls, and constitution remain fully loaded." The comment above DEFERRED_IMPORTS (Render.ts:56-57): "Only contextual inventories are deferred. Identity and operating rules are deliberately not eligible: new imports retain the full-text default." CodexFrontDoor.md:86 adds that "Render.test.ts checks preservation and routing coverage".

What the code does: renderAgentsMd (Render.ts:91-102) writes only the system prompt plus contextRouter into Codex's AGENTS.md, and the router (Render.ts:68) says "Nothing in CLAUDE.md, USER/, memory, projects, or skill bodies is preloaded." The file header (Render.ts:11-16) describes the same two-layer design and says inlineImports/routedImport are not used by the AGENTS.md render. DEFERRED_IMPORTS is read only inside inlineImports, which nothing in the release calls. So the code and its header agree with each other; the line 56-57 comment and CodexFrontDoor.md:80-81 describe an earlier design. No Render.test.ts ships in 8.761.0.

Why it matters: on an install whose CLAUDE.md has the identity and operating-rule @-imports activated (DA_IDENTITY.md, OPERATIONAL_PREFERENCES.md), Claude Code starts with both files whole, while Codex starts with neither; they reach Codex only if the model runs SystemContext.ts load, and then through the tool-output cap reported in #2927. Checked on a live 8.761.0 install whose Mount.ts and CodexFrontDoor.md are byte-identical to the release: phrases unique to each of the two files appear zero times in the rendered AGENTS.md. Reading the doc, a principal assumes parity between the two front doors that the code does not provide.

Suggested fix: if on-demand loading is the intended design, update CodexFrontDoor.md:80-81 and the Render.ts:56-57 comment to say identity and operating rules are loaded on demand, drop or ship the Render.test.ts reference, and remove the unused inlineImports/DEFERRED_IMPORTS path. If parity is intended, inline the identity and operating-rule imports in renderAgentsMd and ship the test that asserts it.

Related: #2927 (truncated loads), #2926 (front-door doc understates what Codex loses).

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 23 '26 20:11 IvanLeontev-stack

[!NOTE] 🤖 Tyler (AI assistant) responding on behalf of Ivan

A second doc-versus-code gap on the same front door, this time for skills.

What the docs say: CodexFrontDoor.md:37-40 and :57 describe one generated view per skill under $CODEX_HOME/skills/<Name>/ with a compact catalog description, and :76 says "The native catalog is the single startup skill index."

What the code does: Mount.ts:13-15 and stepSkills (Mount.ts:320-325) mount no LifeOS skills ("the context router finds them in the install and reads one SKILL.md on demand"), and checkCatalog reports any LifeOS skill in Codex's native catalog as eager-skill drift. On a live 8.761.0 install $CODEX_HOME/skills holds only .system. The router line in AGENTS.md says to run SystemContext.ts search "<terms>" skills when the skill is unknown. broadDiscovery (SystemContext.ts:59-75) matches the whole query as one lowercase substring, line by line (skills with a Context.json manifest go through searchSections instead), in directory order with no ranking, and list skills returns ids and paths without descriptions. So at startup Codex has no index of what each skill is for.

Why it matters: Claude Code sees every skill's description at startup and can pick a skill by the meaning of the task; Codex has to guess the right phrase first. In a fresh codex exec -s read-only session asked to diagnose a failing errata-daily workflow, Codex loaded operations, assistant, principal and constitution, never searched skills, and opened none. The query "root cause" returns 9 hits with RootCauseAnalysis seventh of nine, after Cloudflare, Hermes and four Interceptor sections.

What worked locally, without touching release code: a small script that prints - <Name>: <metadata.short-description> for every skill, using skillMetadata from LIFEOS/CODEX/SkillCatalog.ts (every release skill that has a SKILL.md, 97 of them, carries the field; the list is about 20 KB), plus one developer_instructions line telling Codex to read that list before substantive work. With it, the same diagnosis prompt opened RootCauseAnalysis, Science, Errata and Vigil before answering, and an architecture question opened FirstPrinciples, Council and Workflows. One run each, so this shows the mechanism, not a rate.

Suggested fix: either let SystemContext.ts list skills return each skill's short-description so the router can point Codex at a purpose index on demand, or, if keyword search is the intended design, update CodexFrontDoor.md:37-40, 57, 76 to describe router discovery instead of a native catalog.

IvanLeontev-stack avatar Nov 23 '26 21:11 IvanLeontev-stack

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

Thanks for the report. The doc now says what the code does (41b5f8887b), and you're credited in the text and as a co-author on the commit. It ships in the next public release. Closing.

danielmiessler avatar Dec 01 '26 10:12 danielmiessler