Skip to content

Fix gh-aw triage: gateway crash hotfix + fill owner-map assignment gap - #639

Merged
Huzaifa Danish (huzaifa-d) merged 2 commits into
mainfrom
user/modanish/triage-gateway-hotfix
Jul 13, 2026
Merged

Huzaifa Danish (huzaifa-d) merged 2 commits into
mainfrom
user/modanish/triage-gateway-hotfix

Conversation

@huzaifa-d

@huzaifa-d Huzaifa Danish (huzaifa-d) commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two changes to the gh-aw issue-triage workflow. This supersedes #597 (the github/issue-labeler approach), which is being discarded; all triage changes are consolidated here.

1. Gateway crash hotfix (production down)

tools.github.allowed-repos was authored as a scalar, so the compiled guard policy rendered "repos" as a bare string. MCP Gateway v0.3.30 rejects that at startup:

invalid server guard policy: allow-only.repos string must be 'all' or 'public'

A specific repository must be a JSON array, so every triage run since the scalar form merged failed at the agent job and all triage has been down. Fix: author it as a YAML list so the lock emits "repos": ["${{ github.repository }}"].

tools:
  github:
    allowed-repos:
      - "${{ github.repository }}"

2. Fill the owner-map assignment gap

SDK/schema/build/test area labels had no owner, so those issues were labeled but never assigned. Adds theelliotm to the assign-to-user allow-list and four rows to the owner map:

Owner Areas
@mgudgin SDK configuration / policy
@huzaifa-d SDK API / executor schema / TypeScript build
@bbonaby Rust build
@theelliotm SDK / executor test infrastructure

Verification

gh aw compile is static and does not start the gateway, so it missed the crash. Both changes were validated with gh aw trial: the gateway started cleanly and the agent produced valid safe-outputs (labels, assignees, remove Needs-Triage, comment). The trial against #613 assigned bbonaby + huzaifa-d from the new owner rows.

Only issue-triage.md (source) and the generated issue-triage.lock.yml change.

The guard policy rendered allowed-repos as a bare string
(repos: microsoft/mxc), which MCP Gateway rejects at startup:
allow-only.repos string must be all or public. A specific repo must be
an array. Using YAML list form makes the lock emit repos as a JSON
array, which the gateway accepts.

This was a production outage: every triage run since the bare-string
form merged failed at the agent job because the gateway would not start.
gh aw compile is static and did not catch it; verified the fix with
gh aw trial (gateway started clean, agent read the issue and produced
valid safe-outputs).

Co-authored-by: Copilot App <[email protected]>
Copilot AI review requested due to automatic review settings July 13, 2026 18:55
@huzaifa-d
Huzaifa Danish (huzaifa-d) requested a review from a team as a code owner July 13, 2026 18:55

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.

Pull request overview

Hotfix to restore the GitHub Actions gh-aw issue triage workflow by ensuring the GitHub MCP server guard policy emits allow-only.repos as a JSON array (not a scalar string), which MCP Gateway v0.3.30 requires.

Changes:

  • Update tools.github.allowed-repos in the workflow source to a YAML list (["${{ github.repository }}"]).
  • Regenerate the compiled lock workflow so the embedded MCP gateway config now renders "repos": [ ... ] instead of "repos": "...".
Show a summary per file
File Description
.github/workflows/issue-triage.md Changes allowed-repos from scalar to list so the guard policy compiles to an array.
.github/workflows/issue-triage.lock.yml Regenerated output; MCP gateway JSON config now emits repos as an array.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Low

Fills the assignment gap where SDK/schema/build/test area labels had no
owner in the agentic triage prompt. Adds theelliotm to the
assign-to-user allow-list and four rows to the owner map:

- mgudgin:    SDK configuration / policy
- huzaifa-d:  SDK API / executor schema / TypeScript build
- bbonaby:    Rust build
- theelliotm: SDK / executor test infrastructure

Verified with gh aw trial against #613: agent assigned bbonaby +
huzaifa-d (cap 2) and removed Needs-Triage.

Co-authored-by: Copilot App <[email protected]>
@huzaifa-d Huzaifa Danish (huzaifa-d) changed the title Fix gh-aw triage gateway crash: emit allowed-repos as an array Fix gh-aw triage: gateway crash hotfix + fill owner-map assignment gap Jul 13, 2026
@huzaifa-d
Huzaifa Danish (huzaifa-d) merged commit 024d19c into main Jul 13, 2026
22 checks passed
@huzaifa-d
Huzaifa Danish (huzaifa-d) deleted the user/modanish/triage-gateway-hotfix branch July 13, 2026 21:17
Sign up for free to 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.

4 participants