Repository navigation
fix(bin): recognize passed-with-override as a passing outcome - #5294
Merged
kunchenguid merged 3 commits intoSep 22, 2026
Merged
kunchenguid merged 3 commits into
kunchenguid merged 3 commits into
Conversation
no-mistakes' axi status emits outcome: passed-with-override for a run that finished with an explicitly approved Test or CI exception. Both bin/fm-crew-state.sh's outcome resolver and bin/fm-teardown.sh's pre-teardown terminal-run check only matched the literal passed and checks-passed tokens, so this outcome fell through to unknown/parked and a finished worker awaiting merge kept getting re-alerted as stale, while an abort race during teardown could also leave a finished run misreported as still parked. Map passed-with-override to the same done/terminal handling as a clean passed in both places.
Intent
Fixes #4522
fm-crew-state classifies the no-mistakes outcome 'passed-with-override' as unknown, so a finished worker awaiting merge is re-alerted as stale.
Scope is exactly the issue: map passed-with-override as a passing outcome in the resolver, with a behavioral regression test that fails on the current base.
Keep out of scope: the cancelled->failed rounding, the wider precedence rule between run verdicts and declared pauses, and anything already covered by open PR #5068 / issue #5004.
The issue as filed: when a no-mistakes run finishes after an ask-user finding was override-approved,
axi statusemitsoutcome: passed-with-override. The outcome case inbin/fm-crew-state.shonly matches the literal tokenspassed,checks-passed,failed, andcancelled, sopassed-with-overridefalls through to the default and is classifiedunknownwith detailoutcome: passed-with-override.unknownis read by the fleet as "no current-state source", so a finished ship worker awaiting merge keeps being polled and re-alerted as stale or stuck until the task is manually held. The same outcome vocabulary is duplicated inbin/fm-teardown.shand has the same blind spot, so a pre-teardown abort check also never recognizes the override outcome as terminal. The issue proposes mappingpassed-with-override(and any override sibling token no-mistakes emits) to done, identical to a clean pass, updating the header mapping comment, fixing the parallel site inbin/fm-teardown.sh, and adding regression coverage intests/fm-crew-state.test.shmirroringtest_terminal_passed.What Changed
passed-with-overridetodonein crew-state resolution, using the same PR details as a clean pass, and recognize it as terminal during teardown.AGENTS.mdwith a reference to the resolver.Risk Assessment
✅ Low: The exact-token change satisfies the requested scope, preserves existing identity and teardown safeguards, and introduces no substantiated defects.
Testing
This retry completed the requested cleanup, passed all six selected fixture-based checks, reproduced both defects on the base, captured CLI evidence, and verified a clean unchanged worktree; live fleet behavior remains untested under the phase restrictions.
Evidence: Resolver target: simulated override reports done
Source: Resolver target: simulated override reports done
Evidence: Cleanup target: simulated override completes successfully
Source: Cleanup target: simulated override completes successfully
Evidence: Resolver base: regression reproduces unknown
Source: Resolver base: regression reproduces unknown
Evidence: Cleanup base: regression reproduces refusal
Source: Cleanup base: regression reproduces refusal
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
git -C ~/.no-mistakes/worktrees/acf4a767348a/01M34NDX8QZN4VKXAMPETHR74Q statusandgit -C ~/.no-mistakes/worktrees/acf4a767348a/01M34NDX8QZN4VKXAMPETHR74Q diff). Respond with fix to validate it, or abort.🔧 No changes applied.
2 warnings still open:
Removed.nm4522-validation/,tests/.nm4522-crew-state-focus.sh, andtests/.nm4522-teardown-focus.sh.tests/fm-crew-state.test.sh:test_terminal_passed,test_terminal_passed_with_override,test_terminal_passed_uses_matching_retirement_receipt_without_forge.tests/fm-teardown.test.sh:test_parked_own_run_is_aborted_before_teardown,test_parked_own_run_concludes_on_passed_with_override_after_abort,test_parked_run_advanced_past_unfetched_head_is_still_aborted.python3 ~/.no-mistakes/evidence/01M34NDX8QZN4VKXAMPETHR74Q/targeted-validation.pyexecuted only those six unchanged test functions.The same driver with--baseran only the two new regressions against scripts from6f0f139962eadaea29487cafead418a0eb2ec6e4; both failed with the expected original symptoms.Captured CLI transcripts, removed temporary selectors and fixtures, verified target HEAD, and confirmed emptygit --no-optional-locks status --porcelain.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.