The Plan Gate
Every PR starts with a plan in writing. The plan determines the skill; the skill determines the rigor. If the diff exceeds what the plan named, the plan is rewritten — not the diff stretched.
- For S/M tasks: /quick-plan output is in the PR description (or linked via a
.heaptrace/task file). - For L/XL tasks: /feature-plan output is in the PR description (or linked to
/tasks/backlog/). - For bug fixes: /find-fix output precedes the plan — diagnosis first, then scope decision.
- The diff doesn't exceed what the plan named — both file count and stated intent. A 3-file plan that ships a 12-file diff is a plan failure, not an "I found more."
- The plan is dated and named. Anonymous plans pasted into a PR after the fact don't count.
- PR description has no plan reference → reviewer rejects on sight, no second pass.
- Diff touches files the plan didn't list → reviewer asks for a re-plan or a scope explanation in writing.
- Plan claimed S, diff is clearly L → reviewer asks for /feature-plan replan. "I underestimated" is not a substitute for a real plan.
- Plan references a stale ticket that's since changed scope → plan must be re-run against the current acceptance criteria.