Expand description
Durable history for fleet events.
Caliban exposes only live state, so Prospero persists a normalized event log
to satisfy “observe = live + history”. The Store trait abstracts the
backend; JsonlStore is the first-stab append-only implementation (a
sqlite-backed Store can drop in later without touching callers).
Structs§
- Jsonl
Store - Append-only JSON-lines store. All events go to a single
events.jsonl; replay filters by stream key. Simple and debuggable for the first stab; rotation and per-agent sharding are deferred. - Usage
Row - One aggregate row: everything one workspace did on one UTC day.
Traits§
- Store
- A durable, append-only event log keyed by stream.
Functions§
- prune_
store_ older_ than - Delete events older than
max_agefromstore, returning the count removed. The daemon’s age-based retention policy (#4), factored out ofcrate::fleet::FleetManager::prune_older_thanso the k8s arm — which builds noFleetManager(#83) — can prune off the shared store too.