Repository navigation
Fix canonical Copilot placeholder checks in daily runtime regression - #11161
Conversation
Co-authored-by: lpcox <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The guest regression script conflates an unavailable placeholder contract with credential rejection, requiring distinct fail-closed diagnostics and an updated missing-module assertion.
1 open issue
What changed in this PR
Fixes false credential-isolation failures in the daily runtime regression harness by checking Copilot credentials against the canonical production placeholder.
Changes:
- Validates all three Copilot credential variables without logging their values.
- Uses production credential-builder output in fixtures and covers acceptance, rejection, and unavailable-contract failures.
- Expands fixture coverage for version capture, exact proof/response checks, and downstream failures across Docker, Cloud Hypervisor, and NVX.
| File | Description |
|---|---|
scripts/ci/run-agent-regression-guest.sh |
Loads the canonical Copilot placeholder and validates credential isolation. |
scripts/ci/agent-runtime-regression.test.ts |
Updates production-backed fixtures and expands credential and cross-runtime regression coverage. |
Review effort: Max (auto)
| test -n "${HTTPS_PROXY:?}" | ||
| test -z "${GH_TOKEN:-}${GITHUB_TOKEN:-}${ANTHROPIC_API_KEY:-}" || fail 'A host credential variable reached the guest' | ||
| test -z "${COPILOT_GITHUB_TOKEN:-}" || test "$COPILOT_GITHUB_TOKEN" = '******' || fail 'Copilot credential is not isolated' | ||
| node <<'NODE' || fail 'Copilot credential is not isolated' |
|
@copilot address review feedback |
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Distinguished an unavailable or empty canonical placeholder contract from a rejected credential, preserving fail-closed behavior. Added assertions for both cases; targeted regression tests pass. Commit: |
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 93.78% | 93.77% | 📉 -0.01% |
| Statements | 92.33% | 92.32% | 📉 -0.01% |
| Functions | 93.07% | 93.07% | ➡️ +0.00% |
| Branches | 86.57% | 86.56% | ➡️ -0.01% |
📁 Per-file Coverage Changes (2 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/nvx/one-shot-process.ts |
84.0% → 81.5% (-2.47%) | 76.8% → 74.7% (-2.11%) |
src/enclave/host-executor-server.ts |
91.2% → 91.2% (+0.00%) | 90.1% → 89.8% (-0.29%) |
Coverage comparison generated by scripts/ci/compare-coverage.ts

All three primary Copilot runtime cases rejected the intended placeholder before inference because the guest assertion expected log-redacted text rather than the canonical value.
Credential contract
Executable regression coverage