Repository navigation
fix: gate PR Sous Chef agent launches on trusted refresh - #11280
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The compiled-lock checks do not exclude gh:* permissions or --difc-proxy-host, so regeneration could reintroduce the removed CLI-proxy access without failing tests.
1 open issue
What changed in this PR
Reduces wasted PR Sous Chef agent launches by refreshing targets before startup and backing off repeated metadata failures, addressing #11255 while preserving safe-output-only writes and writer validation.
Changes:
- Gates agent startup on a successful trusted refresh and handles closed or merged PRs before validating nullable branch metadata.
- Adds bounded, persistent per-PR/HEAD failure backoff so other candidates can proceed.
- Removes agent-side GitHub tooling, shortens the prompt, and updates tests and the compiled workflow.
| File | Description |
|---|---|
scripts/ci/pr-sous-chef.test.ts |
Adds refresh, backoff, metadata, and workflow safety coverage. |
scripts/ci/pr-sous-chef.cjs |
Implements trusted refresh gating and bounded failure-state handling. |
.github/workflows/pr-sous-chef.md |
Adds host-side cache steps, reduces agent access, and moves operator guidance outside the prompt. |
.github/workflows/pr-sous-chef.lock.yml |
Regenerates the workflow with caching and reduced agent tooling and permissions. |
Review effort: Max (auto)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (6 files)
Coverage comparison generated by |
|
PR sous-chef: human handoff (not merge-ready certification). Human review or current-head review evidence is still needed. Sous-chef kind: handoff
|
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓
|
|
✅ Smoke Claude passed
|
|
🔌 Smoke Services is testing service connectivity for this pull request... |
|
❌ Smoke Copilot BYOK reports failed. BYOK mode investigation needed...
|
|
🚀 Security Guard has started processing this pull request |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request... |
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
💎 Smoke Gemini is crystallizing results on this pull request... |
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
|
✅ Build Test Suite completed successfully!
|
|
Cloud Hypervisor + Copilot smoke test
Overall: PASS
|
|
GitHub MCP Testing: ✅
|
|
OTEL smoke test
|
|
Chroot Version Comparison
Result: failed. The Node.js versions differ, so the
|
|
Smoke Test: Copilot BYOK (Direct Mode) ✅ PASS ✅ GitHub.com connectivity (HTTP 200) Running in direct BYOK mode via
|
|
EGRESS_RESULT allow=pass deny=pass
Overall: PASS — @lpcox
|
|
Smoke (Copilot): PRs: "fix: gate PR Sous Chef agent launches on trusted refresh"
Overall: PASS. cc
|
🏗️ Build Test Suite Results
Overall: 7/8 ecosystems passed — FAIL Java failure: Maven could not resolve .NET note: The first run crashed in first-time-use setup because The
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|

29 of 35 inspected agent runs failed refreshing repeatedly selected PRs, spending ~10 AIC per run without producing value.
Pre-agent gating
Failure backoff
Smaller agent surface
Writer boundary unchanged