Expand description
WASM Coverage Tooling (spec: probar-wasm-coverage-tooling.md) WASM Coverage Tooling for Probar
Per spec: docs/specifications/probar-wasm-coverage-tooling.md
This module implements a novel WASM coverage instrumentation framework using the Batuta Sovereign AI Stack primitives.
§Architecture
┌─────────────────────────────────────────────────────────────────┐
│ PROBAR COVERAGE ARCHITECTURE │
├─────────────────────────────────────────────────────────────────┤
│ WASM Module → Block Decomposer → Coverage Executor → Report │
│ ↓ ↓ │
│ CFG Analysis Trueno SIMD Aggregation │
└─────────────────────────────────────────────────────────────────┘§Toyota Way Principles Applied
- Poka-Yoke: Type-safe BlockId, FunctionId, EdgeId prevent errors
- Muda: Thread-local buffering eliminates atomic contention
- Jidoka: Soft Jidoka distinguishes Stop vs LogAndContinue
- Heijunka: Superblock tiling amortizes scheduling overhead
Re-exports§
pub use formatters::CoberturaFormatter;pub use formatters::HtmlFormatter;pub use formatters::HtmlReportConfig;pub use formatters::LcovFormatter;pub use formatters::Theme;
Modules§
- formatters
- Coverage Report Formatters (Feature 11, 12, 13)
Structs§
- Block
Coverage - Per-block coverage information
- BlockId
- Type-safe block identifier (Poka-Yoke)
- Coverage
Collector - Coverage collector for tracking coverage during test execution
- Coverage
Config - Coverage collection configuration
- Coverage
Executor - Heijunka-balanced coverage executor with superblock scheduling
- Coverage
Memory View - Zero-copy WASM memory view for coverage (Muda elimination)
- Coverage
Report - Coverage report containing all coverage data
- Coverage
Summary - Coverage summary statistics
- EdgeId
- Type-safe edge identifier (Poka-Yoke)
- Function
Id - Type-safe function identifier (Poka-Yoke)
- Nullification
Config - Nullification test configuration
- Nullification
Result - Result of a nullification test
- Superblock
- Superblock: A tile of related basic blocks (Kaizen: amortize scheduling)
- Superblock
Builder - Superblock builder: Groups blocks by function or loop
- Superblock
Id - Superblock ID (distinct from BlockId for type safety)
- Superblock
Result - Result of executing a superblock
- Tainted
Blocks - Tainted block tracker (for Soft Jidoka)
- Thread
Local Counters - Thread-local counter buffer (Kaizen: eliminates atomic contention)
Enums§
- Coverage
Hypothesis - Coverage hypothesis types
- Coverage
Violation - Coverage Jidoka violations with severity classification
- Granularity
- Coverage granularity level
- Jidoka
Action - Jidoka response type (Kaizen: Stop vs Continue)