hyperhive/hive-ag3nt
müde de09503b59 events: persist to sqlite, survive harness restart
hive_ag3nt::events::Bus replaces its in-memory VecDeque with a sqlite-
backed store at /state/hyperhive-events.sqlite (overridable via
HYPERHIVE_EVENTS_DB). emit() inserts a row; history() reads back the
most recent 2000 events. survives harness restart now — operator reload
mid-investigation no longer wipes the trail.

vacuum runs hourly (immediate first sweep): drop rows older than 7
days, then trim to 2000 newest. two-stage so a quiet agent keeps a
useful tail and a chatty one stays bounded. wired into both
hive-ag3nt and hive-m1nd via spawn_events_vacuum.

if the db open fails (e.g. no /state mount in dev), Bus runs in
no-store mode — events still broadcast, just nothing persisted.
2026-05-15 19:42:57 +02:00
..
assets agent state badge: idle / thinking / offline + age timer 2026-05-15 19:36:29 +02:00
prompts manager: start/restart at will, no approval; refuse self 2026-05-15 18:57:25 +02:00
src events: persist to sqlite, survive harness restart 2026-05-15 19:42:57 +02:00
Cargo.toml events: persist to sqlite, survive harness restart 2026-05-15 19:42:57 +02:00