allen-store-sqlite 0.1.0

SQLite single-owner Tokio actor backend for allen-store (BEGIN IMMEDIATE, FULL sync, SHA-256 migrations)
Documentation

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 over sqlx SQLite (BEGIN IMMEDIATE, PRAGMA synchronous = FULL, optional WAL).
  • 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 mpsc channel, preventing SQLITE_BUSY write contention.
  • Executes every commit_step inside BEGIN IMMEDIATE with atomic rollback on StaleFence, RevisionConflict, TenantMismatch, IllegalTransition, or DuplicateIdempotencyKey.
  • 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

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