[PR #8200] [MERGED] fix(ci): preserve incremental Dottore reviews when marking PRs ready #8181

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

📋 Pull Request Information

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

Base: staging ← Head: fix/dottore-ready-incremental-8197


📝 Commits (3)

  • cd4955a fix(ci): preserve incremental Dottore reviews on ready events
  • 7b1866a test(ci): scope dispatcher fixture to supported POSIX hosts
  • 741378b fix(ci): bind review checkpoints to their target base

📊 Changes

3 files changed (+321 additions, -7 deletions)

View changed files

📝 .github/dottore-review/dottore_review.py (+2 -0)
📝 .github/workflows/dottore-review-auto.yml (+16 -7)
➕ scripts/regressions/dottore-auto-dispatch.regression.mjs (+303 -0)

📄 Description

Why this change

Marking a previously reviewed PR ready again forces a full Dottore examination and bypasses its saved checkpoint. Repeated draft/ready cycles delayed #8153 and dependent work. Follow-up reviews should inspect the delta and relevant unfinished findings.

Refs #8197 and companion Pasta-Devs/Marinara-Agents#1623. The tracking issue stays open until both repository fixes land.

What changed

  • Use auto/checkpoint selection for ready events, as for later pushes. First reviews, invalid/nonancestor history and explicit target-base changes retain full fallback.
  • Bind checkpoints to a trusted base-ref marker. A draft retarget followed by ready or a push cannot inherit the old-base examination. Legacy checkpoints missing this identity safely get one full review; later same-base changes remain incremental.
  • Skip completed same-head reviews while keeping unfinished RIGHT candidates eligible. Read the SHA, base and carry markers from the same bot-authored leading header; ignore model prose.
  • Add a maintained regression that executes the actual Bash step, real resolver/ancestor functions and actual marker producer. Scope that new POSIX fixture off native Windows, whose prerequisites do not include Bash/jq; print the skip explicitly.

The privileged dispatcher still does not check out or execute PR code. No model, effort, budget, permission, application, package artifact or release metadata changes.

Validation

Public source and proof packet: all 34 files downloaded from raw URLs and matched local bytes.

  • Original ready-followup control fails on unchanged old Bash (full !== auto). Hosted review also exposed a real draft-retarget skip; its before failure is retained and repaired.
  • Final source passes 26 actual Bash cases and 17 real resolver/ancestor cases, including actual producer headers: completed same-base skip, RIGHT carry, LEFT unrecorded/full, old-base/full and forged-marker controls.
  • Canonical node scripts/run-regressions.mjs --filter dottore- --concurrency 1 passes 3/3 files. Its first run had a three-second timing failure in an unchanged existing worker fixture; exact focused and then full unchanged replays passed. No assertion or deadline was changed.
  • Python/Bash/Node syntax, scoped Prettier and git diff --check pass. Final-source simulated Windows skip is explicit; POSIX missing jq fails. No native Windows assertion coverage is claimed.
  • Hosted ordinary synchronize run 40012482110 actually examined741 in incremental mode. It completed Repair Required with one MEDIUM finding and two nits. The finding assumes two coexisting walkthroughs; the actual original and current publisher both POST once then PATCH the same comment. Clean→LEFT→RIGHT proof preserves one comment, and four live PR histories each contain one edited walkthrough. The synthetic two-comment failure and qualified source-based false-positive disposition are both retained in the packet; no production change or forced-full review request was made for this unsupported premise.
  • Local CodeRabbit: initial two-file review completed with zero findings; the eight-line platform follow-up had one policy finding, rejected as a non-regression because the fixture is new and existing POSIX guards establish this boundary; the final three-file base-identity repair review completed with zero findings. These are separate review outcomes.

No dependency installation or full application build was run for this narrow workflow/reviewer-metadata change; hosted full checks remain merge gates. The local fixture does not claim a live post-merge ready transition. The Agents companion will pin the actual reviewed Engine merge so its producer emits the base marker too.

Manual verification

  • Manually verify the first automatic review is full and a later ready transition uses the saved checkpoint after this fix lands.
  • Manually verify completed same-head reviews skip while unfinished carried candidates remain eligible.

🔄 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/8200 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/dottore-ready-incremental-8197` --- ### 📝 Commits (3) - [`cd4955a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cd4955a4d0b0f8a26f5e5d3d27ecbb0882b1f1a0) fix(ci): preserve incremental Dottore reviews on ready events - [`7b1866a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7b1866a0dabbbbe29f1606eafd3bef3d99e448c9) test(ci): scope dispatcher fixture to supported POSIX hosts - [`741378b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/741378beb9375aa970b29b7a889d3a9eb11e34c6) fix(ci): bind review checkpoints to their target base ### 📊 Changes **3 files changed** (+321 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `.github/dottore-review/dottore_review.py` (+2 -0) 📝 `.github/workflows/dottore-review-auto.yml` (+16 -7) ➕ `scripts/regressions/dottore-auto-dispatch.regression.mjs` (+303 -0) </details> ### 📄 Description ## Why this change Marking a previously reviewed PR ready again forces a full Dottore examination and bypasses its saved checkpoint. Repeated draft/ready cycles delayed #8153 and dependent work. Follow-up reviews should inspect the delta and relevant unfinished findings. Refs #8197 and companion Pasta-Devs/Marinara-Agents#1623. The tracking issue stays open until both repository fixes land. ## What changed - Use auto/checkpoint selection for ready events, as for later pushes. First reviews, invalid/nonancestor history and explicit target-base changes retain full fallback. - Bind checkpoints to a trusted base-ref marker. A draft retarget followed by ready or a push cannot inherit the old-base examination. Legacy checkpoints missing this identity safely get one full review; later same-base changes remain incremental. - Skip completed same-head reviews while keeping unfinished RIGHT candidates eligible. Read the SHA, base and carry markers from the same bot-authored leading header; ignore model prose. - Add a maintained regression that executes the actual Bash step, real resolver/ancestor functions and actual marker producer. Scope that new POSIX fixture off native Windows, whose prerequisites do not include Bash/jq; print the skip explicitly. The privileged dispatcher still does not check out or execute PR code. No model, effort, budget, permission, application, package artifact or release metadata changes. ## Validation [Public source and proof packet](https://gist.github.com/SpicyMarinara/85ab77850a5af2698a5d69ac74d9ea50): all 34 files downloaded from raw URLs and matched local bytes. - Original ready-followup control fails on unchanged old Bash (`full !== auto`). Hosted review also exposed a real draft-retarget skip; its before failure is retained and repaired. - Final source passes 26 actual Bash cases and 17 real resolver/ancestor cases, including actual producer headers: completed same-base skip, RIGHT carry, LEFT unrecorded/full, old-base/full and forged-marker controls. - Canonical `node scripts/run-regressions.mjs --filter dottore- --concurrency 1` passes 3/3 files. Its first run had a three-second timing failure in an unchanged existing worker fixture; exact focused and then full unchanged replays passed. No assertion or deadline was changed. - Python/Bash/Node syntax, scoped Prettier and `git diff --check` pass. Final-source simulated Windows skip is explicit; POSIX missing jq fails. No native Windows assertion coverage is claimed. - Hosted ordinary synchronize run [40012482110](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/40012482110) actually examined741 in incremental mode. It completed Repair Required with one MEDIUM finding and two nits. The finding assumes two coexisting walkthroughs; the actual original and current publisher both POST once then PATCH the same comment. Clean→LEFT→RIGHT proof preserves one comment, and four live PR histories each contain one edited walkthrough. The synthetic two-comment failure and qualified source-based false-positive disposition are both retained in the packet; no production change or forced-full review request was made for this unsupported premise. - Local CodeRabbit: initial two-file review completed with zero findings; the eight-line platform follow-up had one policy finding, rejected as a non-regression because the fixture is new and existing POSIX guards establish this boundary; the final three-file base-identity repair review completed with zero findings. These are separate review outcomes. No dependency installation or full application build was run for this narrow workflow/reviewer-metadata change; hosted full checks remain merge gates. The local fixture does not claim a live post-merge ready transition. The Agents companion will pin the actual reviewed Engine merge so its producer emits the base marker too. ## Manual verification - [ ] Manually verify the first automatic review is full and a later ready transition uses the saved checkpoint after this fix lands. - [ ] Manually verify completed same-head reviews skip while unfinished carried candidates remain eligible. --- <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:29 +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#8181
No description provided.