HomeHeroesModelsSchedulesArchitectureGene Scan๐Ÿง  V3๐Ÿ“ฆ Knowledge๐Ÿง  NPEAD๐Ÿงช Tests

๐Ÿงช Test Coverage & Quality

Automated tests across all platform components. Unit + Integration + E2E.

93Total Tests
93Passing
0Failing
100%Pass Rate

Unit Tests (76) โ€” cortex-rs

ModuleTestsCoverageStatus
cortex_master.rs11
โœ… 95%
self_improvement.rs4
โœ… 85%
evidence.rs3
โœ… 90%
repurpose.rs6
โœ… 80%
evidence_card.rs4
โœ… 75%
other modules48
๐ŸŸก 70%
nightly.rs (orchestration)โ€”
๐ŸŸก E2E only

E2E Integration Tests (17) โ€” Python

TestWhat it validatesStatus
Scan Pool Write/ReadDDB put_item + get_item + TTL attributeโœ…
Scan Pool Reason PreservedRejection reason stored correctlyโœ…
Scan Pool TTL Set90-day TTL attribute presentโœ…
Wisdom Write/Readcortex-wisdom table put_item + get_itemโœ…
Wisdom Rejection PatternsCapsule contains pattern distributionโœ…
Wisdom Rejected GenesGene list preserved in capsuleโœ…
Wisdom Query DescendingLatest-first query returns resultsโœ…
Wisdom Latest ItemMost recent capsule accessibleโœ…
Filtering Metrics Existsgovernance:filtering_metrics key presentโœ…
Filtering Metrics DataFunnel data populatedโœ…
Heroes Table Readablecortex-heroes accessibleโœ…
Hero Has PKGene identifier presentโœ…
Hero Has GradeScoring grade assignedโœ…
Brain Bus Readablecortex-brain-bus accessibleโœ…
Pool: Prostatenovel_prostate_candidates existsโœ…
Pool: Pancreaticnovel_pancreatic_candidates existsโœ…
CleanupTest data removed after runโœ…

Coverage by Feature

FeatureUnit TestsE2EProduction Verified
Cortex Master (53-dim)โœ… 11 testsโœ…โœ… nightly sweep
Scan Pool (write/read/dedup)โ€”โœ… 3 testsโœ… physician run
Wisdom Capsules (archive)โ€”โœ… 5 tests๐ŸŸก first run tonight
Fast Path (Master triage)โ€”โ€”โœ… physician run 6/12
SELF (failure diagnosis)โœ… 4 testsโ€”โœ… nightly
NPEAD scan_history_riskโ€”โ€”๐ŸŸก first run tonight
Phase 10e (bulk scan)โ€”โ€”๐ŸŸก first run tonight
Daily Auto-Modeโ€”โ€”๐ŸŸก first run tomorrow 3:30
Knowledge Compressionโ€”โœ…โœ… capsules produced nightly
Evidence Hash Chainโœ… 3 testsโ€”โœ… every run
Repurposingโœ… 6 testsโ€”โœ…
Filtering Metricsโ€”โœ… 2 testsโœ…

How to Run

# Unit tests (Rust)
cd cortex-rs && cargo test -p cortex

# E2E integration tests (Python, needs AWS credentials)
cd cortex-rs && AWS_PROFILE=edicer-pub python3 tests/test_scan_pool_e2e.py

Last run: June 14, 2026 ยท 93 tests ยท 0 failures ยท All repos green