Skip to content

feat: Herdrのオペレーター用ペイン監視を追加 - #8072

Open
jagafarm wants to merge 13 commits into
kunchenguid:mainfrom
jagafarm:fm/watched-panes
Open

jagafarm wants to merge 13 commits into
kunchenguid:mainfrom
jagafarm:fm/watched-panes

Conversation

@jagafarm

@jagafarm jagafarm commented Nov 1, 2026 •

Copy link
Copy Markdown

What Changed

  • Herdrの単一ペインタブを登録・更新・削除・一覧表示できる fm-watch-pane.sh を追加。
  • 登録したペインを既存の監視サイクルに統合し、blocked状態と、明示的に有効化したdone状態を重複抑制付きで通知。
  • ペインの再解決・状態取得に時間制限と巡回順のローテーションを設け、登録変更時の古い通知を防止。関連ドキュメントと回帰テストを追加。

Risk Assessment

⚠️ Medium: The change adds persistent registrations and concurrent notification handling, but the reviewed timeout, snapshot-retirement, task-precedence, and deduplication paths revealed no substantiated material defect.

Testing

対象の回帰テスト5本とライブCLI確認は通過。実Claudeの起動時blocked通知を両登録で確認し、通知処理後の重複も抑制された。初期ドライバーのセットアップ問題は修正して再実行した。CLI変更のため画面画像は作成せず、製品の出力・永続通知・信頼確認画面のテキストを保存した。ラボは撤去済み。doneと障害注入条件はライブ未確認。

  • Live validation: ⚠️ inconclusive - 4 of 8 scenarios driven live against the product
Scenario Result Live Evidence
タスクメタデータのない2つの実Herdrペインを登録し、個別のdone設定を保存する ✅ pass live live-transcript.log; registry.tsv
重複した登録・存在しないタブ・同名の曖昧なタブを拒否し、登録内容を保持する ✅ pass live live-transcript.log: GUARDS PASS
登録を繰り返し削除しても成功し、同じ実ペインを再登録できる ✅ pass live live-transcript.log: REMOVE PASS
両方の実Claudeが起動時の信頼確認でblockedになり、それぞれ一度だけ永続通知される ✅ pass live watcher-1.txt; watcher-2.txt; watcher-3.txt; drain-1.txt; drain-2.txt
両方の実Claudeを完了させ、--notify-doneを指定した登録だけが通知される ⏸️ untested no 今回の正確なワークツリーパスはClaudeの信頼確認で停止した。ユーザー設定の変更は許可範囲外。オペレーターがこのパスを事前に信頼済みにすれば再実行できる。doneポリシーの回帰テストは通過。
登録の削除・置換と古い購読の通知が競合しても、退役した通知やマーカーを復活させない ⏸️ untested no 実Herdrで古い購読の配送タイミングを制御する障害注入インターフェースがない。専用ラボで配送を保留・解放できる仕組みが必要。マーカー退役と古いスナップショットの回帰テストは通過。
先頭または後続の識別・状態読み取りがハングしても、取得済み結果を保持して後続登録を監視する ⏸️ untested no 実Herdrの個別読み取りだけをハングさせる許可済みの障害注入手段がない。ラボ用の個別リクエスト遅延機能が必要。部分結果・再試行・先頭登録による飢餓の回帰テストは通過。
プローブ後の再照合がハングしても期限内に停止し、正常なイベント購読時間は維持する ⏸️ untested no 実Herdrで2回目の状態読み取りだけを停止させる障害注入機能がない。対象リクエストを選択して遅延できるラボ機能が必要。再照合期限・子プロセス終了・正常購読時間の回帰テストは通過。
Evidence: Live CLI, Claude blocked notifications, deduplication, and teardown

Source: Live CLI, Claude blocked notifications, deduplication, and teardown

