mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8141] [Issue]: Dottore never finishes a large PR's review, so every rerun is a full review that fails again #7577
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7577
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 recordslast-reviewed-sha=unrecorded, and every later run is a full review that hits the same timing again. The requiredDottore Reviewstatus never passes, so the PR cannot merge.Expected behavior
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 atxhigh, so the fifth packet's finder starts only when one of them finishes. Finders must submit by about minute 22 (REVIEW_DEADLINE_SECONDSminusCHECKER_RESERVE_SECONDS), and a late finder's silence allowance falls to the 180 s floor (max(FIRST_CALL_TIMEOUT, until - started)inchat):unrecordedresolve_review_baseonly accepts a 40-character SHA marker, so after the first run everyautorun fell back tofull. 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=63999against 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
DOTTORE_CONCURRENCYunset.xhighfinder./dottoreand it is a full review again.Environment
6dd282ba(the Agents pin); the code is unchanged on staging5b00fa2a5Logs, screenshots, or video
Workflow runs on Pasta-Devs/Marinara-Agents: 39872195805, 39899143881, 39903299690, 39906686735 (job logs,
Dottore call:andDottore 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 toMAX_CONCURRENCY), so none queues behind the others.chat, withclaude_reply,openai_replyandresponses_reply: return the reply's stop reason and print it in theDottore call:line.verify_candidates,render_walkthroughandproduce_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 staysunrecorded.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: