allen-store 0.1.0

Storage-agnostic persistence typeclass (AgentStore), InMemoryStore, and shared backend conformance suite
Documentation

allen-store

Layer 1 storage-agnostic persistence typeclass (AgentStore), InMemoryStore, and shared backend conformance suites for the Allen Open Agent Infrastructure Standard.

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: Idempotent CommandId receipt lookups (lookup_receipt), single-transaction commit_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 integer MicroUsd queries (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 against InMemoryStore, SqliteAgentStore, and external custom backends.

Verification

cargo test -p allen-store --all-features