Expand description
SQLite persistence: rusqlite + refinery, WAL + FK, single Mutex<Connection>.
Re-exports§
pub use tokens::RecordTokenOutcome;
Modules§
- allowed_
nonces - In-memory view of the signed bootstrap-nonces allowlist. Lives in AppState behind a RwLock so the polling task replaces it wholesale per successful verify; readers (enrolment handler) take a read lock and look up by nonce.
- dispatch_
queue - Pending Dispatch payloads awaiting agent long-poll (RFC-0005 §4.1 + plan 06).
- embedded 🔒
- event_
log - Append-only canonical event log (RFC-0005 §4.3 + the broader log pattern: PlanActions, Effects, gate decisions, verifications, manifest polls all land here too).
- host_
rollout_ records - Persistence for
nixfleet_state_machine::HostRolloutState. - probe_
failures - Per-(rollout, host) typed denormalization of enforce-mode probe
failures. Source of truth is
event_log(canonical, append-only); this table is a derived projection providing the indexed columns the compliance-wave gate needs cheaply. - quarantined_
closures - Quarantined-closures derived view (RFC-0008 §6.4). Append-only: one
row per
RollbackCompleteevent (RFC-0005 §4.2). The applier is the sole writer; thetriggering_event_log_seqFK proves the table is re-derivable fromevent_log(walk RollbackComplete events, group by(channel, target_closure_hash), write one row per group). - revocations
- Agent-cert revocation list (hard state); replayed each tick from signed sidecar.
- rollouts
- Rollouts derived-view table (RFC-0008 §6.3). The applier is the sole
writer; every state-mutating method takes an
event_log_seq: Option<i64>so the row’slast_transition_event_log_seqFK can be populated. - tokens
- Bootstrap-token nonces (soft state); loss bounded by one TTL.