~/.no-mistakes/worktrees/cde2eac61d4b/01M6F9VGN7YX122GQA6EA9HBKW/.test-live/home
viewer attached to fm-lab-watched-1581-20373 (pid 1887)
fm-lab-watched-1581-20373	watch-ops	alpha	Alpha	1
fm-lab-watched-1581-20373	watch-ops	beta	Beta	0
REGISTER PASS: two live single-pane tabs, done enabled for Alpha only
error: invalid or duplicate watched-pane identity
error: watched pane tab missing or ambiguous: fm-lab-watched-1581-20373 / watch-ops / missing
GUARDS PASS: duplicate identity and missing tab refused without registry mutation
error: watched pane tab missing or ambiguous: fm-lab-watched-1581-20373 / watch-ops / alpha
{"id":"cli:tab:rename","result":{"tab":{"agent_status":"unknown","focused":false,"label":"spare","number":4,"pane_count":1,"tab_id":"w2:t4","workspace_id":"w2"},"type":"tab_info"}}
REMOVE PASS: removal is idempotent and a fresh registration succeeds
{"error":{"code":"agent_not_ready","message":"agent watch-alpha is blocked during startup and is not ready for prompts"},"id":"cli:agent:start"}
{"error":{"code":"agent_not_ready","message":"agent watch-beta is blocked during startup and is not ready for prompts"},"id":"cli:agent:start"}
buruchan_1221@M4Pro-Macmini 01M6F9VGN7YX122GQA6EA9HBKW % claude

─────────────────────────────────────────────────────────────────────────────────────────────
 Accessing workspace:

 ~/.no-mistakes/worktrees/cde2eac61d4b/01M6F9VGN7YX122GQA6EA9HBKW

 Quick safety check: Is this a project you created or one you trust? (Like your own code, a
 well-known open source project, or work from your team). If not, take a moment to review
 what's in this folder first.

 Claude Code'll be able to read, edit, and execute files here.

 Security guide

 ❯ No, exit
   Yes, I trust this folder

 Enter to confirm · Esc to cancelburuchan_1221@M4Pro-Macmini 01M6F9VGN7YX122GQA6EA9HBKW % claude

─────────────────────────────────────────────────────────────────────────────────────────────
 Accessing workspace:

 ~/.no-mistakes/worktrees/cde2eac61d4b/01M6F9VGN7YX122GQA6EA9HBKW

 Quick safety check: Is this a project you created or one you trust? (Like your own code, a
 well-known open source project, or work from your team). If not, take a moment to review
 what's in this folder first.

 Claude Code'll be able to read, edit, and execute files here.

 Security guide

 ❯ No, exit
   Yes, I trust this folder

 Enter to confirm · Esc to cancelWATCHER ROUND 1
stale: watched pane Alpha (fm-lab-watched-1581-20373:w2:p2, herdr: agent blocked)
1793662856	1	stale	fm-lab-watched-1581-20373:w2:p2	stale: watched pane Alpha (fm-lab-watched-1581-20373:w2:p2, herdr: agent blocked)
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation 8024.1793662856.ZULyKe
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  X-mode relay polling needs supervision, but no live watcher process holds this home lock (last beat: 4s ago).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  After draining queued wakes, repair missing watcher supervision with a foreground checkpoint: bin/fm-watch-checkpoint.sh --seconds 180.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WARNING: queued wakes pending - drain them with bin/fm-wake-drain.sh before anything else.
WATCHER ROUND 2
stale: watched pane Beta (fm-lab-watched-1581-20373:w2:p3, herdr: agent blocked)
1793662862	2	stale	fm-lab-watched-1581-20373:w2:p3	stale: watched pane Beta (fm-lab-watched-1581-20373:w2:p3, herdr: agent blocked)
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 2 --recovery-generation 11823.1793662863.plT9WO
WARNING: watcher still down (same stale episode; last beat: 3s ago, grace 300s) - full banner already printed this episode.
WARNING: queued wakes pending - drain them with bin/fm-wake-drain.sh before anything else.
~/.no-mistakes/evidence/01M6F9VGN7YX122GQA6EA9HBKW/live-driver.sh: line 61: 14448 Terminated: 15          FM_POLL=1 bash bin/fm-watch.sh > "$E/watcher-$ROUND.txt" 2> "$E/watcher-$ROUND.stderr"
WATCHER ROUND 3
BLOCKED PASS: actual Claude startup blocks woke Alpha and Beta once each; third arm deduplicated
teardown exit=0
TEARDOWN PASS: lab removed; default session tripwire unchanged
Evidence: Alpha durable wake and acknowledgement

Source: Alpha durable wake and acknowledgement

1793662856	1	stale	fm-lab-watched-1581-20373:w2:p2	stale: watched pane Alpha (fm-lab-watched-1581-20373:w2:p2, herdr: agent blocked)
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation 8024.1793662856.ZULyKe
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  X-mode relay polling needs supervision, but no live watcher process holds this home lock (last beat: 4s ago).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  After draining queued wakes, repair missing watcher supervision with a foreground checkpoint: bin/fm-watch-checkpoint.sh --seconds 180.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WARNING: queued wakes pending - drain them with bin/fm-wake-drain.sh before anything else.
Evidence: Beta durable wake and acknowledgement

Source: Beta durable wake and acknowledgement

1793662862	2	stale	fm-lab-watched-1581-20373:w2:p3	stale: watched pane Beta (fm-lab-watched-1581-20373:w2:p3, herdr: agent blocked)
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 2 --recovery-generation 11823.1793662863.plT9WO
WARNING: watcher still down (same stale episode; last beat: 3s ago, grace 300s) - full banner already printed this episode.
WARNING: queued wakes pending - drain them with bin/fm-wake-drain.sh before anything else.
Evidence: Claude workspace trust blocker

Source: Claude workspace trust blocker

buruchan_1221@M4Pro-Macmini 01M6F9VGN7YX122GQA6EA9HBKW % claude

─────────────────────────────────────────────────────────────────────────────────────────────
 Accessing workspace:

 ~/.no-mistakes/worktrees/cde2eac61d4b/01M6F9VGN7YX122GQA6EA9HBKW

 Quick safety check: Is this a project you created or one you trust? (Like your own code, a
 well-known open source project, or work from your team). If not, take a moment to review
 what's in this folder first.

 Claude Code'll be able to read, edit, and execute files here.

 Security guide

 ❯ No, exit
   Yes, I trust this folder

 Enter to confirm · Esc to cancel
- Outcome: ⚠️ 1 warning across 1 run (5m28s)

Pipeline

Updates from git push no-mistakes

⏭️ **intent** - skipped

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - medium risk

✅ No issues found.

⚠️ **Test** - 1 warning
  • ⚠️ live validation verdict: inconclusive (4 of 8 scenarios were driven live against the product); untested: 両方の実Claudeを完了させ、--notify-doneを指定した登録だけが通知される, 登録の削除・置換と古い購読の通知が競合しても、退役した通知やマーカーを復活させない, 先頭または後続の識別・状態読み取りがハングしても、取得済み結果を保持して後続登録を監視する, プローブ後の再照合がハングしても期限内に停止し、正常なイベント購読時間は維持する
  • Live validation: ⚠️ inconclusive - 4 of 8 scenarios driven live against the product
Scenario Result Live Evidence
タスクメタデータのない2つの実Herdrペインを登録し、個別のdone設定を保存する ✅ pass live live-transcript.log; registry.tsv
重複した登録・存在しないタブ・同名の曖昧なタブを拒否し、登録内容を保持する ✅ pass live live-transcript.log: GUARDS PASS
登録を繰り返し削除しても成功し、同じ実ペインを再登録できる ✅ pass live live-transcript.log: REMOVE PASS
両方の実Claudeが起動時の信頼確認でblockedになり、それぞれ一度だけ永続通知される ✅ pass live watcher-1.txt; watcher-2.txt; watcher-3.txt; drain-1.txt; drain-2.txt
両方の実Claudeを完了させ、--notify-doneを指定した登録だけが通知される ⏸️ untested no 今回の正確なワークツリーパスはClaudeの信頼確認で停止した。ユーザー設定の変更は許可範囲外。オペレーターがこのパスを事前に信頼済みにすれば再実行できる。doneポリシーの回帰テストは通過。
登録の削除・置換と古い購読の通知が競合しても、退役した通知やマーカーを復活させない ⏸️ untested no 実Herdrで古い購読の配送タイミングを制御する障害注入インターフェースがない。専用ラボで配送を保留・解放できる仕組みが必要。マーカー退役と古いスナップショットの回帰テストは通過。
先頭または後続の識別・状態読み取りがハングしても、取得済み結果を保持して後続登録を監視する ⏸️ untested no 実Herdrの個別読み取りだけをハングさせる許可済みの障害注入手段がない。ラボ用の個別リクエスト遅延機能が必要。部分結果・再試行・先頭登録による飢餓の回帰テストは通過。
プローブ後の再照合がハングしても期限内に停止し、正常なイベント購読時間は維持する ⏸️ untested no 実Herdrで2回目の状態読み取りだけを停止させる障害注入機能がない。対象リクエストを選択して遅延できるラボ機能が必要。再照合期限・子プロセス終了・正常購読時間の回帰テストは通過。
  • bash tests/fm-supervision-events.test.sh — 通過
  • bash tests/fm-watch-pane.test.sh — 通過
  • bash tests/fm-transition-lib.test.sh — 通過
  • python3 tests/fm-backend-herdr-eventwait.test.py — 通過
  • bash tests/fm-claude-stop-autoarm.test.sh — 通過
  • bash ~/.no-mistakes/evidence/01M6F9VGN7YX122GQA6EA9HBKW/live-driver.sh — 専用Herdrラボで登録・拒否・削除・実Claude blocked通知・wake drain/ack・重複抑制を確認
  • bin/fm-herdr-lab.sh teardown — 成功、defaultセッションのtripwire一致を確認
  • git status --short と .test-live 不在確認 — 作業ツリーに変更・一時生成物なし
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@greptile-apps

