Repository navigation
Description
Parents
- product: make UB Review a useful reviewer and trustworthy CI evidence gate #840 — useful reviewer and trustworthy CI evidence gate.
- Review architecture: orchestrator routes relevant lanes over a seeded, cached PR-thread context; standard primary→secondary→tertiary per lane (effective routing + cheap deep research) #76 — multi-stage cached review architecture.
- fix(reporter): bind public review and review-forward gating to one structured latest current-head reporter turn #857 — one structured latest current-head reporter turn.
- M1: degrade noisy review output without failing unrelated code #766 — concise evidence-valued public output.
Verified gap
The current run uses one undifferentiated max_model_calls budget across primary specialists, proof planning, refutation, reporter coordination, follow-up questions, receipt reconsideration, and final distillation.
On self-gate run 31277083645:
- 10 built-in source-UB lanes + 3 repo lanes + 1 proof-planner call consumed the full 14-call budget;
- the refuter did not run;
- reporter duration was zero;
- all 43 follow-up tasks were skipped for budget;
- 100 observations and 24 summary findings existed without one authoritative final judgment.
The problem is not simply too many primary threads. Four to seven relevant threads can be cheap in one cached provider wave. The failure is allowing primary fanout to consume the calls required to challenge, reconsider, and synthesize the result.
Outcome
Use stage-aware call budgets with a protected convergence reserve:
relevant primary programmes
→ conditional independent challenge
→ proof/receipt reconsideration for affected claims
→ one final lead reviewer turn
→ typed current-head ReviewJudgment
Unused reserve may be released late, but primary fanout cannot spend it before the system knows whether findings, contradictions, or proof receipts require convergence.
Proposed budget classes
A normal run should separately account for:
- primary investigation;
- provider retry/fallback;
- conditional challenge/refutation;
- proof arbitration/planning where needed;
- receipt-driven reconsideration;
- final lead judgment.
An ordinary shape may be:
4–7 primary programmes
0–1 conditional challenge
0–1 proof arbiter
1–3 reconsiderations
1 final lead judgment
1–2 retry/fallback reserve
This is not a fixed call count. It is an authority and starvation boundary.
Final judgment contract
The final lead turn emits one typed current-head object containing at least:
head / thread / cohort identity
analysis result
public findings with exact evidence and preferred anchors
material unresolved questions
proof effects
required evidence gaps
structured verdict
exact receipt ref
The compiler validates provenance, evidence refs, anchors, suggestions, redaction, count/size limits, and delivery. It does not reconstruct the editorial judgment from independent prose buckets.
Scope
- Replace one global call allowance with stage-aware budgets and protected minimum reserve.
- Make route selection (review: route relevant programmes from the material change map instead of fixed lane width #864) aware of projected waves and convergence reserve.
- Run opposition/refuter only when a material candidate, conflict, or high-risk boundary justifies it.
- Route proof receipts only to affected claims and spend reconsideration calls only where disposition can change.
- Guarantee one final lead/reporter call when model review is otherwise considered usable.
- Integrate with fix(reporter): bind public review and review-forward gating to one structured latest current-head reporter turn #857 so the latest structured current-head turn is the sole reviewer authority.
- Emit one typed
ReviewJudgmentor deliberately equivalent schema. - Make the compiler consume that judgment while retaining complete specialist artifacts.
- Preserve provider fallback/backpressure and classify unavailable reserve honestly.
- Keep model verdict separate from deterministic gate authority by default.
Acceptance
- A run with seven relevant primary programmes in one wave still has protected capacity for final judgment.
- A run with no material candidate skips independent challenge without fabricating missing evidence.
- A candidate blocking finding receives challenge or decisive proof before publication when policy requires it.
- A receipt changes only affected claims and triggers only the necessary reconsideration calls.
- Primary fanout cannot exhaust the final-judgment reserve.
- Provider retry/backpressure spends the retry reserve and cannot silently consume final judgment.
- The final compiler, public claims, and optional review-forward verdict consume the same latest current-head judgment.
- If final judgment cannot run, analysis becomes limited/not_proven according to policy; it cannot masquerade as a clean synthesized review.
- Model-off deterministic gate operation remains complete.
Proof
- Seven-primary-programme one-wave fixture with final call preserved.
- Full-primary-budget starvation regression shaped like run
31277083645. - Conditional challenge yes/no fixtures.
- Receipt-targeted reconsideration and unrelated-claim negative fixture.
- Provider retry/backpressure reserve fixture.
- Latest-turn/current-head integration with fix(reporter): bind public review and review-forward gating to one structured latest current-head reporter turn #857.
- Typed judgment/compiler golden payloads.
- Full model orchestration, reporter, compiler, gate-truth, artifact verifier, CLI, workspace, fmt, Clippy, policy, and exact-head gate.
Dependencies
- fix(reporter): bind public review and review-forward gating to one structured latest current-head reporter turn #857 must establish one durable current-head reporter turn.
- review: route relevant programmes from the material change map instead of fixed lane width #864 should determine which primary programmes earn calls.
- scheduler: stream completed lane outputs into the live proof queue #859 makes receipt-driven reconsideration timely rather than batch-only.
Non-goals
- No hard global limit of seven programmes.
- No finding-count quota.
- No model-controlled deterministic gate failure.
- No removal of specialist artifacts.
- No provider pricing policy baked into correctness.
Rollback
Retain stage accounting and the final judgment schema in shadow while restoring the current call scheduler. Never restore a configuration that can claim complete model review after starving the final judgment.
Activity
coderabbitai commentedon Aug 11, 2026
🔗 Related PRs
#852 - feat(proof): select real cargo tests for Rust diffs [open]
#858 - fix(reporter): bind review and gate to latest current-head turn [open]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Aug 24, 2026
Final-lead prerequisite amendment
Two new prerequisites are now explicit:
ModelLaneReceipt.reasonas the lane conclusion and broadly routes policy receipts; that cannot be the authoritative editorial input.#865 should therefore consume
FinalLeadInput+ModelStageLedgerand emit the one typedReviewJudgment. The compiler validates provenance/evidence/anchors/suggestions/redaction/limits/delivery; it should not reconstruct editorial judgment from raw lane buckets.#866 also needs to finish against #929: internal audits remain private but must be available as bounded coverage context to the final lead.
EffortlessSteven commentedon Aug 24, 2026
Planning amendment — final reviewer is inside the gate loop, not beside it
#865 should consume the shared planning/knowledge chain:
The final lead owns editorial materiality, architecture interpretation, and the smallest useful public action. #926 separately owns deterministic gate truth. Both consume the same current-revision receipts; neither reconstructs a parallel evidence universe. #943 then presents the gate result and links confirmed inline review without duplicating committee output.
EffortlessSteven commentedon Aug 24, 2026
PR-sized decomposition — #945 C5.4–C5.6
Model verdict remains separate from deterministic #926 gate truth. If the final lead cannot run, the model review is limited/not_proven; raw committee residue is not promoted.
EffortlessSteven commentedon Aug 24, 2026
Concrete PR decomposition
Primary fanout cannot consume convergence. A failed/invalid final lead yields limited/not_proven and no committee synthesis. Rust validates revision, claims, evidence, anchors, suggestions, limits, redaction and delivery; the final lead owns semantic materiality and public selection.