persist and reconcile runtime sessions

This commit is contained in:
kami
2026-07-26 20:28:41 +04:00
parent afac166989
commit ad32f29cd5
3 changed files with 67 additions and 2 deletions
+2
View File
@@ -59,6 +59,8 @@ Harness registration now uses configured `harness` and `protocol` fields, pings
Added bounded `POST /v1/artifacts` CAS upload support for report/handoff evidence. It returns the verified content hash used by lifecycle events and rejects empty or oversized uploads.
The coordinator now persists active task→herdr session mappings in an atomic runtime state file, reloads them after restart, reconciles them against durable task leases, kills stale recoverable sessions, and removes orphan mappings before monitoring begins.
Recommended order:
1. Add the orchestration coordinator: lease → worktree → harness session → bootstrap → lifecycle events.