Run Until Unanimous
run_until_unanimousRun iterative AI peer-review rounds until unanimous approval or max rounds. Automatically persists evidence and supports optional lead peer selection.
Instructions
Generate or revise a draft and continue real API peer-review rounds until unanimous READY or the configured max_rounds is reached. AI evidence supplied in evidence is persisted durably and transported automatically; no manual operator attachment is required. v2.11.0: when caller is set to a peer id (claude|codex|gemini|deepseek|grok|perplexity), the relator lottery activates: omit lead_peer to have the server randomly select a non-caller peer as relator (modeled on judicial colegiados), or supply an explicit lead_peer that is NOT the caller. An explicit lead_peer === caller is rejected at the server with caller_cannot_be_lead_peer — an agent never reviews itself (workspace HARD GATE).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ship | |
| task | Yes | ||
| peers | No | ||
| caller | No | operator | |
| evidence | No | Raw evidence from the authenticated AI caller. It is persisted automatically as durable, SHA-256-addressed caller_submitted_unverified material and transported to reviewers; no manual operator attachment is required. Do not call session_attach_evidence for this routine path. | |
| lead_peer | No | ||
| max_rounds | No | Hard review-round ceiling unless allow_auto_extension is explicitly true. | |
| max_cost_usd | No | ||
| review_focus | No | Optional provider-neutral review scope anchor. This is not Claude Code's /focus UI command; it is injected as a front-loaded Review Focus prompt block for every selected peer, including OUT OF SCOPE handling for unrelated findings. | |
| initial_draft | No | ||
| until_stopped | No | ||
| response_format | No | json | |
| allow_auto_extension | No | Opt in to at most two evidence-only auto-extensions. False keeps max_rounds rigid. | |
| reasoning_effort_overrides | No | Optional per-peer reasoning_effort overrides for this call. Keys are peer ids (codex|claude|gemini|deepseek|grok|perplexity); missing keys fall back to global config. This is a shared scale: adapters normalize unsupported literals to the selected model's documented enum (`ultra` becomes max on GPT-5.6 and high on Grok 4.5; older GPT-5 families use their own ceilings). |