Skip to content

persistent

Structs


firma_sidecar::enforcement::session::persistent::PersistentSessionStateStore

Section titled “firma_sidecar::enforcement::session::persistent::PersistentSessionStateStore”

Struct

Append-only JSONL-backed session state store.

Methods:

  • fn open<impl AsRef<Path>>(path: impl Trait, capacity: usize) -> std::io::Result<Self> - open (or create) the session-state log at path, replay it into an
  • fn default_path(runtime_dir: &Path) -> PathBuf - Default path for the persistent store under a runtime directory.

Trait Implementations:

  • SessionStateStore
    • fn record_action(self: &Self, session_id: &SessionId) -> u64
    • fn signals(self: &Self, session_id: &SessionId) -> RuntimeSignals
    • fn record_outcome(self: &Self, session_id: &SessionId, action_class: &str, resource: &str, outcome: Outcome)
    • fn advance_provenance(self: &Self, session_id: &SessionId, context_hash: &str, action_class: &str, resource: &str) -> String