Module state

Module state 

Source
Expand description

Typed key-value state container for agents.

Supports optional delta tracking for transactional state management and prefix-scoped accessors for namespace isolation.

Structs§

FileJournalSink
Durable JournalSink writing one JSON object per line (JSONL).
MemoryJournalSink
In-memory JournalSink for tests and replay harnesses. Unbounded.
PrefixedState
A borrowed view of state that automatically prepends a prefix to all keys.
ReadOnlyPrefixedState
A borrowed, read-only view of state that automatically prepends a prefix to all keys.
SlotEvidence
Provenance and confidence for a single state slot — the evidence behind a value, aggregated from the mutation journal and the state_meta:{key} record.
State
A concurrent, type-safe state container that agents read from and write to.
StateKey
A compile-time typed state key that eliminates typo bugs and type mismatches.
StateMutation
A single state mutation recorded in the bounded mutation journal.

Enums§

StateError
Error returned by fallible state writes.
StateMutationOrigin
Where a state mutation came from.

Traits§

JournalSink
Synchronous, durable sink for state mutations.