r/codex • u/clar-melton • 3d ago
Astra Workflow My Codex handoff dry run failed because a JSON fixture was missing
My review worktree was missing fixtures/layout-small.json. I hit FileNotFoundError as soon as I reran the layout check.
This was a scratch-repo rehearsal for having Codex make a change and Claude Code review it in a separate worktree. I used a manual patch to see what would actually arrive on the review side.
The layout rule was one column at widths up to and including 48. The original check returned two columns at 48, so I changed < 48 to <= 48 and got one column. I exported a patch with git diff HEAD, applied it to another worktree at the same base commit and reran the check there.
In the original worktree, git status --short --untracked-files=all showed this.
?? fixtures/layout-small.jsonThe JSON was untracked, so the diff had left it behind. The useful line for a MemoraX Code handoff note is "check for untracked fixtures before making the patch." The commit, fixture path and rerun command belong with it.
I committed the fix and the JSON together. In a fresh worktree at that commit, python3 check_layout.py fixtures/layout-small.json printed width 48 -> 1 column.
1
u/xqianliu 2d ago
That untracked fixture is the one that would have burned me too.
The way I keep this from happening is that the agent commits once, at the end, and the fix and every new file land in that same commit. The review side then works from that commit, and each run logs which commit it started from. So no untracked file gets left behind to drop out of a patch. The review side sees exactly what the run produced.
Your git status --untracked-files=all check before exporting a patch is the cheap version of the same idea, and it belongs in the handoff note exactly where you put it.
One more thing I'd add to that note: the rerun command and the fixture path, the way you already wrote. Half a year from now that line saves someone twenty minutes.
1
u/Emotional-Rip-217 2d ago
For the real review, would you have Claude Code start from that commit?
1
u/rodrigolduarte 1d ago
if both worktrees belong to the same repository, you can commit the intended changes, including the new fixture, then open that commit in a separate review worktree with git worktree add --detach ../review <sha>. if you do want a patch, git add -N fixtures/ (or git add -A and git diff --cached) before the diff so untracked files are in it. in our setup the review is tied to the commit sha: a new commit on the branch voids the earlier approval, and we ask for new fixtures to be included in that reviewed commit.