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: 182 of 474 statements covered. The test suite passes all thresholds but operates at the minimum margin (statements at 38.39% vs. 38% threshold = 0.39% buffer).
The repository contains 331 source files. Recent activity includes:
Integration of NVX (nix virtual execution) module
Addition of bounded-execution (finite-disclosure protocol)
Expansion of microVM support (network reservation, Cloud Hypervisor)
Ongoing enclave architecture refinement
These new modules have minimal test coverage, requiring targeted test development as they mature.
🔎 Notable Findings
Entry Point Blind Spot:cli.ts (0% coverage) is the primary orchestrator for network isolation, signal handling, and container lifecycle. Without tests, regressions in CLI argument parsing, graceful shutdown, or error propagation go undetected.
Container Lifecycle Risk:docker-manager.ts (18% coverage) controls Docker Compose operations, health checks, and cleanup. Only 1 of 25 functions is tested; error paths and rollback scenarios are not validated.
Protocol Validation Gaps:bounded-execution/finite-disclosure.ts (38.12% coverage) enforces information-budgeting and request/result validation for secure enclaves — a protocol-level security boundary. The 61.88% untested code may hide validation bypasses.
Passing Margin Razor-Thin: Overall statement coverage is 38.39% against a 38% threshold — only 0.39 percentage points above failure. Any regression in tested modules drops the project below the CI gate.
🎯 Recommendations
🔴 High Priority
Establish cli.ts test coverage (0% → target 60%+)
Impact: Entry point testing catches regressions in signal handling, config generation, and orchestration.
Effort: Moderate (mock Docker manager, test arg parsing, error cases)
Security Risk: Signal handling and error exit codes are untested; graceful shutdown may fail under load.
Recommended tests: Argument parsing, signal SIGINT/SIGTERM handling, config generation flow, cleanup on error.
Expand docker-manager.ts test coverage (18% → target 50%+)
Impact: Container lifecycle is the core of the sandbox — untested error paths risk container leaks or hung processes.
Effort: High (mock Docker CLI, test health checks, error recovery)
Security Risk: Cleanup failures may leave containers with leaked credentials or open ports.
Recommended tests: Failed health checks, cleanup on SIGTERM, log parsing, error propagation.
Close gap in host-iptables.ts (83.63% → target 90%+)
Impact: The remaining 16.37% likely includes error cases, edge conditions, or cleanup scenarios.
Effort: Low (isolated function, existing test suite structure)
Recommended tests: Review uncovered lines in iptables rule generation, DNS allowlist edge cases.
Stabilize coverage threshold (current 38% → recommended 45%+)
Rationale: Current 0.39-point buffer leaves no room for test refactoring or minor regressions. Increase threshold to 45% to enforce meaningful coverage growth.
Effort: Medium (requires new tests; see priorities 1–3 above).
⚪ Low Priority
NVX module test scaffolding (0% → target 30%+)
Note:src/nvx/index.ts is a re-export module (0% coverage is acceptable for pure exports). Prioritize tests for cleanup-registry.ts and preflight.ts only if these modules enter the critical data-flow path.
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-22
Overall Coverage
Total: 182 of 474 statements covered. The test suite passes all thresholds but operates at the minimum margin (statements at 38.39% vs. 38% threshold = 0.39% buffer).
🛡️ Security-Critical Path Status
✅ Well-Protected (>80%)
squid-config.ts— 100% coverage | HTTP/HTTPS domain ACL enforcementhost-iptables.ts— 83.63% coverage | Network isolation and port filtering🔴 High-Risk Coverage Gaps (<50%)
docker-manager.ts— 18% coverage (45/250 statements) | Container lifecycle, health checks, cleanupcli.ts— 0% coverage (0/69 statements) | Main entry point, signal handling, orchestrationsrc/nvx/index.ts— 0% coverage (136 lines, re-export module)src/bounded-execution/finite-disclosure.ts— 38.12% coverage (950 lines, finite-disclosure protocol)src/nvx/cleanup-registry.ts— 42.8% coverage (631 lines, NVX cleanup)src/microvm/network-reservation.ts— 51.08% coverage (539 lines, microVM network reservation)📋 Coverage Table
Fully Tested (100%)
logger.tssquid-config.tscli-workflow.tsAcceptable Coverage (50–80%)
host-iptables.tsInsufficient Coverage (<50%)
docker-manager.tscli.tsfinite-disclosure.tscleanup-registry.ts🔧 Function Audit
Untested Entry Points
cli.ts— All 10 functions untestedmain()and signal handler registrationwriteConfigs())Partially Tested Functions
docker-manager.ts— 1 of 25 functions tested (4%)Well-Tested Functions
squid-config.ts— 5/5 functions (100%)host-iptables.ts— 5/5 functions (100%)📅 Recent Source Changes (last 7 days)
The repository contains 331 source files. Recent activity includes:
These new modules have minimal test coverage, requiring targeted test development as they mature.
🔎 Notable Findings
Entry Point Blind Spot:
cli.ts(0% coverage) is the primary orchestrator for network isolation, signal handling, and container lifecycle. Without tests, regressions in CLI argument parsing, graceful shutdown, or error propagation go undetected.Container Lifecycle Risk:
docker-manager.ts(18% coverage) controls Docker Compose operations, health checks, and cleanup. Only 1 of 25 functions is tested; error paths and rollback scenarios are not validated.Protocol Validation Gaps:
bounded-execution/finite-disclosure.ts(38.12% coverage) enforces information-budgeting and request/result validation for secure enclaves — a protocol-level security boundary. The 61.88% untested code may hide validation bypasses.Passing Margin Razor-Thin: Overall statement coverage is 38.39% against a 38% threshold — only 0.39 percentage points above failure. Any regression in tested modules drops the project below the CI gate.
🎯 Recommendations
🔴 High Priority
Establish
cli.tstest coverage (0% → target 60%+)Expand
docker-manager.tstest coverage (18% → target 50%+)Validate
bounded-execution/finite-disclosure.ts(38.12% → target 75%+)🟡 Medium Priority
Close gap in
host-iptables.ts(83.63% → target 90%+)Stabilize coverage threshold (current 38% → recommended 45%+)
⚪ Low Priority
src/nvx/index.tsis a re-export module (0% coverage is acceptable for pure exports). Prioritize tests forcleanup-registry.tsandpreflight.tsonly if these modules enter the critical data-flow path.All reactions