[bug] Codex loads the principal's rules through SystemContext.ts load, the tool…
What happened
Codex loads the principal's rules through SystemContext.ts load, the tool output cap truncates them, and nothing tells the model the rest exists
Summary
Component: Codex front door context router (LIFEOS/CODEX/Render.ts, router text at line 68) and LIFEOS/TOOLS/SystemContext.ts load
What happens: in Codex nothing from USER/ is preloaded; the router tells the model to run bun LIFEOS/TOOLS/SystemContext.ts load operations (and constitution, projects, …) before work. Codex runs that through exec_command, and the model picks a max_output_tokens cap for the call (12000 in the sessions we looked at). A principal's OPERATIONAL_PREFERENCES.md easily exceeds that, so Codex receives a truncated head of the file (the tool result says truncated output (original token count: …)) and works on with only part of the rules, with nothing telling it the rest exists.
Observed: one install, three days of Codex sessions: the operations source was loaded in every session, but at least two loads were truncated (original 18175 and 22518 tokens against a 12000 cap); every rule past roughly the first third of the file never reached the model, and the session then broke exactly those rules (commit language, write paths). In Claude Code the same file arrives whole through the CLAUDE.md @-import, so the two front doors run on different rule sets without anyone seeing it.
Suggested fix: make the load page-aware the way SystemContext.ts list <docs|skills> [offset] already is: load <source> prints at most N tokens and ends with an explicit "continued: run load <source> --offset K" line (or prints the section headings first so the model can load by [exact heading]), and the router sentence says to read every page of constitution and operations. Optionally Mount.ts --check could warn when an always-loaded source is larger than a typical tool-output cap.
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.
[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks for this. Feature requests and larger changes now live in Discussions under Ideas, so the issue list only tracks defects we're fixing now. I moved this one there with your full write-up: https://github.com/danielmiessler/LifeOS/discussions/3092. Nothing is lost, and that's where we'll pick it up. Closing here.