Repository navigation
fix(bin): let the captain-call completion gate see archived calls - #12
Merged
Merged
Conversation
A markdown backlog prunes Done rows into data/done-archive.md, where tasks-axi show no longer finds them. complete and verify then treated an answered, archived captain call as absent and kept failing, or - when a live row matched the legacy derived identity - resolved to that other row and passed against it. The completion gate now reads an entry the live backlog misses from its newest row in the done archive, before any legacy fallback. An archived row is Done, so it satisfies the gate only with a recorded resolution; an archived call nobody answered is refused as unsettled. The keyed-answer intake does not consult the archive, since it cannot write there.
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.
Problem
A markdown backlog prunes Done rows into
data/done-archive.mdonce they passdone_keep, andtasks-axi showno longer finds them there.When a captain call was answered and its row archived,
fm-captain-hold.sh completeandverifycould no longer see it:<origin>-decision-<entry>, the gate resolved to that other row and passed against it, even when the archived call was never answered.Change
completeandverifynow read an entry the live backlog misses from its newest row indata/done-archive.md(ids can repeat there; sections are appended), before any legacy fallback can substitute a different row.The archived row is read through
tasks-axi showfrom a private one-row copy, so parsing stays with tasks-axi.An archived call with no recorded answer is refused as unsettled, with a message naming the repair.
docs/captain-hold-lifecycle.mddescribe the archive lookup; the skill's policy is unchanged.Tests
tests/fm-captain-hold-lifecycle.test.shgains two cases:test_answered_and_archived_call_satisfies_the_gate: an answered call pruned into the archive (behind an older archived row reusing the same id) passesverifyand a re-run ofcomplete.test_archived_call_without_an_answer_fails_the_gate: a call closed and archived without an answer fails bothverifyandcomplete, even with a live held row at its legacy identity.Against the previous script, the first case fails with the absent-task error and the second passes wrongly through the legacy row.
The full file passes locally (63 cases),
shellcheckis clean for both changed scripts, andbin/fm-doc-audience-check.shpasses.bin/fm-lint.shcould not complete its workflow lint locally becauseactionlintis not installed here.