Skip to content

review: reserve model calls for challenge, proof reconsideration, and one authoritative final judgment #865

Open

Description

@EffortlessSteven

Parents

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 ReviewJudgment or 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

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

  1. coderabbitai commented on Aug 11, 2026

    @coderabbitai
    Contributor
    🔗 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 plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 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:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    Final-lead prerequisite amendment

    Two new prerequisites are now explicit:

    #865 should therefore consume FinalLeadInput + ModelStageLedger and emit the one typed ReviewJudgment. 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.

  3. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    Planning amendment — final reviewer is inside the gate loop, not beside it

    #865 should consume the shared planning/knowledge chain:

    #940 architecture/repository contract
    + #927 material change
    + #929 substantive specialist/proof effects
    + #930 stage ledger
    + #942 protected run plan/reserves
    → one ReviewJudgment
    

    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.

  4. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    PR-sized decomposition — #945 C5.4–C5.6

    1. C5.4 stage budgets/reserves — primary/retry/challenge/arbitration/reconsideration/final-lead classes consume model: record every provider call in one stage ledger for cache cost latency and convergence budgets #930 ledger; primary cannot starve convergence.
    2. C5.5 ReviewJudgment — one final-lead call over review: carry substantive specialist conclusions and exact proof effects into the final lead #929 input, typed current-revision judgment and failure/limited semantics.
    3. C5.6 compiler authority migration — compiler validates judgment provenance/evidence/anchors/limits/delivery; it stops reconstructing editorial judgment from raw buckets.

    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.

  5. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    Concrete PR decomposition

    #1012 stage-aware budgets and protected retry/challenge/reconsideration/final-lead reserves
    → #1013 typed ReviewJudgment and final-lead call
    → #1014 make validated ReviewJudgment the compiler/public-review authority
    

    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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions