[PR #8243] [MERGED] fix(dottore): avoid stranded pending status on withheld reviews #8201

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/8243
Author: @SpicyMarinara
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/dottore-withheld-status-8241


📝 Commits (2)

  • 05d1dbd docs(dottore): clarify final-only review status lifecycle
  • f5a6c77 fix(dottore): publish only final review commit status

📊 Changes

3 files changed (+129 additions, -11 deletions)

View changed files

📝 .github/dottore-review/README.md (+4 -0)
📝 .github/workflows/dottore-review.yml (+0 -11)
📝 scripts/regressions/dottore-readiness.regression.mjs (+125 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote staging or a same-repository hotfix/* branch to main.

Linked issue

Closes #8241
Follow-up to #8242's confirmed Dottore finding. Implementation owner: @SpicyMarinara / Codex.

Why this change

The review workflow posts a pending Dottore Review commit status before examination. If the PR becomes Draft, closed, merged, or readiness becomes unverifiable later, the publication guards correctly withhold the final status and leave that pending record stranded.

What changed

  • Dottore Review no longer publishes an in-progress commit status. Follow the Actions run for progress; a review that remains open and Ready still publishes its final success/failure status through the unchanged publication guard.
  • A withheld run adds no new commit status. Historical statuses from earlier runs remain unchanged; this does not clear an old pending record or fabricate a passing status.
  • Add nine executable workflow status-lifecycle scenarios to the existing readiness regression and explain the final-only status lifecycle in the internal Dottore README.

The production workflow delta is only deletion of the initial pending-status step. Ready-only admission, per-model-attempt checks, the final publication block, the shared Python reviewer, approval rules, model settings, and merge gates are unchanged. Examination still starts independently of CI.

Validation

  • pnpm check passes locally
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-run on final head f5a6c77d714f76205721b5e2811842ddd2bb5d89:

  • Canonical private pnpm install --frozen-lockfile --offline completed successfully using a native macOS COW copy of the prior same-lock dependency forest/store. Dependencies and build outputs are private to this worktree.
  • pnpm check exited 0, including production client/server builds. It reported one React dependency warning in an application file this PR leaves unchanged, plus existing build warnings; no errors.
  • node scripts/regressions/dottore-readiness.regression.mjs passed the existing runtime controls and all nine added status scenarios. These execute the actual workflow Bash and real reviewer ready/status-state commands with a fail-closed local gh fixture. Draft during examination, publication withholding, failed readiness API, closed/merged PR, initial Draft and autofix publish no status; Ready completion/failure publish their original terminal outcomes.
  • The same scenarios against the unmodified workflow reproduced pending records, including the stranded Draft/closed/unverifiable paths. An initial macOS Python 3.9 fixture precondition failure is retained separately; the actual CLI proof uses Python 3.11, matching the workflow's supported modern interpreter.
  • Existing dottore-auto-dispatch, dottore-check-results, and dottore-stream-progress regression scripts passed. Auto dispatch includes 26 actual Bash cases and 16 trusted resolver cases.
  • Workflow YAML parse and git diff --check passed. Source comparison proves the final status block and Python reviewer are byte-identical to the base.
  • Local CodeRabbit completed substantive review of all three final files with zero findings. An independent read-only source/proof review found no substantive issues.

No model/provider request, real PR-state transition, browser session, container build or deployment was used for this workflow-only validation. Manually verify a future real Ready review's Actions progress and final status after the trusted staging workflow lands. This PR's own hosted review still uses the previously trusted staging workflow. GitHub checks and Dottore Review remain merge gates.

Docs and release impact

  • Updated docs as needed
  • Version/release files updated (only if this PR includes a version bump)

Only the internal .github/dottore-review/README.md changes. No app version, release notes, public docs/, model variables, API keys, main branch, or repository settings change. An Agents wrapper pin can be updated separately after a reviewed Engine merge; this PR changes no Agents pin.


🔄 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/8243 **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-withheld-status-8241` --- ### 📝 Commits (2) - [`05d1dbd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/05d1dbd93ad68ab3edcd4ef10fbcb923eec5754f) docs(dottore): clarify final-only review status lifecycle - [`f5a6c77`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f5a6c77d714f76205721b5e2811842ddd2bb5d89) fix(dottore): publish only final review commit status ### 📊 Changes **3 files changed** (+129 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `.github/dottore-review/README.md` (+4 -0) 📝 `.github/workflows/dottore-review.yml` (+0 -11) 📝 `scripts/regressions/dottore-readiness.regression.mjs` (+125 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote staging or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #8241 Follow-up to #8242's confirmed Dottore finding. Implementation owner: @SpicyMarinara / Codex. ## Why this change The review workflow posts a pending `Dottore Review` commit status before examination. If the PR becomes Draft, closed, merged, or readiness becomes unverifiable later, the publication guards correctly withhold the final status and leave that pending record stranded. ## What changed - `Dottore Review` no longer publishes an in-progress commit status. Follow the Actions run for progress; a review that remains open and Ready still publishes its final success/failure status through the unchanged publication guard. - A withheld run adds no new commit status. Historical statuses from earlier runs remain unchanged; this does not clear an old pending record or fabricate a passing status. - Add nine executable workflow status-lifecycle scenarios to the existing readiness regression and explain the final-only status lifecycle in the internal Dottore README. The production workflow delta is only deletion of the initial pending-status step. Ready-only admission, per-model-attempt checks, the final publication block, the shared Python reviewer, approval rules, model settings, and merge gates are unchanged. Examination still starts independently of CI. ## Validation - [ ] `pnpm check` passes locally - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-run on final head `f5a6c77d714f76205721b5e2811842ddd2bb5d89`: - Canonical private `pnpm install --frozen-lockfile --offline` completed successfully using a native macOS COW copy of the prior same-lock dependency forest/store. Dependencies and build outputs are private to this worktree. - `pnpm check` exited 0, including production client/server builds. It reported one React dependency warning in an application file this PR leaves unchanged, plus existing build warnings; no errors. - `node scripts/regressions/dottore-readiness.regression.mjs` passed the existing runtime controls and all nine added status scenarios. These execute the actual workflow Bash and real reviewer `ready`/`status-state` commands with a fail-closed local `gh` fixture. Draft during examination, publication withholding, failed readiness API, closed/merged PR, initial Draft and autofix publish no status; Ready completion/failure publish their original terminal outcomes. - The same scenarios against the unmodified workflow reproduced pending records, including the stranded Draft/closed/unverifiable paths. An initial macOS Python 3.9 fixture precondition failure is retained separately; the actual CLI proof uses Python 3.11, matching the workflow's supported modern interpreter. - Existing `dottore-auto-dispatch`, `dottore-check-results`, and `dottore-stream-progress` regression scripts passed. Auto dispatch includes 26 actual Bash cases and 16 trusted resolver cases. - Workflow YAML parse and `git diff --check` passed. Source comparison proves the final status block and Python reviewer are byte-identical to the base. - Local CodeRabbit completed substantive review of all three final files with zero findings. An independent read-only source/proof review found no substantive issues. No model/provider request, real PR-state transition, browser session, container build or deployment was used for this workflow-only validation. Manually verify a future real Ready review's Actions progress and final status after the trusted staging workflow lands. This PR's own hosted review still uses the previously trusted staging workflow. GitHub checks and Dottore Review remain merge gates. ## Docs and release impact - [ ] Updated docs as needed - [ ] Version/release files updated (only if this PR includes a version bump) Only the internal `.github/dottore-review/README.md` changes. No app version, release notes, public `docs/`, model variables, API keys, main branch, or repository settings change. An Agents wrapper pin can be updated separately after a reviewed Engine merge; this PR changes no Agents pin. --- <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#8201
No description provided.