Repository navigation
Description
Workflow Failure
Workflow: Linter Miner
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/32282102677
Warning
Invalid or Unsupported Model: The agent failed because the configured model name is invalid, unknown, or unavailable for this engine/account.
This is a configuration issue, not a transient error — retrying will not help.
How to fix this
Specify a valid model for the selected engine in the workflow frontmatter:
---
engine: copilot
model: gpt-5-mini
---To find valid models, check your engine/provider documentation (for Copilot see supported models).
If the error text is No model available. Check policy enablement under GitHub Settings > Copilot, the model is not disabled in the workflow but by Copilot policy. Enable the model under GitHub Settings > Copilot > Policies for the org/repo, or pick a model that is already enabled. This can also be triggered by a subagent (task tool) dispatch requesting a model that the policy does not allow, even when the main agent's model is enabled.
Warning
Engine Failure: The copilot engine terminated unexpectedly.
Last agent output:
{"type":"assistant.message","timestamp":"2026-08-19T17:34:23.342Z","data":{"content":""}}
{"type":"tool.execution_start","timestamp":"2026-08-19T17:34:23.344Z","data":{"toolName":"bash","mcpServerName":"","command":"cat /home/runner/work/gh-aw/gh-aw/.github/agents/discussion-miner.agent.md; echo \"=====\"; cat /home/runner/work/gh-aw/gh-aw/.github/agents/linter-writer.agent.md"}}
{"type":"tool.execution_complete","timestamp":"2026-08-19T17:34:23.413Z","data":{"toolName":"bash","mcpServerName":"","success":true,"result":{"content":"---\ndescription: Mines GitHub Discussions and Issues for recurring Go code patterns, anti-patterns, and bugs that could be caught by a static linter\nmodel: kiwi\n---\nYou are a Go code-review analyst. Your job is to search GitHub Discussions and Issues in the current repository for evidence of recurring Go code patterns or errors that could benefit from automatic static analysis.\n\nSearch the last 14 days of Discussions and Issues using `gh` CLI. Count relevant matches in that 14-day slice. If fewer than 5 relevant items are found, rerun with a 30-day window:\n\n```bash\ngh discussion list --limit 100 --json number,title,body,comments,labels,createdAt\ngh issue list --limit 100 --state all --json number,title,body,labels,createdAt\n```\n\nLook for:\n- Review comments mentioning specific Go constructs (e.g. \"forgot defer\", \"ignored error\", \"nil check\", \"context not passed\")\n- Bug reports that could have been caught by a linter\n- Discussions about code quality, linting, or static analysis\n- Repeating patterns mentioned across multiple threads\n\nOutput a JSON array of candidate linter ideas:\n```json\n[\n {\n \"name\": \"kebab-case-name\",\n \"description\": \"reports ...\",\n \"source\": \"discussion #42 / issue #17\"\n }\n]\n```\n\nBe concise. List at most 5 candidates.\n=====\n---\ndescription: Implements a new Go analysis linter package following the pkg/linters/largefunc conventions\nmodel: claude-sonnet-5\n---\nYou are a Go engineer implementing a custom `go/analysis` linter.\n\nYou will receive:\n- `LINTER_NAME`: kebab-case name (e.g. `unchecked-error`)\n- `LINTER_DESC`: one-sentence description starting with \"reports\"\n- `REFERENCE_IMPL`: the full content of `pkg/linters/largefunc/largefunc.go`\n- `MODULE_PATH`: `github.com/github/gh-aw`\n\nYour task is to create a complete, compilable Go linter package under `pkg/linters/<name>/`:\n\n### File 1: `pkg/linters/<name>/<name>.go`\n\nFollow this structure exactly (adapting from the reference implementation):\n- Package declaration: `package <name_no_hyphens>`\n- Build tag: none (the `!integration` tag is only for tests)\n- Import `go/ast`, `golang.org/x/tools/go/analysis`, `golang.org/x/tools/go/analysis/passes/inspect`, `golang.org/x/tools/go/ast/inspector`\n- Exported `Analyzer` variable\n- `init()` for any flags (omit if no configurable parameters)\n- `run(pass *analysis.Pass) (any, error)` function\n- Use `pass.Reportf(node.Pos(), \"message (%s has N; limit: M)\")` for diagnostics\n\n### File 2: `pkg/linters/<name>/<name>_test.go`\n\n```go\n//go:build !integration\n\npackage <name>_test\n\nimport (\n \"testing\"\n \"golang.org/x/tools/go/analysis/analysistest\"\n \"<MODULE_PATH>/pkg/linters/<name>\"\n)\n\nfunc TestAnalyzer(t *testing.T) {\n analysistest.Run(t, analysistest.TestData(), <name>.Analyzer, \"<name>\")\n}\n```\n\n### File 3: `pkg/linters/<name>/testdata/src/<name>/<name>.go`\n\nCreate a minimal fixture with:\n- `package <name>`\n- A function that SHOULD trigger the diagnostic, annotated with `// want \"<diagnostic message regex>\"`\n- A function that should NOT trigger the diagnostic\n\nUse `edit` or `create_text_file` to write each file. After writing all files, verify compilation with:\n```bash\ngo build ./cmd/linters\n```\n\nReport compilation errors (if any) and suggest fixes. Do NOT attempt to fix errors outside the new linter package.\n<shellId: 4 completed with exit code 0>","detailedContent":"---\ndescription: Mines GitHub Discussions and Issues for recurring Go code patterns, anti-patterns, and bugs that could be caught by a static linter\nmodel: kiwi\n---\nYou are a Go code-review analyst. Your job is to search GitHub Discussions and Issues in the current repository for evidence of recurring Go code patterns or errors that could benefit from automatic static analysis.\n\nSearch the last 14 days of Discussions and Issues using `gh` CLI. Count relevant matches in that 14-day slice. If fewer than 5 relevant items are found, rerun with a 30-day window:\n\n```bash\ngh discussion list --limit 100 --json number,title,body,comments,labels,createdAt\ngh issue list --limit 100 --state all --json number,title,body,labels,createdAt\n```\n\nLook for:\n- Review comments mentioning specific Go constructs (e.g. \"forgot defer\", \"ignored error\", \"nil check\", \"context not passed\")\n- Bug reports that could have been caught by a linter\n- Discussions about code quality, linting, or static analysis\n- Repeating patterns mentioned across multiple threads\n\nOutput a JSON array of candidate linter ideas:\n```json\n[\n {\n \"name\": \"kebab-case-name\",\n \"description\": \"reports ...\",\n \"source\": \"discussion #42 / issue #17\"\n }\n]\n```\n\nBe concise. List at most 5 candidates.\n=====\n---\ndescription: Implements a new Go analysis linter package following the pkg/linters/largefunc conventions\nmodel: claude-sonnet-5\n---\nYou are a Go engineer implementing a custom `go/analysis` linter.\n\nYou will receive:\n- `LINTER_NAME`: kebab-case name (e.g. `unchecked-error`)\n- `LINTER_DESC`: one-sentence description starting with \"reports\"\n- `REFERENCE_IMPL`: the full content of `pkg/linters/largefunc/largefunc.go`\n- `MODULE_PATH`: `github.com/github/gh-aw`\n\nYour task is to create a complete, compilable Go linter package under `pkg/linters/<name>/`:\n\n### File 1: `pkg/linters/<name>/<name>.go`\n\nFollow this structure exactly (adapting from the reference implementation):\n- Package declaration: `package <name_no_hyphens>`\n- Build tag: none (the `!integration` tag is only for tests)\n- Import `go/ast`, `golang.org/x/tools/go/analysis`, `golang.org/x/tools/go/analysis/passes/inspect`, `golang.org/x/tools/go/ast/inspector`\n- Exported `Analyzer` variable\n- `init()` for any flags (omit if no configurable parameters)\n- `run(pass *analysis.Pass) (any, error)` function\n- Use `pass.Reportf(node.Pos(), \"message (%s has N; limit: M)\")` for diagnostics\n\n### File 2: `pkg/linters/<name>/<name>_test.go`\n\n```go\n//go:build !integration\n\npackage <name>_test\n\nimport (\n \"testing\"\n \"golang.org/x/tools/go/analysis/analysistest\"\n \"<MODULE_PATH>/pkg/linters/<name>\"\n)\n\nfunc TestAnalyzer(t *testing.T) {\n analysistest.Run(t, analysistest.TestData(), <name>.Analyzer, \"<name>\")\n}\n```\n\n### File 3: `pkg/linters/<name>/testdata/src/<name>/<name>.go`\n\nCreate a minimal fixture with:\n- `package <name>`\n- A function that SHOULD trigger the diagnostic, annotated with `// want \"<diagnostic message regex>\"`\n- A function that should NOT trigger the diagnostic\n\nUse `edit` or `create_text_file` to write each file. After writing all files, verify compilation with:\n```bash\ngo build ./cmd/linters\n```\n\nReport compilation errors (if any) and suggest fixes. Do NOT attempt to fix errors outside the new linter package.\n<shellId: 4 completed with exit code 0>","contents":[{"type":"shell_exit","shellId":"4","exitCode":0,"outputTruncated":false,"cwd":"/home/runner/work/gh-aw/gh-aw","outputPreview":"---\ndescription: Mines GitHub Discussions and Issues for recurring Go code patterns, anti-patterns, and bugs that could be caught by a static linter\nmodel: kiwi\n---\nYou are a Go code-review analyst. Your job is to search GitHub Discussions and Issues in the current repository for evidence of recurring Go code patterns or errors that could benefit from automatic static analysis.\n\nSearch the last 14 days of Discussions and Issues using `gh` CLI. Count relevant matches in that 14-day slice. If fewer than 5 relevant items are found, rerun with a 30-day window:\n\n```bash\ngh discussion list --limit 100 --json number,title,body,comments,labels,createdAt\ngh issue list --limit 100 --state all --json number,title,body,labels,createdAt\n```\n\nLook for:\n- Review comments mentioning specific Go constructs (e.g. \"forgot defer\", \"ignored error\", \"nil check\", \"context not passed\")\n- Bug reports that could have been caught by a linter\n- Discussions about code quality, linting, or static analysis\n- Repeating patterns mentioned across multiple threads\n\nOutput a JSON array of candidate linter ideas:\n```json\n[\n {\n \"name\": \"kebab-case-name\",\n \"description\": \"reports ...\",\n \"source\": \"discussion #42 / issue #17\"\n }\n]\n```\n\nBe concise. List at most 5 candidates.\n=====\n---\ndescription: Implements a new Go analysis linter package following the pkg/linters/largefunc conventions\nmodel: claude-sonnet-5\n---\nYou are a Go engineer implementing a custom `go/analysis` linter.\n\nYou will receive:\n- `LINTER_NAME`: kebab-case name (e.g. `unchecked-error`)\n- `LINTER_DESC`: one-sentence description starting with \"reports\"\n- `REFERENCE_IMPL`: the full content of `pkg/linters/largefunc/largefunc.go`\n- `MODULE_PATH`: `github.com/github/gh-aw`\n\nYour task is to create a complete, compilable Go linter package under `pkg/linters/<name>/`:\n\n### File 1: `pkg/linters/<name>/<name>.go`\n\nFollow this structure exactly (adapting from the reference implementation):\n- Package declaration: `package <name_no_hyphens>`\n- Build tag: none (the `!integration` tag is only for tests)\n- Import `go/ast`, `golang.org/x/tools/go/analysis`, `golang.org/x/tools/go/analysis/passes/inspect`, `golang.org/x/tools/go/ast/inspector`\n- Exported `Analyzer` variable\n- `init()` for any flags (omit if no configurable parameters)\n- `run(pass *analysis.Pass) (any, error)` function\n- Use `pass.Reportf(node.Pos(), \"message (%s has N; limit: M)\")` for diagnostics\n\n### File 2: `pkg/linters/<name>/<name>_test.go`\n\n```go\n//go:build !integration\n\npackage <name>_test\n\nimport (\n \"testing\"\n \"golang.org/x/tools/go/analysis/analysistest\"\n \"<MODULE_PATH>/pkg/linters/<name>\"\n)\n\nfunc TestAnalyzer(t *testing.T) {\n analysistest.Run(t, analysistest.TestData(), <name>.Analyzer, \"<name>\")\n}\n```\n\n### File 3: `pkg/linters/<name>/testdata/src/<name>/<name>.go`\n\nCreate a minimal fixture with:\n- `package <name>`\n- A function that SHOULD trigger the diagnostic, annotated with `// want \"<diagnostic message regex>\"`\n- A function that should NOT trigger the diagnostic\n\nUse `edit` or `create_text_file` to write each file. After writing all files, verify compilation with:\n```bash\ngo build ./cmd/linters\n```\n\nReport compilation errors (if any) and suggest fixes. Do NOT attempt to fix errors outside the new linter package.\n"}]}}}
{"type":"assistant.message","timestamp":"2026-08-19T17:34:29.312Z","data":{"content":"Now launching discussion-miner first (sequentially, per instructions), then code-pattern-scanner."}}
{"type":"tool.execution_start","timestamp":"2026-08-19T17:34:29.313Z","data":{"toolName":"task","mcpServerName":""}}
{"type":"subagent.started","timestamp":"2026-08-19T17:34:29.326Z","data":{"agentName":"general-purpose","agentDisplayName":"General Purpose Agent","toolCallId":"toolu_01BVDwvdBWqXGgL5vWNVqkAw"}}
[copilot-sdk-driver] [sdk-driver] error: Execution failed: Error: No model available. Check policy enablement under GitHub Settings > Copilot
{"type":"subagent.completed","timestamp":"2026-08-19T17:34:29.375Z","data":{"agentName":"general-purpose","toolCallId":"toolu_01BVDwvdBWqXGgL5vWNVqkAw"}}
{"type":"tool.execution_complete","timestamp":"2026-08-19T17:34:29.401Z","data":{"toolName":"task","mcpServerName":"","success":false}}
{"type":"subagent.completed","timestamp":"2026-08-19T17:34:29.406Z","data":{"agentName":"general-purpose","toolCallId":"toolu_01BVDwvdBWqXGgL5vWNVqkAw"}}
Action Required
Assign this issue to an agent to debug and fix the issue.
Debug with any coding agent
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md
The failed workflow run is at https://github.com/github/gh-aw/actions/runs/32282102677
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.
- Start your agent
- Load the
agentic-workflowsskill from.github/skills/agentic-workflows/SKILL.mdor https://github.com/github/gh-aw/blob/main/.github/skills/agentic-workflows/SKILL.md - Type
debug the agentic workflow linter-miner failure in https://github.com/github/gh-aw/actions/runs/32282102677
Tip
Stop reporting this workflow as a failure
To stop a workflow from creating failure issues, set report-failure-as-issue: false in its frontmatter:
safe-outputs:
report-failure-as-issue: falseGenerated from Linter Miner · 12.1 AIC · ◷
- expires on Aug 20, 2026, 5:36 AM UTC
Activity
github-actions commentedon Aug 20, 2026
This issue was automatically closed because it expired on 2026-08-20T05:36:18.891Z.