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
Total: 14,150 of 15,261 statements covered across 80+ source files.
The codebase demonstrates strong test coverage overall, with the vast majority of code exercised by the test suite. This is a significant achievement for a security-critical network firewall project.
🛡️ Security-Critical Path Status
File
Statements
Branches
Status
Notes
host-iptables.ts
100% ✅
100% ✅
Fully covered
Network isolation rules—critical for firewall enforcement
domain-patterns.ts
100% ✅
89.47% ✅
Excellent
Domain matching logic for ACL enforcement
cli.ts
85.71% ⚠️
50% ⚠️
Good
Main entry point; 1 of 7 statements uncovered
host-iptables-rules.ts
100% ✅
100% ✅
Fully covered
iptables rule generation
host-iptables-validation.ts
100% ✅
100% ✅
Fully covered
Rule validation logic
Key Findings:
✅ Host iptables subsystem: 100% coverage across all 13 security-critical files (chain management, cleanup, rules, validation, network setup)
✅ Domain filtering: 100% coverage for domain-patterns; domain-utils and domain-validation also fully covered
⚠️CLI entry point: 85.71% coverage with one uncovered statement (likely an error-handling edge case)
📋 Coverage Table — Top Coverage Tiers
🟢 100% Coverage (53 files)
Representative sample of fully covered security and core modules:
Coverage implication: New features added without proportional test coverage. The pre-computed brief identifies these exact files as the coverage gaps.
🔎 Notable Findings
Security infrastructure is rock-solid — ✅ Host iptables (all 13 files @ 100%), domain filtering, and chroot/capability setup all fully covered. Network isolation enforcement is bulletproof.
New features outpacing test coverage — ⚠️ Bounded execution (finite-disclosure.ts @ 38.12%), MicroVM setup, and enclave validation added without commensurate test suite growth. This is the primary regression.
Branch coverage lags statements — ⚠️ Many files have 100% statement coverage but <90% branch coverage (e.g., domain-patterns.ts @ 89.47%, config-assembly.ts @ 25%). Conditional paths (if/else, switches) are under-tested.
CLI entry point nearly complete — ✅ cli.ts @ 85.71%; only 1 statement uncovered (likely an unreachable error case). Most production paths are tested.
🎯 Recommendations
[HIGH PRIORITY] Temporal Safety Tests for finite-disclosure.ts
Why: Only 6/24 branches tested. Configuration errors are the second-most common failure mode after networking.
Action:
Add parametrized tests for each schema branch (validation rule combinations)
Test error accumulation (multiple validation failures reported together)
Test schema version compatibility
Effort: Low–Medium (8–10 branch-targeted test cases)
Summary
Overall Assessment: The project has excellent test coverage (92.72%), with security-critical paths fully protected. The regression is concentrated in new features (bounded execution, MicroVM, enclaves) that were added recently without corresponding test expansion.
Action Required: Focus testing effort on the 5 identified gap files. The remaining 80+ files maintain high coverage; no changes needed there.
Risk Level: 🟢 Low for existing production paths. 🟡 Medium for new features (finite-disclosure, MicroVM, enclaves). Recommend prioritizing HIGH/MEDIUM recommendations before release.
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-09-08
Overall Coverage
Total: 14,150 of 15,261 statements covered across 80+ source files.
The codebase demonstrates strong test coverage overall, with the vast majority of code exercised by the test suite. This is a significant achievement for a security-critical network firewall project.
🛡️ Security-Critical Path Status
host-iptables.tsdomain-patterns.tscli.tshost-iptables-rules.tshost-iptables-validation.tsKey Findings:
📋 Coverage Table — Top Coverage Tiers
🟢 100% Coverage (53 files)
Representative sample of fully covered security and core modules:
chroot-home-setup.ts,container-cleanup.ts,container-lifecycle.ts(96.29%)compose-generator.ts,compose-network.ts,compose-sanitizer.tsdomain-patterns.ts,domain-utils.ts,domain-validation.ts,domain-matchers.tshost-iptables-*.tsfiles (chain, cleanup, rules, validation, network)config-file.ts,config-mapper.ts,config-writer.tsenv-utils.ts,dns-resolver.ts,github-env.tsdind-bootstrap.ts,dind-probe.ts,chroot-home-setup.ts,capability-filter.ts🟡 80–99% Coverage (12 files)
Strong coverage with minor gaps:
cli-workflow.ts— 98.73% (1/79 statements uncovered)container-startup-diagnostics.ts— 98.8% (1/84 statements uncovered)cloud-hypervisor-runtime-backend.ts— 93.4% (19/288 statements uncovered)artifact-preservation.ts— 94.65% (7/131 statements uncovered)fs-utils.ts— 98.48% (1/66 statements uncovered)🔴 < 80% Coverage (5 priority gaps identified)
src/bounded-execution/finite-disclosure.tssrc/commands/validators/config-assembly.tssrc/microvm/rootfs.tssrc/enclave/runtime-preflight.tssrc/microvm/network-reservation.ts🔧 Function Audit
Fully Tested Functions (2,056/2,201 = 93.41%):
Untested/Partial Functions (145 functions):
📅 Recent Source Changes (last 7 days)
Key files modified in recent work:
finite-disclosure.ts(36KB, complex temporal logic)network-reservation.ts,rootfs.ts(new provisioning logic)runtime-preflight.ts,delegation-control-client.tsconfig-assembly.ts(multi-schema validation)Coverage implication: New features added without proportional test coverage. The pre-computed brief identifies these exact files as the coverage gaps.
🔎 Notable Findings
Security infrastructure is rock-solid — ✅ Host iptables (all 13 files @ 100%), domain filtering, and chroot/capability setup all fully covered. Network isolation enforcement is bulletproof.
New features outpacing test coverage —⚠️ Bounded execution (
finite-disclosure.ts@ 38.12%), MicroVM setup, and enclave validation added without commensurate test suite growth. This is the primary regression.Branch coverage lags statements —⚠️ Many files have 100% statement coverage but <90% branch coverage (e.g.,
domain-patterns.ts@ 89.47%,config-assembly.ts@ 25%). Conditional paths (if/else, switches) are under-tested.CLI entry point nearly complete — ✅
cli.ts@ 85.71%; only 1 statement uncovered (likely an unreachable error case). Most production paths are tested.🎯 Recommendations
[HIGH PRIORITY] Temporal Safety Tests for
finite-disclosure.tssrc/bounded-execution/finite-disclosure.ts(38.12% coverage)[MEDIUM PRIORITY] Enclave Preflight & MicroVM Setup Tests
src/enclave/runtime-preflight.ts(66.66%),src/microvm/rootfs.ts(71.69%),src/microvm/network-reservation.ts(50.22%)[MEDIUM PRIORITY] Branch Coverage for Config Validators
src/commands/validators/config-assembly.ts(25% branch coverage despite 73.68% statements)Summary
Overall Assessment: The project has excellent test coverage (92.72%), with security-critical paths fully protected. The regression is concentrated in new features (bounded execution, MicroVM, enclaves) that were added recently without corresponding test expansion.
Action Required: Focus testing effort on the 5 identified gap files. The remaining 80+ files maintain high coverage; no changes needed there.
Risk Level: 🟢 Low for existing production paths. 🟡 Medium for new features (finite-disclosure, MicroVM, enclaves). Recommend prioritizing HIGH/MEDIUM recommendations before release.
All reactions