From 4d610c50880f2bef264d7a196980f3ee519446f2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 16 May 2026 02:29:21 +0000 Subject: [PATCH 1/2] Initial plan From 4b6cd9a939f989734070c749997d2ea84eb1dcc0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 16 May 2026 02:39:26 +0000 Subject: [PATCH 2/2] Improve linter-miner safe-output completion guardrails Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/linter-miner.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter-miner.md b/.github/workflows/linter-miner.md index 341070a3974..94e4a750843 100644 --- a/.github/workflows/linter-miner.md +++ b/.github/workflows/linter-miner.md @@ -109,7 +109,7 @@ Read `/tmp/gh-aw/agent/prior-linters.json` (preloaded from cache-memory) to load ## Step 2 — Mine Sources for Linter Ideas -Use the `discussion-miner` sub-agent and the `code-pattern-scanner` sub-agent **in parallel** to gather raw evidence. Collect their outputs. +Use the `discussion-miner` sub-agent and the `code-pattern-scanner` sub-agent **sequentially** to gather raw evidence. Run one, wait for completion, then run the other. ### Discussion mining (sub-agent output) @@ -222,7 +222,9 @@ Call the `create-pull-request` safe output with: - Always include a `URL` field in the `Analyzer` pointing to `https://github.com/github/gh-aw/tree/main/pkg/linters/`. - The `Doc` string must be a single sentence beginning with "reports". - If the linter cannot be implemented (e.g., repeated compilation failures after two fix attempts), call `noop` explaining why, rather than ending without a safe output. -- Always call either `create_pull_request` or `noop` before finishing — never end without a safe output. +- Do not finish while any spawned sub-agent is still running. +- If any sub-agent step fails, stalls, or does not complete, call `noop` with a clear explanation instead of ending without output. +- Final turn requirement: call exactly one safe output (`create_pull_request` or `noop`) as your last action before finishing. ---