[GH-ISSUE #8141] [Issue]: Dottore never finishes a large PR's review, so every rerun is a full review that fails again #7577

Closed
opened 2026-10-24 04:04:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8141

Originally assigned to: @Promansis on GitHub.

Summary

Dottore cannot finish reviewing a PR that splits into more packets than DOTTORE_CONCURRENCY (default 4). A finder that has to wait for a free worker starts too late, then either times out or runs into the checker's reserved time. Either way the review leaves candidates unjudged, the walkthrough records last-reviewed-sha=unrecorded, and every later run is a full review that hits the same timing again. The required Dottore Review status never passes, so the PR cannot merge.

Expected behavior

  • Every finder starts as soon as the scouts finish, whatever the packet count.
  • A review that judged some candidates but ran out of time for the rest records its head. The next run is incremental and checks the leftover candidates, alongside any new diff, instead of reviewing the whole PR again.
  • The Dottore call: log line shows each reply's stop reason, so a reply cut off at its output cap can be told apart from one that finished.

Actual behavior

On Pasta-Devs/Marinara-Agents#1595 (7 packets: 180k, 152k, 177k, 153k, 113k, 15k and 11k characters; tooling pinned at 6dd282ba), the finders run on the shared 4-worker pool. The four large finders take 8–14 minutes each at xhigh, so the fifth packet's finder starts only when one of them finishes. Finders must submit by about minute 22 (REVIEW_DEADLINE_SECONDS minus CHECKER_RESERVE_SECONDS), and a late finder's silence allowance falls to the 180 s floor (max(FIRST_CALL_TIMEOUT, until - started) in chat):

Run Head Fifth finder starts Result
39872195805 b83dcfc5 ~16:40 Runs 11 minutes, to ~28:00; checkers start after it and no new checker starts after 30:00, so 3 of 14 candidates go unverified → unrecorded
39899143881 4270e4f4 ~19:30 Times out on the 180 s floor → Review Failed
39903299690 ac134e88 ~21:35 "no thinking, text or tool-input progress for 243s (limit 180s)" → Review Failed
39906686735 ac134e88 — Same failure

resolve_review_base only accepts a 40-character SHA marker, so after the first run every auto run fell back to full. A full rerun does not hand the unjudged candidates to the checker; the finders start over and may or may not raise them again.

Four finder calls in the two failed runs also logged exactly completion_tokens=63999 against the 64,000-token cap without taking the cap retry. The log line has no stop reason, so it is unknown whether those replies were cut short.

Steps to reproduce

  1. Open a PR whose changed files split into 5 or more large packets, with DOTTORE_CONCURRENCY unset.
  2. Let Dottore review it with an xhigh finder.
  3. The review either fails on a late finder or leaves candidates unverified; rerun /dottore and it is a full review again.

Environment

  • Marinara Engine version: Dottore tooling at 6dd282ba (the Agents pin); the code is unchanged on staging 5b00fa2a5
  • Install type: other (GitHub Actions, Dottore Review workflow)
  • OS + version: ubuntu-latest runner
  • Browser or app shell: n/a

Logs, screenshots, or video

Workflow runs on Pasta-Devs/Marinara-Agents: 39872195805, 39899143881, 39903299690, 39906686735 (job logs, Dottore call: and Dottore telemetry: lines).

Additional context

Minimal fix, all in .github/dottore-review/dottore_review.py:

  • run_finders: run the finders on their own pool sized to the finder count (up to MAX_CONCURRENCY), so none queues behind the others.
  • chat, with claude_reply, openai_reply and responses_reply: return the reply's stop reason and print it in the Dottore call: line.
  • verify_candidates, render_walkthrough and produce_review: when a review judged at least one candidate and leaves chosen candidates unjudged, record the head and carry those candidates in a walkthrough marker. The next incremental run follows their lines to the new head and checks them, including on a rerun with no new diff. The commit status still fails until they are judged, and the head is not discharged. A failed or skipped review stays unrecorded.

Regression: extend scripts/regressions/dottore-stream-progress.regression.mjs.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8141 Originally assigned to: @Promansis on GitHub. ## Summary Dottore cannot finish reviewing a PR that splits into more packets than `DOTTORE_CONCURRENCY` (default 4). A finder that has to wait for a free worker starts too late, then either times out or runs into the checker's reserved time. Either way the review leaves candidates unjudged, the walkthrough records `last-reviewed-sha=unrecorded`, and every later run is a full review that hits the same timing again. The required `Dottore Review` status never passes, so the PR cannot merge. ## Expected behavior - Every finder starts as soon as the scouts finish, whatever the packet count. - A review that judged some candidates but ran out of time for the rest records its head. The next run is incremental and checks the leftover candidates, alongside any new diff, instead of reviewing the whole PR again. - The `Dottore call:` log line shows each reply's stop reason, so a reply cut off at its output cap can be told apart from one that finished. ## Actual behavior On Pasta-Devs/Marinara-Agents#1595 (7 packets: 180k, 152k, 177k, 153k, 113k, 15k and 11k characters; tooling pinned at 6dd282ba), the finders run on the shared 4-worker pool. The four large finders take 8–14 minutes each at `xhigh`, so the fifth packet's finder starts only when one of them finishes. Finders must submit by about minute 22 (`REVIEW_DEADLINE_SECONDS` minus `CHECKER_RESERVE_SECONDS`), and a late finder's silence allowance falls to the 180 s floor (`max(FIRST_CALL_TIMEOUT, until - started)` in `chat`): | Run | Head | Fifth finder starts | Result | | --- | --- | --- | --- | | 39872195805 | b83dcfc5 | ~16:40 | Runs 11 minutes, to ~28:00; checkers start after it and no new checker starts after 30:00, so 3 of 14 candidates go unverified → `unrecorded` | | 39899143881 | 4270e4f4 | ~19:30 | Times out on the 180 s floor → Review Failed | | 39903299690 | ac134e88 | ~21:35 | "no thinking, text or tool-input progress for 243s (limit 180s)" → Review Failed | | 39906686735 | ac134e88 | — | Same failure | `resolve_review_base` only accepts a 40-character SHA marker, so after the first run every `auto` run fell back to `full`. A full rerun does not hand the unjudged candidates to the checker; the finders start over and may or may not raise them again. Four finder calls in the two failed runs also logged exactly `completion_tokens=63999` against the 64,000-token cap without taking the cap retry. The log line has no stop reason, so it is unknown whether those replies were cut short. ## Steps to reproduce 1. Open a PR whose changed files split into 5 or more large packets, with `DOTTORE_CONCURRENCY` unset. 2. Let Dottore review it with an `xhigh` finder. 3. The review either fails on a late finder or leaves candidates unverified; rerun `/dottore` and it is a full review again. ## Environment - Marinara Engine version: Dottore tooling at 6dd282ba (the Agents pin); the code is unchanged on staging 5b00fa2a5 - Install type: other (GitHub Actions, Dottore Review workflow) - OS + version: ubuntu-latest runner - Browser or app shell: n/a ## Logs, screenshots, or video Workflow runs on Pasta-Devs/Marinara-Agents: 39872195805, 39899143881, 39903299690, 39906686735 (job logs, `Dottore call:` and `Dottore telemetry:` lines). ## Additional context Minimal fix, all in `.github/dottore-review/dottore_review.py`: - `run_finders`: run the finders on their own pool sized to the finder count (up to `MAX_CONCURRENCY`), so none queues behind the others. - `chat`, with `claude_reply`, `openai_reply` and `responses_reply`: return the reply's stop reason and print it in the `Dottore call:` line. - `verify_candidates`, `render_walkthrough` and `produce_review`: when a review judged at least one candidate and leaves chosen candidates unjudged, record the head and carry those candidates in a walkthrough marker. The next incremental run follows their lines to the new head and checks them, including on a rerun with no new diff. The commit status still fails until they are judged, and the head is not discharged. A failed or skipped review stays `unrecorded`. Regression: extend `scripts/regressions/dottore-stream-progress.regression.mjs`. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-24 04:04:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7577
No description provided.