Skip to content

Model routing: route Static Analysis Report #74190

Done

Description

@rabeckett

Estimated saving: about 1,300-1,900 AIC/week, from roughly 2,800 to 900-1,530 modeled AIC/week.

Use balanced, not economy: despite its name, this workflow also opens PRs changing security-relevant workflow configuration. It needs more quality margin than a report-only task; scanner validation and PR review remain essential.

This adds a long-running, tool-heavy Claude workload. Today's default is claude-sonnet-5. Likely plan/subsystem/medium or explain/subsystem/medium cells select claude-opus-5.5:medium or low, at about 32-54% of the modeled agent cost. robust spends more for these cells; start with balanced and assess fix quality.

Change

In .github/workflows/static-analysis-report.md, replace engine: claude with:

engine:
  id: claude
  model-provider: github
  model-routing:
    goal: cost
    mode: balanced

Use the existing Claude-on-Copilot authentication pattern: inference billing moves from the Anthropic key to Copilot, using COPILOT_GITHUB_TOKEN. Preserve the prompt, scanner steps, timeout and safe outputs. Do not pin the predicted model or add model restrictions.

Run make recompile; include only this workflow and its matching lock file. Verify routing is enabled and generated inference authentication changes from Anthropic to Copilot.

Check

Audit initial runs with gh aw audit <run> against the roughly 400-AIC/run baseline. Review proposed fixes and cancellation frequency: 3 of the last 8 runs were cancelled during Claude execution.

Estimates use 19/26 October usage, 22 October routing tables and 2 November fitted cost ratios, assuming unchanged workload. Actual classification and org model availability can change picks. Cross-system classifications may select Opus at xhigh and eliminate the projected saving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions