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. Statements and functions exceed 92%, while branch coverage at 85.86% is solid but lags due to untested error paths in security-critical modules.
🛡️ Security-Critical Path Status
File
Statements
Branches
Risk Level
src/host-iptables.ts
100%
100%
✅ Safe
src/host-iptables-rules.ts
100%
100%
✅ Safe
src/host-iptables-shared.ts
100%
100%
✅ Safe
src/domain-patterns.ts
100%
89.47%
✅ Safe
src/domain-validation.ts
100%
100%
✅ Safe
src/domain-utils.ts
100%
100%
✅ Safe
src/squid-config.ts
100%
—
✅ Safe
src/bounded-execution/finite-disclosure.ts
9.26%
0.26%
🔴 CRITICAL
src/enclave/runtime-preflight.ts
66.66%
41.02%
🔴 HIGH
src/microvm/rootfs.ts
71.69%
54.54%
🔴 HIGH
src/cloud-hypervisor/virtiofsd.ts
72.51%
55.35%
🔴 HIGH
src/commands/validators/config-assembly.ts
73.68%
25%
🔴 HIGH
Key Insight: Domain filtering and iptables rule generation are comprehensively tested and secure. However, bounded-execution/finite-disclosure.ts is critically under-tested at 9.26% statement coverage and 0.26% branch coverage—this module controls sensitive information disclosure constraints and requires immediate test augmentation.
Bounded execution — new security hardening feature
src/bounded-execution/finite-disclosure.ts — CRITICAL gap (9.26% coverage)
🔎 Notable Findings
Critical Gap in Information Disclosure Control: finite-disclosure.ts is 90.74% untested. This module enforces constraints on sensitive data output and must be fully tested before production use. The 0.26% branch coverage indicates virtually no error-path or boundary testing.
Cloud Hypervisor Feature Undertested: New microVM backend (virtiofsd, rootfs) averages ~72% statement coverage with ~55% branch coverage. These security-sensitive components require expanded test scenarios, particularly error handling during VM startup, filesystem mount failures, and I/O edge cases.
Domain and iptables Validation Fully Tested: Security-critical domain filtering (domain-patterns.ts, domain-validation.ts) and network rules (host-iptables*.ts) consistently achieve 100% statement coverage and 89–100% branch coverage. This is a strong baseline for network isolation guarantees.
Configuration Assembly Validator Needs Branch Testing: config-assembly.ts has 73.68% statement coverage but only 25% branch coverage, indicating that conditional validation paths (especially error conditions and edge cases in config merging) are untested.
🎯 Recommendations
🔴 HIGH PRIORITY — Due before next release:
Expand bounded-execution/finite-disclosure.ts test coverage
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. Statements and functions exceed 92%, while branch coverage at 85.86% is solid but lags due to untested error paths in security-critical modules.
🛡️ Security-Critical Path Status
src/host-iptables.tssrc/host-iptables-rules.tssrc/host-iptables-shared.tssrc/domain-patterns.tssrc/domain-validation.tssrc/domain-utils.tssrc/squid-config.tssrc/bounded-execution/finite-disclosure.tssrc/enclave/runtime-preflight.tssrc/microvm/rootfs.tssrc/cloud-hypervisor/virtiofsd.tssrc/commands/validators/config-assembly.tsKey Insight: Domain filtering and iptables rule generation are comprehensively tested and secure. However, bounded-execution/finite-disclosure.ts is critically under-tested at 9.26% statement coverage and 0.26% branch coverage—this module controls sensitive information disclosure constraints and requires immediate test augmentation.
📋 Coverage Table (Detailed)
✅ Excellent Coverage (95%+)
src/api-proxy-config-domains.ts: 99.03% stmts, 94.87% branchessrc/api-proxy-config-validation.ts: 96% stmts, 96.29% branchessrc/api-proxy-config-warnings.ts: 100% stmts, 100% branchessrc/artifact-preservation.ts: 94.21% stmts, 87.71% branchessrc/cli-workflow.ts: 98.5% stmts, 95.91% branchessrc/compose-sanitizer.ts: 97.14% stmts, 93.33% branchessrc/container-lifecycle.ts: 96.23% stmts, 90% branchessrc/container-startup-diagnostics.ts: 98.85% stmts, 98.11% branchessrc/cloud-hypervisor-runtime-backend.ts: 94.24% stmts, 80.3% branchessrc/config-writer.ts: 88.94% stmts, 82.4% branchessrc/artifact-permissions.ts: 82.08% stmts, 80% branchessrc/enclave/manager.ts: 84.44% stmts, 75.29% branchessrc/enclave/mount-policy.ts: 93.33% stmts, 73.46% branchessrc/dns-resolver.ts: 100% stmts, 92.85% branches🔴 Gaps Requiring Attention (< 80%)
src/bounded-execution/finite-disclosure.ts: 9.26% stmts, 0.26% branchessrc/enclave/runtime-preflight.ts: 66.66% stmts, 41.02% branchessrc/microvm/rootfs.ts: 71.69% stmts, 54.54% branchessrc/cloud-hypervisor/virtiofsd.ts: 72.51% stmts, 55.35% branchessrc/commands/validators/config-assembly.ts: 73.68% stmts, 25% branches🔧 Function Audit
All 1,547 functions tested (92.95% coverage). Function-level gaps are minimal, but branch coverage lags at 85.86%, indicating:
Functions with 0 coverage:
src/cli.ts: Entry point (1 function) — likely killed by integration test harnesssrc/container-cleanup.ts— error-path edge case📅 Recent Source Changes (last 7 days)
Based on coverage data, active development areas include:
Cloud Hypervisor subsystem — new microVM backend (Cloud Hypervisor v53.0)
src/cloud-hypervisor/virtiofsd.ts— virtio filesystem daemon wrapper (72.51% coverage)src/microvm/rootfs.ts— microVM rootfs builder (71.69% coverage)Enclave runtime validation — unified enclave feature
src/enclave/runtime-preflight.ts— preflight checks (66.66% coverage)src/enclave/manager.ts— orchestration (84.44% coverage)Bounded execution — new security hardening feature
src/bounded-execution/finite-disclosure.ts— CRITICAL gap (9.26% coverage)🔎 Notable Findings
Critical Gap in Information Disclosure Control:
finite-disclosure.tsis 90.74% untested. This module enforces constraints on sensitive data output and must be fully tested before production use. The 0.26% branch coverage indicates virtually no error-path or boundary testing.Cloud Hypervisor Feature Undertested: New microVM backend (virtiofsd, rootfs) averages ~72% statement coverage with ~55% branch coverage. These security-sensitive components require expanded test scenarios, particularly error handling during VM startup, filesystem mount failures, and I/O edge cases.
Domain and iptables Validation Fully Tested: Security-critical domain filtering (
domain-patterns.ts,domain-validation.ts) and network rules (host-iptables*.ts) consistently achieve 100% statement coverage and 89–100% branch coverage. This is a strong baseline for network isolation guarantees.Configuration Assembly Validator Needs Branch Testing:
config-assembly.tshas 73.68% statement coverage but only 25% branch coverage, indicating that conditional validation paths (especially error conditions and edge cases in config merging) are untested.🎯 Recommendations
🔴 HIGH PRIORITY — Due before next release:
Expand
bounded-execution/finite-disclosure.tstest coverageAdd error-path and edge-case tests for
enclave/runtime-preflight.ts🟡 MEDIUM PRIORITY — Target for next sprint:
Increase Cloud Hypervisor virtio filesystem and rootfs branch coverage
Complete config-assembly validator branch testing
Report generated: 2026-08-23
Test suite: Jest with istanbul coverage instrumentation
Data source:
/coverage/coverage-summary.json(pre-computed run)All reactions