Repository navigation
fix: allow scout cleanup after answered calls are archived - #31
Merged
Merged
Conversation
… waiting for both concurrent recoveries and restoring fixture-directory permissions before cleanup. Targeted lint and portable Herdr tests passed. Live E2E verification was blocked by the worktree’s Unix socket path length
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.
Intent
Scout cleanup refuses when its answered captain call was pruned to the done archive.
2026-10-16: pv-voice-reliability-program-p1 cleanup refuses at the captain-call completion gate because its task record's decision_keys names pv-voice-reliability-program-approve-a1, which was answered (Q765 A) and then pruned from data/backlog.md into data/done-archive.md by the done_keep retention;
bin/fm-captain-hold.sh completecannot resolve it either.2026-10-20: second case. pv-voice-sibilant-listen-l1 (Q930 Y: close it, keep the report) refuses cleanup the same way: decision_keys names pv-voice-sibilant-listen-l1-review, answered 2026-10-19 and pruned to data/done-archive.md (Resolution mode: answered). Both records and isolated copies stay until this is fixed. Never --force.
Q1178 C 2026-10-22 ("q1178 C but instead of gpt-6.1-sol xhigh use astra medium"): diagnosis/plan steps on gpt-6-astra medium, code on gpt-6.1-sol high, Claude Opus checks.
Q1180 A 2026-10-22 ("q1180 A"): firstmate-repo PRs go to the fork peterOC26/firstmate (the kunchenguid remote was renamed so the role gate resolves the fork).
What Changed
Risk Assessment
✅ Low: The change adds a read-only fallback to the done archive for inventory validation only, and it fails closed. I checked it against the tasks-axi 0.2.6 source: archive path precedence and defaults, the Done-section parser and the archive heading format all match. It still requires a recorded resolution and the right origin, live rows still take precedence, and other lookups stay live-only.
Testing
Real CLI scenarios reproduced the base failure and verified successful archived-answer cleanup, configuration and legacy compatibility, and adversarial refusals. Product transcripts and persisted-state evidence were captured; all checks passed and temporary worktree files were removed.
Evidence: Live CLI transcripts, archive records, and cleanup results
Source: Live CLI transcripts, archive records, and cleanup results
Evidence: Reproducible isolated CLI scenario driver
Source: Reproducible isolated CLI scenario driver
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
tests/fm-captain-hold-lifecycle.test.sh:4680- Theheldcase is meant to check the new rule that an archived row still bearing a captain hold is refused (theTASK_SHOW_ARCHIVEDguard at bin/fm-captain-hold.sh:619). It never reaches that guard. The case rewrites the archived row to- [ ] id - ..., but the snapshot turns every## Archivedheading into## Done, and tasks-axi parses Done sections with DONE_RE (^- \[x\] ...) only. So the row is never parsed,tasks-axi showreturns NOT_FOUND, and the case refuses because the call is absent, not because of the guard. If theTASK_SHOW_ARCHIVED = 0condition were deleted, this test would still pass. Fix: build the archived fixture so the row parses as non-done withhold_kindcaptain. For example, put it under a column-0## In flightheading in the archive, which the snapshot sed leaves alone. Then the refusal actually depends on the guard. A side note: archives written by tasks-axi only have## Archivedheadings, so in practice the guard is defense in depth for hand-edited archives.✅ **Test** - passed
✅ No issues found.
tasks-axi --versionandtmux -Vcapability checks.python3 ~/.no-mistakes/evidence/01M5HE5B2T4PX6W0SD17VS5PYR/drive-archived-cleanup.pydrove real hold, answer, prune, complete, verify, and teardown commands in marked lab homes.Executed the base-commit completion script against the same pruned-answer state to reproduce the original refusal.python3 ~/.no-mistakes/evidence/01M5HE5B2T4PX6W0SD17VS5PYR/drive-archived-cleanup.py missingadditionally verified preservation of existing scratch files.Checked persisted archive bytes, report hashes, metadata removal or retention, and completed backlog state; removed temporary labs and confirmed cleangit status --short.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.