Skip to content

docs: define validation supersession sequence - #1407

Merged
kunchenguid merged 6 commits into
mainfrom
fm/fm-validation-supersession-rule-relay-r1
Jul 31, 2026
Merged

kunchenguid merged 6 commits into
mainfrom
fm/fm-validation-supersession-rule-relay-r1

Conversation

@kunchenguid

@kunchenguid kunchenguid commented Jul 31, 2026 •

Copy link
Copy Markdown
Owner

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

  • Define the agent workflow for captain-directed supersession during active validation, including abort confirmation and conditional custody recovery.
  • Require replacement work to start from the correct pre-invalidation base and exclude obsolete pipeline commits.
  • Clarify that validation runs exactly once against the final head and that aborting outside this supersession sequence remains prohibited.

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
Validation supersession deduplication evidence
Target: aa71c3f3d9823c0a0a16138b19dee23ddcbf6370
Compared with target parent

Final agent-facing policy excerpt from AGENTS.md:

Custody recovery settles branch ownership, not content: the worker must replace the obsolete work from the correct pre-invalidation base rather than building on top of the recovered-but-obsolete head, keeping the obsolete run's own pipeline-fix commits out of what gets validated and shipped.
Apart from that single supported abort, do not hand-edit, commit, restart, or start a second validation run while the obsolete run still owns the branch.
Once ownership is settled, validate exactly once against that final head so no obsolete or intermediate head is ever treated as authoritative.

Focused acceptance result:

PASS target commit changes only AGENTS.md (1 insertion, 1 deletion)
PASS redundant phrase count in Validate section: parent=2 target=1
PASS final text retains settled ownership and exactly-once final-head validation

No screenshot was captured because this change affects agent-runtime Markdown instructions, not a rendered user interface. The source passage above is the actual instruction surface consumed by the agent.

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..aa71c3f3d9823c0a0a16138b19dee23ddcbf6370 to inspect the complete branch change
  • git diff --unified=6 aa71c3f3d9823c0a0a16138b19dee23ddcbf6370^ aa71c3f3d9823c0a0a16138b19dee23ddcbf6370 to verify the follow-up commit changes one sentence only
  • Focused 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 of replace the obsolete work from two occurrences to one
  • Manually reviewed the final agent-facing Validate passage and confirmed AGENTS.md remains classified as the agent-runtime documentation surface
  • Recorded and reread validation-supersession-dedup.txt, then ran git status --short to confirm testing left the worktree unchanged
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

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.
@kunchenguid kunchenguid changed the title fix: define validation supersession procedure docs: define validation supersession sequence Jul 31, 2026
@kunchenguid
kunchenguid merged commit 9fdef64 into main Jul 31, 2026
11 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-validation-supersession-rule-relay-r1 branch July 31, 2026 19:00
@acklabsio acklabsio mentioned this pull request Aug 1, 2026