Skip to content

fm-send: --resolve-key must not close a captain hold - #296

Merged
trillium merged 2 commits into
mainfrom
fm/resolve-key-captain-hold
Nov 3, 2026
Merged

trillium merged 2 commits into
mainfrom
fm/resolve-key-captain-hold

Conversation

@trillium

@trillium trillium commented Nov 3, 2026

Copy link
Copy Markdown
Owner

What changes

bin/fm-send.sh --resolve-key <key> no longer closes a captain-held task. Before, a firstmate steer that named a held task's key closed the hold and the status line read "captain hold ... answered" although the captain never answered, giving a parent firstmate a false approval record.

Now that send refuses before delivering anything, writes nothing to the backlog, and names the answer path (bin/fm-captain-hold.sh answer <task-id> --decision-file <path>). Ordinary worker decision keys (a needs-decision answered by firstmate) close exactly as before.

Visual evidence

flowchart LR
  subgraph Before
    A[fm-send --resolve-key held-call] --> B[key resolved to captain-held task] --> C[hold closed, recorded as captain answered]
  end
  subgraph After
    D[fm-send --resolve-key held-call] --> E[key resolved to captain-held task] --> F[refused: nothing sent, hold stays open, points at fm-captain-hold.sh answer]
    G[fm-send --resolve-key ordinary-key] --> H[status-log decision closed as before]
  end
Loading

Refusal output (from the new test test_steer_never_closes_a_captain_hold):

error: --resolve-key names captain-held task(s) held-call: only the captain's own answer closes a captain hold, and a firstmate steer is not that answer; nothing was sent.
  record the captain's answer with: .../bin/fm-captain-hold.sh answer <task-id> --decision-file <path>
  or deliver this message without closing anything (drop --resolve-key).

Tests

tests/fm-send-resolve-key.test.sh passes (0 failures), including the new case covering both the refused captain hold and the still-closing ordinary key. Docs and the captain-hold-lifecycle skill text updated where they described the chat channel.

…ding a captain answer

A firstmate steer is not the captain's answer, so --resolve-key no longer
feeds a captain-held task into the keyed-answer intake. It refuses before
sending and points at fm-captain-hold.sh answer. Ordinary status-log
decision keys close as before.
@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: a5dc540e-4e35-4397-ab65-bfc9f91c7d5b
  • 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 8170250 into main Nov 3, 2026
69 of 71 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