PR quantity control — iterate, don't proliferate
Before creating any new PR branch, check for existing open PRs in the same scope:
gh pr list --state open --search "<scope> in:title" --json number --jq length
Rules:
- If ≥3 open PRs exist for the same feature scope: STOP and consolidate. Update the oldest open PR instead of creating a new one.
- Hard Stack & Split Ceiling: Even when a user explicitly asks to
/splita large feature, cap decomposition at≤ 3–5coarse vertical subsystem PRs (and an absolute repo-wide ceiling of< 10open stacked PRs total). Never create dozens of micro-PRs (split/<feature>/*) or split by arbitrary line-count targets (e.g., 100, 150, or 300–500 lines). - If a prior PR was closed for the same logical goal: rebase/cherry-pick from it, don't start from scratch.
- If you are about to create a PR with a title very similar to an existing open or recently-closed PR, that is a duplicate — work on the existing one.
- Keep unit/integration tests and docs inside the same PR as the production code they verify: only pure standalone documentation/tooling changes unrelated to an active feature belong in a separate non-prod PR.
Efficiency targets (run /efficiency to check):
- Merge rate: >60%
- LOC efficiency (net production LOC on main / total LOC written): >15%
- Open PR queue per feature scope: ≤3 (explicit
/splitceiling: ≤3–5 coarse vertical PRs; repo-wide stacked PR ceiling: <10)
Why: 7-day audit (2026-04-25) showed 3.3% LOC efficiency, 49% merge rate on ZFC PRs. Same change attempted 2-3 times across different PRs. Quality gates × uncontrolled PR volume = review bottleneck → abandonment → more PRs.