You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Status: Excellent overall coverage with strong performance across all metrics. Statements and lines exceed 92%, functions at 93%, with branch coverage at a solid 86%.
🛡️ Security-Critical Path Status
The following files are essential for the firewall's security model:
File
Type
Priority
src/bounded-execution/finite-disclosure.ts
Enclave protocol (request/result validation)
CRITICAL⚠️
src/enclave/runtime-preflight.ts
Enclave runtime bootstrap & validation
HIGH
src/host-iptables-*.ts
Network isolation & firewall rules
HIGH
src/squid-config-*.ts
Domain ACL & HTTP/HTTPS filtering
HIGH
src/docker-manager-*.ts
Container lifecycle & orchestration
HIGH
Key Finding: The critical finite-disclosure module has extremely low coverage (9.26% statements, 0.26% branches), representing a significant security audit gap.
The enclave and microvm modules represent recent development efforts, which correlates with their lower test coverage.
🔎 Notable Findings
Critical Security Audit Gap: finite-disclosure.ts (9.26% coverage) is a 34 KB, hand-written recursive-descent parser for a security-critical wire protocol. Despite its complexity and security implications, it has near-zero test coverage. This file handles schema validation, cardinality calculations with BigInt, and request/result canonicalization — all attack surfaces.
Branch Coverage Deficit: While statement coverage is excellent (92.68%), branch coverage lags at 86% (960 branches uncovered). Files like config-assembly.ts show this pattern clearly (73.68% stmt but only 25% branch), indicating untested error paths and conditional logic.
Enclave Infrastructure Undertested: New enclave subsystem files (runtime-preflight.ts, finite-disclosure.ts) have significantly lower coverage than the stable core firewall components, suggesting they were recently added and not yet fully integrated into the test suite.
Add comprehensive tests for finite-disclosure.ts (currently 9.26%)
Create unit tests for schema parser edge cases (deeply nested objects, large cardinality values, invalid JSON)
Test cardinality calculation with BigInt for all algebra constructs
Add fuzz tests for malformed schemas and result payloads
Target: Reach 80%+ statement and branch coverage
Rationale: This 34 KB security-critical module handles untrusted input (schemas and results) and uses hand-written parsing logic without a general JSON Schema validator; its low coverage represents a significant audit gap.
MEDIUM PRIORITY
Increase branch coverage across config validators (config-assembly.ts at 25% branch)
Add tests for error conditions in configuration assembly
Test all conditional branches in validation logic
Include edge cases (empty config, malformed inputs, conflicting flags)
Target: Reach 70%+ branch coverage
Rationale: Validators are critical for security; untested branches mean untested failure paths.
Improve enclave runtime preflight tests (runtime-preflight.ts at 66.66%)
Add tests for bootstrap failure scenarios
Test concurrent initialization edge cases
Add timeout and retry logic tests
Target: Reach 80%+ coverage
Rationale: New infrastructure needs comprehensive testing before production use.
LOW PRIORITY
Add microvm rootfs initialization tests (rootfs.ts at 71.69%)
Test filesystem layout edge cases
Add tests for permission and mount scenarios
Can be deferred until microvm support is released to users
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
📊 Test Coverage Report — 2026-08-23
Overall Coverage
Status: Excellent overall coverage with strong performance across all metrics. Statements and lines exceed 92%, functions at 93%, with branch coverage at a solid 86%.
🛡️ Security-Critical Path Status
The following files are essential for the firewall's security model:
src/bounded-execution/finite-disclosure.tssrc/enclave/runtime-preflight.tssrc/host-iptables-*.tssrc/squid-config-*.tssrc/docker-manager-*.tsKey Finding: The critical finite-disclosure module has extremely low coverage (9.26% statements, 0.26% branches), representing a significant security audit gap.
📋 Coverage Table
Critical Gaps (< 10%)
src/bounded-execution/finite-disclosure.ts: 9.26% stmt | 0.26% branchLow Coverage (66–73%)
src/enclave/runtime-preflight.ts: 66.66% stmt | 41.02% branchsrc/microvm/rootfs.ts: 71.69% stmt | 54.54% branchsrc/commands/validators/config-assembly.ts: 73.68% stmt | 25% branch (branch coverage critical gap)Well-Covered Files
src/api-proxy-config-domains.ts: 100% coveragesrc/cli-options.ts: ~95% coveragesrc/docker-manager.test.tssuite: well-covered🔧 Function Audit
Total Functions: 1,483 / 1,593 covered (93.09%)
Uncovered Function Categories:
Most Comprehensive Test Coverage:
📅 Recent Source Changes (last 7 days)
Based on directory structure analysis:
src/enclave/,src/bounded-execution/)src/microvm/)The enclave and microvm modules represent recent development efforts, which correlates with their lower test coverage.
🔎 Notable Findings
Critical Security Audit Gap:
finite-disclosure.ts(9.26% coverage) is a 34 KB, hand-written recursive-descent parser for a security-critical wire protocol. Despite its complexity and security implications, it has near-zero test coverage. This file handles schema validation, cardinality calculations with BigInt, and request/result canonicalization — all attack surfaces.Branch Coverage Deficit: While statement coverage is excellent (92.68%), branch coverage lags at 86% (960 branches uncovered). Files like
config-assembly.tsshow this pattern clearly (73.68% stmt but only 25% branch), indicating untested error paths and conditional logic.Enclave Infrastructure Undertested: New enclave subsystem files (
runtime-preflight.ts,finite-disclosure.ts) have significantly lower coverage than the stable core firewall components, suggesting they were recently added and not yet fully integrated into the test suite.Excellent Core Firewall Coverage: Mature components like domain ACL config (
api-proxy-config-domains.ts), CLI parsing, and container management maintain 95%+ coverage, indicating stable, well-tested code.🎯 Recommendations
HIGH PRIORITY
finite-disclosure.ts(currently 9.26%)MEDIUM PRIORITY
Increase branch coverage across config validators (
config-assembly.tsat 25% branch)Improve enclave runtime preflight tests (
runtime-preflight.tsat 66.66%)LOW PRIORITY
rootfs.tsat 71.69%)All reactions