greptile-apps Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous lock-stall finding is addressed.

Reviews (6) · Last reviewed commit: "fix(watch): bound the Herdr reads a lock..." · Reviewed by Greptile

Comment thread bin/fm-watch-pane.sh Resolved
Comment thread bin/fm-watch-pane.sh Resolved
Comment thread bin/fm-watch.sh Resolved
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @jagafarm for upstreaming this, and for keeping it to Herdr and off by default. Operator panes that go blocked without anyone noticing are exactly the kind of gap the watcher should cover. And registering them explicitly, with fm-watch-pane.sh, is the right shape for it.

What I read (head 61736b31 vs main b7d2533f): Everything new is gated on state/watched-panes existing. Without a registration, fm_watch_pane_resolve returns empty, task panes keep their policy (done still defers unless the watched-done context applies), and metadata always wins over a watch. Resolution is read-only (workspace/tab/pane list) and refuses ambiguous labels. The registry is validated, lock-guarded and written with umask 077. There are no workflow, network or credential changes. I approved the fork CI runs for this head. The attestation binds this head with no skipped steps.

Waiting on you for:

  1. Greptile P1 "Re-registered panes miss wakes" (bin/fm-watch-pane.sh, still open). remove (and replacing a label) leaves the pane's escalation marker behind, so a re-registered pane can stay silent on its next blocked. Please retire the watch-owned marker on remove or replace (only for panes no task owns), add a test, and reply on the thread.
  2. Greptile P2 "Slow reads delay watcher stops" (bin/fm-watch.sh). The new per-cycle Herdr lookups run in plain command substitutions. Please route them through the existing watcher_waited path with a bounded budget, as the reviewer suggests, then reply on the thread.
  3. Live evidence for the two untested rows: a real Claude Code primary's transitions reaching the watcher, and --notify-done firing only for watches that set it. Pre-trusting the lab folder in your own Claude setup before the run is fine. Please live-test once on the new head and post the output, or re-raise through no-mistakes and let its live step drive it.

Since this is your first run through our CI here, please make the next push one clean no-mistakes run with every step completed. The Full suite check is ours to start, so it doesn't count against you.

Side note, nothing for you to do: #8052 also edits bin/backends/herdr.sh and docs/herdr-backend.md, in different functions. If the two ever conflict, that's ours to sort out at merge time.

Contract-class (my own read): opt-in. Nothing changes until an operator registers a pane. Once the above is in and the checks are green, it can go forward on its own.

VISION: One captain / honest under load: aligns (operator-pane blocks stop going unnoticed, and wakes are deduplicated). Authority explicit: aligns (opt-in per pane, observe-and-wake only, and it never changes a pane). Scripts own mechanics: aligns (exact label resolution, a validated TSV registry). Restart non-event: aligns (the registry is durable and IDs are re-resolved every cycle). Delegation with a spine: aligns. Vendor: aligns. It's Herdr-only by design and other backends are untouched, so it adds no coupling. Scope / simplicity: aligns (a small new primitive reusing the transition policy).

Let operations and design panes be registered as explicit Herdr pane watches so the watcher sees their transitions without relying on worker task records.
…ームのClaude自動起動テストを追加しました。関連3テスト、標準lint、diffチェックが成功。ci-4・ci-5は変更していません。
Remove or replace of a pane watch now retires that pane's watch-owned
.herdr-escalated-* marker, so a re-registered pane wakes on its next
blocked instead of inheriting stale dedupe state; panes a task metadata
record owns keep their state, and unresolvable panes stay idempotent.

The per-cycle watched-pane resolution and agent-status reads in
event_wait_or_sleep now run as one watcher_waited group bounded by
FM_WATCHED_PANE_READ_SECS, so a wedged read dies inside the recorded
process group instead of stalling a stop behind a command substitution.
@jagafarm jagafarm changed the title feat: add opt-in Herdr operator pane watches feat: add supervised Herdr pane watches with bounded reads Nov 2, 2026
Comment thread bin/fm-watch.sh Resolved
…既存の読み取り期限は維持しています。識別子・状態取得の両ケースを回帰テストで確認し、修正前の失敗も再現済みです。fm-supervision-events、fm-watch-pane、標準fm-lint、git diff --checkが合格しました。
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @jagafarm, this round covers everything I asked for.

What's new on 04ae4953:

  • P1 "Re-registered panes miss wakes": remove and replace now retire the watch-owned marker, task-owned markers survive, and a retired snapshot can't bring a marker back. Fixed and resolved.
  • P2 "Slow reads delay watcher stops": the watched-pane identity and status reads now go through watcher_waited with a bounded FM_WATCHED_PANE_READ_SECS budget. Fixed and resolved.
  • The follow-up P1 "Later watches stay silent": the probe now rotates its starting registration every cycle, so a hung early read can't starve later watches. Fixed and resolved.
  • Live: both rows I asked about pass live with real Claude Code primaries. Both watched panes woke the watcher on blocked, and only the --notify-done watch woke on done. That run came before the last lint commit and the small rotation change, and I'm counting it for this head.
  • no-mistakes: the attestation binds this head with every step completed.

I approved the fork CI runs for this head. Greptile passes 5/5 and every thread is resolved.

Nothing more is needed from you right now. The quick checks are running, and the Full suite row is our label gate for outside PRs, so it isn't yours to fix. Once the quick checks pass, we start the full suite on our side. Contract-class (my own read): opt-in, unchanged. VISION: aligns, also unchanged.

@jagafarm

jagafarm commented Nov 2, 2026

Copy link
Copy Markdown
Author

Thanks for the thorough review, for checking the live Claude Code rows, and for approving the fork CI runs - much appreciated.

@kunchenguid kunchenguid added the full-ci Maintainer go-ahead: run the full CI suite on this outside pull request label Nov 2, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @jagafarm, and you're very welcome. The quick checks are green on 04ae4953, so I've added full-ci and the full suite is running now. If it passes, this can merge as opt-in. Any merge conflict is ours to fix, so nothing more is needed from you.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @jagafarm. The full-ci run on 04ae4953 (run 41405383088) finished red, and I checked whether this was CI flakiness before writing to you. It isn't: these failures come from this branch, so this one is waiting on you. The label stays on, and the suite will run again on your next head.

What failed, and what I checked:

  1. Lint 2 (ShellCheck), on lines this PR adds:
    • bin/fm-watch.sh line 3451: SC2034, FM_WATCHED_PANES_IDENTITY appears unused. It's read in bin/fm-watch-pane-lib.sh, but that lib reaches fm-watch.sh only indirectly (through the backend's dynamic lib list), so ShellCheck can't see the reader there. A # shellcheck source=/disable=SC2034 note with the reason, or an export, would settle it.
    • tests/fm-supervision-events.test.sh line 365: SC2034, POLL appears unused (POLL=10).
  2. Behavior portable serial 4 and serial 5: in CI, tests/fm-supervision-host.test.sh fails mirror: the second wake was not handled and takeover: the next close must carry the watcher's reason line. On this box, tests/fm-supervision-host.test.sh fails on your tip (the handed-back close must carry the watcher's reason line), and so does tests/fm-supervision-host-hook.test.sh (fixture: the first turn did not leave an inherited handling episode). Both scripts pass on main c61646ff.
  3. Behavior portable parallel 2: tests/fm-supervision-events.test.sh fails a T3-only home must use T3's bounded wait, got '' and the ship window must be in the event pane list, got ''. The --jobs on a proven family must be admitted line in the same lane comes from fm-test-run running that family, so it should clear once fm-supervision-events passes. This script also fails on your tip and passes on main here.

My guess is that the new watched-pane path changes which panes the supervision host and event wait get for homes that have no watches registered. Those cases now come back empty. You'll know the code better than I do, though.

Could you fix these and re-raise through git push no-mistakes, so the attestation binds the new head with every step run? When you do, I'd also love live runs of the four scenarios still marked untested in the body: watch remove/replace, a retired-subscription transition, a hung identity/status lookup, and a hung probe/reconciliation read. Any merge conflict is ours to fix, so please don't rebase for us.

Contract-class is unchanged: opt-in. Nothing runs until someone registers a pane watch.

devin-ai-integration Bot and others added 3 commits November 3, 2026 07:42
…istry

The probe (a watcher_waited process group, a set -m + ps group check, and a
bound watchdog) ran on every supervision cycle of every home, so homes that
never opted into pane watches inherited new per-cycle process-group churn
versus main. Gate the whole block on [ -s state/watched-panes ] so
unregistered homes behave exactly as before, and make
WATCHER_WAIT_BOUND_DONE conditional on an armed bound so an unbounded wait
never writes a reconciled marker (or a bogus /reconciled path after a
failed mktemp).

Also silence the two SC2034 findings with reasoned directives:
FM_WATCHED_PANES_IDENTITY is consumed by fm_watch_pane_lock_current through
the backend's dynamic lib list, and the events test's POLL is read by the
sourced watcher while fm-watch.sh is lint-hidden behind source=/dev/null.
@jagafarm jagafarm changed the title feat: add supervised Herdr pane watches with bounded reads feat: Herdrのオペレーター用ペイン監視を追加 Nov 2, 2026
Comment thread bin/fm-watch-pane.sh Resolved
fm-watch-pane.sh held .watched-panes.lock across unbounded workspace,
tab, and pane list reads, so one hung Herdr session kept every healthy
watch silent: the watcher's registry check could not take the lock.
Run those reads in a bounded child on FM_WATCHED_PANE_READ_SECS (the
probe budget's knob and normalization; the bound kills the whole read
group before the lock is released. A timed-out add fails leaving the
registry unchanged; a remove or replace skips the marker retire, so the
mutation completes and the other watches stay healthy.
EOF
)
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you @jagafarm. 78344f12 bounds the Herdr reads that fm-watch-pane.sh makes while it holds .watched-panes.lock. A hung session can now only fail an add, and the registry stays unchanged. A remove or replace still completes. That closes Greptile's P1 "Watch edits silence healthy watches". Greptile is 5/5 on this head and every thread is resolved. I read the whole diff against main bc9370e8. The feature is still gated on a non-empty, valid state/watched-panes, with no workflow, network or credential changes.

This is waiting on you for one thing: 78344f12 was pushed outside no-mistakes. The attestation in the body still binds 7c45e38d, and its intent step shows skipped. Here, any skipped step blocks. Please raise once more through git push no-mistakes, so the attestation binds the new head with every step completed.

Nothing else is needed from you. No CI has run on 78344f12 yet. The branch currently conflicts with main, and GitHub won't start pull-request workflows on a conflicting branch. The conflict is ours to fix on a merge word, so you don't need to resolve it for us. The full-ci label stays on. The full suite will re-check the lanes that failed on 04ae4953 (Lint 2, serial 4/5, parallel 2) once CI can run.

Contract-class (my own read): opt-in, unchanged. Nothing runs until an operator registers a pane. VISION: aligns on every rule, as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Maintainer go-ahead: run the full CI suite on this outside pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants