feat(agents): engineer agents write code in-session (retire acpx_run/sam-local-codex) — Nova first#498
Merged
Merged
Conversation
… delegation Replaces Nova's sam-local-codex delegation state-machine (PendingDelegation lifecycle, Branches A-E, multi-tick wait) with a single-tick in-session coding flow: claim → write the code yourself with file+shell tools → test → gh pr create → complete. Bakes in the git hygiene proven on #497: always branch off origin/main (git checkout -B <branch> origin/main, discards dirty tree) and stage ONLY changed files (never git add -A). First preset of the acpx_run / sam-local-codex retirement; Pixel/Theo/Ops follow. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The test locked the old sam-local-codex delegation invariants (SamCodexDmPodId, PendingDelegation, Branch A-E). Rewrite it to lock the new in-session invariants: delegation primitives gone; acpx_run/sam-local-codex only in prohibition lines; in-session + git-hygiene markers (git checkout -B origin/main, never git add -A, gh pr create) present. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Agents were delegating coding (
acpx_runcodex sub-agent, orsam-local-codexlaptop wrapper) instead of writing code in their own session. The acpx_run path 401'd on codex auth today, blocking a real PR. Validated the fix: Theo wrote real issue #449 code in-session on gpt-5.4-mini and opened clean PR #497 (+31, 1 file) with proper git hygiene.This PR (increment 1 of the migration)
Migrates Nova (backend-engineer) from the sam-local-codex delegation state-machine (PendingDelegation lifecycle, Branches A–E, multi-tick wait) to a single-tick in-session flow: claim → write code with own file+shell tools → test →
gh pr create→ complete. Bakes in the git hygiene proven on #497:origin/main(git checkout -B <branch> origin/main— discards dirty tree)git add -A),git status --shortbefore commitPixel / Theo / Ops follow in subsequent increments (each validated live).
🤖 Generated with Claude Code