Skip to content

fix: isolate regression completion markers from terminal output - #11158

Merged
lpcox merged 2 commits into
mainfrom
copilot/avoid-ansi-prefixed-false-negatives
Nov 5, 2026
Merged

lpcox merged 2 commits into
mainfrom
copilot/avoid-ansi-prefixed-false-negatives

Conversation

Copilot AI commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude/NVX could complete successfully yet fail host validation when cursor-show output (ESC[?25h) prefixed the completion marker.

  • Completion signaling: Emit a leading newline so the marker occupies its own line:
    printf '\n%s\n' AWF-REGRESSION-COMPLETE
  • Preserved checks: Keep exact host matching, proof/response validation, and exit-code handling unchanged. No prompt, network, or credential changes.
  • Regression coverage: Cover clean and ANSI-contaminated output; reject missing, partial, quoted, or embedded markers, incorrect evidence, and nonzero exits.

Copilot AI changed the title [WIP] Fix ANSI-prefixed completion-marker false negatives in NVX regression fix: isolate regression completion markers from terminal output Nov 5, 2026
Copilot AI requested a review from lpcox November 5, 2026 17:37
@lpcox
lpcox marked this pull request as ready for review November 5, 2026 17:43
Copilot AI adaptive review requested due to automatic review settings November 5, 2026 17:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the change to isolate the regression completion marker from terminal output.

No open issues 🎉

What changed in this PR

This PR addresses #11148 by isolating the regression completion marker from terminal output, preventing false failures in Claude/NVX host validation.

Changes:

  • Adds a leading newline so the guest completion marker appears on its own line.
  • Adds coverage for ANSI-contaminated output and rejection of invalid markers, incorrect evidence, and nonzero exits.
  • Preserves exact host matching, proof/response validation, and exit-code handling.
File Description
scripts/​ci/​run-agent-regression-guest.sh Prints the completion marker with a leading newline.
scripts/​ci/​agent-runtime-regression.test.ts Extends mocks and tests for terminal output contamination and validation failures.

Review effort: Balanced (auto)

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.77% 93.78% 📈 +0.01%
Statements 92.32% 92.33% 📈 +0.01%
Functions 93.07% 93.07% ➡️ +0.00%
Branches 86.56% 86.57% ➡️ +0.01%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/enclave/host-executor-server.ts 91.2% → 91.2% (+0.00%) 89.8% → 90.1% (+0.29%)
src/nvx/one-shot-process.ts 81.5% → 84.0% (+2.47%) 74.7% → 76.8% (+2.11%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

Smoke Codex

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Smoke Codex · gpt54 · ~9 AIC · ⊞ 22.7K · ◷

🔮 The oracle has spoken through Smoke Codex

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.

Tested by Smoke Chroot

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

📡 OTel tracing validated by Smoke OTel Tracing

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Claude passed

Generated by Smoke Claude for #11158

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

💎 Smoke Gemini is crystallizing results on this pull request...

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅

🛡️ Egress verdict from Smoke Copilot Network Isolation

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🔌 Smoke Services is testing service connectivity for this pull request...

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request...

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Build Test Suite completed successfully!

Generated by Build Test Suite for #11158

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Smoke Claude Results

  • API status: ✅ PASS
  • GitHub check: ✅ PASS
  • File status: ✅ PASS

Overall result: PASS

Generated by Smoke Claude for #11158 · claude · haiku45 · ~35 AIC · ⊞ 6.1K · ◷
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

fix: isolate regression completion markers from terminal output
✅ GitHub MCP connectivity
✅ GitHub.com connectivity
✅ File write/read
✅ BYOK inference
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw)
Overall status: PASS
cc @Copilot @lpcox

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

OTEL smoke test

  • ✅ 1 Module loading: otel.js loads; exports startRequestSpan, setTokenAttributes, endSpan, shutdown, isEnabled, etc.
  • ✅ 2 Tests: 46/46 passed
  • ✅ 3 Env forwarding: OTEL references present in env-passthrough.ts and api-proxy-env-config.ts
  • ✅ 4 Token tracker: onUsage hook present in token-tracker-http.js
  • ✅ 5 Diagnostics: /tmp/gh-aw/otel.jsonl exists with 1 span record

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot BYOK (Direct) Mode ✅

Results:

  • ✅ GitHub MCP connectivity (2 merged PRs fetched)
  • ✅ GitHub.com HTTP 200
  • ✅ File write/read verified
  • ✅ BYOK inference path active

Mode: Direct BYOK via COPILOT_PROVIDER_API_KEY → api-proxy sidecar → api.githubcopilot.com

Status: PASS

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@github-actions github-actions Bot added smoke-copilot-byok smoke-copilot-network-isolation Copilot network-isolation egress smoke test labels Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

EGRESS_RESULT allow=pass deny=pass

  • ✅ Allowed domain (api.github.com): allowed=200
  • ✅ Blocked domain (example.com): blocked
  • Overall: PASS — cc @lpcox

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Cloud Hypervisor + Copilot smoke test

  1. Merged PR lookup: PASS
  2. github.com connectivity: PASS (HTTP 200)
  3. File write/read: PASS
  4. example.com blocked: PASS (HTTP 000)

Overall: PASS

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Smoke Copilot: PASS

  • ✅ GitHub MCP (latest PR: "Fix canonical Copilot placeholder checks in daily runtime regression")
  • ✅ GitHub.com connectivity (200)
  • ✅ File write/read

cc @Copilot @lpcox

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia ✅ 1/1 passed ✅ PASS
Bun hono ✅ 1/1 passed ✅ PASS
C++ fmt ✅ N/A ✅ PASS
C++ json ✅ N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world ✅ N/A ✅ PASS*
.NET json-parse ✅ N/A ✅ PASS*
Go color ✅ passed ✅ PASS
Go env ✅ passed ✅ PASS
Go uuid ✅ passed ✅ PASS
Java gson ❌ 0 run ❌ FAIL
Java caffeine ❌ 0 run ❌ FAIL
Node.js clsx ✅ passed ✅ PASS
Node.js execa ✅ passed ✅ PASS
Node.js p-limit ✅ passed ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 7/8 ecosystems passed — FAIL

Failures

  • Java: first run failed with LocalRepositoryNotAccessibleException, because ~/.m2 is root-owned. A retry with a writable -Dmaven.repo.local and the settings.xml proxy (squid-proxy:3128) failed with PluginResolutionException (Maven plugins could not be downloaded).
  • *.NET: the first run failed because /run/user/1001 does not exist (NuGet migration mutex). It passed after setting XDG_RUNTIME_DIR and DOTNET_CLI_HOME, which is an environment workaround.

The build-test label was not added because of the Java failures.

Generated by Build Test Suite for #11158 · copilot · auto · ~18 AIC · ⊞ 5.7K · ◷
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Smoke Test

  • fix: preserve exact-decimal AI-credit accounting ✅
  • fix: create issues for daily regression failures ✅
  • GitHub reads ✅
  • Playwright title check ❌
  • File write/read ✅
  • AWF build ✅
  • Overall status: FAIL

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Chroot Version Comparison

Runtime Host Version Chroot Version Match?
Python Python 3.12.16 Python 3.12.16 ✅
Node.js v24.22.2 v2.98.0 ❌
Go go1.22.12 go1.22.12 ✅

Result: Not all tests passed. Node.js differs between host and chroot (the chroot version v2.98.0 looks anomalous), so the smoke-chroot label was not added.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@lpcox
lpcox merged commit fac7ec9 into main Nov 5, 2026
141 of 147 checks passed
@lpcox
lpcox deleted the copilot/avoid-ansi-prefixed-false-negatives branch November 5, 2026 19:07

This branch had an error being deployed

1 failed deployment
aoai-model — 80d350c1 Deployed Nov 5, 2026 by lpcox via conclusion #2262
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid ANSI-prefixed completion-marker false negatives in NVX regression

3 participants