Commit graph

3 commits

Author SHA1 Message Date
Natalie
24c6f24f43 feat(@projects/@claire): supervisor auto-resume of dead worker sessions
When a local worker pane dies (crash, OOM, host power-cycle), its JSONL persists
and is resumable. The agent supervisor now detects dead-but-recent local
sessions and `claude --resume <uuid>`s them, then sends a re-orient kick so the
session re-determines its OWN state (done vs pending vs finished) before acting
— mirrors the orchestrator's rehydrate-on-startup.

- rclaude.Rclaude.resume(): spawn `claude --resume <uuid>` via RCLAUDE_RESUME_ID
  (verified empirically against a real dead session on apricot).
- supervisor.select_resume_candidates(): pure, guarded selection — recency
  window, supersession (skip if a LIVE session shares the cwd), orchestrator-
  workspace exclusion, per-session retry cap, per-tick global ceiling (the
  first-wake token-storm guard). 7 unit tests.
- AgentConfig.auto_resume off|dry-run|on (default off) + max/per_tick/window.
  Ships off; roll out via dry-run, then on — same pattern as auto_continue.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 01:12:33 -07:00
Natalie
2146e42de7 feat(@projects/@claire): add auto-continue nudge logic
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-01 00:39:02 -06:00
Natalie
c557774b57 feat(@projects/@claire): add peer sync, supervisor, and telemetry loops
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-31 18:38:10 -06:00