[PR #8245] [MERGED] feat(dottore): plain findings, quoted voice, collapsed detail, threaded follow-ups #8203

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

📋 Pull Request Information

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

Base: staging ← Head: feat/dottore-comments


📝 Commits (4)

  • 2efbab7 feat(dottore): plain findings, quoted voice, collapsed detail, threaded follow-ups
  • 2b68f53 fix(dottore): keep follow-ups on repaired, anchored threads and name their lines
  • 0f521d3 fix(dottore): fit carried candidates, keep reraised threads open, drop stale quips
  • 8f0f050 fix(dottore): publish the checker's quote on an unrewritten confirmation

📊 Changes

5 files changed (+576 additions, -185 deletions)

View changed files

📝 .github/dottore-review/README.md (+13 -7)
📝 .github/dottore-review/dottore_review.py (+359 -129)
📝 .github/dottore-review/reviewer-prompt.md (+55 -48)
➕ scripts/regressions/dottore-comment-shape.regression.mjs (+146 -0)
📝 scripts/regressions/dottore-thread-dispositions.regression.mjs (+3 -1)

📄 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 #8244

Why this change

Dottore's comments are hard to act on:

  • Inline findings are cut mid-explanation (about 1,085 characters), so the suggested fix is often lost, and a [truncated: …] debug line is posted publicly.
  • The persona voice runs through every sentence, so the facts are buried.
  • A follow-up defect on the same code opens a new thread every round. PR #8233 got 12 threads on about 20 lines.
  • A clean PR shows a yellow WARNING box that reads like a to-do.
  • The copy-paste repair prompt presents the findings as instructions, so a reader's agent applies them without checking.

What changed

  • Inline finding:
    • Visible: the severity heading, one plain sentence on what breaks, Suggested fix, and one quote in Il Dottore's voice.
    • Collapsed under Details: the full explanation, other acceptable fixes and expected proof. Only this part is trimmed, ending in ….
    • No [truncated:] notice. The Location: line is dropped, since the anchor already shows it.
    • The footer is one line.
  • Voice in quotes only:
    • The model now returns plain title/lead/body/fix_hint, plus a per-finding quip and a top-level summary_quip.
    • reviewer-prompt.md has a rewritten voice contract with calibration examples. The verdict remark pools were rewritten in the same voice, and a new quote sits above the Defects table.
  • Walkthrough:
    • Viable, With Notes is now a green TIP that says nothing is required before merge.
    • Other verdict details are counts.
    • Sections are renamed to Summary, Defects, Optional notes and Repairs confirmed. Defects is omitted when there are none.
    • Only failing or blocking checks stay visible. The other checks, open questions, observations and lab notes fold under Review notes.
  • Follow-ups thread:
    • Some new defects are posted as a reply in the Dottore thread that round found repaired: same file and side, still anchored at the head, and within 20 lines of the thread's line or evidence, or in the same enclosing block.
    • The reply names its own line. The thread stays open on it, and the next repair check and autofix judge that latest finding.
    • A thread still open keeps its own finding, so a nearby new defect opens its own thread beside it.
    • If the reply fails, the comment falls back to a standalone thread with a ::warning::, without the follow-up intro.
  • Verify first: the repair prompt and the autofix task both open by saying the findings can be wrong or stale and must be traced before changing code.
  • Test fix: fixed the pre-existing test_moved_head_is_noted_once_and_dropped_when_carried. Its fake gh answered the newer readiness query with a bare SHA, so it errored on staging.
  • New regression: scripts/regressions/dottore-comment-shape.regression.mjs covers trimming, the heading parse, the green notes box, follow-up matching, the verify-first prompt and latest-finding thread identity.

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

Agent-run locally (Windows): python3 -m py_compile on the reviewer, and every scripts/regressions/dottore-*.regression.mjs with PYTHONUTF8=1. All passed; dottore-auto-dispatch skips on Windows.

Manual verification notes

  • Manually run /dottore full on a draft PR with a real defect. Verify the inline comment shows the heading, lead, suggested fix and quote, with the explanation collapsed under Details.
  • Manually verify a clean or nitpick-only PR shows a green TIP box saying nothing is required, with Review notes collapsed.
  • Manually push a commit that fixes a finding but leaves a new defect a few lines away. Verify the remaining defect appears as a reply in the same thread rather than a new thread, and that the thread is not resolved.
  • Manually check that the quotes read as Il Dottore, and that the plain fields carry no persona text.
  • Manually confirm older threads, posted before this change, are still checked and resolved normally.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • 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)

Only .github/dottore-review/README.md changed. It is not a user-facing doc under docs/, so no translation follow-up is needed.

UI evidence (if applicable)

Not applicable to the app. These are GitHub comment bodies; see the manual verification notes above.

