Repository navigation
feat(planning): budget and order plan phases that spend model runs - #9819
Conversation
A plan phase or test step that spends model runs (evals, agent fan-outs, benchmark batches) now puts a graded reproduction check before any batch, sizes the run count from tokens measured on 1-2 runs, and carries a **Run budget:** line whose runner refuses runs past the count and stops at the first usage-limit error. The plan reviewer flags a model-run phase missing any of the three. Refs: #9238 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 issues found in this pull request. The pull request has 4 files, all prose: a changelog fragment,
critical-findings: 0 |
|
claude-review reviewed No findings. I read the full diff (4 files) and the PR context. I ran no tests or tools. Every verification result in the PR body is author-claimed and unverified by me.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4dd76ba6a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
No related issue: the owner asked for this guard in session after the #9238 eval run burned usage, and asked that no new issues be filed; #9238 is evidence only (see Related).
Summary
/planning:plannow orders and caps any plan phase or test step that spends model runs (evals, agent fan-outs, benchmark batches). Such a phase must:**Run budget:**line (a run count) at approval, whose runner refuses runs past the count and launches nothing after the first usage-limit error.Observed stumble (instruction-economy evidence): the plan for #9238 (handoff efficiency) was approved with about 2,250 eval runs, each using about 1-2M tokens, a per-run size nobody measured before scaling. It ran about 700 baseline runs before the cheap reproduction check; that check (12 pilot runs) was never graded. 357 runs hit a usage limit and were discarded because the runner kept launching after the first limit hit. The run used up usage on several accounts before the owner stopped it.
Fix
plugins/planning/skills/plan/context/plan-template.md: new "Model-run phases" section (the three rules and the**Run budget:**line shape, beside the other optional per-phase lines), a Contents entry, and a Test Strategy bullet pointing to it, since eval batches often sit in verification rather than in a phase.plugins/planning/skills/plan/SKILL.md: one Step 2 trigger sentence, the same shape as "Tracker-write phases", that sends the planner to that section. The rule text lives in the template the skill already loads at Step 2.plugins/planning/skills/plan/context/plan-reviewer.md: one "Plan mechanics" axis, so the fresh-context Step 3 reviewer reports a model-run phase that lacks any of the three as a finding..changes/planning/fragment,minor,### Added.No new criterion in
scripts/check-plan-outcome.sh. Neither candidate check catches the missing budget cleanly:**Run budget:**line runs only when the line exists, so it cannot flag a missing one, which is the failure that happened.The checker's header already leaves judgment criteria to the skill: "is judgment and stays in the skill's prose; this gate does not claim it". Deciding which phases spend model runs is judgment, so the reviewer axis covers it.
Verification
build-view53,check-open-questions117,check-plan-outcome71,eval-scaffold12,goal-condition-length15,interview-defenses173,interview-surface-decision-mirror4,reattach-slice24,repin28,standards-binding10,plan-panel.test.mjs22/22 (node --test), andplan-panel.test.sh(exit 0)./skill-quality:check check plan: PASS, 0 errors, 4 warnings. One is new: SKILL.md body grew 376 to 378 lines (the trigger sentence). The other three were already there: description length, body size, and judgment language intemplates/checklist.md, which this PR does not touch.validate-evals planlint: PASS, 4 warnings. All four are Q4 path-token warnings on cases this PR does not touch.scripts/check-changelog-fragments.sh --check: all 6 fragments valid. markdownlint: 0 issues on the edited files.claude plugin eval --scaffold --ablation none --judge-model opus --runs 2on basee5e9388and headb4dd76b, all 5plan-*cases. Four cases score the same;plan-explicit-one-sentence-asksdiffers by one run where theasks-to-plan-anywayregex missed the closing question's phrasing (judge grader passed; the case tests one-sentence asks, untouched here).plan-reviewer-flags-spread-fact, the case for the edited reviewer, passes 2/2 on both. Reading: no loss at n=2, run count capped at 40 by the budget rule this PR adds. Table on the Codex thread.Related
🤖 Generated with Claude Code