Skip to content

Fix Linter Miner crash: unsupported model: inherited on inline sub-agents - #52133

Merged
pelikhan merged 2 commits into
mainfrom
copilot/aw-linter-miner-fix
Aug 11, 2026
Merged

Fix Linter Miner crash: unsupported model: inherited on inline sub-agents#52133
pelikhan merged 2 commits into
mainfrom
copilot/aw-linter-miner-fix

Conversation

Copilot AI commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

The Linter Miner workflow crashed with Engine Failure: The copilot engine terminated unexpectedly when launching its linter-writer sub-agent, with the underlying SDK error No model available. Check policy enablement under GitHub Settings > Copilot.

Root cause

The code-pattern-scanner and linter-writer sub-agents in linter-miner.md declared model: inherited. This is not a resolvable alias — it doesn't appear in pkg/workflow/data/model_aliases.json — so the copilot-sdk driver fails to resolve a model at dispatch time. This is the same class of bug previously fixed in pr-code-quality-reviewer.md.

Changes

  • .github/workflows/linter-miner.md: replaced model: inherited with model: large for both code-pattern-scanner and linter-writer, consistent with other code-analysis/code-generation sub-agents in the repo (skill-builder, test-writer, opportunity-extractor).
  • .github/workflows/linter-miner.lock.yml: recompiled to reflect the frontmatter change.
  • pkg/cli/linter_miner_workflow_contract_test.go: new regression test asserting the workflow's sub-agents exist and that model: inherited never reappears, mirroring the existing contract test for pr-code-quality-reviewer.md.

Copilot AI linked an issue Aug 11, 2026 that may be closed by this pull request
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Linter Miner engine failure Fix Linter Miner crash: unsupported model: inherited on inline sub-agents Aug 11, 2026
Copilot AI requested a review from pelikhan August 11, 2026 19:00
@pelikhan
pelikhan marked this pull request as ready for review August 11, 2026 20:19
Copilot AI balanced review requested due to automatic review settings August 11, 2026 20:19
@pelikhan
pelikhan merged commit c993af6 into main Aug 11, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/aw-linter-miner-fix branch August 11, 2026 20:19

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

Fixes Linter Miner sub-agent dispatch failures by using a resolvable model alias.

Changes:

  • Sets both inline sub-agents to model: large.
  • Regenerates workflow metadata.
  • Adds a regression contract test.
Show a summary per file
File Description
.github/workflows/linter-miner.md Uses the supported large model alias.
.github/workflows/linter-miner.lock.yml Updates the generated body hash.
pkg/cli/linter_miner_workflow_contract_test.go Adds sub-agent model regression coverage.

Review details

Tip

Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment on lines +26 to +27
assert.Contains(t, text, "## agent: `code-pattern-scanner`", "Workflow should define the code-pattern-scanner sub-agent")
assert.Contains(t, text, "## agent: `linter-writer`", "Workflow should define the linter-writer sub-agent")
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.86.3

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.

[aw] Linter Miner failed

3 participants