allen-store
Layer 1 storage-agnostic persistence typeclass (AgentStore), InMemoryStore, and shared backend conformance suites for the Allen Open Agent Infrastructure Standard.
- Boundary:
#![forbid(unsafe_code)], zero SQL drivers, zero filesystem I/O. - Specification: Layer 1 — Atomic Persistence
- License: Dual-licensed under MIT OR Apache-2.0
Traits & Implementations
LeaseStore: On-demand interactive session leasing (acquire_session_lease), multi-replica pull queues (enqueue_run,claim_queued_run), heartbeat renewal (renew_lease), terminal settlement (finish_run), and crash recovery (recover_expired_run).CommandStore: IdempotentCommandIdreceipt lookups (lookup_receipt), single-transactioncommit_step, and effect inspection (list_unknown_effects,list_claimed_effects).SessionStore: Session creation and root-to-leaf branch loading with cycle detection (load_branch).SpendStore: Checked integerMicroUsdqueries (sum_spend_since,sum_run_spend).AgentStore: Blanket supertrait unifying all four sub-traits.InMemoryStore: Reference implementation for single-shot CLI runs and offline tests.conformance::{run_all, run_concurrency}: Shared backend invariant and race suites run identically againstInMemoryStore,SqliteAgentStore, and external custom backends.
Verification