mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8817] [Issue]: Dottore fails a review when the gateway returns an empty reply marked max_tokens #8509
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#8509
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 @SpicyMarinara on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8817
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Dottore Review sometimes fails with "the finder reply reached its 64000-token output cap" on small diffs. The calls never came near the cap: the gateway returned a reply with
stop_reason=max_tokensand 0 output tokens a few seconds after the request.Expected behavior
A reply that ends at
max_tokenswithout any output is a gateway fault, not a spent output budget. Dottore should wait and resend it at the same effort, like other transient gateway errors (RETRY_DELAYS), and only fail the review if the resends fail too.Actual behavior
claude_replymarks anymax_tokensstop as capped.run_agentthen resends once at the next lower effort and raises "reached its N-token output cap" when that also comes back empty, which fails the whole review ("Specimen Unexamined").Evidence from the #8800 review of
6ea7473d(Dottore Review run, examination job log):role=finder; prompt_tokens=19248; completion_tokens=0; stop_reason=max_tokens; first_chunk_s=5.1; elapsed_s=5.3→ "reached its 64000-token output cap at effort xhigh; retrying once at high"role=finder; completion_tokens=0; stop_reason=max_tokens; elapsed_s=14.9→ review failedmax_tokensreplies on scout and verify calls (16000 and 64000 caps) that recovered on their one retry.The same failure hit Agents #2100's full review earlier the same day.
Steps to reproduce
Intermittent; seen through the linkapi.ai gateway with
DOTTORE_*_API=anthropic, modelclaude-sonnet-5-5-r, effortxhigh. Push to a ready PR and read the examination log forcompletion_tokens=0; ... stop_reason=max_tokens.Environment
260ea0b852(Dottore tooling)Logs, screenshots, or video
Quoted above from the examination job log.
Additional context
Fix in progress on
fix/dottore-empty-capped-reply(SpicyMarinara, via Claude Code).Template check