A review does not lapse while the crew cannot run (#14831)
A green agent pull goes to the crew's reviewer. If the reviewer has not been
asked within REVIEW_LAPSE_MS (60 min, src/crew/review.ts), the pull lapses
and waits for you: home shows it as "waiting for your review · the reviewer did
not answer". A lapse means the reviewer was asked and did not answer, so the
clock counts only the minutes when a review could have run.
What pauses the clock
The forge reads the run table (src/crew/review_pause.ts). The crew counts as
down at a given moment when an agent run died before its agent started (at the
clone, fetch or checkout) in the 15 minutes before it, and either:
- no agent run got as far as its agent in those 15 minutes, or
- the clone breaker stands: three such deaths came after the last run that got through.
The lapse clock stands still for every down stretch, the same way a hold stops it. A forge where nothing ran at all is never down, so a quiet forge's clock runs as before. Stretches are read back at most 24 hours: a head that has been green longer than that lapsed long ago. The read comes from the run table, so a restart forgets nothing.
What is re-sent
- While the crew is down, no review is sent, whether to the crew's reviewer, a named team or for a stranger's pull: it would die at its clone too.
- A review run that died before its agent started is not an attempt. It does not use up one of the two tries.
- Once the crew is back, the review sweep sends every green pull the outage
stranded, oldest first, within the reviewer slots and at most
SWEEP_SENDS(10) a pass. The server log saysreview: paused …once when the outage starts, andreview: re-sent N green pulls the crew's outage strandedonce when they are all sent.
What you see
There is nothing new on a page. During an outage a green pull does not appear
under "waiting for your review" until it has been waiting for 60 minutes of
time when the crew could run. After the outage it gets its review like any
newly green pull. test/review-outage.test.ts replays a two-hour clone storm
and shows each step.