[PR #8060] [MERGED] fix(dottore): keep active thinking streams alive #8081

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8060
Author: @SpicyMarinara
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/dottore-thinking-progress


📝 Commits (2)

  • 5094bb0 chore(dottore): start progress-aware timeout fix
  • 18c0fa8 fix(dottore): refresh watchdog on meaningful stream progress

📊 Changes

3 files changed (+137 additions, -16 deletions)

View changed files

📝 .github/dottore-review/README.md (+11 -5)
📝 .github/dottore-review/dottore_review.py (+16 -11)
➕ scripts/regressions/dottore-stream-progress.regression.mjs (+110 -0)

📄 Description

Linked issue

Closes #8059

Why this change

Dottore's finder currently aborts at its 600-second role allocation even when a reply continues producing thinking. Security PR #8055 twice ended as Specimen Unexamined because of that absolute stream cutoff. The maintainer requested progress-aware handling alongside the live switch to claude-opus-5-5 with xhigh effort.

What changed

  • Let an active reply finish past the role allocation while thinking, text, or tool-input characters continue arriving. The watchdog now measures time without meaningful progress; pings, empty deltas, metadata, and content arriving after the idle limit cannot keep a stalled reply alive.
  • Count streamed Chat Completions tool arguments alongside existing Anthropic and Responses progress events.
  • Request summarized Claude thinking so Opus 5.5 exposes progress to the watchdog. The pinned SDK already supports this field; Anthropic documents the omitted default and summarized opt-in.
  • Preserve socket silence timeouts, role scheduling/read limits, the 40-minute review-step limit, and the 45-minute job limit. The 30-minute scheduling deadline continues to ask agents to submit; it does not interrupt an active reply.
  • Add a fast discoverable regression with a fake clock and document the timeout behavior. No application UI, dependency, or release changes.

Both live Opus reviewer slots are now set to claude-opus-5-5 and xhigh. Those four repository-variable updates are separate from this source diff.

Validation

Tested head: 18c0fa879c276d3d36c9e5547ab6ce40f9fefab1.

  • pnpm install --frozen-lockfile and pnpm check: passed.

  • node scripts/run-regressions.mjs --filter dottore-stream-progress: 1/1 passed (139ms). Its five standard-library Python tests cover all three provider stream formats, thinking/text/tool progress beyond 600 seconds, ping-only and idle streams, late content, and the Claude request fields. The same proof fails against the unchanged runner.

  • pnpm exec prettier --check scripts/regressions/dottore-stream-progress.regression.mjs, Python syntax compile, and git diff --check: passed.

  • Independent source review: no substantive findings.

  • Local CodeRabbit review on the full three-file diff: completed, 0 findings. The final UTF-8 test-reader correction was independently reviewed and the focused proof rerun.

  • Hosted required checks: passed. All three Node regression shards passed, including the new timeout proof (552ms).

  • Final-head Dottore Review: Viable, With Notes, 0 actionable defects and 2 nonblocking wording notes. Code-based dispositions and proof limits are recorded; there are no inline threads. The run confirmed all three roles used anthropic/claude-opus-5-5/xhigh. It used the existing trusted runner, so it does not prove the proposed watchdog live.

  • pnpm check passes locally

  • Container (Docker / Podman) built and ran without issue

  • Ran the app, clicked through the changes manually

  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)

  • Above manual verification completed

  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify a real Dottore review completes with the configured model and effort after this runner is on its trusted base branch. This PR's own reviewer uses the runner already on staging; it cannot execute the proposed runner from its PR head.
  • No live provider request or application UI/container walkthrough is claimed by the local mocked regression.

Docs and release impact

The Dottore README now explains idle timeouts, visible thinking, and the remaining workflow ceilings. No user-facing docs/ or version metadata changed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8060 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/dottore-thinking-progress` --- ### 📝 Commits (2) - [`5094bb0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5094bb0d09eb97da65a91df15dd0fdce395878d3) chore(dottore): start progress-aware timeout fix - [`18c0fa8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/18c0fa879c276d3d36c9e5547ab6ce40f9fefab1) fix(dottore): refresh watchdog on meaningful stream progress ### 📊 Changes **3 files changed** (+137 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `.github/dottore-review/README.md` (+11 -5) 📝 `.github/dottore-review/dottore_review.py` (+16 -11) ➕ `scripts/regressions/dottore-stream-progress.regression.mjs` (+110 -0) </details> ### 📄 Description ## Linked issue Closes #8059 ## Why this change Dottore's finder currently aborts at its 600-second role allocation even when a reply continues producing thinking. Security PR #8055 twice ended as Specimen Unexamined because of that absolute stream cutoff. The maintainer requested progress-aware handling alongside the live switch to `claude-opus-5-5` with `xhigh` effort. ## What changed - Let an active reply finish past the role allocation while thinking, text, or tool-input characters continue arriving. The watchdog now measures time without meaningful progress; pings, empty deltas, metadata, and content arriving after the idle limit cannot keep a stalled reply alive. - Count streamed Chat Completions tool arguments alongside existing Anthropic and Responses progress events. - Request summarized Claude thinking so Opus 5.5 exposes progress to the watchdog. The pinned SDK already supports this field; [Anthropic documents the omitted default and summarized opt-in](https://platform.claude.com/docs/en/build-with-claude/thinking). - Preserve socket silence timeouts, role scheduling/read limits, the 40-minute review-step limit, and the 45-minute job limit. The 30-minute scheduling deadline continues to ask agents to submit; it does not interrupt an active reply. - Add a fast discoverable regression with a fake clock and document the timeout behavior. No application UI, dependency, or release changes. Both live Opus reviewer slots are now set to `claude-opus-5-5` and `xhigh`. Those four repository-variable updates are separate from this source diff. ## Validation Tested head: `18c0fa879c276d3d36c9e5547ab6ce40f9fefab1`. - `pnpm install --frozen-lockfile` and `pnpm check`: passed. - `node scripts/run-regressions.mjs --filter dottore-stream-progress`: 1/1 passed (139ms). Its five standard-library Python tests cover all three provider stream formats, thinking/text/tool progress beyond 600 seconds, ping-only and idle streams, late content, and the Claude request fields. The same proof fails against the unchanged runner. - `pnpm exec prettier --check scripts/regressions/dottore-stream-progress.regression.mjs`, Python syntax compile, and `git diff --check`: passed. - Independent source review: no substantive findings. - Local CodeRabbit review on the full three-file diff: completed, 0 findings. The final UTF-8 test-reader correction was independently reviewed and the focused proof rerun. - Hosted required checks: passed. All three Node regression shards passed, including the new timeout proof (552ms). - Final-head Dottore Review: **Viable, With Notes**, 0 actionable defects and 2 nonblocking wording notes. [Code-based dispositions and proof limits](https://github.com/Pasta-Devs/Marinara-Engine/pull/8060#issuecomment-6338472391) are recorded; there are no inline threads. The run confirmed all three roles used `anthropic/claude-opus-5-5/xhigh`. It used the existing trusted runner, so it does not prove the proposed watchdog live. - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify a real Dottore review completes with the configured model and effort after this runner is on its trusted base branch. This PR's own reviewer uses the runner already on `staging`; it cannot execute the proposed runner from its PR head. - No live provider request or application UI/container walkthrough is claimed by the local mocked regression. ## Docs and release impact The Dottore README now explains idle timeouts, visible thinking, and the remaining workflow ceilings. No user-facing `docs/` or version metadata changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:13 +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#8081
No description provided.