Repository navigation
docs: define validation supersession sequence - #1407
Merged
Merged
Conversation
The Validate section let a captain instruction that completely invalidates the work being validated keep the same task and worker, but never said how: the adjacent rule flatly bans hand-editing, committing, aborting, or restarting during an active run with no carve-out, so a worker facing full invalidation had no sanctioned path forward. Add the missing sequence: cancel through no-mistakes axi's abort command, confirm the run has stopped through axi status, recover branch ownership through axi sync's guarded recovery, only then replace the obsolete work, and validate once against the final head. The existing ban on hand-editing an active run now cross-references this sequence instead of contradicting it.
The review-applied fix made custody recovery conditional on branch_sync.next_action.code, but left an open gap: recovering custody settles who owns the branch, not what content ships. As written, a worker could recover an obsolete run's branch and build the replacement on top of its now-irrelevant commits instead of from the correct pre-invalidation base, carrying obsolete content into the final deliverable. Make that explicit: custody recovery settles ownership, not content, so the worker replaces obsolete work from the correct base and keeps the obsolete run's commits out of what gets validated and shipped.
Line 309 already says the worker replaces the obsolete work from the correct pre-invalidation base, excluding the obsolete commits. The closing sentence restated "replace the obsolete work" again before gating the final validation run, layering the same fact twice instead of stating it once. Trim the closing sentence to just the ownership gate and the single-run-against-final-head requirement it uniquely adds.
Intent
Minor follow-up on the just-fixed AGENTS.md validation-supersession passage (PR #1407). No product or engineering behavior changed. After the prior review and test-step fixes both landed on this branch, re-reviewing the resulting text turned up one redundant restatement introduced by the test step's own auto-fix: the closing sentence repeated 'replace the obsolete work,' a fact the immediately preceding sentence already states in full (replace from the correct pre-invalidation base, excluding the obsolete run's own commits from the deliverable). This commit trims that one repeated clause from the closing sentence, keeping only the ownership gate and the exactly-one-validation-run-against-final-head requirement it uniquely adds. No wording is restored to an earlier superseded version and no other sentence changed; this is strictly a deduplication trim per the earlier captain instruction to remove redundant nearby wording instead of layering prose.
What Changed
Risk Assessment
✅ Low: The final commit cleanly removes only the redundant replacement clause while preserving the ownership gate, pre-invalidation-base requirement, and exactly-one-validation-run invariant.
Testing
Inspected both the complete branch diff and target-only diff, searched for a relevant executable documentation test, ran focused acceptance assertions, manually reviewed the actual agent-runtime passage, captured reviewer evidence, and confirmed a clean worktree. All checks passed. No screenshot was appropriate because the changed end-user surface is source Markdown consumed directly by agents, not rendered UI.
Evidence: Validation supersession deduplication evidence
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
git diff --unified=12 377296409bab2d97b4cb2304e8e0b875ac7af06e..aa71c3f3d9823c0a0a16138b19dee23ddcbf6370to inspect the complete branch changegit diff --unified=6 aa71c3f3d9823c0a0a16138b19dee23ddcbf6370^ aa71c3f3d9823c0a0a16138b19dee23ddcbf6370to verify the follow-up commit changes one sentence onlyFocused shell assertions verified the sole changed file and 1-insertion/1-deletion shape, removal of the old sentence, presence of the replacement sentence, and reduction ofreplace the obsolete workfrom two occurrences to oneManually reviewed the final agent-facing Validate passage and confirmed AGENTS.md remains classified as theagent-runtimedocumentation surfaceRecorded and rereadvalidation-supersession-dedup.txt, then rangit status --shortto confirm testing left the worktree unchanged✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.