Skip to content

fix(bin): name why a doorbell did not reach a narrow named Claude pane - #378

Merged
Pibomeister merged 3 commits into
mainfrom
fm/fm-doorbell-pane-addr
Nov 30, 2026
Merged

Pibomeister merged 3 commits into
mainfrom
fm/fm-doorbell-pane-addr

Conversation

@Pibomeister

Copy link
Copy Markdown
Owner

Intent

ZFlow order: M4 Main order 1796002929 item 1 (2026-11-29)
Authority: M4 Main (now term_f082c5be-1426-4e66-a1f9-579992bcc76e) approved shipping three Firstmate fork fixes in this order. Same terms as #369 and #371:

  • each on its own fm/ branch from origin/main, through no-mistakes, one PR on Pibomeister/firstmate
  • no upstream PR, issue or comment; no merge (M4 makes that call); no waiver; no force-push
  • Claude workers, within the 6-worker cap
    Run them ONE AT A TIME: start the next only when the previous PR is green (or parked on a decision you escalate to ZFlow).

Item 1. fm-doorbell-pane-addr (priority 0)

  • Live evidence tonight: a plan mate recorded at default:wB:pG; fm-send printed "doorbell did not reach default:wB:pG".
  • Start from data/fm-doorbell-pane-addr/report.md. It found the composite format is NOT the bug. Return code 2 has several causes whose reason is discarded (bin/fm-task-inbox-lib.sh:646/:764/:769). The reproduced defect is a narrow pane plus a Claude composer with a session name in its top rule, fixed upstream in 6935592 (kunchenguid/firstmate fix: support wrapped Claude composer readback kunchenguid/firstmate#8501).
  • First, confirm or refute the report against tonight's case. Use read-only reads of the recorded pane, if reachable from this host, and its meta; otherwise say so.
  • Then ship the smallest fix:
  • port upstream 6935592
  • stop discarding the failure reason, so "did not reach" names the reason (budget exceeded / submit failed: / send failed)
  • if tonight's case shows a different cause, fix that instead and report it
  • Tests for each changed path.

Substance of the referenced report (data/fm-doorbell-pane-addr/report.md), which is not in the repository:

  • The recorded window value <herdr-session>:<pane-id> (for example default:w1K:p3) is Firstmate's own format; every herdr call splits it at the first colon (fm_backend_herdr_parse_target) and passes the session as --session and the pane id separately, so the format and addressing need no change.
  • fm-send prints "doorbell did not reach " when fm_task_inbox_ring returns 2. A dead or missing pane returns 3 instead. Return 2 comes from: the whole ring exceeding FM_SEND_RING_BUDGET (default 20s); the backend submit call (fm_backend_send_text_submit) failing, with its stderr sent to /dev/null (which also hides "blocked on a prompt: ..."); or the backend returning a send-failed verdict. All of these collapse into one message with the reason discarded.
  • The one reproduced defect producing that message: a Claude composer whose top rule carries a session name, in a pane too narrow for the constant doorbell line to fit on one row. _fm_composer_bare_rule_sandwich in bin/fm-composer-lib.sh accepted a titled composer only when the closing rule sat directly under the prompt-glyph row, so wrapped typed text read unknown, herdr's Claude submit proof could not see the typed doorbell, cleared it, and withheld Enter. Upstream commit 6935592 (kunchenguid/firstmate fix: support wrapped Claude composer readback kunchenguid/firstmate#8501) accepts contiguous, non-blank, edge-free wrap rows between the glyph row and the closing rule, bounded by FM_COMPOSER_PI_MAX_LINES; a blank row or an overlong region still reads unknown.
  • The composer test suite (tests/fm-composer-lib.test.sh) cannot run to the end on fork main because tests/captures/claude-2.1.291-slash-popup/ is referenced but not tracked; restoring those fixtures (byte-identical to upstream, commit 6750c10) must land with the port for its test to run.
  • Not recommended: changing the window= format, stripping or adding the session prefix, or raising the ring budget without timing evidence.

What Changed

  • _fm_composer_bare_rule_sandwich in bin/fm-composer-lib.sh now accepts wrap rows between the glyph row and the closing rule of a Claude composer whose top rule shows a session name. The rows must be contiguous, non-blank, edge-free, and within FM_COMPOSER_PI_MAX_LINES, as in upstream 6935592. Before this, a doorbell line that wrapped in a narrow pane read unknown, and Enter was withheld. A blank or overlong region still reads unknown.
  • fm_task_inbox_ring now passes the reason for a return 2 back in FM_TASK_INBOX_RING_REASON, carried out of the child process through a temporary file. The reason is one of: ring budget exceeded, submit failed: <stderr>, send failed[: <stderr>], Enter failed[: <stderr>], or an unprintable inbox name. Backend stderr is now kept rather than sent to /dev/null. fm-send adds the reason to its "doorbell did not reach" message.
  • Restores the tracked tests/captures/claude-2.1.291-slash-popup/ fixtures so the composer suite runs to the end. Adds tests for the wrapped typed line and for each ring failure reason in the composer, task-inbox, and send-inbox tests, and updates docs/verification/runtime-backends.md to match.

🤖 Generated with Claude Code

Risk Assessment

✅ Low: The change is small and bounded. It widens the titled-composer sandwich to allow a contiguous, non-blank, edge-free wrap region capped by FM_COMPOSER_PI_MAX_LINES, so blank and overlong regions still read unknown. Every return-2 path of the ring now writes a one-line reason through a temp file that the parent cleans up, even on timeout. fm-send only adds that reason to its existing message, and the other callers are unaffected.

Testing

I ran the three colocated suites for the changed scripts (composer, task inbox, fm-send inbox) and all passed. The composer suite now reaches its end with the restored fixtures. Its new wrapped-composer test fails against the base library and passes on this branch, so it reproduces the regression. I then drove the real product: a real Claude Code session run with a session name in a 44-column pane on a disposable lab tmux server. On the real wrapped screen, the base library reads unknown and the new one reads pending with the exact typed text; the idle composer reads empty. Real fm-send into that pane delivered the doorbell normally. With a 1s budget it printed "did not reach … (ring budget of 1s exceeded)" and still recorded the steer and exited 0. A herdr-addressed send (default:wB:pG) went through a stub herdr CLI, since herdr is not installed. It named the budget as its reason, and the composite address resolved without error. The titled-glyph guard cases and the submit-failed, send-failed and Enter-failed reasons are covered only by unit tests, not live. I could not inspect the recorded pane from tonight because no herdr server or CLI exists on this host. I tore down the lab home, the tmux server, the Claude process and the temporary copies; the worktree is clean. Overall: go.

  • Live validation: ✅ go - 5 of 8 scenarios driven live against the product
Scenario Result Live Evidence
Typed text wraps in a narrow Claude pane whose top rule shows a session name: the composer reads pending and the full typed text is read back (real Claude 2.1.332, 44-col lab tmux pane) ✅ pass live composer-cursorless-real-claude.txt: NEW pending + full text; BASE unknown + empty content
Idle titled Claude composer still reads empty after the change (real Claude) ✅ pass live composer-cursorless-real-claude-idle.txt: cursorless-state=empty
Guard: a titled glyph over a blank row, or over a region longer than FM_COMPOSER_PI_MAX_LINES, still reads unknown ⏸️ untested no The prior payload did not establish a live result: only the colocated unit test (tests/fm-composer-lib.test.sh test_matrix_claude_named_session_titled_rule, rc=0) drives this with synthetic screens, a…
Real fm-send whose ring exceeds its budget prints 'did not reach <target> (ring budget of Ns exceeded)', exits 0, and records the steer ✅ pass live fm-send-real-claude-budget1.txt
Real fm-send with the default budget delivers the doorbell to a narrow named Claude pane, with no 'did not reach' warning ✅ pass live fm-send-real-claude-default.txt: exit 0, no fm-send warning, doorbell visible as submitted and Claude working on it
The herdr composite address default:wB:pG resolves through fm-send, and a failing herdr surfaces a named reason ✅ pass live fm-send-herdr-composite-unreachable.txt: 'did not reach default:wB:pG (ring budget of 20s exceeded)'
Submit failed / send failed / Enter failed reasons carry the backend's stderr into the 'did not reach' line ⏸️ untested no I found no non-destructive way to make real tmux refuse a send-keys or Enter while the pane stays alive; a missing pane classifies as dead (return 3) instead. The herdr CLI that produces 'blocked on a…
Read-only check of tonight's recorded pane default:wB:pG to confirm the cause ⏸️ untested no No herdr server or CLI is reachable from this host and the fleet home is off limits to this phase, so the recorded pane cannot be read here.
Evidence: Real Claude wrapped composer: cursorless classification, new vs base library

Source: Real Claude wrapped composer: cursorless classification, new vs base library

NEW lib: cursorless-state=pending content=list the inbox, read each msg in numeric order, then mv it into handled/ BASE lib (75aa7dd8): cursorless-state=unknown content=

NEW lib:
cursorless-state=pending
content=list the inbox, read each msg in numeric order, then mv it into handled/
BASE lib (75aa7dd8):
cursorless-state=unknown
content=
Evidence: Real Claude 44-col named-session pane, wrapped typed text (plain capture)

Source: Real Claude 44-col named-session pane, wrapped typed text (plain capture)

 ▐▛███▛█   Claude Code v2.1.332
▝▜██████▀  Opus 5.5 · Claude Ultra
 ▝▝   ▝▝   /tmp/tmp.PbNE8nxptE


─────────────────────────────────── Andrew ─
❯ list the inbox, read each msg in numeric
  order, then mv it into handled/
────────────────────────────────────────────
  ⏵⏵ auto mode on (shift+tab to cycle)
  tmux focus-events off · add 'set -g foc…
Evidence: Real Claude pane, styled capture used for classification

Source: Real Claude pane, styled capture used for classification

 ▐▛███▛█   Claude Code v2.1.332
▝▜██████▀  Opus 5.5 · Claude Ultra
 ▝▝   ▝▝   /tmp/tmp.PbNE8nxptE


─────────────────────────────────── Andrew ─
❯ list the inbox, read each msg in numeric
  order, then mv it into handled/
────────────────────────────────────────────
  ⏵⏵ auto mode on (shift+tab to cycle)
Evidence: Real Claude idle titled composer reads empty

Source: Real Claude idle titled composer reads empty

cursorless-state=empty
content=
Evidence: fm-send names the budget reason (real Claude pane)

Source: fm-send names the budget reason (real Claude pane)

fm-send: doorbell did not reach primary:fm-t1 (ring budget of 1s exceeded); the steer is durably recorded at .../state/t1.inbox/002.msg and the watcher will re-ring exit=0

$ FM_SEND_RING_BUDGET=1 fm-send.sh t1 "<steer>"
fm-send: doorbell did not reach primary:fm-t1 (ring budget of 1s exceeded); the steer is durably recorded at /tmp/fm-lab.Wpr5RE/state/t1.inbox/002.msg and the watcher will re-ring
exit=0
Evidence: fm-send default budget delivers to the narrow named Claude pane

Source: fm-send default budget delivers to the narrow named Claude pane

$ fm-send.sh t1 "<steer>"   (default 20s budget, 44-col named Claude pane)
exit=0
  "$FM_TASK_INBOX"/*.msg in your 't1.inbox'
  steering inbox, read and act on each in
  numeric order, then mv each into its
  handled/.

* Elucidating…
  ⎿  Tip: Use /theme to change the color
     theme

─────────────────────────────────── Andrew ─
❯ 
────────────────────────────────────────────
  ⏵⏵ auto mode on · esc to interrupt


─────────────────────────────────── Andrew ─
❯ 
────────────────────────────────────────────
  ⏵⏵ auto mode on (shift+tab to cycle)
Evidence: fm-send to a herdr composite address with an unreachable herdr (stub CLI)

Source: fm-send to a herdr composite address with an unreachable herdr (stub CLI)

$ fm-send.sh t2 "<steer>"   (meta window=default:wB:pG, backend=herdr, herdr CLI unreachable)
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Wpr5RE
WARNING: watcher still down (same stale episode; last beat: never, grace 300s; down 61s) - full banner already printed this episode.
fm-send: doorbell did not reach default:wB:pG (ring budget of 20s exceeded); the steer is durably recorded at /tmp/fm-lab.Wpr5RE/state/t2.inbox/001.msg and the watcher will re-ring
exit=0
Evidence: Composer test against the base library (regression reproduced)

Source: Composer test against the base library (regression reproduced)

ok - fm_composer_classify_content: a bare shell prompt glyph (>/$/%/#) reads unknown, never empty
ok - fm_composer_classify_content: stripped unbordered content is unknown except verified agent glyphs
ok - fm_composer_classify_content: a bare shell prompt carrying a command is not empty
ok - fm_composer_classify_content: a bare prompt glyph inside a bordered composer box reads empty (claude's own idle composer)
ok - fm_composer_classify_content: agent prompt glyphs (❯ claude, › codex, ⟩ muse) read empty bordered or bare
ok - fm_composer_classify_content: an empty composer reads empty
ok - fm_composer_classify_content: idle matching is limited to proven placeholder positions
ok - fm_composer_classify_content: idle matching preserves the caller's case mode
ok - fm_composer_classify_content: real unsubmitted text reads pending (including a popup argument-hint fill)
ok - matrix: claude's ❯+NBSP row reads empty on every profile in both locales (#1988)
not ok - named claude wrapped typed on herdr: expected pending, got 'unknown'
Evidence: Composer suite log (branch)

Source: Composer suite log (branch)

ok - fm_composer_classify_content: a bare shell prompt glyph (>/$/%/#) reads unknown, never empty
ok - fm_composer_classify_content: stripped unbordered content is unknown except verified agent glyphs
ok - fm_composer_classify_content: a bare shell prompt carrying a command is not empty
ok - fm_composer_classify_content: a bare prompt glyph inside a bordered composer box reads empty (claude's own idle composer)
ok - fm_composer_classify_content: agent prompt glyphs (❯ claude, › codex, ⟩ muse) read empty bordered or bare
ok - fm_composer_classify_content: an empty composer reads empty
ok - fm_composer_classify_content: idle matching is limited to proven placeholder positions
ok - fm_composer_classify_content: idle matching preserves the caller's case mode
ok - fm_composer_classify_content: real unsubmitted text reads pending (including a popup argument-hint fill)
ok - matrix: claude's ❯+NBSP row reads empty on every profile in both locales (#1988)
ok - matrix: a named claude session's titled top rule proves its composer; pi stays unchanged
ok - matrix: claude's arrow statusline is footer furniture, not a composer holding text
ok - fm_composer_classify_screen: footer demotion needs a contiguous, glyph-proven pair
ok - fm_composer_classify_screen: the footer zone holds for boxes, not only separator pairs
ok - fm_composer_classify_screen: the footer zone only ever refuses, never allows
ok - fm_composer_extract_selected_content: Claude 2.1.291's marked popup row is not read as the composer
ok - fm_composer_classify_screen: the popup demotion needs typed slash text and the popup row shape, and never reads empty
ok - matrix: codex's dim hint is empty when styling proves it, unknown (never pending) when it cannot
ok - matrix: muse's ⟩ reads empty everywhere and survives losing the styled-glyph signal
ok - matrix: muse's unstripped suggestion reads empty only inside its own container; typed text stays pending
ok - matrix: cursor's reverse-video placeholder remnant reads empty; real typed text stays pending
ok - matrix: cursor's fully dim placeholder reads empty; typed text stays pending
ok - matrix: herdr half-block rules bound a bare composer's wrap region
ok - matrix: omp's status row bounds the bare composer's wrap region
ok - matrix: codex 0.154's starfield rows are furniture; typed, mixed, and unanchored rows keep their verdicts
ok - matrix: codex 0.162's footer bounds its bare composer; only its exact placeholder reads empty unstyled
ok - Codex footer matching requires complete rows across wrapping, envelopes, and extraction
ok - Codex footer boundaries require a complete remaining footer run
ok - only one ordered Codex footer suffix is excluded from draft content
ok - matrix: pi's separated composer needs identity + structure; the blank row alone never proves it
ok - matrix: a dollar-first pi status footer reads empty; dead shells still refuse
ok - matrix: opencode's left-bar composer reads empty everywhere and scans the full active run
ok - matrix: opencode 1.18.31's right-aligned cwd:branch furniture reads empty; left-edge text stays pending
ok - matrix: opencode's absolute cwd rail on a wide pane reads empty busy and idle; typed text stays pending
ok - matrix: grok's real oversized titled bottom is empty while typed and unproved panes stay safe
ok - matrix: grok 1.0.62's middle-dot title reads empty when idle and pending when typed
ok - matrix: grok's key-hint row flush under its box reads empty when idle and pending when typed
ok - matrix: actual Grok send-now and semicolon hints preserve drafts and fail-closed geometry
ok - matrix: claude's titled top rule proves an idle composer empty and a draft pending (#5601, #5558)
ok - matrix: grok 1.0.44's approval-titled equal-width bottom is empty while typed and unknown titles stay safe
ok - matrix: kimi's bordered shell-glyph box reads empty through the shared owner (spawn's fourth copy retired)
ok - matrix: kimi 2.1.1's pinned status bar below the box classifies from the captured frames
ok - matrix: the real claude-in-zellij --ansi dump reads empty in both locales
ok - strict posture: blank and unidentified rows are unknown, never injectable empty
ok - fm_composer_classify_screen: the bare composer's wrap region stays identified; structure breaks it
ok - fm_composer_classify_screen: a row-leading agent glyph reanchors the live composer
ok - fm_composer_classify_screen: a lower dead shell invalidates only cursorless stale composers
ok - fm_composer_classify_screen: cursorless bare wrap regions participate in verdicts
ok - fm_composer_classify_screen: cursorless containers reject only contiguous unclaimed activity
ok - fm_composer_classify_screen: the bottom-most candidate wins; stale banners cannot
ok - fm_composer_classify_screen: incomplete lower structure invalidates stale boxes
ok - fm_composer_classify_screen: titled bottoms retain full box geometry
ok - fm_composer_classify_screen: a proven box tolerates a bottom-border cursor
ok - fm_composer_extract_selected_content: scopes user content and excludes furniture
ok - fm_composer_queued_enter_verdict: pending + busy returns empty (queued Enter)
ok - fm_composer_queued_enter_verdict: pending + idle/unknown stays pending
ok - fm_composer_queued_enter_verdict: only proven pending is converted
ok - the Claude background-task exit picker stays pending and receives no confirming Enter
ok - a buried heading or a different last line is not the exit picker
ok - a dialog note without a sink skips the match, and release leaves a caller RETURN trap
ok - picker text quoted above a normal composer is not read as a live picker
ok - the Grok weekly-limit choice is named only in its recorded structure and never reads empty
ok - composer: a composer taller than the capture window never reads empty, and the same empty shapes still do
Evidence: Task inbox suite log

Source: Task inbox suite log

ok - inbox: a steer is written durably and round-trips byte-exact with a self-describing doorbell
ok - inbox: a hostile-name doorbell executes as a no-op in bare shells
ok - inbox: terminal-control inbox names are rejected without typing
ok - inbox: a refused submit or Enter names its reason and a rung doorbell carries none
ok - inbox: the ring skips dead or missing endpoints and still rings live or unclassifiable endpoints
ok - inbox: the ring submits its own stuck doorbell, skips other pending text, and retries a lost Enter once on both paths
ok - inbox: the ring submits whole repeated copies of its own doorbell and protects a same-length paste placeholder and other text
ok - inbox: the ring submits its own doorbell split into Orca draft and protects other split text
ok - inbox: a stale Orca prefix joined to the current draft is not submitted
ok - inbox: a complete Orca doorbell tail plus a foreign draft is not submitted
ok - inbox: owned doorbells are submitted on a busy Codex, other busy harnesses stay protected, and a changed composer gets no retry
ok - inbox: a ring records a codex turn start that survives the ack and ladder reset, and a non-codex ring records none
ok - inbox: the idempotent enqueue dedups an exact re-run onto the same record, handled or not
ok - inbox: the idempotent enqueue compares steers without their standing holds block
ok - inbox: unrelated pending and handled history avoids per-record parsing and comparison
ok - inbox: prefilter preserves multiline, blank, legacy and delivery-mode exact matching
ok - inbox: a prefilter error falls back without duplicating an exact retry
ok - inbox: pending prefilter precedes handled and finds an ack before grep opens the record in both modes
ok - inbox: idempotent enqueue follows a record concurrently moved to handled
ok - inbox: the handled mv is the idempotent ack and sequences are never reissued
ok - inbox: concurrent writers serialize on the sequence lock and lose nothing
ok - inbox: a writer retries when a competing lock vanishes after its failed claim
ok - inbox: ladder bookkeeping ignores a concurrently removed inbox
ok - inbox: fire-and-forget records stay durable and outside the ladder
ok - inbox: a fire-and-forget record whose ring did not land is owed exactly one retry
ok - inbox: without config/wait-no-turns a fire-and-forget retry mark stays quiet
ok - inbox: the re-ring ladder paces by grace, escalates once, and resets on ack
ok - inbox: the ladder moves past an escalated record and escalates each record once
ok - watcher: an unhandled aged message on an idle pane re-rings without waking firstmate, and the ack silences it
ok - watcher: an unread-steer escalation says unknown for an unverified pane, idle only when idle, and waits on busy
ok - watcher: busy deferrals survive restart, escalate once at the bound, and never type
ok - watcher: a busy secondmate's unread ask names immediate interrupt and redirect
ok - watcher: delivery and acknowledgement reset the durable busy budget
ok - watcher: unwritable busy bookkeeping surfaces without typing
ok - watcher: idle successor surfaces once despite unremovable predecessor bookkeeping
ok - watcher: busy successor surfaces once despite unremovable predecessor bookkeeping
ok - watcher: persistent idle busy-reset failure escalates once and later instructions still deliver
ok - watcher: persistent protected busy-reset failure escalates once and later instructions still deliver
ok - watcher: busy limit '999999999999999999999999999999' escalates exactly once at 2
ok - watcher: busy limit '1000000000' escalates exactly once at 2
ok - watcher: busy limit '0' escalates exactly once at 2
ok - watcher: busy limit '000' escalates exactly once at 2
ok - watcher: busy limit '' escalates exactly once at 2
ok - watcher: busy limit 'invalid' escalates exactly once at 2
ok - watcher: busy limit '1' escalates exactly once at 1
ok - watcher: busy limit '3' escalates exactly once at 3
ok - watcher: unremovable obsolete busy state does not block or escalate a fire-and-forget retry
ok - watcher: busy successor escalates once despite stale predecessor ring history
ok - watcher: dead successor escalates once despite stale predecessor ring history
ok - watcher: missing successor escalates once despite stale predecessor ring history
ok - watcher: unwritable successor escalates once despite stale predecessor ring history
ok - watcher: a non-busy protected delivery breaks the busy streak and preserves the attempt ladder
ok - watcher: a non-busy failed delivery breaks the busy streak and preserves the attempt ladder
ok - watcher: a healthy or empty inbox stays completely silent
ok - watcher: acknowledgement silences an unwritable ladder without a stale wake
ok - watcher: unwritable ladder bookkeeping surfaces a stale wake after the doorbell
ok - watcher: a fire-and-forget record's owed retry rings exactly once and never escalates
ok - watcher: a fire-and-forget retry waits out the worker's own decision, then rings once
ok - watcher: spending a retry keeps a newer record's mark written during its ring
ok - watcher: a spent ring budget emits exactly one ordinary stale wake for recovery
ok - watcher: an unread secondmate ask names immediate interrupt and redirect
ok - watcher: a usage-limit unread ask queues until reset, not interrupt
ok - watcher: a positively dead pane is never typed into and surfaces exactly one stale wake
ok - watcher: dead-pane recovery overrides stale busy state
ok - parked run: a paused worker is rung once per park through its steering inbox, and the record stays on the re-ring ladder
ok - parked run: firstmate is woken once per ask-user gate, and nothing the run reports reaches the record or the wake
ok - parked run: no declared pause, a captain-held wait, a secondmate, and an already escalated gate are left alone
ok - parked run: a dead agent still gets its durable record and wake, and an unwritable inbox is retried rather than claimed
ok - watcher: a paused worker is rung as soon as its run parks, without waking firstmate for a gate the worker can answer
ok - watcher: a paused run that parks on an ask-user finding rings the worker and wakes firstmate at once
ok - watcher: an idle due steer does not type into a sticky feedback dialog
Evidence: fm-send inbox suite log

Source: fm-send inbox suite log

ok - fm-send inbox: the payload is recorded durably and only the doorbell is typed
ok - fm-send inbox: a deep home rings the same short doorbell naming the inbox once
ok - fm-send inbox: newlines are legal and the terminal can no longer truncate a steer
ok - fm-send inbox: a re-send is a new durable record, never a retyped payload
ok - fm-send inbox: a visibly pending composer skips the ring, and the steer stays durably sent
ok - fm-send inbox: a failed doorbell is still a durably sent steer
ok - fm-send inbox: a doorbell that did not reach the pane names its reason, and every steer stays durably sent
ok - fm-send inbox: a fire-and-forget ring that did not land owes one retry ring
ok - fm-send inbox: without config/wait-no-turns a fire-and-forget ring is not retried
ok - fm-send planes: slash and codex $skill invocations stay typed; plain $-text rides the inbox
ok - fm-send planes: an explicit backend target keeps the typed plane
ok - fm-send planes: the --key lifecycle path never touches the inbox
ok - fm-send inbox: a secondmate steer records marker+corr in the body and is delivered at enqueue
ok - fm-send inbox: lost reply bookkeeping never invites a resend, and the delivered steer is never duplicated
ok - fm-send inbox: metadata lock contention fails bounded without enqueue
ok - fm-send inbox: an unwritable record is a loud local failure that leaves no false expectation
ok - fm-send: an empty or whitespace-only text steer refuses before marking, recording, or typing
ok - fm-send holds: standing holds ride every recorded steer until lifted
ok - fm-send holds: a typed send to an explicit target carries the holds on one line
ok - fm-send holds: a failed holds read leaves a reused correlation resendable
ok - fm-send holds: an unreadable holds store refuses the send and sends nothing

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 5 of 8 scenarios driven live against the product
Scenario Result Live Evidence
Typed text wraps in a narrow Claude pane whose top rule shows a session name: the composer reads pending and the full typed text is read back (real Claude 2.1.332, 44-col lab tmux pane) ✅ pass live composer-cursorless-real-claude.txt: NEW pending + full text; BASE unknown + empty content
Idle titled Claude composer still reads empty after the change (real Claude) ✅ pass live composer-cursorless-real-claude-idle.txt: cursorless-state=empty
Guard: a titled glyph over a blank row, or over a region longer than FM_COMPOSER_PI_MAX_LINES, still reads unknown ⏸️ untested no The prior payload did not establish a live result: only the colocated unit test (tests/fm-composer-lib.test.sh test_matrix_claude_named_session_titled_rule, rc=0) drives this with synthetic screens, a…
Real fm-send whose ring exceeds its budget prints 'did not reach <target> (ring budget of Ns exceeded)', exits 0, and records the steer ✅ pass live fm-send-real-claude-budget1.txt
Real fm-send with the default budget delivers the doorbell to a narrow named Claude pane, with no 'did not reach' warning ✅ pass live fm-send-real-claude-default.txt: exit 0, no fm-send warning, doorbell visible as submitted and Claude working on it
The herdr composite address default:wB:pG resolves through fm-send, and a failing herdr surfaces a named reason ✅ pass live fm-send-herdr-composite-unreachable.txt: 'did not reach default:wB:pG (ring budget of 20s exceeded)'
Submit failed / send failed / Enter failed reasons carry the backend's stderr into the 'did not reach' line ⏸️ untested no I found no non-destructive way to make real tmux refuse a send-keys or Enter while the pane stays alive; a missing pane classifies as dead (return 3) instead. The herdr CLI that produces 'blocked on a…
Read-only check of tonight's recorded pane default:wB:pG to confirm the cause ⏸️ untested no No herdr server or CLI is reachable from this host and the fleet home is off limits to this phase, so the recorded pane cannot be read here.
  • bash tests/fm-composer-lib.test.sh (rc=0, runs to the end with the restored claude-2.1.291-slash-popup fixtures)
  • bash tests/fm-task-inbox.test.sh (rc=0, includes test_ring_names_a_refused_submit and the reason check for an unprintable inbox name)
  • bash tests/fm-send-inbox.test.sh (rc=0, includes test_failed_ring_names_its_reason)
  • Regression check: new tests/fm-composer-lib.test.sh plus the restored fixtures run against the base commit 75aa7dd8 tree -> not ok - named claude wrapped typed on herdr: expected pending, got &#39;unknown&#39;
  • Live: real claude -n Andrew in a 44x30 pane on the lab's private tmux server (bin/fm-lab-home.sh tmux); typed a 72-char line with no Enter; captured it with capture-pane -e; classified it cursorless (herdr caps) with the new and base libraries
  • Live: cleared the composer and classified the idle titled composer (empty)
  • Live: real bin/fm-send.sh t1 with FM_SEND_RING_BUDGET=1 into the real Claude pane -> 'did not reach primary:fm-t1 (ring budget of 1s exceeded)', exit 0, steer recorded
  • Live: real bin/fm-send.sh t1 with the default budget into the same narrow named Claude pane -> doorbell typed and submitted, no 'did not reach' line, Claude processed the inbox
  • Semi-live: real bin/fm-send.sh t2 with meta window=default:wB:pG backend=herdr, with a stub herdr CLI that always errors (no herdr installed) -> 'did not reach default:wB:pG (ring budget of 20s exceeded)'
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Port of upstream 6935592 (kunchenguid/firstmate kunchenguid#8501). A titled top rule
was accepted only when the glyph row sat directly on the closing rule, so a
doorbell that wrapped in a narrow named Claude pane read unknown and herdr's
submit proof withheld Enter.
tests/fm-composer-lib.test.sh and tests/fm-backend-herdr.test.sh read
tests/captures/claude-2.1.291-slash-popup, which never landed on this fork's
main, so the composer suite stopped before the wrapped-composer case.
Copied byte-for-byte from upstream main (blobs match 6750c10).
fm_task_inbox_ring's return 2 collapsed several failures into one notice
and discarded the reason: the ring budget running out, a refused submit
whose stderr went to /dev/null, and the backend's own send-failed verdict.
The ring now hands its caller FM_TASK_INBOX_RING_REASON (budget exceeded,
submit failed: <stderr>, send failed[: <stderr>], Enter failed[: <stderr>],
or an unprintable inbox name), and fm-send's "did not reach" notice
names it.
@Pibomeister
Pibomeister merged commit 35d2799 into main Nov 30, 2026
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