stemedb/crates/stemedb-query/tests/battery_pre_sentinel.rs
jordan 42d4e09508 feat: Index persistence (Phase 5C) - vector hot/cold, visual checkpoint
Phase 5C (Index Persistence) implementation:
- PersistentVectorIndex with hot/cold architecture
  - Hot: in-memory HNSW for recent vectors
  - Cold: memory-mapped HNSW loaded from disk
  - Background builder for WAL replay and atomic swap
  - BLAKE3 integrity verification
- PersistentVisualIndex with checkpoint persistence
  - BkTreeSnapshot with rkyv serialization
  - CRC32C corruption detection
  - Atomic write pattern (temp → fsync → rename)
- Key codec additions for vector index metadata
- Split large files into modules (<500 lines each)
  - battery_pre_sentinel.rs → battery/ directory
  - visual_index.rs → visual_index/ directory
  - persistent.rs → persistent/ directory
- Refactored ingest worker tests for clarity
- Updated roadmap to mark Phase 5 complete

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 15:43:18 -07:00

16 lines
789 B
Rust

//! Battery Tests (Pre-Sentinel).
//!
//! All battery tests have been modularized and split into separate files.
//! This file serves as the entry point that references the battery module.
//!
//! Each battery module is now under 500 lines and focuses on a specific area:
//! - battery1_semaglutide: The core Semaglutide scenario from what-is-episteme.md
//! - battery2_jwt_conflict: JWT escalation and layered consensus tests
//! - battery3_decay_math: Confidence decay precision tests
//! - battery4_conflict_score: Variance and entropy conflict score tests
//! - battery5_prefix_scan: ConceptPath hierarchical prefix scanning
//! - battery6_signature_tamper: Signature verification and tamper detection
//! - battery7_materialized_view: MV consistency and staleness tests
mod battery;