A review that never started says so (#16096)
A green agent pull goes to the crew's reviewer. A review run can end before its
agent reads a word: the run spent its whole 10 min budget in the brief, or the
pull's head could not be checked out (not reviewed: …), or the sealed head
could not be fetched. Such a run ends with no turn and $0.00.
What is new
- The run is held to its budget as a whole. When the budget runs out the forge aborts the run and, if a step of the brief ignores the abort, leaves it behind after a 5 s grace and ends the run, so a stalled brief no longer holds the run for 15 min or more past the budget.
- A head gets two review runs (
REVIEW_TRIES), after up to two the forge itself failed (FORGE_FAULTS_FORGIVEN, #16177). When the counted ones also ended without the reviewer reading the pull, the pull no longer says "the reviewer did not answer"; it says review failed to start. A reviewer that read and posted nothing still says "did not answer".
Where it appears
Home's "waiting for your review" rows, the asks list in the studio, and the
terminal's crew rows all use the same sentence (review_says.ts).
The pull itself says it too (#16178): its page shows a Review failed to
start card to everyone who can read it, and the terminal's pull screen
(src/tui/screens/pull.ts) reads review failed to start on its header line.
What a person does
A person who writes the repository can send the review once more:
Re-run review on the pull's card, or F ("re-run the review") on the
terminal's pull screen. Both call retryFailedStart behind the same gate
(mayRetryReview): it sends one run only while the pull reads "failed to
start", no review is out, a reviewer is seated and not paused, and the crew
can run; otherwise it says why and sends nothing. While the run is out the
card and the header word are gone; if it too fails at its start, they return.
Look at the review runs' logs on the pull. If the cause was the crew (a clone or fetch that died), review the pull yourself or push again to start a fresh head. The pull waits for you either way; nothing lands on its own.
The summaries failedAtStart reads are written from shared constants
(BUDGET_PREFIX, NOT_REVIEWED_PREFIX, SEALED_FETCH_PREFIX), and a test
holds the runner to them.
A review the shell refused (#16214)
Some reviews ran, read the pull, and were never posted: the reviewer's post command carried the review's words (a heredoc, or a quoted body that mentioned rm), and the shell's permission check refused it, so the run ended "reviewed: no verdict was posted" (#15694). The review brief now has the reviewer write its JSON with the Write tool to review.json and post it with a fixed curl … --data-binary @review.json, so no prose reaches the shell (test/review-post-file.test.ts).
The run says why (#16177)
A review run that failed for the forge's reason says which, on its one line:
budget: a review run, waiting on the head's check before its reviewer started, took 30 min, limit 10: it overran before its agent began, behind the head's check (#16009's runs, fixed by #16115).budget: a review run, before its reviewer started, took …: it overran in the clone or brief.the run failed: <error>: its launch threw (RUN_THREW_PREFIX).reviewed: no verdict was posted; the harness refused its Bash call: the reviewer read the pull and the harness's permission check refused it a tool (#15694's runs, fixed by #16227), read from the result'spermission_denials.
Such a run (forgeFault) spends none of the head's tries, up to two a head: the reviewer was never heard, so it is asked again, however long ago the head went green. Pinned by test/review-start-failure.test.ts.