Repository navigation
fix: preserve continuation handoffs in wake drains off Pi - #47
Merged
Merged
Conversation
peterOC26
force-pushed
the
fm/fm-drain-continuation-offpi-c1
branch
from
November 9, 2026 14:14
7acb110 to
76b3544
Compare
…ssing before acknowledgement
…n retention behavior
…dgement documentation
peterOC26
force-pushed
the
fm/fm-drain-continuation-offpi-c1
branch
from
November 9, 2026 16:10
76b3544 to
17ce69c
Compare
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
Captain's fleet needs the wake drain not to hide a continuation step. Found 2026-10-01 by the no-mistakes review of an earlier upstream sync (finding review-2) and left out as pre-existing: bin/fm-wake-drain.sh print_branch_outcomes_section prints captain rows with only seq/task/recordedAgo/summary, while fm-branch-outcome.sh present emits the fork's continuation field (PR 21). If a Pi-recorded captain row with a continuation is drained off Pi (supervision host) before it is processed, the next authorized step can be acknowledged without anyone acting on it.
What Changed
Risk Assessment
✅ Low: The change is limited to the off-Pi drain's captain-row projection: each continuation row is keyed by its own seq so it never collapses, and abbreviated handoffs carry a working
lookup --seqspointer. The byte cap still presents only the oldest contiguous run, so the printedmark-processedtarget covers exactly what was shown. The emitted processing duty and docs now match the Pi extension's instruction. Store validation guarantees a continuation is a non-blank string on a captain row, so no false-positive handoff marker is possible, and no other tool parses the drain lines.Testing
The focused drain suite and direct product CLI scenarios passed in disposable marked homes without test seams. Evidence covers replay, collapse, UTF-8 limits, full lookups, acknowledgement boundaries, emitted instructions, and compatibility. Labs were removed; source files remain unchanged.
Evidence: Live CLI transcript
Source: Live CLI transcript
Evidence: Reproducible CLI scenario driver
Source: Reproducible CLI scenario driver
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
🔧 **Rebase** - 1 issue found → auto-fixed ✅
docs/supervision-host.md- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-supervision-host-drain.test.shpython3 ~/.no-mistakes/evidence/01M70GTNYFBFR3KQHVN2KVHAEZ/drive-continuation.pyInspected the branch diff, captured actual CLI output and persisted acknowledgement state, and verified lab cleanup and a clean working tree.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.