fix(codex): a seat's own topology folder is writable, so it keeps its LEARNED.md and recap #2018
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 581 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.381
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2018"
general
weight: 0.35
openrig-review
What this changes
A Codex seat's own topology folder is now one of its writable roots. The folder is
<topology root>/rigs/<rig>/seats/<seat>, the home of the seat'sLEARNED.mdand recap.LEARNED.md(lessons for its next occupant), andrig context recap-writefails with EPERM.--add-dir.rigs/<rig>/seats/<seat>is created for the selected canonical seat, including the rig's folder when the rig has none yet, because Codex can't create a folder outside its writable roots.The same rules as the git metadata dirs
psproofs still read the id when the path has a space.--add-dirs.CodexResumeAdapter) adds it on the plain workspace-write floor. A named profile isn't checked for read-only there, and Codex refuses a writable root under a read-only sandbox, so it gets none.Only that one folder
<seat>@<rig>) with safe segments.rigs,<rig>,seatsor<seat>segment gives no folder, with a warning, and nothing is created through the link.The recap store no longer writes through a link in the seat folder
This is an intentional refusal of a layout that worked before.
RECAP.mdorrecap-superseded/(an archive folder linked elsewhere received the archived recap).RECAP.mdmust be a regular file andrecap-superseded/a real folder, with dangling links counted too. Otherwise the recap write is refused with a clear message, and the current recap, the archive and the link's target keep their bytes.Unchanged:
recap_write_refused);There's no launch refusal, no global symlink ban and no automatic unlink.
The check runs before the write. A change made between the check and the write isn't covered.
Unchanged
--add-dir.- there's no OS sandbox, so
rig context recap-writewrites the file as an ordinary process;- an edit through Claude's Edit tool outside the working directory follows the seat's permission mode.
Tests
prepareCodexSeatFolder:- it creates and reuses exactly the seat's folder;
- malformed and unsafe names, and a relative root, give none and create nothing;
- a symlinked
seatssegment gives none, and nothing is created at the link's target.recap-superseded/(to a private folder, or dangling) or atRECAP.mdis refused, and the current recap, the archive and a private target sentinel are unchanged. The ordinary write-and-supersede case still passes.🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Writable Codex launches can now access their seat’s workspace folder, including fresh, resumed, and forked sessions.
Bug Fixes
Codex launches with named profiles, read-only access, or predecessor permissions do not receive the additional workspace folder.
* Recap writes are refused when the recap file or archive folder is a symlink, helping prevent changes to linked files or folders.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->