You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR: fix: run drift check scripts in steps: where gh CLI is authenticated Merged: 2026-04-22T03:25:25Z by PureWeen Review runs: 0 automated reviews (PR self-merged ~5 min after opening; review-on-open triggered but could not complete in time)
Skill Coverage Analysis
Skill
Relevant?
Referenced?
Gap?
gh-aw-guide
✅ Yes (all changed files are workflow .md/.lock.yml)
❌ No review ran
⚠️ Would have caught unauthenticated gh CLI in retro prompt
processing-state-safety
❌ No (no C# files changed)
—
—
copilot-sdk-reference
❌ No
—
—
performance-optimization
❌ No
—
—
multi-agent-orchestration
❌ No
—
—
Review Accuracy
Metric
Count
True Positives
0
True Positives (Fixed)
0
False Positives
0
False Negatives (missed)
1
Unresolved
1
Missed Findings (False Negatives)
🟡 MODERATE — review-retro.agent.md Step 1 uses unauthenticated gh CLI (same bug class PR #662 was fixing)
These gh CLI calls require GH_TOKEN, which is scrubbed inside the agent container. This is the exact same bug that PR #662 was fixing in instruction-drift.agent.md (where Check-Staleness.ps1 called gh api and gh issue view). The fix for instruction-drift was to move script execution to steps: where GH_TOKEN is available. The newly-added review-retro.agent.md was added in the same PR with the same bug.
Confirmed workaround: The compiled lock file (review-retro.agent.lock.yml:550) shows GitHub MCP tools ARE provisioned by default: "GITHUB_TOOLSETS": "context,repos,issues,pull_requests". An agent that ignores the gh CLI instructions and uses MCP tools instead will work correctly. The current run succeeded this way. But an agent that faithfully executes the Step 1 bash commands as written will receive authentication errors and may fail to gather any PR data.
Fix: Rewrite review-retro.agent.md Step 1 to use GitHub MCP tools instead of gh CLI:
get_pull_request → replaces gh pr view
get_pull_request_reviews → replaces gh api .../reviews
list_pull_request_comments → replaces gh api .../comments
list_issue_comments → replaces gh api .../issues/.../comments
Also add a note: > Do NOT use gh CLI to gather data — gh is not authenticated inside the agent container. Use GitHub MCP tools exclusively.
Skill that would have caught this:gh-aw-guide — the skill documents that gh CLI credentials are scrubbed in the agent container and that MCP tools or steps: are the correct alternative.
Process Finding
PR #662 was self-merged 5 minutes after opening (created 03:20, merged 03:25 UTC). The review-on-open.agent.md workflow likely triggered on PR open but the expert review takes 20–90 minutes. This left the PR — which added three new workflow files (fix.agent.md, review-retro.agent.md, verify-build.yml) — without any automated or human review before merge.
The unreviewed review-retro.agent.md then triggered this retrospective run, which is how the false negative was discovered.
Improvement Suggestions
Fix review-retro.agent.md Step 1 — Replace all gh CLI data-gathering commands with equivalent GitHub MCP tool calls. Add an explicit note that gh is not authenticated in the agent container. This matches the pattern already used by review-shared.md and fix-shared.md.
Consider adding a steps: pre-computation block to review-retro.agent.md — Similar to the pattern in the fixed instruction-drift.agent.md. Alternatively, since GitHub MCP tools work correctly (confirmed by the lock file), simply updating the instructions to use them is sufficient and simpler.
Workflow self-review gap — When a PR adds or modifies gh-aw workflow .md files, consider adding a checklist reminder: "Did the new workflow instructions avoid unauthenticated gh CLI calls?" This is a recurring error class in this repo (PR fix: run drift check scripts in steps: where gh CLI is authenticated #662 fixed it once, introduced it again in the same PR).
This retrospective was generated automatically by the review-retro workflow for PR #662.
Warning
⚠️ Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
patchdiff.githubusercontent.com
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
PR: fix: run drift check scripts in steps: where gh CLI is authenticated
Merged: 2026-04-22T03:25:25Z by PureWeen
Review runs: 0 automated reviews (PR self-merged ~5 min after opening; review-on-open triggered but could not complete in time)
Skill Coverage Analysis
.md/.lock.yml)ghCLI in retro promptReview Accuracy
Missed Findings (False Negatives)
🟡 MODERATE —
review-retro.agent.mdStep 1 uses unauthenticatedghCLI (same bug class PR #662 was fixing)File:
.github/workflows/review-retro.agent.md, lines 57–72Issue: Step 1 instructs the agent to gather PR data via:
These
ghCLI calls requireGH_TOKEN, which is scrubbed inside the agent container. This is the exact same bug that PR #662 was fixing ininstruction-drift.agent.md(whereCheck-Staleness.ps1calledgh apiandgh issue view). The fix for instruction-drift was to move script execution tosteps:whereGH_TOKENis available. The newly-addedreview-retro.agent.mdwas added in the same PR with the same bug.Confirmed workaround: The compiled lock file (
review-retro.agent.lock.yml:550) shows GitHub MCP tools ARE provisioned by default:"GITHUB_TOOLSETS": "context,repos,issues,pull_requests". An agent that ignores theghCLI instructions and uses MCP tools instead will work correctly. The current run succeeded this way. But an agent that faithfully executes the Step 1 bash commands as written will receive authentication errors and may fail to gather any PR data.Fix: Rewrite
review-retro.agent.mdStep 1 to use GitHub MCP tools instead ofghCLI:get_pull_request→ replacesgh pr viewget_pull_request_reviews→ replacesgh api .../reviewslist_pull_request_comments→ replacesgh api .../commentslist_issue_comments→ replacesgh api .../issues/.../commentsget_pull_request_diff→ replacesgh pr difflist_pull_request_files→ replacesgh pr diff --name-onlyAlso add a note:
> Do NOT use gh CLI to gather data — gh is not authenticated inside the agent container. Use GitHub MCP tools exclusively.Skill that would have caught this:
gh-aw-guide— the skill documents thatghCLI credentials are scrubbed in the agent container and that MCP tools orsteps:are the correct alternative.Process Finding
PR #662 was self-merged 5 minutes after opening (created 03:20, merged 03:25 UTC). The
review-on-open.agent.mdworkflow likely triggered on PR open but the expert review takes 20–90 minutes. This left the PR — which added three new workflow files (fix.agent.md,review-retro.agent.md,verify-build.yml) — without any automated or human review before merge.The unreviewed
review-retro.agent.mdthen triggered this retrospective run, which is how the false negative was discovered.Improvement Suggestions
Fix
review-retro.agent.mdStep 1 — Replace allghCLI data-gathering commands with equivalent GitHub MCP tool calls. Add an explicit note thatghis not authenticated in the agent container. This matches the pattern already used byreview-shared.mdandfix-shared.md.Consider adding a
steps:pre-computation block toreview-retro.agent.md— Similar to the pattern in the fixedinstruction-drift.agent.md. Alternatively, since GitHub MCP tools work correctly (confirmed by the lock file), simply updating the instructions to use them is sufficient and simpler.Workflow self-review gap — When a PR adds or modifies gh-aw workflow
.mdfiles, consider adding a checklist reminder: "Did the new workflow instructions avoid unauthenticatedghCLI calls?" This is a recurring error class in this repo (PR fix: run drift check scripts in steps: where gh CLI is authenticated #662 fixed it once, introduced it again in the same PR).This retrospective was generated automatically by the review-retro workflow for PR #662.
Warning
The following domain was blocked by the firewall during workflow execution:
patchdiff.githubusercontent.comTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.