Repository navigation
Clarify CI failure fixer startup and command-denial recovery - #137009
Conversation
Use loaded safe-output MCP tools without CLI discovery, and scope startup permission denials to the attempted operation. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 14 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
There was a problem hiding this comment.
Holistic Review
Motivation: Addresses the fixer abandoning remediation after a denied CLI-discovery call was mistaken for a terminal-wide outage.
Approach: The focused startup guidance uses loaded MCP tools, separates permitted Git checks, and requires accurate incomplete reporting when a required operation remains blocked. The generated lock changes only the prompt body hash.
Summary: ✅ No actionable PR-caused issues found after adversarial consensus.
Methodology: 3 independent reviewers with adversarial consensus + repo domain specialist.
Coverage: The existing deterministic tests do not exercise whether a model follows the revised prompt. The reported pinned-CLI reproduction validates permission handling and direct MCP use, not model adherence in Linux AWF.
Prior review status: No existing reviews or inline threads at the time of this review.
Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.
Note
This review was generated by GitHub Copilot.
Why this is needed
The November 5 fixer run stopped before investigating any KBEs. Its first shell call combined the Git startup checks with CLI discovery:
The call returned
Permission denied because no interactive user response was available. The agent treated that one denial as evidence that all terminal execution was unavailable, made no further shell attempts, and reported incomplete work.The successful November 4 run provides a useful contrast:
command -v safeoutputs && safeoutputs noop --helpwas also denied, but the agent continued with permitted Git and investigation commands. A denied discovery call does not establish a terminal-wide outage.Change
The startup instructions now tell the agent to use the already-loaded
safeoutputsMCP tools directly, without CLI discovery, and perform the two permitted Git checks in separate tool calls. They also distinguish a compound-call denial from loss of terminal access: do not repeat or wrap the denied operation; attempt only the independent permitted checks, and report the exact command, error, and unfinished work if a required operation remains blocked.This removes unnecessary discovery from startup and provides a concrete recovery path instead of abandoning remediation after one denial. Shell permissions and workflow outputs are unchanged. The regenerated lock file changes only the prompt body hash.
Local validation
gh aw compile --schedule-seed dotnet/runtimewith the recorded gh-aw v1.0.1: all 6 workflows compiled, with 0 warnings. A repeat compile produced the same result.python3 .github/workflows/evals/test_ci_failure_fix_candidates.py: all 18 existing tests passed. No prompt-text assertion tests are included.command -v gitreturned the same denial. In that same CLI session, both separate Git checks, a compound Git-only check, and a directsafeoutputsMCP call to a local no-op fixture succeeded.The reproduction confirms that permitted operations remain usable after the discovery denial. It ran on macOS, not Linux AWF, and used scripted tool calls rather than testing a model's adherence to the revised prompt. Validation used no paid inference, production workflow dispatch, or real safe-output publication.
Note
This pull request description and code changes were generated with GitHub Copilot.