[PR #8242] [MERGED] fix(dottore): withhold draft reviews and honor Ready state #8202

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

📋 Pull Request Information

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

Base: staging ← Head: fix/dottore-ready-only


📝 Commits (2)

  • a675026 docs(dottore): define ready-only review contract
  • c8c372d fix(dottore): review only live Ready pull requests

📊 Changes

7 files changed (+435 additions, -46 deletions)

View changed files

📝 .github/dottore-review/README.md (+22 -0)
📝 .github/dottore-review/dottore_review.py (+123 -19)
📝 .github/workflows/dottore-review-auto.yml (+2 -2)
📝 .github/workflows/dottore-review-command.yml (+12 -2)
📝 .github/workflows/dottore-review.yml (+60 -20)
📝 scripts/regressions/dottore-auto-dispatch.regression.mjs (+2 -3)
➕ scripts/regressions/dottore-readiness.regression.mjs (+214 -0)

📄 Description

Linked issue

Closes #8241

Implementation owner: @SpicyMarinara / Codex. Shared-runtime counterpart for Marinara-Agents #1644; separate from #8238's finding-quality work.

Why this change

Dottore must examine only open PRs marked Ready, including manual requests and a PR converted back to Draft during examination. A Ready PR must start examination while CI is pending. The previous approval-waiting comment incorrectly suggested that CI blocked review itself.

What changed

  • Check live OPEN state and an explicit false draft flag before admission, every model attempt and each GitHub review mutation. Missing API evidence fails closed. Draft, closed and merged PRs produce no new review checkpoint or viable verdict.
  • Reuse the existing streaming watchdog to withhold work when it observes a state change. Disable SDK-internal retries so the existing outer retry loop checks readiness for every attempt. Preserve provider, effort, thinking progress and timeout settings.
  • Guard repair admission before exposing its model key and recheck before publishing or pushing. The repair job receives only the additional PR-read permission it needs.
  • Keep the existing Ready trigger and incremental-review checkpoint selection. Examination never queries CI; approval still requires a viable current-head review, resolved threads and required checks. Only an explicit /dottore approve asks for an approval-waiting comment.

Validation

pnpm check passed, including lint/type checks and production builds. Focused regressions passed: 12 readiness cases; 26 actual Bash automatic-dispatch cases plus 16 trusted-resolver cases; existing stream-progress and check-result regressions. Changed workflow YAML and embedded Bash syntax checks passed. Independent review's PR-read permission finding was fixed and rechecked.

Local CodeRabbit completed a substantive review of all seven final files with zero findings. Hosted CI and Dottore results are tracked separately.

  • Manually verify automatic, manual and direct requests on a Draft PR make no review calls or publications.
  • Manually verify marking a PR Ready starts review for the current head before CI finishes.
  • Manually verify conversion back to Draft stops new attempts and withholds further publication.
  • Manually verify an ordinary /dottore request does not post an approval-waiting notice, while /dottore approve reports unmet merge gates.

Activation and limits

This targets staging. Marinara-Agents must pin the actual reviewed Engine merge before its shared runtime changes. Default-branch dispatcher copies and reviews targeting main remain on the normal release path.

Readiness during a stream is checked at most once every 15 seconds when SDK events arrive. An already-started silent request can wait for its existing network allowance; an already-running repair CLI can finish locally. Publication and pushing recheck state, and a sent request cannot be undone.

Hosted checks and Dottore remain merge gates. Recent real requests to the configured LinkAPI Sonnet 5.5 route failed with HTTP 400; a postmerge empty-diff verdict on another PR does not establish provider recovery.


🔄 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/8242 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/dottore-ready-only` --- ### 📝 Commits (2) - [`a675026`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a675026c6d7a95b9b5ec1beebfd4a20f5a757cfd) docs(dottore): define ready-only review contract - [`c8c372d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8c372de96cc5a46da08ffb96a66482f18e12ece) fix(dottore): review only live Ready pull requests ### 📊 Changes **7 files changed** (+435 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `.github/dottore-review/README.md` (+22 -0) 📝 `.github/dottore-review/dottore_review.py` (+123 -19) 📝 `.github/workflows/dottore-review-auto.yml` (+2 -2) 📝 `.github/workflows/dottore-review-command.yml` (+12 -2) 📝 `.github/workflows/dottore-review.yml` (+60 -20) 📝 `scripts/regressions/dottore-auto-dispatch.regression.mjs` (+2 -3) ➕ `scripts/regressions/dottore-readiness.regression.mjs` (+214 -0) </details> ### 📄 Description ## Linked issue Closes #8241 Implementation owner: @SpicyMarinara / Codex. Shared-runtime counterpart for Marinara-Agents #1644; separate from #8238's finding-quality work. ## Why this change Dottore must examine only open PRs marked Ready, including manual requests and a PR converted back to Draft during examination. A Ready PR must start examination while CI is pending. The previous approval-waiting comment incorrectly suggested that CI blocked review itself. ## What changed - Check live `OPEN` state and an explicit false draft flag before admission, every model attempt and each GitHub review mutation. Missing API evidence fails closed. Draft, closed and merged PRs produce no new review checkpoint or viable verdict. - Reuse the existing streaming watchdog to withhold work when it observes a state change. Disable SDK-internal retries so the existing outer retry loop checks readiness for every attempt. Preserve provider, effort, thinking progress and timeout settings. - Guard repair admission before exposing its model key and recheck before publishing or pushing. The repair job receives only the additional PR-read permission it needs. - Keep the existing Ready trigger and incremental-review checkpoint selection. Examination never queries CI; approval still requires a viable current-head review, resolved threads and required checks. Only an explicit `/dottore approve` asks for an approval-waiting comment. ## Validation `pnpm check` passed, including lint/type checks and production builds. Focused regressions passed: 12 readiness cases; 26 actual Bash automatic-dispatch cases plus 16 trusted-resolver cases; existing stream-progress and check-result regressions. Changed workflow YAML and embedded Bash syntax checks passed. Independent review's PR-read permission finding was fixed and rechecked. Local CodeRabbit completed a substantive review of all seven final files with zero findings. Hosted CI and Dottore results are tracked separately. - [ ] Manually verify automatic, manual and direct requests on a Draft PR make no review calls or publications. - [ ] Manually verify marking a PR Ready starts review for the current head before CI finishes. - [ ] Manually verify conversion back to Draft stops new attempts and withholds further publication. - [ ] Manually verify an ordinary `/dottore` request does not post an approval-waiting notice, while `/dottore approve` reports unmet merge gates. ## Activation and limits This targets staging. Marinara-Agents must pin the actual reviewed Engine merge before its shared runtime changes. Default-branch dispatcher copies and reviews targeting main remain on the normal release path. Readiness during a stream is checked at most once every 15 seconds when SDK events arrive. An already-started silent request can wait for its existing network allowance; an already-running repair CLI can finish locally. Publication and pushing recheck state, and a sent request cannot be undone. Hosted checks and Dottore remain merge gates. Recent real requests to the configured LinkAPI Sonnet 5.5 route failed with HTTP 400; a postmerge empty-diff verdict on another PR does not establish provider recovery. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-25 04:04:39 +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#8202
No description provided.