Repository navigation
Conversation
A Claude composer in a short Herdr pane shows only its last few wrapped rows, so the 166-191 character doorbell lost its head from view in a narrow pane, failed the composer proof, and every re-ring failed the same way. The line now drops the inbox name and is a fixed 90 characters, still telling the worker to read the inbox in order, act, and mv each record to handled/. Fixes kunchenguid#7354
|
Speaking as Kun's firstmate: thank you @lad-spg — clear repro and a nicely narrow fix. I read tip Contract-class: restore (my own read). Main's own comment on VISION.md: one captain — aligns (steering stops silently failing); authority — aligns (no new autonomy); scripts own the mechanics — aligns (constant line in the inbox lib, proof unchanged); restart is a non-event — aligns (records stay durable; backlog drains in order, shown live); delegation — aligns (strengthens the steering path rather than loosening a refusal); vendor — aligns, with one note below; scope — aligns. This pass: first-time fork, diff reviewed (no workflow/secret/network changes, and the inbox name can no longer reach the pane at all), so I approved CI and the no-mistakes runs. Attestation matches the tip; live go 5/5 in a 53x8 Claude pane, including the old-line and round-1 controls. Once required checks are green this is on the restore auto-merge path. One optional note, not a blocker: the new wording was re-verified live on claude and pi only. If you happen to have codex / opencode / grok installed, a run of |
|
Ran the doorbell check against codex for you, since you asked whether any of codex / opencode / grok was around.
So the new wording holds on codex too. One caveat worth knowing: that only runs once the test's own launch recipe passes On the three red checks here: none of them look like your diff. |
|
Speaking as Kun's firstmate: thank you @thelad-dev for running the codex lane, and for the You're right about the red checks, and none of them come from @lad-spg's diff. This pass, I approved the pending first-time-fork "Require no-mistakes" run (38795012747) and re-ran the failed CI jobs once (run 38781457893). contract-class: restore, unchanged: the default Herdr + Claude steering doorbell was promised not to outgrow the composer proof, and long task names broke that. If the re-run comes back green, this goes on the restore auto-merge path. @lad-spg, nothing is needed from you right now. |
|
Got opencode set up here, so the remaining lane from your optional note is covered now.
I also re-ran codex to be sure nothing drifted - same as before, Two caveats that cost me four runs before I got a verdict, both worth knowing if you ever wire these lanes into CI: The opencode lane goes read-only if the checkout has a stale And the codex lane needs the folder and its hooks already trusted in whatever So the wording now has live verdicts on claude, pi, codex and opencode. |
Fixes #7354
Intent
Fix #7354: on Herdr with Claude workers, the steering doorbell never reaches an idle worker in narrow or short panes, because the composer proof only sees a clipped composer. Shorten the doorbell line so it fits, without relaxing the proof.
What Changed
fm_task_inbox_doorbell_lineinbin/fm-task-inbox-lib.shnow prints one constant 87-character line (: Firstmate instruction waiting: act on "$FM_TASK_INBOX"/*.msg in order, mv to handled/). The inbox/task name is gone, so the line never grows with the task id and word-wraps to at most 2 rows in a 53-column pane. Before this, a 166-191 character line wrapped too far for the Herdr Claude composer proof, which then failed every ring with rc 2.fm_task_inbox_ringno longer builds the line from the record path and no longer returns 2 for an unprintable inbox name. The Herdr composer proof is unchanged.test_doorbell_fits_a_short_composerchecks that the line stays within 90 characters for a 64-character task id, is the same for every task, andfold -s -w 51wraps it to at most 2 rows. The terminal-control test now checks that the inbox name never reaches the pane. The doorbell assertions infm-send-inbox,fm-secondmate-restartandfm-startup-memory-budgetmatch the new wording, and the length limit infm-send-inboxgoes from 200 to 90.docs/verification/runtime-backends.mddescribes the new line and records a live re-verification of the doorbell on 2026-10-15 for claude and pi on tmux 3.4, Linux. The outdated wording about the short inbox name is removed.Risk Assessment
✅ Low: the change replaces the doorbell line with one constant short line and does not relax the Herdr composer proof. Remote and local spawns keep exporting FM_TASK_INBOX through fm-spawn; only a small legacy case for workers without that export remains.
Testing
Built an isolated Herdr lab (fm-lab-doorbell2-*) with real Claude Code 2.1.300 in a 53x8 viewport pane. Rang the new 87-character doorbell twice: both rc 0, Claude acted and acknowledged. In the same pane, the old line from the base commit and the 90-character round-1 line both fail with rc 2, and the following new doorbell drains the backlog in order. The composer rendering (2 rows, full line visible) is captured as a text grid from
herdr pane read(the lab has only a headless pty viewer), and the line is a no-op in sh and bash. bin/backends/herdr.sh is unchanged. All five live scenarios pass, the two targeted test files are green, and the lab is torn down.Evidence: 53x8 pane: new doorbell rc 0, acted and acknowledged
Source: 53x8-Pane: neue Klingel rc 0, gehandelt und quittiert
Evidence: 53x8 pane: Claude transcript after the doorbell
Source: 53x8-Pane: Claude-Mitschnitt nach der Klingel
Evidence: 53x8 pane: repeat rc 0
Source: 53x8-Pane: Wiederholung rc 0
Evidence: 53x8 pane: control old line and round-1 line, both rc 2
Source: 53x8-Pane: Gegenprobe alte Zeile und Runde-1-Zeile, beide rc 2
Evidence: 53x8 pane: recovery drains 003-005 in order
Source: 53x8-Pane: Erholung arbeitet 003-005 der Reihe nach ab
Evidence: 53x8 pane: composer shows the 87-character line fully in 2 rows
Source: 53x8-Pane: Composer zeigt die 87-Zeichen-Zeile vollständig in 2 Zeilen
7 ❯ : Firstmate instruction waiting: act on 8 "$FM_TASK_INBOX"/*.msg in order, mv to handled/Evidence: no-op in sh/bash and wrap at 51 columns
Source: No-op in sh/bash und Umbruch auf 51 Spalten
Evidence: herdr.sh proof unchanged
Source: herdr.sh-Nachweis unverändert
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
tests/fm-send-inbox-doorbell-live-e2e.test.sh:6- Der Kommentar im Kopf von tests/fm-send-inbox-doorbell-live-e2e.test.sh:5-7 beschreibt die Klingel noch mit der alten Formulierung ("list the inbox, read and act on its records in numeric order"). Die neue Zeile lautet "read &fix(watcher): make check wakes lossless via watcher-side suppression #34;$FM_TASK_INBOX&fix(watcher): make check wakes lossless via watcher-side suppression #34;/*.msg in order, act, mv to handled/". In docs/verification/runtime-backends.md wurde dieselbe Beschreibung schon angepasst. Hier fehlt nur die Anpassung des Kommentars an die neue Zeile, am Testverhalten ändert sich nichts.bin/fm-task-inbox-lib.sh:326- Die Klingel hat jetzt keinen Rückgriff mehr auf<task>.inbox. Ein Worker, der vor demFM_TASK_INBOX-Export gestartet wurde (Export seit 23e5584 vom 2026-09-30) und noch läuft, bekommt"$FM_TASK_INBOX"/*.msg. Bei ihm wird daraus/*.msg, und er muss den vollen Pfad aus seinem Brief nehmen. Der Kommentar in bin/fm-task-inbox-lib.sh nennt diesen Fall ausdrücklich, und der Brief nennt den vollen Pfad. Das ist eine bewusste Abwägung zugunsten der 90-Zeichen-Grenze aus dem Auftrag. Eine Handlung ist nicht nötig.docs/verification/runtime-backends.md:958- Die neue, kürzere Formulierung (ohne "list" und "numeric order") wurde nur gegen claude und pi live geprüft. codex, opencode, grok und muse wurden mit der neuen Zeile nicht erneut geprüft. Die Doku sagt das ehrlich ("against the harnesses installed on that machine"). Hier wird nur festgehalten, dass diese vier Harnesses mit der neuen Formulierung noch nicht live belegt sind.🔧 **Test** - 2 issues found → auto-fixed ✅
bin/fm-task-inbox-lib.sh- Die 90-Zeichen-Grenze reicht nur ab etwa 56 Spalten für 2 Composer-Zeilen. Claude Code 2.1.300 bricht an Wortgrenzen um. Bei einem 53x8-Viewport belegt die Klingel 3 Zeilen, das Ende ist abgeschnitten, und fm_task_inbox_ring liefert weiter rc 2 (live nachgewiesen, 07/08-*.txt). Das liegt außerhalb der Geometrie aus dem Issue (ca. 57 Spalten) und ist keine Regression. Der Testkommentar '90 characters keep it to 2 rows at that width' gilt nur ab dieser Breite. Für noch kleinere Panes wäre ein Folge-Issue sinnvoll, z. B. eine kürzere Zeile.Herdr-Lab überbin/fm-herdr-lab.sh name/provision/viewer start/teardown(Session fm-lab-doorbell-168992-5381), echtesclaude --dangerously-skip-permissionsmit gesetztem FM_TASK_INBOX im geteilten Pane w1:p1fm_task_inbox_ring herdr <session>:w1:p1 <record>mit der alten Klingel (Funktionen aus 9b1ada0) und der neuen Klingel (bb74644) bei Pane-Rect 45x18Zweiter Datensatz und erneutes Klingeln mit der neuen Klingel bei 45x18Gleicher Vergleich alt/neu bei Rect 55x8, 55x10 (Viewport 53x8) und 58x10 (Viewport 56x8)Manuellesherdr pane send-textmit der Klingel undpane read --source visible, um den Umbruch im Composer zu sehenKlingel-Zeile inshundbashmit FM_TASK_INBOX ausgeführt (Prüfung auf Shell-No-op)git diff --quiet 9b1ada0 bb74644 -- bin/backends/herdr.shbash tests/fm-task-inbox.test.shundbash tests/fm-send-inbox.test.sh(0 not ok)🔧 Fix applied.
✅ Re-checked - no issues remain.
bin/fm-herdr-lab.sh provision fm-lab-doorbell2-846574-1595+viewer start+workspace create+pane split(Pane-Rect 55x10, Viewport 53x8), danachclaude --dangerously-skip-permissionsmit FM_TASK_INBOX im Lab-Pane gestartetLive-Klingel: fm_task_inbox_ring herdr <lab>:w2:p1 mit der Zeile aus 7f417b6, erster Auftrag (rc 0, Auftrag ausgeführt, 001.msg in handled/)Live-Wiederholung: zweiter Auftrag im selben Pane (rc 0, 002.msg quittiert)Live-Gegenprobe im selben 53x8-Pane: Zeile vom Basis-Commit 9b1ada0 (222 Zeichen) und Zeile aus Runde 1 bb74644 (90 Zeichen), beide rc 2, ohne Enter und ohne AusführungLive-Erholung: neue Klingel nach den zwei gescheiterten Versuchen arbeitet den Rückstand 003-005 der Reihe nach ab (Log OLD, R1, NEW)Live-Darstellung: neue Zeile perpane send-textohne Enter in den Composer getippt,pane read --source visiblezeigt sie vollständig in 2 ZeilenZeile in sh und bash mit gesetztem FM_TASK_INBOX ausgeführt: rc 0, keine Ausgabe, keine Dateien angelegt;fold -s -w 51ergibt 2 Zeilen (zsh nicht installiert, übersprungen)git diff --quiet 9b1ada0 7f417b6 -- bin/backends/herdr.sh(Nachweis unverändert)bash tests/fm-task-inbox.test.sh(rc 0) undbash tests/fm-send-inbox.test.sh(rc 0)bin/fm-herdr-lab.sh teardown(Lab entfernt, Default-Session unberührt, keine Claude-Prozesse übrig, Scratch-Verzeichnis gelöscht)✅ **Document** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.