Repository navigation
Heartbeats and a run watchdog - #95
Merged
Merged
Conversation
Agents can switch on a heartbeat: they wake on their own rhythm (15 min to daily, optional working hours and weekdays), wake themselves on tickets that stand still, failed or never started (in the ticket's own chat, with what changed since), run a standing checklist in a Heartbeat chat, and leave a trail of beats. Quiet beats start no run. The watchdog stops runs that show no sign of life or repeat the same step with the same result, with a report of where they stood. Board tickets try again once; other runs are escalated with a notification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents wake on their own rhythm and keep their work moving between prompts, inspired by Paperclip's heartbeats.
Heartbeat (per agent, new Heartbeat tab)
task_note, a follow-up, ortask_report_blockednaming who must act.agent_createandagent_update.Watchdog (Settings > AI, on by default)
stalledis a new retryable run end), heartbeat checklist runs continue once, and anything else is escalated with a notification. Interventions are listed on the agent's Heartbeat tab.Tests
test/heartbeats.test.ts: 18 tests covering the schedule maths, quiet/stalled/retry/checklist beats, the sweep, the API, watchdog stall and loop detection, the chat escalation and the ticket retry then block.folders.testfailure, which also fails on main.pnpm -r typecheckand mobiletscare clean.