Repository navigation
💡 Copilot Code Review Actions Minutes Cost Governance & Free-Plan Budget Standard #1148
Replies: 1 comment
|
This proposal describes almost exactly what we built and run in production: per-run attribution (human/agent/bot via triggering_actor), per-job evidence trail, and budget enforcement — implemented as an OSS CLI + composite action whose agent-share-pct output a CI step can gate on (fail the job when agents exceed a share of spend). If it is useful as a reference implementation for this standard: https://github.com/Paraphern/costgrep (Apache-2.0; disclosure: I am the author). |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Track and govern the GitHub Actions minutes consumed by Copilot code reviews, which began consuming Actions minutes on June 1, 2026. For free-plan orgs like petry-projects, this creates direct competition for limited Actions minutes between CI pipelines, agentic workflows, and AI code reviews — requiring explicit budgeting, visibility, and priority rules. The org hit its 20-job concurrency cap this week (#1126), demonstrating that Actions capacity is already constrained.
Market Signal
GitHub announced that Copilot code review will consume GitHub Actions minutes starting June 1, 2026, in addition to being billed as AI Credits under the usage-based model. On Aug 27, 2026, Copilot code review removed its previous 300-file / 20,000 lines-of-code limit and expanded to review bot-authored PRs (including Copilot cloud agent PRs). This means review-triggered Actions minutes are now unbounded in scope and increasingly frequent. The free plan provides 2,000 Actions minutes/month — a hard budget constraint that the org is already operating against.
User Signal
Issue #1126 ("Free-plan 20-job cap: PR Auto-Review Ready Check has no concurrency and fans out per check_suite/workflow_run") was filed and fixed this week — proving the org is actively capacity-constrained on Actions concurrency. The off-peak scheduling standard (#1052) was codified to reduce minute-0 cron collision across the org's 11+ scheduled workflows. Discussions #396 (Agentic CI Cost Attribution) and #973 (Agentic Autofix Fleet Governance & AI Credit Budget) track Claude token costs but have no coverage of GitHub Actions minutes as a limited resource. The
agent-rate-limits.jsonschema defines per-agent token budgets but has no field for Actions minutes allocation.Technical Opportunity
The agent-rate-limits framework (
standards/agent-rate-limits.md,standards/agent-rate-limits.json) already defines per-agent-type rate limits, circuit breakers, and the org-wide Claude token-budget breaker. Extending it with anactions_minutes_budgetsection and a weekly reconciliation check against the GitHub Actions billing API (GET /orgs/{org}/settings/billing/actions) is architecturally natural. The existing off-peak scheduling standard provides the timing model. The weekly compliance audit (compliance-audit-and-improvement.yml) already runs fleet-wide checks and could surface Actions minutes utilization as a health metric.Proposed budget allocation model:
Assessment
Adversarial Review
Strongest objection: The Actions minutes consumed by Copilot reviews may be negligible relative to CI pipelines and agentic workflows. Is this solving a real problem, or a theoretical one?
Rebuttal: The org hit the 20-job concurrency cap THIS WEEK (#1126). With Copilot now reviewing bot-authored PRs (including its own cloud agent PRs) and supporting unlimited PR sizes, the minutes consumption vector is unbounded and growing. The free plan has 2,000 minutes/month — the org runs 11+ scheduled cron workflows, dev-lead dispatches on every issue assignment, compliance audits weekly, canary rollouts daily, and feature ideation weekly. Without visibility into how much Copilot reviews consume of this budget, the org cannot make informed priority decisions when capacity is scarce. The cost of adding visibility is one API call per week; the cost of a surprise budget exhaustion mid-month is all CI pipelines stopping.
Suggested Next Step
Extend
agent-rate-limits.jsonwith anactions_minutessection defining per-category budgets. Add a billing API query to the weekly compliance audit that reports current month's minutes usage vs budget. Define priority rules and a "low-budget mode" that defers non-critical workflows (ideation, compliance) when utilization exceeds 80%.All reactions