🤖 Generated with 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/8245 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feat/dottore-comments` --- ### 📝 Commits (4) - [`2efbab7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2efbab7ab518b117fabfbcce61428b81c01877d8) feat(dottore): plain findings, quoted voice, collapsed detail, threaded follow-ups - [`2b68f53`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2b68f53b4f2e0c7d547f00f197461cbc85131ae4) fix(dottore): keep follow-ups on repaired, anchored threads and name their lines - [`0f521d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0f521d3fdb266dcb2885a39fe99db32a876c8793) fix(dottore): fit carried candidates, keep reraised threads open, drop stale quips - [`8f0f050`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8f0f0507ad3b620e83b85b3695e4f850a8e094fc) fix(dottore): publish the checker's quote on an unrewritten confirmation ### 📊 Changes **5 files changed** (+576 additions, -185 deletions) <details> <summary>View changed files</summary> 📝 `.github/dottore-review/README.md` (+13 -7) 📝 `.github/dottore-review/dottore_review.py` (+359 -129) 📝 `.github/dottore-review/reviewer-prompt.md` (+55 -48) ➕ `scripts/regressions/dottore-comment-shape.regression.mjs` (+146 -0) 📝 `scripts/regressions/dottore-thread-dispositions.regression.mjs` (+3 -1) </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`. ## Linked issue Closes #8244 ## Why this change Dottore's comments are hard to act on: - Inline findings are cut mid-explanation (about 1,085 characters), so the suggested fix is often lost, and a `[truncated: …]` debug line is posted publicly. - The persona voice runs through every sentence, so the facts are buried. - A follow-up defect on the same code opens a new thread every round. PR #8233 got 12 threads on about 20 lines. - A clean PR shows a yellow WARNING box that reads like a to-do. - The copy-paste repair prompt presents the findings as instructions, so a reader's agent applies them without checking. ## What changed - **Inline finding:** - Visible: the severity heading, one plain sentence on what breaks, **Suggested fix**, and one quote in Il Dottore's voice. - Collapsed under Details: the full explanation, other acceptable fixes and expected proof. Only this part is trimmed, ending in `…`. - No `[truncated:]` notice. The `Location:` line is dropped, since the anchor already shows it. - The footer is one line. - **Voice in quotes only:** - The model now returns plain `title`/`lead`/`body`/`fix_hint`, plus a per-finding `quip` and a top-level `summary_quip`. - `reviewer-prompt.md` has a rewritten voice contract with calibration examples. The verdict remark pools were rewritten in the same voice, and a new quote sits above the Defects table. - **Walkthrough:** - Viable, With Notes is now a green TIP that says nothing is required before merge. - Other verdict details are counts. - Sections are renamed to Summary, Defects, Optional notes and Repairs confirmed. Defects is omitted when there are none. - Only failing or blocking checks stay visible. The other checks, open questions, observations and lab notes fold under **Review notes**. - **Follow-ups thread:** - Some new defects are posted as a reply in the Dottore thread that round found repaired: same file and side, still anchored at the head, and within 20 lines of the thread's line or evidence, or in the same enclosing block. - The reply names its own line. The thread stays open on it, and the next repair check and autofix judge that latest finding. - A thread still open keeps its own finding, so a nearby new defect opens its own thread beside it. - If the reply fails, the comment falls back to a standalone thread with a `::warning::`, without the follow-up intro. - **Verify first:** the repair prompt and the autofix task both open by saying the findings can be wrong or stale and must be traced before changing code. - **Test fix:** fixed the pre-existing `test_moved_head_is_noted_once_and_dropped_when_carried`. Its fake `gh` answered the newer readiness query with a bare SHA, so it errored on `staging`. - **New regression:** `scripts/regressions/dottore-comment-shape.regression.mjs` covers trimming, the heading parse, the green notes box, follow-up matching, the verify-first prompt and latest-finding thread identity. ## 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` Agent-run locally (Windows): `python3 -m py_compile` on the reviewer, and every `scripts/regressions/dottore-*.regression.mjs` with `PYTHONUTF8=1`. All passed; `dottore-auto-dispatch` skips on Windows. ### Manual verification notes - Manually run `/dottore full` on a draft PR with a real defect. Verify the inline comment shows the heading, lead, suggested fix and quote, with the explanation collapsed under Details. - Manually verify a clean or nitpick-only PR shows a green TIP box saying nothing is required, with Review notes collapsed. - Manually push a commit that fixes a finding but leaves a new defect a few lines away. Verify the remaining defect appears as a reply in the same thread rather than a new thread, and that the thread is not resolved. - Manually check that the quotes read as Il Dottore, and that the plain fields carry no persona text. - Manually confirm older threads, posted before this change, are still checked and resolved normally. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] 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) Only `.github/dottore-review/README.md` changed. It is not a user-facing doc under `docs/`, so no translation follow-up is needed. ## UI evidence (if applicable) Not applicable to the app. These are GitHub comment bodies; see the manual verification notes above. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:41 +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#8203
No description provided.