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

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

📋 Pull Request Information

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

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


📝 Commits (5)

  • 65f85ad docs(dottore): define ready-only review contract
  • 40c72e4 fix(dottore): admit only live Ready pull requests
  • f83bc1e Merge remote-tracking branch 'origin/staging' into fix/dottore-ready-only
  • 6dbeb56 test(dottore): isolate admission fixture environment
  • 67463f9 Merge branch 'staging' into fix/dottore-ready-only

📊 Changes

4 files changed (+163 additions, -1 deletions)

View changed files

📝 .github/workflows/dottore-review.yml (+41 -0)
📝 CONTRIBUTING.md (+3 -1)
➕ scripts/validate-dottore-readiness.mjs (+117 -0)
📝 scripts/validate-pr-triage.mjs (+2 -0)

📄 Description

Linked issue

Closes #1643

Implementation owner: @SpicyMarinara / Codex. Depends on Marinara-Engine #8242.

Why this change

A stale Ready event or a direct workflow request must not review a PR that is currently Draft. Examination should start on Ready without waiting for CI; approval and merging still require the repository checks.

What changed

  • Added a read-only admission job that checks the current PR state, strict draft flag and allowed base before invoking the shared reviewer. Missing or malformed API evidence fails closed. It neither checks CI results nor executes PR code.
  • Kept the existing Ready trigger and automatic-review preference, and added actual-shell regression coverage to the required catalog validation.
  • Documented staging versus default-branch activation. Main remains on the normal release path.

The shared Engine pin remains unchanged until #8242 has a reviewed staging merge. This PR stays Draft because that integration is unfinished; the wrapper and its tests are implemented.

Package and security impact

Workflow tooling only. No package payload, catalog, saved-data or model configuration changes. Admission has read-only contents and pull-request permissions.

Validation

Local npm run check, catalog/lane/localization/release-note validation and 21 actual Bash admission controls passed after integration with current staging. Independent review passed 17 additional malformed-response and pending/failed-CI controls.

Local CodeRabbit completed a substantive review: one trivial configuration-normalization suggestion was rejected because every existing base guard deliberately uses exact entries; the other suggestion was applied to remove ambient environment variables from the shell fixture. The follow-up upload completed without a fresh detailed file review; the one-line environment removal was manually checked and all controls rerun.

  • Manually verify a Draft PR causes no model review or publication.
  • Manually verify Ready triggers a review for the current head while CI is pending.
  • Manually verify converting a running PR to Draft withholds publication.

Hosted checks and Dottore are separate merge gates. The current LinkAPI route has rejected real Sonnet 5.5 requests with HTTP 400; a postmerge empty-diff verdict on another PR is not evidence that this provider route works.


🔄 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-Agents/pull/1644 **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 (5) - [`65f85ad`](https://github.com/Pasta-Devs/Marinara-Agents/commit/65f85ad8766b67433858f7934f62af333db2f9c2) docs(dottore): define ready-only review contract - [`40c72e4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/40c72e47f22103bd9c41b5317567e834ccaa51d0) fix(dottore): admit only live Ready pull requests - [`f83bc1e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f83bc1e9deb75f08ba3027850afc95f7dbd01e75) Merge remote-tracking branch 'origin/staging' into fix/dottore-ready-only - [`6dbeb56`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6dbeb566f22f4c6826961f913e670137576f5612) test(dottore): isolate admission fixture environment - [`67463f9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/67463f910832d2fbdde0163461bf480066713d58) Merge branch 'staging' into fix/dottore-ready-only ### 📊 Changes **4 files changed** (+163 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dottore-review.yml` (+41 -0) 📝 `CONTRIBUTING.md` (+3 -1) ➕ `scripts/validate-dottore-readiness.mjs` (+117 -0) 📝 `scripts/validate-pr-triage.mjs` (+2 -0) </details> ### 📄 Description ## Linked issue Closes #1643 Implementation owner: @SpicyMarinara / Codex. Depends on Marinara-Engine #8242. ## Why this change A stale Ready event or a direct workflow request must not review a PR that is currently Draft. Examination should start on Ready without waiting for CI; approval and merging still require the repository checks. ## What changed - Added a read-only admission job that checks the current PR state, strict draft flag and allowed base before invoking the shared reviewer. Missing or malformed API evidence fails closed. It neither checks CI results nor executes PR code. - Kept the existing Ready trigger and automatic-review preference, and added actual-shell regression coverage to the required catalog validation. - Documented staging versus default-branch activation. Main remains on the normal release path. The shared Engine pin remains unchanged until #8242 has a reviewed staging merge. This PR stays Draft because that integration is unfinished; the wrapper and its tests are implemented. ## Package and security impact Workflow tooling only. No package payload, catalog, saved-data or model configuration changes. Admission has read-only contents and pull-request permissions. ## Validation Local `npm run check`, catalog/lane/localization/release-note validation and 21 actual Bash admission controls passed after integration with current staging. Independent review passed 17 additional malformed-response and pending/failed-CI controls. Local CodeRabbit completed a substantive review: one trivial configuration-normalization suggestion was rejected because every existing base guard deliberately uses exact entries; the other suggestion was applied to remove ambient environment variables from the shell fixture. The follow-up upload completed without a fresh detailed file review; the one-line environment removal was manually checked and all controls rerun. - [ ] Manually verify a Draft PR causes no model review or publication. - [ ] Manually verify Ready triggers a review for the current head while CI is pending. - [ ] Manually verify converting a running PR to Draft withholds publication. Hosted checks and Dottore are separate merge gates. The current LinkAPI route has rejected real Sonnet 5.5 requests with HTTP 400; a postmerge empty-diff verdict on another PR is not evidence that this provider route works. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-25 04:02:23 +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-Agents#1641
No description provided.