Skip to content

tests: make the supervision-host TERM step in the mirror-boundary case diagnosable - #288

Merged
trillium merged 2 commits into
mainfrom
fm/supervision-host-term-flake
Nov 4, 2026
Merged

trillium merged 2 commits into
mainfrom
fm/supervision-host-term-flake

Conversation

@trillium

@trillium trillium commented Nov 3, 2026

Copy link
Copy Markdown
Owner

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-failed blocked 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-send once when it reports an unconfirmed result; the retry lands on the existing record and counts as delivered. A failure fm-send did 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]
  end
Loading

Test transcript (tests/fm-send-remote-delivery.test.sh):

ok - fm-send remote: a recovery repost the remote already holds is delivered, not a blocked decision
ok - fm-send remote: a genuine recovery transport failure still writes its blocked line

The first test fails without the retry. tests/fm-pending-reply.test.sh also passes.

… name what happened when a host does not stop
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 03cc8a3e-0399-49ae-8fb1-365378b82130
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@trillium
trillium merged commit 748965c into main Nov 4, 2026
117 of 122 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant