Skip to content

Review-bottleneck guardrails: PR-size caps, auto-split, review-load meter #402

Closed

Description

@currentbits

From the evidence round (Faros 2026: +31% PRs merged with zero review, +157% review latency; LinearB: agentic PRs 2.6x larger, idle 5.3x longer). An orchestrator that parallelizes agents MANUFACTURES this bottleneck, so it should ship the guardrails as defaults:

Activity

  1. added
    enhancement
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Aug 17, 2026
  2. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Implemented on branch coder/review-bottleneck-guardrails-pr-size-cap-f0adad (commit 373334a), not yet pushed/PR'd.

    What shipped:

    • PR-size cap as a product default: new prDiffCapLines setting (default 400 lines, DORA small batches; null disables). createPr measures the three-dot numstat vs the base branch and refuses oversized PRs before pushing, with a stable PR too large: message; allowOversize is the explicit human override.
    • Auto-split path: when the cap refuses, the thread header offers "Split into stacked PRs" (sends the agent a restack prompt: slice by concern, chain --base <previous-slice-branch>, attribution bullet) or "Create anyway". True stacked-PR UX (position badges, safe-prefix merge) stays with Stacked PRs: position badges, ordered stack navigator, merge the safe prefix #240.
    • Review-load meter on the planboard: header chip aggregating open, non-draft PRs and their combined lines — ok / busy (≥4 PRs or >1200 lines) / overloaded (≥7 or >2400).

    Tests: new electron/test/pr-size-cap.test.js (9), reviewLoad/formatLineCount units, planboard meter rendering, oversize-bar flow, SettingsModal cap field. Renderer 1174/1174 green; electron 1481 pass with 16 failures that reproduce identically on the pristine tree (pre-existing/environmental). Review itinerary at .solenta/review-itinerary.json on the branch.

  3. added a commit that references this issue on Aug 19, 2026
  4. currentbits commented on Aug 22, 2026

    @currentbits
    OwnerAuthor

    Verified shipped on main (audit 2026-08-22): implementation present in the working tree, not just on a worker branch. Closing — the planboard never auto-closed these (#632).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions