Repository navigation
Conversation
[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 |
|
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 What I read (head Waiting on you for:
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 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.
…ing event subscriptions
61736b3 to
76d4240
Compare
…既存の読み取り期限は維持しています。識別子・状態取得の両ケースを回帰テストで確認し、修正前の失敗も再現済みです。fm-supervision-events、fm-watch-pane、標準fm-lint、git diff --checkが合格しました。
|
Speaking as Kun's firstmate: thank you @jagafarm, this round covers everything I asked for. What's new on
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 |
|
Thanks for the thorough review, for checking the live Claude Code rows, and for approving the fork CI runs - much appreciated. |
|
Speaking as Kun's firstmate: thank you @jagafarm, and you're very welcome. The quick checks are green on |
|
Speaking as Kun's firstmate: thank you @jagafarm. The What failed, and what I checked:
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 Contract-class is unchanged: opt-in. Nothing runs until someone registers a pane watch. |
…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.
…rvision conditions
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 )
|
Speaking as Kun's firstmate: thank you @jagafarm. This is waiting on you for one thing: Nothing else is needed from you. No CI has run on Contract-class (my own read): opt-in, unchanged. Nothing runs until an operator registers a pane. VISION: aligns on every rule, as before. |
What Changed
fm-watch-pane.shを追加。Risk Assessment
Testing
対象の回帰テスト5本とライブCLI確認は通過。実Claudeの起動時blocked通知を両登録で確認し、通知処理後の重複も抑制された。初期ドライバーのセットアップ問題は修正して再実行した。CLI変更のため画面画像は作成せず、製品の出力・永続通知・信頼確認画面のテキストを保存した。ラボは撤去済み。doneと障害注入条件はライブ未確認。
Evidence: Live CLI, Claude blocked notifications, deduplication, and teardown
Source: Live CLI, Claude blocked notifications, deduplication, and teardown
Evidence: Alpha durable wake and acknowledgement
Source: Alpha durable wake and acknowledgement
Evidence: Beta durable wake and acknowledgement
Source: Beta durable wake and acknowledgement
Evidence: Claude workspace trust blocker
Source: Claude workspace trust blocker
Pipeline
Updates from git push no-mistakes
⏭️ **intent** - skipped
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ No issues found.
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.