mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8864] [MERGED] fix(dottore): ride out bursts of empty gateway replies #8852
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#8852
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8864
Author: @SpicyMarinara
Created: 11/5/2026
Status: ✅ Merged
Merged: 11/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/dottore-gateway-patience📝 Commits (3)
15b4f18fix(dottore): ride out bursts of empty gateway replies1a9c55cfix(dottore): give a resent reply its whole box before the deadline806b018Merge remote-tracking branch 'origin/staging' into fix/dottore-gateway-patience📊 Changes
3 files changed (+131 additions, -26 deletions)
View changed files
📝
.github/dottore-review/README.md(+5 -1)📝
.github/dottore-review/dottore_review.py(+42 -9)📝
scripts/regressions/dottore-stream-progress.regression.mjs(+84 -16)📄 Description
Linked issue
Closes #8863
Why this change
The AI gateway in front of Dottore often ends a reply with
max_tokensand no output a few seconds after the request. #8818 resends such a reply twice, after 15 s and 45 s. These replies come in bursts, so all three attempts often fail together. In run 41931881745 (PR #8837), two finder shards failed together, were resent together twice, and one failed a third time. That ended the whole review "Specimen Unexamined". The same failure ended #8841's review "Examination Incomplete" and two earlier #8837 reviews. Each rerun costs about $1.40 and 20 minutes.What changed
MODEL_MAX_RETRIEStimes..github/dottore-review/README.mddescribes the new waits and limits.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
/dottoreruns that a burst of "the gateway ended the reply at max_tokens before Claude wrote anything" retries shows waits of about 15, 45, 90 and 120 s in the examination log, and that the review ends with a verdict.Agent-run checks:
python3 -m py_compile .github/dottore-review/dottore_review.py: OK.node ./scripts/run-regressions.mjs --filter dottore: 8 of 8 passed, after merging current staging.scripts/regressions/dottore-stream-progress.regression.mjsrunschat()andrun_agent()on a fake clock. It now pins the exact waits, model calls, billed prompt tokens and spend for:MODEL_MAX_RETRIEStimes;Known limits:
ponytail:finder copies on the same packet send identical requests, so they share a spread. They already startCACHE_STAGGER_SECONDSapart.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.