Skip to content

fix(kanban): auto-heartbeat active workers#31773

Open
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/31752-kanban-auto-heartbeat
Open

fix(kanban): auto-heartbeat active workers#31773
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/31752-kanban-auto-heartbeat

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Summary

  • bridge AIAgent._touch_activity() to a best-effort Kanban auto-heartbeat helper for dispatcher workers
  • refresh both claim TTL and board heartbeat timestamps without persisting activity descriptions
  • add focused regressions for worker heartbeat writes, rate limiting, stale-reclaim protection, and non-fatal failures

Testing

  • uv run --frozen --with pytest python -m pytest -o addopts='' tests/run_agent/test_kanban_auto_heartbeat.py -q
  • uv run --frozen --with pytest python -m pytest -o addopts='' tests/tools/test_kanban_tools.py -k 'heartbeat' -q
  • uv run --frozen --with pytest python -m pytest -o addopts='' tests/hermes_cli/test_kanban_db.py -k 'detect_stale_skips_task_with_recent_heartbeat or heartbeat_extends_claim' -q
  • uv run --frozen --with ruff ruff check run_agent.py tools/kanban_tools.py tests/run_agent/test_kanban_auto_heartbeat.py
  • git diff --check origin/main...HEAD

Closes #31752.

@alt-glitch alt-glitch added type/bug Something isn't working comp/agent Core agent loop, run_agent.py, prompt builder comp/tools Tool registry, model_tools, toolsets P3 Low — cosmetic, nice to have labels May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder comp/tools Tool registry, model_tools, toolsets P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kanban worker runtime activity does not update board heartbeat, causing stale reclaim of active workers

2 participants