Report compatibility and recovery¶
Apply this assessment when a requested existing report fails lookup, validation or its next consumer, including an older result, an unpromoted candidate or a resumed remediation inventory. A version number selects a reader and its semantics; it is not evidence that the analysis must be repeated. Distinguish a presentation/consumer mismatch from missing source, provenance, coverage or verification. Record the exact diagnostic, usable evidence, missing proof and smallest feasible recovery in the owning run notes before asking the user.
When remediation reads an existing report without an explicit +review argument, its work ends at consumer admission. It may validate saved evidence and repair its own derived intake inventory. If the report itself needs repair, record the diagnostic and follow the existing-evidence choices in the remediation intake. Leave the review, its candidate, its manifest and its gates untouched. The producer recovery below applies only to standalone Code Review or to a review invoked by the current code-remediate +review parent.
- Validate supported historical representations under their original contract. Preserve exact source reports, reviewer outputs, role cards, receipts, judgments and attempt history. Never change a schema or presentation marker merely to pass admission, invent provenance, reinterpret historical verdict values as current values, or claim old checks cover changed source.
- Automatically repair deterministic derived presentation or bookkeeping when retained authentic evidence proves every required value. Remediation owns its inventory and rendered scope; Code Review owns its candidate, manifest derivations and finalization. Invoke the owning workflow at its first unmet checkpoint without a new permission question or a model rerun for cosmetics. Retain byte-exact pre-repair artifacts in the run's recovery evidence before regenerating derived files. For historical completed results, preserve the original report before writing a separate candidate; only normal successful validation and promotion may replace the canonical result. Never rewrite frozen dispatch, contexts, source receipts or raw reviewer output. Actual denied capabilities and bounded retry limits still apply.
- A schema-2 archive or another unsupported representation stays unverified while assessed through archive access. Inspect retained source/revision bindings, reviewer outputs, role cards, provenance and gate evidence to identify concrete missing proof; do not stop at its version or feed the archive directly into remediation. Existing valid evidence may support producer recovery only where the current validator can authenticate its original bindings. Never transplant evidence between runs or relabel an old response as a fresh review. If authentic retained evidence is sufficient, regenerate only derived artifacts through the producer and validate a current candidate; otherwise record the precise coverage that needs new work.
- On resume, keep usable source, reviewer, check and discussion evidence; rerun missing, stale or unverifiable work. When no retained evidence can be authenticated or reused and recovery would repeat the review, start a fresh review if
+reviewor another existing authorization permits it; an explicit Resume choice retains its separate decision rule below. A retained plan that the current host cannot execute is historical evidence, not a requirement to repair the old protocol. Preserve its frozen records, then use the current producer to prepare the necessary reviewer work under the existing resume authorization. If immutable planning files require a separate continuation directory, retain the old run and carry only evidence the normal validators can still authenticate; new reviewer results get fresh real dispatch and completion evidence. Never rewrite old provenance or bypass source, permission or stopped-route limits. A new artifact directory alone does not require a full-review choice or discard usable work. - Substantive work already authorized by
+reviewor an explicit resume continues automatically at the first unmet checkpoint. When a genuine remaining decision requires the user, use Incomplete review decision below; do not substitute a copyable resume request or silently finish with limitations.
A missing review-notes.md at finalization can mean the authored report was saved under another name. Verify the canonical path and the retained notes before rechecking commit provenance. Complete any missing report sections and snapshot rows from the retained evidence, supply the completed run-local file with --review-notes, and continue through validation, promotion and same-run completion. Preserve a conflicting canonical report while reconciling its contents.
After automatic or authorized recovery, run both producer artifact validators, normal promotion and --complete-run, then the consumer's ordinary admission and preflight. A standalone Code Review delivers its validated handoff and ends. When the original caller is code-remediate +review, return the validated result to that parent under the nested delivery rule. Resume the waiting remediation at its first unmet checkpoint in the same turn. A repaired format does not close unresolved findings or missing review evidence. If recovery cannot establish completed-review proof, preserve the exact remaining diagnostic and use the requesting workflow's missing-review decision; safe independent work continues within existing authority.
For either decision branch, select the control through User Questions: permitted synchronous request_user_input first; otherwise discover and invoke the native ask_user form when exposed, permitted and suitable. Consider async or plain chat only after native eligibility is exhausted, following the shared rendering, lifetime and fallback requirements. This selection precedes both Continue/Skip and other recovery prompts; never choose chat merely because a workflow supplies question wording. Runtime permissions retain their dedicated mechanism.
Interrupted checks and missed ordering¶
A gate exceeding 15 minutes is not a blocker while observed test completions, advancing percentages or other concrete evidence shows progress toward its acceptance condition. The shared runner allows 7200 seconds (two hours) per gate by default; preserve explicit project/user limits. Keep the active run and report concrete progress at the host update cadence. Do not restart or terminate a progressing gate at 15 minutes. Silence alone proves neither progress nor a hang; inspect retained output and process evidence before diagnosing a stall. Logged test errors remain evidence to reconcile with the final summary, not a reason to discard the remaining run. The runner enforces elapsed time, not a progress detector; the parent owns progress assessment and earlier intervention for a proven stall.
For an interrupted gate in an identified retained review, this section takes precedence over the three-option decision below and every summary of it. Continue authorized recoverable work automatically. If a concrete user decision remains, ask Continue the review of <target>, or skip <blocked step>? through the same native question route with exactly Continue and Skip; identify the actual target, step, retained run, usable evidence and consequences. Never offer a fresh review as the remedy for elapsed time or a missed ordering checkpoint.
Continue: keep the retained review and valid evidence; finish the running check or rerun an interrupted check within the two-hour budget and actual permissions. Do not duplicate a still-running gate. Continue independent authorized work. Preserve actual failed or interrupted check receipts until the rerun supplies valid replacement evidence.Skip: omit further execution of the named blocked step and continue the remaining review using retained findings. This explicit waiver never establishes completed-review proof: preserve failed/timeout receipts, mark missing check coverage in notes and the handoff, and retain an incomplete outcome wherever required validation cannot pass. Do not turn an applicable failed gate into not-applicable or admit incomplete findings as a completed review for joined remediation.
For a missed ordering checkpoint, continue the retained review automatically without a Continue/Skip question. Reading a diff first cannot reconstruct a blind blueprint: record the actual order and its limitation; never recreate or backdate blind evidence. Perform useful analysis as non-blind, recover any missing substantive coverage with permitted checks or reviewer work, and proceed through normal finalization, both validators, promotion and completion. The historical ordering lapse does not by itself prevent review completion; it remains disclosed in notes and confidence evidence, never marked satisfied. Unresolved substantive coverage, required independence, failed checks, source binding, actual permissions and validator failures retain their normal consequences. Diagnose an actual validation failure rather than predicting one from the missed order. Do not restart the full review merely to claim blindness.
Honor an existing Continue choice for the same retained review and do not ask again; an earlier Skip omits only its named step, not remaining authorized work or normal validation. This recovery also applies to a late structural-context probe: use it to resolve concrete missing facts and obtain any still-required reviewer coverage, without claiming it preceded dispatch.
Neither choice overrides a denial, required capability, recurrence stop, source binding or artifact validation. A genuine permission decision still uses its owning approval boundary. Reuse an existing choice for the unchanged blocker; do not ask again merely because work remains.
When this recovery ends in an incomplete handoff, apply Review delivery: show the preliminary snapshot and checkpoint tables even with zero findings, label the assessment unvalidated, and retain the notes link and factual limits. Presenting those tables does not require promotion and never establishes completed-review proof. An unanswered pending question still forbids a final or status handoff; continue already-authorized recoverable work before taking a terminal exit.
Incomplete review decision¶
If the missing input is the project's intended behavior for a verified PR change, follow Maintainer decision needed. Ask the substantive policy question there. Reserve the recovery choices below for a separate obstacle to running the review.
Before offering a recovery choice, separate an exhausted reviewer route, an incomplete review lifecycle, and a completed report with failed checks or a nonapproval recommendation. An exhausted direct reviewer retry stops that route; it does not by itself prohibit Current parent fallback. With verified source and no explicit independence requirement, perform that existing fallback's fresh inspection of every required axis, preserve rejected evidence, and complete its normal validation, promotion and completion checks. BROAD or HIGH_RISK alone does not make a completed fallback impossible: the multi-role substitute retains a failed result and disclosed limits, which is distinct from an unvalidated report. Never turn missing inspection into complete coverage or relabel rejected child output. A genuinely required independent pass, denied capability or unverified source retains its stop. A completed eligible nonapproval report can be admitted by remediation; passing tests without a completed report cannot. Ask only after the permitted continuation has been performed or a concrete unmet condition makes it unavailable.
Apply Interrupted checks and missed ordering first when its trigger matches; the choices below cover other genuine recovery decisions, such as missing source or unavailable retained reviewer evidence.
First apply User Questions: confirm a decision is missing, inspect exposed controls and discover deferred ask_user before considering async. Follow the shared eligibility and fallback rules; a visible async tool alone does not establish usable native rendering. An accepted async question owns the pending decision: yield without a final or status message. Unstarted authorized review work continues without this question.
After permitted automatic recovery and independent work, explain the concrete blocker, retained run and which evidence remains usable. Ask through the host's native user-question tool: How should we continue the review of <target>? Replace the target with the actual linked PR or local scope. Present exactly these three options, with recommendations in descriptions rather than changing the labels:
New review: start a fresh run, follow Start fresh through current source collection, inspection and the normal validated handoff. Preserve the old run. This choice does not clear denied capabilities, recurrence history or stopped-route limits.Resume last one: resume the identified latest retained run at its first unmet checkpoint, reusing only still-valid evidence. Reacquire missing checks or authentic reviewer coverage through permitted recovery; never relabel rejected output as valid. Explain any required capability or source refresh first. If no retained source or evidence identifies the requested run, explain that fact and request a new choice; never silently turn Resume into New. An unusable execution plan alone follows the recovery rule above, without another question.Stop: stop this review and any waiting joined remediation, preserve artifacts and existing changes, and perform no further checks or fixes. Do not undo preparation or reinterpret Stop as continuing with available findings.
An explicit existing New/Resume choice for the unchanged target and blocker remains binding; do not ask again merely because work remains. A genuinely new blocker or changed decision may require this prompt. Neither choice grants missing runtime permissions or authorizes retrying an operation still stopped by policy. State what must change before the selected route can proceed. A denial remains a denial; do not use a fresh run to route around it.
For a nested review, the remediation parent owns the single prompt and retains its waiting run. A completed review returns its exact canonical result for admission, finding selection and remediation; it never becomes the remediation final answer. If the native question tool is unavailable, ask the applicable question and options once in chat. Await the answer without sleeping or emitting a final incomplete-review report while the question is pending. Explicit user instructions to continue with available findings remain valid, but that is not an offered recovery option and never establishes completed-review proof.