Skip to content

Fix leak-fixer evidence filtering before bot trust evaluation - #39457

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-leak-fixer-evidence
Oct 19, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-leak-fixer-evidence

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Preserve the identity metadata required by Memory Leak Fixer's GitHub integrity guard.

The reported run already loaded min-integrity: approved and trusted-users: ["github-actions[bot]"], including the trust correction from #39332. However, its MCP list_issues and search_issues calls requested projected fields without user or author_association. Field selection happens before guard evaluation, so the guard could not recognize the scanner's trusted bot identity. Issue #37848 was consequently filtered at unapproved integrity.

The workflow now explicitly requires all MCP issue/PR list and search calls to omit fields, retain the original metadata through the guard, and reduce only permitted results locally. This covers review-response discovery, leak selection, deduplication, and attempt caps. Queries must scope to workflow candidates, and filtered/failed evidence must stop publication rather than look like an empty or complete inventory.

Approved integrity, bot trust, permissions, firewall, threat detection, safe-output restrictions, and all action/container/model pins remain unchanged. The regenerated lock changes only the prompt body hash. The fix does not permit raw-REST retries, alternate-tool access to withheld content, or a lower integrity threshold.

Validation:

  • gh aw compile leak-fixer --strict --shellcheck --no-check-update --json - passed with no errors or warnings; retained the original action/container pins using the local compiler pin cache and restored that cache afterward.
  • gh aw compile leak-fixer --strict --staged --no-emit --no-check-update --json - passed with no errors or warnings.
  • git diff --check - passed.
  • actionlint -format '{{json .}}' .github/workflows/leak-fixer.lock.yml - reports the same four diagnostics as the untouched base (two unsupported generated concurrency.queue keys, existing SC2129 style advice, and an existing github.aw import expression). No new diagnostics.
  • Read-only GPT-6.1 Sol security review of the final source/lock change - passed; no confirmed vulnerabilities.

No pipeline tests were added. --dry-run is unavailable in the pinned gh-aw v0.86.2 compiler; the commands above are configuration checks, not a live dry-run. No agent workflow was dispatched, and hosted recovery remains unverified until the revised workflow runs.

Issues Fixed

Fixes #39447

Avoid MCP field projection before integrity filtering and fail closed on incomplete workflow evidence.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: aa3864d1-3642-4dd3-a02b-90c0ed19eb6d
Copilot AI balanced review requested due to automatic review settings October 19, 2026 10:44
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 19, 2026 10:44 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39457

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39457"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 19, 2026 10:44 — with GitHub Actions Inactive
@kubaflo

kubaflo commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

Copilot AI 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.

🔵 Needs a closer look

No confirmed defects were identified, but hosted integrity-guard behavior remains unverified and requires human validation.

No open issues 🎉

What changed in this PR

Updates Memory Leak Fixer’s evidence-reading instructions to preserve metadata needed for bot trust evaluation, addressing #39447 without weakening integrity controls.

Changes:

  • Requires unprojected MCP issue/PR responses and workflow-scoped queries.
  • Stops publication when evidence is filtered or queries fail.
  • Refreshes the generated lock’s prompt-body hash only.
File Description
.github/​workflows/​leak-fixer.md Adds metadata-preservation and blocked-evidence handling instructions.
.github/​workflows/​leak-fixer.lock.yml Updates the prompt-body hash; preserves existing pins.

Review effort: Balanced

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 19, 2026
@kubaflo
kubaflo merged commit b36d97a into main Oct 19, 2026
13 of 15 checks passed
@kubaflo
kubaflo deleted the kubaflo-leak-fixer-evidence branch October 19, 2026 11:35
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Oct 19, 2026
@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — b351e22b Deployed Oct 19, 2026 by kubaflo via conclusion #2390
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Memory Leak Fixer is missing required data

4 participants