docs: ContainerCrash mentions recent-transient grace (#124 followup to #425)

This commit is contained in:
damocles 2026-05-27 19:05:32 +02:00 committed by Mara
commit 0460bbe9ec
2 changed files with 9 additions and 3 deletions

View file

@ -57,7 +57,9 @@ hive-c0re/ host daemon + CLI (one binary, subcommand-dispatched)
/state/hyperhive-events.sqlite
src/crash_watch.rs poll every 10s; fire HelperEvent::ContainerCrash
when a previously-running container disappears
without an operator-initiated transient
without an operator-initiated transient (or a
RECENT_TRANSIENT_GRACE tombstone within the
last 30s, closes #425)
src/container_view.rs ContainerView struct + build_all helper;
shared between dashboard.rs (cold-load via
/api/state) and coordinator.rs's

View file

@ -418,8 +418,12 @@ regular claude turn so the manager can react. Variants
- `Destroyed { agent }``actions::destroy`.
- `ContainerCrash { agent, note }``crash_watch`: a previously-
running container went away with no operator-initiated transient
state (Stopping / Restarting / Destroying / Rebuilding). Manager
can `start` it again or escalate.
state (Stopping / Restarting / Destroying / Rebuilding) AND no
such transient was cleared in the last 30s (`RECENT_TRANSIENT_GRACE`
tombstone, three `POLL_INTERVAL`s — closes the race where a
lifecycle op finishes between two crash-watch polls and the
container shows briefly as "stopped without transient" before the
next start, #425). Manager can `start` it again or escalate.
- `NeedsLogin { agent }` — sub-agent has no claude session yet.
Manager can't act directly (interactive OAuth); typically flags
the operator.