Skip to content

watchdog: a done job's live follow-up round suppresses the close nag - #320

Merged
m4ttheweric merged 1 commit into
mainfrom
rt-205
Sep 17, 2026
Merged

m4ttheweric merged 1 commit into
mainfrom
rt-205

Conversation

@m4ttheweric

Copy link
Copy Markdown
Collaborator

Twice in one day the watchdog poked the shepherd with "done with report Xm ago, not yet closed; run rt herd close" while the consumed report had a follow-up round actively running in the same pane. Closing on that advice would have killed a live job both times.

The report clocks (worker nag + shepherd backstop) now stand down entirely while the job's pane is WORKING, and otherwise pace off quiet time since the pane's last observed transition when that is newer than the report, so a consumed report a live round superseded no longer drives the nag. The evidence names both ages ("report Xm ago, quiet Ym") and the remedy asks the shepherd to confirm no round is in flight before closing, instead of prescribing a bare close on a premise the watchdog cannot verify.

Verified: full daemon suite green, watchdog e2e green, repo-purity green.

🤖 Generated with Claude Code

Twice in one day the nag prescribed rt herd close for a job whose
consumed report had a follow-up round in flight. The report clocks now
stand down while the pane is working, pace off silence since the last
observed activity rather than the superseded report, and the remedy asks
the shepherd to confirm no round is in flight before closing.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 83 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: c973c284-2449-4e0d-b82a-c86533e3315d

📥 Commits

Reviewing files that changed from the base of the PR and between 748ff3f and 5ac6101.

📒 Files selected for processing (2)
  • lib/daemon/__tests__/herd-watchdog.test.ts
  • lib/daemon/herd-watchdog.ts

Comment @coderabbitai help to get the list of available commands.

@m4ttheweric
m4ttheweric merged commit 0860285 into main Sep 17, 2026
4 checks passed
@m4ttheweric
m4ttheweric deleted the rt-205 branch September 17, 2026 20:46
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