Skip to content

fix: make daily Codex regression noninteractive and sidecar-backed - #11159

Merged
lpcox merged 3 commits into
mainfrom
copilot/make-codex-daily-regression-noninteractive
Nov 6, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/make-codex-daily-regression-noninteractive

Conversation

Copilot AI commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Pinned Codex 0.159.3 stalled on inherited stdin under Docker and attempted direct OpenAI inference with placeholder credentials under Cloud Hypervisor and NVX. This change addresses both failure modes in the shared regression harness.

  • Deterministic invocation

    • Close stdin with < /dev/null.
    • Explicitly select an AWF Responses provider using the runtime’s sidecar URL, placeholder auth, and WebSocket support. Both transports use the same configured endpoint; real credentials remain in the proxy.
  • Stricter acceptance and safe evidence

    • Require the exact final response and successful sidecar inference evidence before reporting PASS.
    • Retain only allowlisted transport, path, and status fields, bounded to 100 records from at most 1 MiB of input.
  • Focused regression coverage

    • Cover inherited-open stdin, provider configuration, placeholder replacement on WSS and HTTPS paths, exact responses, and missing or unsafe evidence.

Existing egress restrictions and the ten-minute budget remain unchanged.

Copilot AI changed the title [WIP] Make Codex daily regression noninteractive and route inference through the API proxy fix: make daily Codex regression noninteractive and sidecar-backed Nov 5, 2026
Copilot AI requested a review from lpcox November 5, 2026 17:43
@lpcox
lpcox marked this pull request as ready for review November 5, 2026 17:44
Copilot AI adaptive review requested due to automatic review settings November 5, 2026 17:44

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.

🔵 Needs a closer look

Runtime evidence is needed to confirm that Codex 0.159.3 routes WebSocket and HTTPS fallback traffic through the sidecar across Docker, Cloud Hypervisor, and NVX, because current tests mock Codex and transport boundaries.

No open issues 🎉

What changed in this PR

This PR addresses #11150 by making the shared Codex regression harness noninteractive and explicitly routing inference through AWF’s credential-injecting sidecar across Docker, Cloud Hypervisor, and NVX.

Changes:

  • Close Codex stdin and configure a sidecar-backed Responses provider for WebSocket and HTTPS requests.
  • Require exact responses and successful sidecar routing evidence, retaining only bounded, allowlisted fields.
  • Add regression coverage for stdin handling, provider configuration, credential replacement, and evidence validation.
File Description
src/​services/​credentials/​openai-credential-env.ts Clarifies in comments that placeholder credentials do not guarantee routing.
scripts/​ci/​run-agent-runtime-regression.sh Requires exact responses and successful Codex sidecar evidence.
scripts/​ci/​run-agent-regression-guest.sh Closes stdin, selects the sidecar provider, and checks exact output.
scripts/​ci/​collect-agent-regression-evidence.test.ts Tests routing-field filtering, unsafe inputs, and evidence limits.
scripts/​ci/​collect-agent-regression-evidence.cjs Collects bounded, allowlisted Codex routing evidence.
scripts/​ci/​agent-runtime-regression.test.ts Covers noninteractive invocation, routing configuration, and failure conditions.
containers/​api-proxy/​server.websocket.test.js Tests placeholder credential replacement before the upstream WebSocket upgrade.
containers/​api-proxy/​server.proxy-headers.test.js Tests placeholder credential replacement on HTTPS fallback.

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.78% 93.78% ➡️ +0.00%
Statements 92.33% 92.33% ➡️ +0.00%
Functions 93.07% 93.07% ➡️ +0.00%
Branches 86.57% 86.57% ➡️ +0.00%

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

@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

📰 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 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

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

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Claude passed

Generated by Smoke Claude for #11159

@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. 🌟

🔮 The oracle has spoken through Smoke Codex

@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

🚀 Security Guard has started processing 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 #11159

