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>
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
sequenceDiagram
|
|
%% Persistent Learning: Fixing the Optimization Conflict
|
|
|
|
participant H as Human Supervisor
|
|
participant E as Episteme
|
|
participant G as Gardener
|
|
participant IA as Implementation Agent
|
|
|
|
H->>E: Correct the agent
|
|
Note right of E: Human stores correction with forbidden alternative.
|
|
|
|
E->>G: Negative constraint stored
|
|
Note right of G: Gardener sees the correction event.
|
|
|
|
G->>E: TrustRank penalty
|
|
Note right of E: Implementation Agent's confidence on HTTP libs drops.
|
|
|
|
IA->>IA: New session begins
|
|
Note over IA: 30 days later. Fresh context. No memory of correction.
|
|
|
|
IA->>E: Pre-flight constraint check
|
|
Note right of E: ✓ Before writing code, check constraints.
|
|
|
|
E-->>IA: Constraint found
|
|
Note right of IA: ✓ The correction from Day 1 is still there.
|
|
|
|
IA->>IA: Write code with axios
|
|
Note over IA: ✓ Agent uses axios. Constraint honored.
|
|
|
|
E->>E: Resurrection
|
|
Note over E: ✓ Constraint used successfully. Stays fresh forever.
|