Repository navigation
tests: make the supervision-host TERM step in the mirror-boundary case diagnosable - #288
Merged
Merged
Conversation
… name what happened when a host does not stop
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This was referenced Nov 4, 2026
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.
Summary
When the parent re-posts a "report required" nudge to a remote secondmate that already holds the original request, an ambiguous transport result (connection lost or over budget after the remote inbox already recorded the nudge) was treated as a failed delivery. That wrote a
pending-reply-recovery-delivery-failedblocked line, which surfaces as a false needs-decision.The nudge body is deterministic, so the remote enqueue already deduplicates an identical resend onto the same record. The recovery send now retries the identical
fm-sendonce when it reports an unconfirmed result; the retry lands on the existing record and counts as delivered. A failurefm-senddid not mark unconfirmed, or one that persists on the retry, behaves exactly as before.I could not capture the original failing stderr (recovery discards it), so the unconfirmed-completion path is the identified cause rather than a proven one.
What a human sees
No new command or screen. A remote secondmate that received a steer but has not yet replied no longer gets a spurious blocked decision in its status when the follow-up nudge's transport result is ambiguous. A genuinely unreachable remote still writes the same blocked line.
flowchart LR subgraph Before A1[recovery nudge sent] --> B1[remote records it, link drops: unconfirmed] --> C1[marked failed] --> D1[false blocked decision] end subgraph After A2[recovery nudge sent] --> B2[unconfirmed] --> E2[identical retry dedups onto same record] --> F2[delivered, no blocked line] B2 -.link still down.-> G2[failed, blocked line as before] endTest transcript (
tests/fm-send-remote-delivery.test.sh):The first test fails without the retry.
tests/fm-pending-reply.test.shalso passes.