@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

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 Copilot BYOK AOAI (api-key) is testing Azure OpenAI BYOK (api-key) mode on 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

📰 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 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

✅ Smoke Claude passed

Generated by Smoke Claude for #11159

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🔑 Smoke Copilot BYOK AOAI (api-key) is testing Azure OpenAI BYOK (api-key) mode on this pull request...

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓

🪪 BYOK (AOAI Entra) report filed by Smoke Copilot BYOK AOAI (Entra)

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

📡 Smoke OTel Tracing is starting OTel tracing validation...

@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 #11159

@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 Test: Claude Engine Validation

Check Result
API status ✅ PASS
GitHub check ✅ PASS
File status ✅ PASS

Overall result: PASS

Generated by Smoke Claude for #11159 · 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

Smoke Test: Copilot BYOK (Direct) Mode ✅

Test Result
GitHub MCP connectivity ✅
GitHub.com connectivity (HTTP 200) ✅
File write/read test ✅
BYOK inference path ✅

Status: PASS

Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy → api.githubcopilot.com

🔑 BYOK report filed by Smoke Copilot BYOK
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

EGRESS_RESULT allow=pass deny=pass

  • ✅ Allowed domain (api.github.com → 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

Fix canonical Copilot placeholder checks in daily runtime regression
fix: isolate regression completion markers from terminal output

GitHub MCP connectivity: ✅
GitHub.com connectivity: ✅
File write/read test: ✅
BYOK inference test: ✅

Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra

Overall status: PASS

@Copilot @lpcox

🪪 BYOK (AOAI Entra) report filed by Smoke Copilot BYOK AOAI (Entra)
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Smoke Copilot: PR "fix: estimate missing model prices with same-backend medians"

  • GitHub MCP ✅
  • github.com connectivity ✅ (200)
  • File write/read ✅

Overall: PASS — @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

Smoke Test

  • Fix canonical Copilot placeholder checks in daily runtime regression
  • fix: isolate regression completion markers from terminal output
  • GitHub reads: ✅
  • Playwright: ❌
  • File write/read: ✅
  • Build: ✅
  • Overall: 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

🏗️ 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 ❌ FAIL
.NET json-parse ❌ N/A ❌ FAIL
Go color ✅ pass (ok) ✅ PASS
Go env ✅ pass (ok) ✅ PASS
Go uuid ✅ pass (ok) ✅ PASS
Java gson ❌ not run ❌ FAIL
Java caffeine ❌ not run ❌ FAIL
Node.js clsx ✅ all passed ✅ PASS
Node.js execa ✅ all passed ✅ PASS
Node.js p-limit ✅ all passed ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 6/8 ecosystems passed — FAIL

Failures

  • .NET: dotnet restore crashed with System.IO.IOException: The system cannot open the device or file specified. : 'NuGet-Migrations', thrown by a named mutex in the first-time-use configurer. It still crashed after retrying with DOTNET_CLI_HOME and NUGET_PACKAGES set to writable paths.
  • Java: First run: Maven could not create /home/runner/.m2/repository (the ~/.m2 directory is root-owned). Retry with -Dmaven.repo.local in a writable path: Could not transfer artifact ... from central: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty. Java has no trusted CA certificates in the sandbox, so HTTPS fetches through the proxy fail.

The build-test label was not added because not all ecosystems passed.

Generated by Build Test Suite for #11159 · copilot · auto · ~19 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

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 ✅

Node.js differs between host and chroot, so the smoke-chroot label was not added.

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

@lpcox
lpcox merged commit 084970b into main Nov 6, 2026
143 of 153 checks passed
@lpcox
lpcox deleted the copilot/make-codex-daily-regression-noninteractive branch November 6, 2026 02:27

This branch was previously deployed

1 inactive deployment
aoai-model — fddb1519 Deployed Nov 5, 2026 by lpcox via conclusion #2264
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.

Make Codex daily regression noninteractive and route inference through the API proxy

3 participants