Repository navigation
fix(work-items): refuse rule admission only for metered or renewing charges - #9877
Conversation
…harges The cost list refused any issue naming cost, spend, pricing, paid or quota, which caught model and eval work whose spend draws on a fixed monthly credit with no auto-renewal. Keep only billing terms: billing, billed, spending limit, subscription, SKU, retention, larger, hosted or self-hosted runners, and macOS minutes. The admission policy states the same list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security findings in the incremental change since Admission gate (
Residual limit, not a finding: both term lists are closed. An issue can still pair an unlisted provider with a Claude-phrased spend word, for example "Add Datadog APM; Claude cost tracking is fine", and that would admit under R2. The policy text and changelog state this limit openly, and it is narrower than the previous head's behaviour. The policy also leaves the "adds or raises a charge" check to a person, not the evaluator. Instruction-surface check: the Cost: nothing here enables or changes a paid plan or billing setting. The change only decides which issues get admitted. No hold. manifest fields: not touched. critical-findings: 0 |
|
claude-review reviewed Incremental review of the changes since I traced the new
The reason string is built from all spend hits, not only the unclaimed ones, and the fixtures' expected reasons match that. The policy text and both changelog fragments match the script. They agree on the three-qualifier limit, on "paid" lying outside the exempt phrase, and on both lists being closed. Closing issue #9904 ("rule admission refuses only non-Claude charges"): met by this change, and the fixtures cover both the admit and the refuse sides. Residual design edge, not counted: a Claude phrase beside an unlisted provider elsewhere in the text still admits, for example "Claude cost on Datadog". The policy states that both lists are closed, so this follows the stated design. Spend: the change adds no billed resource, so no hold applies. |
Keep cost, spend, spending, pricing, paid and quota refusing, and exempt them only when the issue is Claude, model or eval work that names no other provider or metered service. Add always-refusing charge terms (seat, Codespaces, paid plan, top-up, auto-renew, auto-reload, extra usage). Owner decision 2026-10-24: spend on the subscription or the fixed API credit is fine; GitHub, Azure and other charges wait. Fixtures cover the review's seven charge examples (refuse), eval spend on Azure or GitHub Actions (refuse), auto-reload on the API key (refuse), and API key or eval spend (admit). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The spend-word exemption matched bare "model" or "eval" and a short provider list, so eval cost on OpenAI or Vercel, or a data model's cost, admitted by rule. Require Claude or Anthropic by name, and widen the other-charge list to other model vendors, clouds, hosting and payment providers and the generic provider, vendor, service and plan, per the owner decision in #9904. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Naming Claude anywhere lifted the refusal for any spend word, so an unlisted provider's charge (Datadog, Sentry, Slack) beside a Claude mention admitted by rule. Exempt only spend words claimed by a phrase such as "Claude eval cost" or "Claude API key spend"; every other occurrence refuses. The policy and fragments now say the evaluator holds closed lists (owner decision #9904). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #9904
Context: applies the owner's 2026-10-24 rule that Claude, model and eval spend holds nothing (fixed monthly credit, no auto-renewal or auto top-up) and only metered or renewing charges hold.
Summary
rule-admit.shrefused any issue whose title or body named cost, costs, spend, spending, pricing, paid, quota or quotas, with no billing context. That refused model and eval work (for example "run claude plugin eval and report the cost"), which adds no charge. The cost hit now fires only on terms that name a metered or renewing charge.Fix
plugins/work-items/scripts/rule-admit.sh:def costkeeps billing, billed, subscription(s), SKU(s), retention, larger/hosted/self-hosted runner(s) and macOS minutes, addsspending limit(s)(an account billing setting), and drops the bare cost, spend, spending, pricing, paid and quota words. The refusal reason text is unchanged ("cost hit in title or body: ...; a charge needs an owner decision").plugins/autonomy/reference/guardrails/admission-policy.md(precedence step 3) states the new list and that model and eval spend is no cost hit.Verification
bash plugins/work-items/scripts/rule-admit.test.sh: 51 PASS, 0 FAIL. Two new fixture cases: "Raise the Actions spending limit" refuses ascost hit in title or body: spending limit; an issue titled "Run claude plugin eval on the paid tier and report the cost" with body "Spend the eval quota; pricing is per run." admits by R2. Againstorigin/main'srule-admit.shboth new cases fail (2 checks failed): the spending-limit case refuses with reasonspending, and the eval case refuses withcost hit in title or body: cost, paid, pricing, quota, spend.plugins/work-items/scripts/*.test.shsuites pass;shellcheckonrule-admit.shand its test is clean.origin/main's script: any issue naming one of the 8 dropped word forms refuses (fixture: 1 of 1 model/eval issue refused). Expected after: model and eval issues with no billing term admit (fixture: 0 of 1 refused); issues naming billing, a spending limit, a subscription, a SKU, retention, a larger/hosted runner or macOS minutes still refuse (fixtures: 3 of 3 refused). The live refusal count across the backlog is not measured here.Related
feat/intake-size-split.🤖 Generated with Claude Code