Repository navigation
Route Agent Persona Explorer with economy model routing - #74619
Conversation
Co-authored-by: SivaKesava1 <[email protected]>
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Review complete. One actionable compatibility risk found: the new Claude model-routing configuration leaves the existing model: inherit sub-agent contract unverified, despite the compiler warning that it may be incompatible with routed inference. Please pin or explicitly validate the sub-agent path before relying on its evaluation results.
Review details
- Inline comments: 1
- Specialist pass: completed; its stale-lock concern was discarded because the generated lock file is present in the changed-file set and excluded from the pre-fetched diff.
- No tests were run; this was a static review.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
| on: daily | ||
| max-daily-ai-credits: 10000 | ||
| engine: claude | ||
| engine: |
There was a problem hiding this comment.
The new routed Claude engine leaves the existing persona-evaluator sub-agent on model: inherit, which the compiler already warns may be incompatible with the Claude model-routing API and can make every scenario evaluation fail or fall back unexpectedly.
💡 Make the sub-agent routing contract explicit
Pin the sub-agent to a model supported by this routed Claude configuration, or add a routed smoke/acceptance check that exercises the sub-agent and fails clearly before relying on its results. This workflow's output quality and baseline completion depend on those evaluations succeeding.
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /grill-with-docs to the routing change. Observations only, no blocking defects found in the .md source.
📋 Key Themes & Highlights
Key Themes
- Experiment confounding:
sub_agent_strategymeasuresaic, and routing changes AIC per run. Pre- and post-routing runs will not be comparable unless the experiment is restarted or stratified. - Quality guardrail gap:
output_quality_scoreis tracked but has no threshold, so economy routing could degrade output without tripping any guardrail. - Unverified lock file: I could not read the PR-head
agent-persona-explorer.lock.yml. The local checkout is at an older.mdrevision, and the API returned an empty result. The lock-file claims in the PR body are unverified here.
Positive Highlights
- ✅ The
engineblock andmodel-routingvalues (goal: cost,mode: economy) match the schema. - ✅
copilot-requests: writeis the documented way to use Copilot inference without a separate secret. - ✅ Rollback is simple, and the PR body states the follow-up audit plan.
Open question (not blocking)
- The sub-agent
persona-evaluatorusesmodel: inherit. The compiler warns this may conflict with the routing API. The PR body acknowledges it, so confirm it on the first routed run.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again
There was a problem hiding this comment.
🟡 Changes recommended
An optional documentation correction remains: the description incorrectly names conclusion instead of evals for the permission and token changes.
1 open issue
What changed in this PR
Moves Agent Persona Explorer to economy model routing through GitHub Copilot to reduce inference costs, addressing #74613 while preserving its prompt, experiment, sub-agent configuration and safe outputs.
Changes:
- Configure cost-focused routing and the required Copilot request permission without pinning a model.
- Regenerate the workflow lock with router setup, token-based authentication, runtime model metadata and routing artifacts.
| File | Description |
|---|---|
.github/workflows/agent-persona-explorer.md |
Enables GitHub-backed economy routing and Copilot request permission. |
.github/workflows/agent-persona-explorer.lock.yml |
Updates generated execution, authentication and reporting for routed runs. |
Review effort: Max (auto)
|
Note The pull request was not created — a fallback review issue was created instead due to protected file changes: #74654 PR finisher
Sous-chef head: f32d76f
|
|
PR finisher pass:
PR finisher dispatch requested for the following outstanding work: Sous-chef head: f32d76f
|
|
🎉 This pull request is included in a new release. Release: |

Agent Persona Explorer runs on Claude Code's default model,
claude-sonnet-5, at about 116 AIC per run. It only files an issue with its findings, so it can use economy model routing. The issue estimates this saves about 550–680 AIC per week.Workflow change (
agent-persona-explorer.md)The prompt, triggers,
sub_agent_strategyexperiment, cache-memory, safe outputs and thepersona-evaluatorsub-agent (model: inherit) are unchanged. No model is pinned, and no allowed or blocked models are added.Lock-file changes
experimental.modelRouting: true, and the agent environment setsGH_AW_MODEL_ROUTING: 1.aw_inforecordsrouting: {enabled: true, goal: cost, mode: economy}.ghcr.io/github/gh-aw-firewall/router:0.29.6@sha256:fce2f3be….COPILOT_GITHUB_TOKEN: ${{ github.token }}instead ofANTHROPIC_API_KEY.GH_AW_LLM_PROVIDERis nowgithub, andANTHROPIC_BASE_URLpoints at the api-proxy.ANTHROPIC_API_KEYvalidation step and itssecret_verification_resultoutput are removed.copilot-requests: writeis added to the agent, detection and conclusion jobs.GH_AW_MODEL_AGENT_CLAUDE … 'claude-sonnet-5'default is gone.model,model_effortandmodel_routing_statusfrom the routed run.github.tokeninstead ofsecrets.COPILOT_GITHUB_TOKEN.Notes
model: inherit"may be incompatible with the claude engine's model-routing API." The issue expects the sub-agent to follow the routed model, so it is left as is. The first routed runs should confirm this.gh aw auditagainst about 116 AIC/run. If the filed issues get thinner, switch tomode: balanced. To roll back, revert this PR.golintfails onmainwith the same lint findings inpkg/cli/update_*.go.make fixfails on a codemod error insighthound-security-scan.md.