Repository navigation
Explain Copilot driver exit 80 and harden threat spec optimizer shell use - #78226
Conversation
… use Copilot SDK driver exits 80 (WORKFLOW_TOOL_PERMISSION_DENIED_EXIT_CODE) when max-tool-denials is reached, and 79 on model verification failure. The empty-output collector reported these as 'Unknown (engine-specific exit code)'. Map them for the copilot engine only. Daily Compiler Threat Spec Optimizer run 43792391517 hit 3/3 denials using python3, mkdir in a loop, and paste. Spell out the full allowlist, the github CLI, and forbidden commands in the prompt. Co-authored-by: Copilot App <[email protected]>
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: 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.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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.
|
|
✅ PR Specification Reviewer completed successfully! Caution agentic threat detected DetailsPotential security threats were detected in the agent output. Detected threat types: prompt injection. Review the workflow run logs for details. PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: 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.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one correctness issue: the new engine-ID fallback can throw on malformed workflow.info events because data is not optional-chained. This is in the empty-output failure path, so it can suppress the diagnostic outcome itself. Please guard data and add a regression test.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (review-history)History |
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The exit-80 message incorrectly reports denial-limit exhaustion when a single tool denial followed by a session error can also cause that exit code.
1 open issue
What changed in this PR
This PR improves gh-aw’s Copilot failure diagnostics and clarifies shell restrictions for the daily compiler threat spec optimizer, addressing the failure reported in #78208.
Changes:
- Adds Copilot-specific descriptions for driver exit codes 79 and 80 while preserving the
driver_crashclassification. - Adds tests for engine-specific exit-code meanings.
- Expands workflow tooling instructions without broadening permissions and refreshes generated hashes.
| File | Description |
|---|---|
actions/setup/js/empty_output_outcome.test.cjs |
Tests Copilot exit meanings and another engine’s fallback. |
actions/setup/js/empty_output_outcome.cjs |
Adds engine-scoped meanings for reserved exit codes. |
.github/workflows/daily-compiler-threat-spec-optimizer.md |
Clarifies allowed commands and denial limits. |
.github/workflows/daily-compiler-threat-spec-optimizer.lock.yml |
Refreshes body and admission hashes. |
Review effort: Balanced (dynamic)
Co-authored-by: Copilot App <[email protected]>
|
Re bot status/memory comments 6906383262, 6906383393, 6906383601, 6906384973, 6906385052, 6906385382, 6906463455, 6906467188, 6906478576: no code change needed. These are workflow completion, reaction, and comment-memory records; the only actionable findings (the malformed workflow.info guard and the exit 80 wording) are addressed in 6e14064 and cdb0a5c. The PR Specification Reviewer threat-detection warning refers to its own run output, not to this diff. |
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs, /tdd, and /codebase-design. No blocking issues. Three non-blocking inline comments.
📋 Key Themes & Highlights
Key Themes
- Engine gating: exit 80/79 meanings apply only to
copilot, which is correct because other engines may reuse those numbers. - Edge cases:
??lets an emptyGH_AW_ENGINE_IDskip theworkflow.infofallback. The tests cover the env path but not the fallback. - Open question: the new prompt tells the agent to use
github <tool> --owner --repo. The mount code excludesgithubfrom CLI mounting formode: local, so please confirm this CLI is exposed in this workflow. - Unverified: the lock
body_hashchange could not be reproduced locally. Runningmake recompileon the committed.mdwould confirm it.
Positive Highlights
- ✅
WORKFLOW_TOOL_PERMISSION_DENIED_EXIT_CODEandCOPILOT_MODEL_VERIFICATION_EXIT_CODEare imported from their sources, not hard-coded. - ✅
failureCausestaysdriver_crash, so downstream consumers are unaffected. - ✅ The default bash allowlist in the prompt matches
DefaultBashTools.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.7K
Comment /matt to run again
Co-authored-by: Copilot App <[email protected]>
|
🎉 This pull request is included in a new release. Release: |

Daily Compiler Threat Spec Optimizer run 43792391517 failed with Copilot driver exit code 80. Issue #78208 reported this as
Driver exit meaning: Unknown (engine-specific exit code), which gave no actionable diagnosis.Exit 80 is gh-aw's own
WORKFLOW_TOOL_PERMISSION_DENIED_EXIT_CODE. The SDK driver uses it whenmax-tool-denialsis reached; in this run that was "max tool denials threshold reached (3/3)". The agent used commands outsidetools.bash:python3,mkdirinside aforloop, andpaste.Changes
empty_output_outcome.cjs: for thecopilotengine only, gh-aw's reserved driver exit codes now have meanings:Other engines keep "Unknown (engine-specific exit code)" because they may reuse these numbers.
failureCausestaysdriver_crash, so downstream consumers are unchanged.daily-compiler-threat-spec-optimizer.md: the Tooling Constraint now:githubCLI;python3,node,jq,mkdir,paste,xargsandtee.The allowlist itself is not broadened. The lock change is hash-only.
Validation
empty_output_outcome.test.cjs: 156/156 pass, including new cases for copilot 80/79 and claude 80.make recompileandmake agent-report-progresspass.gh aw logs --engine copilot --start-date -3dfound no other failure at the Copilot execute step in 126 runs. The scan hit its count limit, so it may not cover the full 3 days.Relates to #78208