docs(CLAUDE.md): add hive_stats.rs and container_stats.rs entries (follow-up to #1430 #1432)

This commit is contained in:
lexis 2026-06-06 08:39:31 +02:00 committed by mara
commit bb990508c6

View file

@ -118,6 +118,15 @@ hive-c0re/ host daemon + sibling operator CLI (lib + 2 bins)
Dashboard surfaces the log on expand. Backed by
`/var/lib/hyperhive/build_logs.sqlite`; hourly
retention sweep via the existing vacuum.
src/hive_stats.rs hive-wide turn-stats aggregation: reads every
agent's hyperhive-turn-stats.sqlite read-only,
rolls up swarm totals + per-agent breakdowns +
model mix. Backs GET /api/stats-hive for the
dashboard's ST4TS tab; missing / unreadable dbs
skipped (one bad db never fails the endpoint).
src/container_stats.rs per-container resource metrics (cpu %, mem %, swap)
polled live; aggregated for dashboard display.
Skips unhealthy / stopped containers gracefully.
src/crash_watch.rs poll every 10s; fire HelperEvent::ContainerCrash
when a previously-running container disappears
without an operator-initiated transient (or a