Phase 1 delivers the complete durability and storage layer:
- WAL with crash recovery: Append-only journal with BLAKE3 checksums,
fsync guarantees, and proper seek-to-EOF on reopen
- Storage engine: sled-backed KVStore with scan_prefix for range queries
- Content-addressed storage: H:{hash}, V:{hash}, E:{hash} key patterns
- Ingestor: Background worker tailing WAL, writing to KV with 8-byte
aligned record headers for rkyv zero-copy deserialization
- Comprehensive tests: 31 tests covering crash recovery, round-trips,
and multi-cycle durability
New crates: stemedb-wal, stemedb-storage, stemedb-ingest
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
765 B
Plaintext
25 lines
765 B
Plaintext
sequenceDiagram
|
|
%% The Correction Loop: Tracing, Fixing, Learning
|
|
|
|
participant H as Human Supervisor
|
|
participant E as Episteme
|
|
participant G as Gardener
|
|
|
|
H->>E: Trace deploy agent queries
|
|
Note right of E: SRE investigates: what did the agent believe?
|
|
|
|
E-->>H: Query audit trail
|
|
Note right of H: ⚠️ Found it: no lifecycle filter. Proposal returned.
|
|
|
|
H->>E: Mark assertion incorrect
|
|
Note right of E: Supersede the problematic assertion.
|
|
|
|
E->>G: Correction event
|
|
Note right of G: Gardener wakes up.
|
|
|
|
G->>E: TrustRank back-propagation
|
|
Note right of E: Lead Orchestrator's reputation on auth topics drops.
|
|
|
|
G->>E: Store negative constraint
|
|
Note right of E: ✓ Future queries will see this constraint.
|