Skip to content

Harden daily regression audit against tool-denial loops and prevent premature denial-issue closure - #53370

Merged
pelikhan merged 3 commits into
mainfrom
copilot/fix-tool-denial-guardrail
Aug 17, 2026
Merged

Harden daily regression audit against tool-denial loops and prevent premature denial-issue closure#53370
pelikhan merged 3 commits into
mainfrom
copilot/fix-tool-denial-guardrail

Conversation

CopilotAI commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The Daily Regression Audit workflow was repeatedly hitting the Copilot SDK tool-denial guardrail due to blocked inline JSON parsing patterns, causing failed runs with no actionable output. In parallel, failure triage automation could close denial-limit issues without evidence that the affected workflow was actually changed.

  • Daily Regression Audit: remove blocked parsing path

    • Switched allowed shell JSON primitive from python3 to jq in daily-regression-audit-kiro.
    • Added explicit prompt guidance to avoid python3 -c/heredoc JSON parsing for MCP/local outputs.
  • Daily Regression Audit: denial-budget-aware behavior

    • Added an explicit retry guardrail: after 2 denied attempts for the same intent, stop variant retries and emit missing-tool with the denied capability.
  • Failure Investigator: closure evidence requirement

    • Added a closure gate for tool-denial-limit issues: only close as completed when there is a linked post-open commit touching the affected workflow .md or .lock.yml.
    • If no such commit exists, keep the issue open and update tracking context instead of auto-closing.
  • Compiled workflow outputs updated

    • Regenerated corresponding .lock.yml files to keep runtime policy/prompt behavior in sync with markdown sources.
# daily-regression-audit-kiro.md (excerpt)tools:
bash:
- jq# ...# Prompt guidance:# - Use jq for JSON parsing# - Stop after 2 denied attempts for same intent# - Call missing-tool instead of retrying near-identical denied commands

CopilotAIand others added 2 commits August 17, 2026 12:27
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI changed the title [WIP] Fix tool-denial guardrail issue in daily regression auditHarden daily regression audit against tool-denial loops and prevent premature denial-issue closureAug 17, 2026
CopilotAI requested a review from pelikhanAugust 17, 2026 12:33
@pelikhan
pelikhan marked this pull request as ready for review August 17, 2026 12:36
CopilotAI balanced review requested due to automatic review settings August 17, 2026 12:36
@pelikhan
pelikhan merged commit 6be1e49 into mainAug 17, 2026
@pelikhan
pelikhan deleted the copilot/fix-tool-denial-guardrail branch August 17, 2026 12:36

CopilotAI 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.

Pull request overview

Hardens regression-audit workflows against tool-denial loops and adds evidence requirements before closing related issues.

Changes:

  • Replaces Python JSON parsing with jq.
  • Adds denial retry limits.
  • Requires workflow-fix evidence before issue closure.
Show a summary per file
FileDescription
.github/workflows/daily-regression-audit-kiro.mdUpdates parsing and denial guidance.
.github/workflows/daily-regression-audit-kiro.lock.ymlRegenerates the compiled audit workflow.
.github/workflows/aw-failure-investigator.mdAdds the closure-evidence gate.
.github/workflows/aw-failure-investigator.lock.ymlRegenerates the compiled investigator workflow.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment on lines +93 to +94
If a tool/command is denied for this step, do not retry near-identical variants: after 2 denied attempts for the
same intent, stop and call `missing-tool` with the denied command and required capability.
Comment on lines +408 to +409
exists, do **not** close the issue as completed; keep it open and add/update a tracking comment with the missing workflow
fix evidence.
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.1

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw-failures] [daily-regression-audit-kiro] Tool-denial guardrail will recur — #53276 closed without a workflow fix

3 participants

@pelikhan