Skip to content

Clarify CI failure fixer startup and command-denial recovery - #137009

Merged
vitek-karas merged 2 commits into
dotnet:mainfrom
vitek-karas:vitek-karas-ci-fixer-command-recovery
Nov 5, 2026
Merged

vitek-karas merged 2 commits into
dotnet:mainfrom
vitek-karas:vitek-karas-ci-fixer-command-recovery

Conversation

@vitek-karas

Copy link
Copy Markdown
Member

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:

git status --short && git branch --show-current && command -v safeoutputs

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 --help was 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 safeoutputs MCP 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/runtime with 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.
  • An ad-hoc local scripted provider drove the actual pinned Copilot CLI 1.0.103 with the generated workflow tool permissions. Both discovery compounds above and command -v git returned the same denial. In that same CLI session, both separate Git checks, a compound Git-only check, and a direct safeoutputs MCP 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.

vitek-karas and others added 2 commits November 5, 2026 11:16
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]>
@azure-pipelines

Copy link
Copy Markdown
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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@vitek-karas vitek-karas left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@vitek-karas
vitek-karas marked this pull request as ready for review November 5, 2026 10:41
@vitek-karas
vitek-karas requested review from a team and jeffhandley as code owners November 5, 2026 10:41
@vitek-karas
vitek-karas merged commit 6dae62b into dotnet:main Nov 5, 2026
25 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants