allen-store-sqlite
Local single-node SQLite backend implementing allen-store::AgentStore for the Allen Open Agent Infrastructure Standard.
- Boundary:
#![forbid(unsafe_code)], single-owner Tokio actor oversqlxSQLite (BEGIN IMMEDIATE,PRAGMA synchronous = FULL, optionalWAL). - Specification: Layer 1 — Atomic Persistence
- License: Dual-licensed under MIT OR Apache-2.0
Guarantees
- Serializes all writes through one Tokio actor over a bounded
mpscchannel, preventingSQLITE_BUSYwrite contention. - Executes every
commit_stepinsideBEGIN IMMEDIATEwith atomic rollback onStaleFence,RevisionConflict,TenantMismatch,IllegalTransition, orDuplicateIdempotencyKey. - Verifies SHA-256 checksums of append-only SQL migrations on startup and fails closed with
StoreError::SchemaDrift. - Passes
allen_store::conformance::{run_all, run_concurrency}, simulated process-restart durability tests, corrupt JSON payload tests, and multi-tenant interleaving stress tests.
Verification