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 test suite has identified critical coverage gaps in security-sensitive and newer architectural modules. While baseline coverage appears to meet minimum thresholds, specific security-critical paths in the bounded-execution subsystem and enclave architecture require immediate attention.
Primary Concern: A critical module with only 9.26% statement coverage has been flagged for urgent remediation.
Enclave runtime preflight validation (new feature)
Cloud Hypervisor integration (microVM backend)
Config assembly validators (configuration system expansion)
All these new paths should be covered by corresponding test additions.
🔎 Notable Findings
Finite-Disclosure Protocol Critically Undercovered
The credential/privacy boundary mechanism (finite-disclosure.ts) has only 9.26% statement coverage and 0.26% branch coverage. This module enforces information-budget constraints and validates agent responses against declared schemas—a security-critical function that requires comprehensive testing.
Branch Coverage Lagging Behind Statement Coverage
Across all flagged files, branch coverage is significantly lower than statement coverage (0-55% vs 9-72%). This indicates that conditional/error paths are inadequately tested, reducing confidence in error handling and edge case behavior.
Enclave Architecture Modules Moderately Untested
New enclave-related modules (runtime-preflight, virtiofsd) have 60-75% coverage. These support the unified enclave architecture introduced in recent commits and should reach 80%+ before production use.
Cloud Hypervisor Integration Partially Tested
The microVM backend (cloud-hypervisor, rootfs modules) has ~72% statement coverage. While acceptable, branch coverage gaps suggest insufficient testing of failure modes and fallback scenarios.
🎯 Recommendations
🔴 HIGH — Execute Immediately
1. Expand finite-disclosure.ts Test Suite
Priority: CRITICAL
Scope: Increase statement coverage from 9.26% → 80%+ and branch coverage from 0.26% → 70%+
Action:
Add comprehensive test vectors for schema parsing (const, enum, boolean, integer, object, tuple, array, union)
Test cardinality calculation edge cases (BigInt boundaries, nested structures)
Add malformed/out-of-spec schema rejection tests
Test result envelope validation (ok/error status)
Test information-budget bit reservation logic
Validate wire protocol version checking
Test all timing bucket boundary conditions
Effort: ~3-4 days
Why: This module enforces credential/privacy boundaries and information budgets for enclave responses—a direct security control
🟡 MEDIUM — Address Before Feature Freeze
2. Complete Branch Coverage for Enclave Validators
Priority: HIGH
Scope: Increase config-assembly branch coverage from 20% → 70%+; runtime-preflight from 41% → 70%+
Add integration tests for config merge/inheritance scenarios
Test runtime-preflight recovery paths and resource validation edge cases
Add timeout boundary and resource exhaustion scenarios
Effort: ~2 days
Why: Validators control configuration security and enclave startup safety; incomplete branch coverage means error handling is unverified
🟡 MEDIUM — Plan for Next Sprint
3. Improve Cloud Hypervisor Integration Testing
Priority: MEDIUM
Scope: Increase rootfs.ts (71.69%) and virtiofsd.ts (72.51%) branch coverage to 80%+
Action:
Add tests for microVM root filesystem mount edge cases
Test virtiofsd bridge failure modes and fallback behavior
Add integration tests for cloud-hypervisor backend initialization
Test resource cleanup and error propagation paths
Effort: ~1.5 days
Why: Cloud Hypervisor is the preview microVM backend; branch coverage ensures reliability under failure conditions
Summary
Immediate action required on the finite-disclosure protocol module (9.26% coverage). This security-critical module implements credential boundaries and must be thoroughly tested before further enclave development. Secondary priority: complete branch coverage for all validator modules to ensure robust error handling.
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-16
Overall Coverage
The test suite has identified critical coverage gaps in security-sensitive and newer architectural modules. While baseline coverage appears to meet minimum thresholds, specific security-critical paths in the bounded-execution subsystem and enclave architecture require immediate attention.
Primary Concern: A critical module with only 9.26% statement coverage has been flagged for urgent remediation.
🛡️ Security-Critical Path Status
src/bounded-execution/finite-disclosure.tssrc/enclave/runtime-preflight.tssrc/commands/validators/config-assembly.tssrc/microvm/rootfs.tssrc/cloud-hypervisor/virtiofsd.ts📋 Coverage Table
Coverage Gap Summary:
Identified Gaps:
🔧 Function Audit
finite-disclosure.ts Analysis:
This module implements the enclave finite-disclosure protocol v2, a critical boundary for:
Current Coverage Issues:
Recommendation: Establish exhaustive test suite for schema algebra, cardinality edge cases (BigInt boundaries), and malformed input rejection.
enclave/runtime-preflight.ts Analysis:
Validates pre-flight checks for enclave execution. Gap areas:
commands/validators/config-assembly.ts Analysis:
Validates AWF config assembly. Critical gaps:
📅 Recent Source Changes (last 7 days)
Key recent additions affecting coverage:
All these new paths should be covered by corresponding test additions.
🔎 Notable Findings
Finite-Disclosure Protocol Critically Undercovered
The credential/privacy boundary mechanism (finite-disclosure.ts) has only 9.26% statement coverage and 0.26% branch coverage. This module enforces information-budget constraints and validates agent responses against declared schemas—a security-critical function that requires comprehensive testing.
Branch Coverage Lagging Behind Statement Coverage
Across all flagged files, branch coverage is significantly lower than statement coverage (0-55% vs 9-72%). This indicates that conditional/error paths are inadequately tested, reducing confidence in error handling and edge case behavior.
Enclave Architecture Modules Moderately Untested
New enclave-related modules (runtime-preflight, virtiofsd) have 60-75% coverage. These support the unified enclave architecture introduced in recent commits and should reach 80%+ before production use.
Cloud Hypervisor Integration Partially Tested
The microVM backend (cloud-hypervisor, rootfs modules) has ~72% statement coverage. While acceptable, branch coverage gaps suggest insufficient testing of failure modes and fallback scenarios.
🎯 Recommendations
🔴 HIGH — Execute Immediately
1. Expand
finite-disclosure.tsTest Suite🟡 MEDIUM — Address Before Feature Freeze
2. Complete Branch Coverage for Enclave Validators
🟡 MEDIUM — Plan for Next Sprint
3. Improve Cloud Hypervisor Integration Testing
Summary
Immediate action required on the finite-disclosure protocol module (9.26% coverage). This security-critical module implements credential boundaries and must be thoroughly tested before further enclave development. Secondary priority: complete branch coverage for all validator modules to ensure robust error handling.
All reactions