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
Summary: The overall test coverage is excellent at 91.79% statement coverage and 85.34% branch coverage, well above the 80% threshold. However, 2 test suites are currently failing, requiring investigation.
🛡️ Security-Critical Path Status
File
Lines
Branches
Functions
Status
src/host-iptables.ts
100%
100%
100%
✅ Perfect
src/squid-config.ts
100%
100%
100%
✅ Perfect
src/docker-manager.ts
100%
100%
100%
✅ Perfect
src/domain-patterns.ts
100%
89.47%
100%
✅ Good
src/cli.ts
85.71%
50%
100%
⚠️ Gaps
🔒 Secure: All critical security components (host-iptables, squid-config, docker-manager) have perfect coverage. Domain patterns and CLI entry point have minor branch coverage gaps, but core functionality is covered.
Impact: Filesystem setup for microVM execution needs better branch testing
src/commands/validators/config-assembly.ts
Statements: 73.68%
Branch: 25%⚠️
Impact: Configuration validation has extremely low branch coverage (only 25%)
🔧 Function Audit
Functions with Coverage Gaps (Top Issues)
Module
Gap
Function
Issue
finite-disclosure.ts
91%
Multiple disclosure functions
Entire finite disclosure protocol untested
config-assembly.ts
75%
assembleConfig() variants
Branch coverage only 25%; missing validation paths
runtime-preflight.ts
59%
Preflight checks
Missing error cases and fallback paths
network-reservation.ts
50%
Network allocation functions
~half of logic untested
rootfs.ts
28%
Root filesystem operations
Most branches uncovered
Note: The finite-disclosure.ts module shows extremely low coverage despite high statement coverage in other components, suggesting it is either new code or intentionally isolated. This warrants investigation.
📅 Recent Source Changes (last 7 days)
The test run includes recent commits. Key files modified recently include:
Given the size of the codebase (5,496 tests), coverage metrics are stable with only minor fluctuations in new/modified components.
🔎 Notable Findings
Security-Critical Components Fully Covered ✅
All L7 filtering (squid-config.ts), L3/L4 rules (host-iptables.ts), and lifecycle management (docker-manager.ts) have perfect 100% coverage. Network isolation is well-tested.
Finite Disclosure Module is a Coverage Outlier⚠️ src/bounded-execution/finite-disclosure.ts has only 9.26% statement coverage. This is likely a recently added security feature for bounded execution in enclaves. Requires urgent test expansion to ensure bounded-execution safety guarantees.
Branch Coverage Gaps in Configuration Validators⚠️ src/commands/validators/config-assembly.ts has 25% branch coverage despite 73.68% statement coverage. Missing branches likely represent error paths and edge-case validations that should be explicitly tested.
Test Failures in Enclave Components⚠️
2 test suites are failing (5 tests total), both in enclave-related code:
Effort: Medium | Impact: High (enclave isolation depends on accurate diagnostics)
🟢 LOW PRIORITY
Improve MicroVM Component Coverage
Expand tests for network-reservation.ts (50%) and rootfs.ts (72%)
Test fallback paths and edge cases in network allocation
Add filesystem permission and mount validation tests
Effort: Low | Impact: Medium (microVM backend is newer feature; good-to-have)
Report Generated: 2026-09-04 Baseline: All files at 91.79% statement, 85.34% branch coverage Next Review: Monitor coverage trends; re-run after implementing HIGH priority recommendations
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-04
Overall Coverage
Summary: The overall test coverage is excellent at 91.79% statement coverage and 85.34% branch coverage, well above the 80% threshold. However, 2 test suites are currently failing, requiring investigation.
🛡️ Security-Critical Path Status
src/host-iptables.tssrc/squid-config.tssrc/docker-manager.tssrc/domain-patterns.tssrc/cli.ts🔒 Secure: All critical security components (
host-iptables,squid-config,docker-manager) have perfect coverage. Domain patterns and CLI entry point have minor branch coverage gaps, but core functionality is covered.📋 Coverage Table
Highest Coverage Files (Selection)
src/api-proxy-config-domains.ts: 99.03% stmts | 94.87% branchsrc/cli-workflow.ts: 98.63% stmts | 96.36% branchsrc/compose-generator.ts: 100% stmts | 95.34% branchsrc/config-file.ts: 100% stmts | 100% branchsrc/container-lifecycle.ts: 96.27% stmts | 90% branchLowest Coverage Files (Below 80%)
src/bounded-execution/finite-disclosure.tssrc/microvm/network-reservation.tssrc/enclave/runtime-preflight.tssrc/microvm/rootfs.tssrc/commands/validators/config-assembly.ts🔧 Function Audit
Functions with Coverage Gaps (Top Issues)
finite-disclosure.tsconfig-assembly.tsassembleConfig()variantsruntime-preflight.tsnetwork-reservation.tsrootfs.tsNote: The
finite-disclosure.tsmodule shows extremely low coverage despite high statement coverage in other components, suggesting it is either new code or intentionally isolated. This warrants investigation.📅 Recent Source Changes (last 7 days)
The test run includes recent commits. Key files modified recently include:
Given the size of the codebase (5,496 tests), coverage metrics are stable with only minor fluctuations in new/modified components.
🔎 Notable Findings
Security-Critical Components Fully Covered ✅
All L7 filtering (
squid-config.ts), L3/L4 rules (host-iptables.ts), and lifecycle management (docker-manager.ts) have perfect 100% coverage. Network isolation is well-tested.Finite Disclosure Module is a Coverage Outlier⚠️
src/bounded-execution/finite-disclosure.tshas only 9.26% statement coverage. This is likely a recently added security feature for bounded execution in enclaves. Requires urgent test expansion to ensure bounded-execution safety guarantees.Branch Coverage Gaps in Configuration Validators⚠️
src/commands/validators/config-assembly.tshas 25% branch coverage despite 73.68% statement coverage. Missing branches likely represent error paths and edge-case validations that should be explicitly tested.Test Failures in Enclave Components⚠️
2 test suites are failing (5 tests total), both in enclave-related code:
src/enclave/agent-entrypoint-diagnostics.test.ts(4 failures)src/services/api-proxy-env-config.test.ts(1 failure)These failures suggest recent changes to enclave diagnostics and API proxy configuration need stabilization.
🎯 Recommendations
🔴 HIGH PRIORITY
finite-disclosure.ts(9.26% coverage)🟡 MEDIUM PRIORITY
Expand Branch Coverage in Config Assembly (
config-assembly.ts: 25% branch)Stabilize Enclave Diagnostic Tests
agent-entrypoint-diagnostics.test.tstests🟢 LOW PRIORITY
network-reservation.ts(50%) androotfs.ts(72%)Report Generated: 2026-09-04
Baseline: All files at 91.79% statement, 85.34% branch coverage
Next Review: Monitor coverage trends; re-run after implementing HIGH priority recommendations
All reactions