[PR #8459] [MERGED] fix(dottore): keep the PR summary across incremental reviews #8614

Closed
opened 2026-11-07 16:45:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8459
Author: @Promansis
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @Promansis

Base: staging ← Head: ccr-05277ee1-25ean4


📝 Commits (2)

  • 06fc65f fix(dottore): keep the PR summary across incremental reviews
  • ffe358b fix(dottore): add no summary line on a rerun of the reviewed head

📊 Changes

3 files changed (+143 additions, -3 deletions)

View changed files

📝 .github/dottore-review/README.md (+2 -0)
📝 .github/dottore-review/dottore_review.py (+56 -3)
➕ scripts/regressions/dottore-summary-carry.regression.mjs (+85 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #8458

Why this change

  • An incremental review sees only the commits since the last reviewed head, so its summary covers only that slice.
  • The walkthrough is rewritten in place, so that slice's summary replaced the summary of the whole PR. After a fixup push, the walkthrough no longer said what the PR does.

What changed

  • produce now does one more thing on an incremental run: it reads the summary and reviewed head from the last completed walkthrough into review_obj["prior_summary"].
    • Failed or unrecorded walkthroughs are not carried.
    • If the lookup fails, the review still posts, with only its own summary.
  • render_walkthrough builds the summary with the new summary_lines:
    • A full review writes the summary afresh.
    • An incremental review keeps the carried lines unchanged and adds *Since <head>:* … beneath them. Only the last three Since lines are kept; the original full-review lines always stay.
  • Summary lines are flattened to one line each so they can be read back reliably on the next run.
  • The model prompt is unchanged, and nothing is written into the PR body. The issue explains why this approach was chosen over appending to the PR body.
  • README: the walkthrough description now says how the summary carries across incremental reviews.
  • New regression: scripts/regressions/dottore-summary-carry.regression.mjs.

Validation

  • 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 (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • node scripts/regressions/dottore-summary-carry.regression.mjs passes 7 cases against the real render_walkthrough:
    • a full review writes the summary;
    • an incremental review keeps it and adds a Since line;
    • the three-line limit, with the full summary surviving;
    • an incremental review with no summary keeps the prior one;
    • a later full review replaces everything;
    • a failed walkthrough is not carried;
    • the empty-summary placeholder is shown and not carried.
  • node scripts/regressions/dottore-auto-dispatch.regression.mjs still passes.
  • python3 -m py_compile .github/dottore-review/dottore_review.py succeeds.
  • Not run: pnpm check, because dependencies were not installed in this environment. This is CI tooling only, so the app/container/UI items do not apply.
  • Not yet seen on a live incremental review on GitHub.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed: .github/dottore-review/README.md
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

n/a: CI tooling. The walkthrough's 🧭 Summary will look like this after an incremental review:

### 🧭 Summary
- <full-review summary line 1>
- <full-review summary line 2>
- *Since `aaaaaaaa`:* <what the latest push changed>

Generated by Claude Code


🔄 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/8459 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `ccr-05277ee1-25ean4` --- ### 📝 Commits (2) - [`06fc65f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/06fc65fe351d9d5293201b3eac8fdd2633643ea5) fix(dottore): keep the PR summary across incremental reviews - [`ffe358b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ffe358bece343a1076d4e9adb5582b455e06435e) fix(dottore): add no summary line on a rerun of the reviewed head ### 📊 Changes **3 files changed** (+143 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.github/dottore-review/README.md` (+2 -0) 📝 `.github/dottore-review/dottore_review.py` (+56 -3) ➕ `scripts/regressions/dottore-summary-carry.regression.mjs` (+85 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #8458 ## Why this change - An incremental review sees only the commits since the last reviewed head, so its summary covers only that slice. - The walkthrough is rewritten in place, so that slice's summary replaced the summary of the whole PR. After a fixup push, the walkthrough no longer said what the PR does. ## What changed - `produce` now does one more thing on an incremental run: it reads the summary and reviewed head from the last completed walkthrough into `review_obj["prior_summary"]`. - Failed or unrecorded walkthroughs are not carried. - If the lookup fails, the review still posts, with only its own summary. - `render_walkthrough` builds the summary with the new `summary_lines`: - A full review writes the summary afresh. - An incremental review keeps the carried lines unchanged and adds `*Since `<head>`:* …` beneath them. Only the last three `Since` lines are kept; the original full-review lines always stay. - Summary lines are flattened to one line each so they can be read back reliably on the next run. - The model prompt is unchanged, and nothing is written into the PR body. The issue explains why this approach was chosen over appending to the PR body. - README: the walkthrough description now says how the summary carries across incremental reviews. - New regression: `scripts/regressions/dottore-summary-carry.regression.mjs`. ## Validation - [ ] `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 (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `node scripts/regressions/dottore-summary-carry.regression.mjs` passes 7 cases against the real `render_walkthrough`: - a full review writes the summary; - an incremental review keeps it and adds a `Since` line; - the three-line limit, with the full summary surviving; - an incremental review with no summary keeps the prior one; - a later full review replaces everything; - a failed walkthrough is not carried; - the empty-summary placeholder is shown and not carried. - `node scripts/regressions/dottore-auto-dispatch.regression.mjs` still passes. - `python3 -m py_compile .github/dottore-review/dottore_review.py` succeeds. - Not run: `pnpm check`, because dependencies were not installed in this environment. This is CI tooling only, so the app/container/UI items do not apply. - Not yet seen on a live incremental review on GitHub. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README) as needed: `.github/dottore-review/README.md` - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) n/a: CI tooling. The walkthrough's `🧭 Summary` will look like this after an incremental review: ``` ### 🧭 Summary - <full-review summary line 1> - <full-review summary line 2> - *Since `aaaaaaaa`:* <what the latest push changed> ``` --- _Generated by [Claude Code](https://claude.ai/code/session_01KvwcBWw4d2tCrWqd7vMbFW)_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:59 +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#8614
No description provided.