Repository navigation
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd, /codebase-design, and /grill-with-docs lenses. The routing and override docs match the code I checked. Tests were not run: npm ci failed on a self-signed certificate from the package feed, so these findings come from source review only.
📋 Key Themes & Highlights
Key Themes
- Missing negative-path test in
src/engines/copilot.test.ts: only the workflow override is covered. The documented precedence has no test with the variable unset. - Selector drift: sample docs now use
small/large, butsrc/samples/20-issue-reproducer.tsandsrc/samples/36-subagent-delegation.tsstill use"mini".sample:checkdoes not catch this. - Pi routing contradiction:
agentic-workflows.mdsays the Pi outer agent leaves selection to the workflow, but the Pi lock has routing disabled and the Pi prompt still claims the router selects the model. - Lock files: frontmatter hashes changed as expected. I could not confirm they match a fresh
gh aw compile.
Positive Highlights
- ✅ The caveat that
GH_AW_COPILOT_SDK_MULTI_PROVIDER_JSONoverrides Rig selectors matchesresolveCopilotMultiProviderinskills/rig/rig.ts. - ✅ The benchmark prompt forbids claiming per-agent model differences without evidence.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~12 AIC · ⌖ ~2 AIC · ⊞ 5.7K
Comment /matt to run again
| const Diagnosis = s.object({ rootCause: s.string, confidence: s.number }); | ||
| // Agent role: diagnose the failing test output. | ||
| const diagnose = agent({ model: "mini", output: Diagnosis, instructions: "Diagnose the failing test output." }); | ||
| const diagnose = agent({ model: "small", output: Diagnosis, instructions: "Diagnose the failing test output." }); |
There was a problem hiding this comment.
[/codebase-design] The sample doc now says small/large, but its runnable source src/samples/20-issue-reproducer.ts still uses "mini" (lines 8, 17, 29, 46), and src/samples/36-subagent-delegation.ts has the same drift. sample:check validates the inventory and duplicates, not model selectors, so nothing catches this.
💡 Suggested change
Update each model: "mini" in those TypeScript sources to "small" or "large" to match the docs. AGENTS.md also asks for small in examples. Alternatively, state which file is canonical.
| }); | ||
|
|
||
| await copilotEngine()({ model: "small" }); | ||
| await copilotEngine()({ model: "large" }); |
There was a problem hiding this comment.
[/tdd] This new call runs while GH_AW_COPILOT_SDK_MULTI_PROVIDER_JSON is set, so it only exercises the override. Nothing asserts the documented no-override precedence (invocation model, then agent model, then the "small" default). Add a case with the variable unset.
💡 Suggested test
it("passes Rig model selectors through without a workflow provider", async () => {
await copilotEngine()({ model: "large" });
expect(mocks.createSession).toHaveBeenCalledWith(expect.objectContaining({ model: "large" }));
});beforeEach already clears the override variable, so this case runs without it.
| that same non-secret placeholder; it does not use native Copilot OAuth or | ||
| an OpenAI key. Its outer engine and judges pin `gpt-5.3-codex` to keep the | ||
| integration model deterministic rather than using gh-aw's `auto` routing. | ||
| an OpenAI key. The outer agent leaves model selection to the workflow and the |
There was a problem hiding this comment.
[/grill-with-docs] This says the Pi outer agent "leaves model selection to the workflow", but rig-skill-integration-pi.lock.yml has routing.enabled: false. The same doc says routing does not apply to custom drivers, and Pi uses pi_agent_core_driver.cjs. Meanwhile rig-skill-integration-pi.md (lines 37-38) still tells the agent that the workflow model router selects the outer model. Align that prompt text with this doc so the agent is not told to expect routing.
💡 Suggested wording
State that Pi uses the harness-provisioned gateway model and that routing does not apply to this custom driver. Replace the prompt sentence "Let the workflow's model router select the outer agent model" to match.
|
@copilot fix ci failures |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Update the Rig skill, samples, and eligible agentic workflows to prefer model routing while preserving provider-specific integrations.
Workflows
Rig guidance and samples