[GH-ISSUE #8458] [Issue]: Dottore loses the PR summary on incremental reviews #8364

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

Originally created by @Promansis on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8458

Originally assigned to: @Promansis on GitHub.

Summary

After an incremental review, the 🧭 Summary section of Dottore's walkthrough describes only the commits pushed since the last reviewed head. The summary of the PR as a whole is lost.

Expected behavior

The walkthrough keeps a summary of the whole PR across pushes. An incremental review adds what changed since the last examination instead of replacing that summary.

Actual behavior

  • An incremental review diffs from the last reviewed SHA (resolve_review_base), so the model writes change_summary about that slice only.
  • The prior summary is not passed back in: prior_review_contracts_context keeps only the 🔎 / 🧹 sections and repair contracts from the old walkthrough.
  • render_walkthrough rebuilds the walkthrough from the current run, and post_review PATCHes the single walkthrough comment in place.

So after a small fixup push, the summary describes only the fixup.

Steps to reproduce

  1. Open a PR and let Dottore run a full review. The walkthrough summarizes the PR.
  2. Push a small follow-up commit, such as a rename.
  3. Let the incremental review run. The 🧭 Summary now describes only the rename.

Environment

  • Marinara Engine version: staging @ 090ecb1f
  • Install type: CI (Dottore Review workflow, .github/dottore-review/dottore_review.py)
  • OS + version: GitHub Actions ubuntu-latest
  • Browser or app shell: n/a

Logs, screenshots, or video

n/a. The cause is in the code paths named above.

Additional context

I also looked at writing the summary into the PR body, as CodeRabbit does, and decided against it:

  • Dottore reads the PR body as the author's description, so its own text would come back to it as author intent.
  • GitHub has no compare-and-set for a PR body, so an author's concurrent edit can be lost.

Proposed fix:

  • An incremental review keeps the last completed walkthrough's summary and adds a Since <head>: line beneath it, keeping the last three such lines.
  • A full review writes the summary afresh.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8458 Originally assigned to: @Promansis on GitHub. ## Summary After an incremental review, the `🧭 Summary` section of Dottore's walkthrough describes only the commits pushed since the last reviewed head. The summary of the PR as a whole is lost. ## Expected behavior The walkthrough keeps a summary of the whole PR across pushes. An incremental review adds what changed since the last examination instead of replacing that summary. ## Actual behavior - An incremental review diffs from the last reviewed SHA (`resolve_review_base`), so the model writes `change_summary` about that slice only. - The prior summary is not passed back in: `prior_review_contracts_context` keeps only the `🔎` / `🧹` sections and repair contracts from the old walkthrough. - `render_walkthrough` rebuilds the walkthrough from the current run, and `post_review` PATCHes the single walkthrough comment in place. So after a small fixup push, the summary describes only the fixup. ## Steps to reproduce 1. Open a PR and let Dottore run a full review. The walkthrough summarizes the PR. 2. Push a small follow-up commit, such as a rename. 3. Let the incremental review run. The `🧭 Summary` now describes only the rename. ## Environment - Marinara Engine version: `staging` @ 090ecb1f - Install type: CI (Dottore Review workflow, `.github/dottore-review/dottore_review.py`) - OS + version: GitHub Actions `ubuntu-latest` - Browser or app shell: n/a ## Logs, screenshots, or video n/a. The cause is in the code paths named above. ## Additional context I also looked at writing the summary into the PR body, as CodeRabbit does, and decided against it: - Dottore reads the PR body as the author's description, so its own text would come back to it as author intent. - GitHub has no compare-and-set for a PR body, so an author's concurrent edit can be lost. Proposed fix: - An incremental review keeps the last completed walkthrough's summary and adds a `Since <head>:` line beneath it, keeping the last three such lines. - A full review writes the summary afresh. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-11-07 16:42: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#8364
No description provided.