[Coverage Report] Test Coverage Report — 2026-08-09 #7161
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-16T19:30:06.087Z.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
📊 Test Coverage Report — 2026-08-09
Overall Coverage
Repository-wide metrics (all files):
✅ Target Met: All primary metrics exceed 85% threshold.
⚠️ Branch Coverage: At 85.53%, this is the weakest metric and should be monitored for regressions.
🛡️ Security-Critical Path Status
📋 Coverage Table
Top Security-Critical Files (Complete):
High-Coverage Core Files (>95%):
🔧 Function Audit
Uncovered Functions (by file):
📅 Recent Source Changes (last 7 days)
Key recently modified files:
src/bounded-execution/finite-disclosure.ts— 🔴 CRITICAL coverage regression (9.26%)src/enclave/runtime-preflight.ts—src/firecracker/manager.ts—src/firecracker/preflight.ts—src/firecracker/api-client.ts—Note: Nearly all source files were touched in the last 7 days (likely a bulk refactor or recent release cycle). Priority should focus on files with degraded coverage.
🔎 Notable Findings
Critical Regression:
bounded-execution/finite-disclosure.tshas only 9.26% statement coverage and 0.26% branch coverage. Only 2 of 44 functions are covered. This appears to be a new or heavily refactored module that lacks test cases. This is a MUST-FIX for security-critical disclosure enforcement.Firecracker Coverage Gap: Three firecracker modules (
manager.ts,preflight.ts,api-client.ts) show 72–83% coverage. Given that firecracker is a runtime backend for agent execution, uncovered branches inmanager.ts(43.47%) indicate error paths and lifecycle transitions are not tested.Enclave Runtime Preflight:
enclave/runtime-preflight.tshas only 46.51% branch coverage despite 100% function coverage. This suggests conditional error handling and validation edge cases are untested, which is concerning for enclave sandbox enforcement.Core Security Functions Excellent: Host iptables rules (
host-iptables-rules.ts,host-iptables-shared.ts,host-iptables-chain.ts), domain validation (domain-patterns.ts), and Squid config generation (squid-config.ts) all maintain 100% coverage, demonstrating strong investment in network isolation testing.🎯 Recommendations
HIGH — Address Critical Gap
src/bounded-execution/finite-disclosure.tsMEDIUM — Close Firecracker Coverage Holes
manager.ts,preflight.ts)MEDIUM — Improve Enclave Runtime Validation
enclave/runtime-preflight.tsVerification Notes
npm run test:coverage)bounded-execution/finite-disclosure.ts(critical),firecracker/*(medium),enclave/runtime-preflight.ts(medium)All reactions