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
The codebase maintains strong overall coverage across all metrics, exceeding the 80% security threshold. The most conservative metric is branch coverage at 85.99%, indicating most conditional logic paths have test coverage.
🛡️ Security-Critical Path Status
The following security-critical modules directly control network isolation, domain filtering, and container orchestration:
File
Statements
Branches
Functions
Status
src/host-iptables.ts
100%
100%
100%
✅ Complete
src/squid-config.ts
100%
100%
100%
✅ Complete
src/docker-manager.ts
100%
100%
100%
✅ Complete
src/domain-patterns.ts
100%
89.47%
100%
⚠️ Minor gap
src/cli.ts
85.71%
50%
100%
⚠️ Moderate gap
Assessment: Three critical firewall modules (host-iptables, squid-config, docker-manager) have 100% coverage—ideal for security-critical code. Two modules show moderate coverage gaps:
domain-patterns.ts: 89.47% branch coverage indicates a few edge cases in domain matching logic are untested
cli.ts: 50% branch coverage suggests error handling or fallback paths lack test coverage (only 7 lines, small file)
Across 1,638 functions in the codebase, 1,526 are covered (93.16%).
Uncovered functions (112 total):
Most are in new/experimental modules (bounded-execution/, enclave/, microvm/, cloud-hypervisor/)
Fallback/error handling paths in main modules
Test utilities and mock factories (intentionally lower coverage)
Key observation: All critical production functions in host-iptables.ts, squid-config.ts, and docker-manager.ts are covered. Uncovered functions are predominantly in new features (enclaves, microVM) or utilities.
Document untested code paths in CLI branch coverage
Why:cli.ts has 50% branch coverage (1/2 branches), likely a minor fallback path
Action: Review the uncovered branch in cli.ts and add a test or document why it's not covered
Effort: Low (2–3 lines of code)
Impact: Improves code clarity; may reveal edge case bugs
📌 Conclusion
Overall Status: HEALTHY ✅
The gh-aw-firewall codebase maintains strong baseline coverage with all three core security modules at 100% coverage. The primary gap is finite-disclosure.ts (the enclave protocol module), which requires urgent attention before enclave features reach production. Emerging modules (enclave validation, cloud-hypervisor) need coverage lift before general availability but are acceptable for current preview status. No regression detected; coverage remains stable and well-above industry baseline (80%).
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-27
Overall Coverage
The codebase maintains strong overall coverage across all metrics, exceeding the 80% security threshold. The most conservative metric is branch coverage at 85.99%, indicating most conditional logic paths have test coverage.
🛡️ Security-Critical Path Status
The following security-critical modules directly control network isolation, domain filtering, and container orchestration:
src/host-iptables.tssrc/squid-config.tssrc/docker-manager.tssrc/domain-patterns.tssrc/cli.tsAssessment: Three critical firewall modules (
host-iptables,squid-config,docker-manager) have 100% coverage—ideal for security-critical code. Two modules show moderate coverage gaps:domain-patterns.ts: 89.47% branch coverage indicates a few edge cases in domain matching logic are untestedcli.ts: 50% branch coverage suggests error handling or fallback paths lack test coverage (only 7 lines, small file)📋 Coverage Table
Security-Critical & Core Modules
New/Emerging Modules with Low Coverage
Baseline Coverage
🔧 Function Audit
Across 1,638 functions in the codebase, 1,526 are covered (93.16%).
Uncovered functions (112 total):
bounded-execution/,enclave/,microvm/,cloud-hypervisor/)Key observation: All critical production functions in
host-iptables.ts,squid-config.ts, anddocker-manager.tsare covered. Uncovered functions are predominantly in new features (enclaves, microVM) or utilities.📅 Recent Source Changes (last 7 days)
docs: document run-id forwarding to api-proxy sidecar (#7570)Note: No breaking changes detected in security-critical modules in the last 7 days.
🔎 Notable Findings
🔴 CRITICAL GAP:
finite-disclosure.ts— 9.26% statement coverageruntime-preflight.ts(66.66%),rootfs.ts(71.69%),config-assembly.ts(73.68%)✅ FIREWALL CORE IS SOLID
host-iptables,squid-config,docker-manager) achieve 100% coveragei️ BRANCH COVERAGE VARIANCE
if/switch/ternary operators) has incomplete path testingdomain-patterns.tsexhibits this pattern (100% statements, 89.47% branches)🎯 Recommendations
🔴 HIGH Priority (Security-Critical)
Add test suite for
bounded-execution/finite-disclosure.tssrc/bounded-execution/finite-disclosure.test.tswith tests for:{"status":"ok"/"error", "result":...})containers/bounded-execution/finite-disclosure.jsIncrease
domain-patterns.tsbranch coverage from 89.47% to 100%🟡 MEDIUM Priority (Feature Stability)
src/enclave/runtime-preflight.ts(from 66.66% → 80%+)src/microvm/rootfs.ts(from 71.69% → 80%+)src/commands/validators/config-assembly.ts(from 73.68% → 80%+)🟢 LOW Priority (Maintainability)
cli.tshas 50% branch coverage (1/2 branches), likely a minor fallback pathcli.tsand add a test or document why it's not covered📌 Conclusion
Overall Status: HEALTHY ✅
The
gh-aw-firewallcodebase maintains strong baseline coverage with all three core security modules at 100% coverage. The primary gap isfinite-disclosure.ts(the enclave protocol module), which requires urgent attention before enclave features reach production. Emerging modules (enclave validation, cloud-hypervisor) need coverage lift before general availability but are acceptable for current preview status. No regression detected; coverage remains stable and well-above industry baseline (80%).All reactions