[GH-ISSUE #8244] [Feature]: Dottore comments: plain facts, voice in quotes, collapsed detail, merged follow-ups #8174

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

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Dottore's review comments are hard to read and act on:

  • Inline findings get cut off before the fix. The body is truncated at about 1,085 characters partway through the explanation, so the suggested fix is often lost. A [truncated: inline finding was N chars, limit is M chars] debug line is also posted publicly.
  • The persona voice runs through every sentence, including titles, bodies, fix hints, control-check details and notes, so the facts are buried.
  • The inline fix hint is the vague version. The concrete fix shapes and expected proof from the repair contract appear only in the walkthrough.
  • Follow-up findings open new threads every round. On #8233, 11 reviews produced 12 threads on about 20 lines of code.
  • A clean PR looks like it has a to-do. When nothing needs fixing, the top box is a yellow WARNING ("No actionable defects were isolated, but non-blocking notes remain."). The plain "No actionable defects" message only appears further down, under the summary.
  • Control checks, unresolved hypotheses and observations are always expanded, although most of them don't affect the verdict.
  • The copy-paste repair prompt reads as instructions to apply. It doesn't tell the receiving agent that the findings can be wrong and must be checked against the code first.

Proposed solution

Anything important is concise, plain technical text. The voice moves into separate quotes, which stay fully theatrical and true to Il Dottore from Genshin Impact.

  1. Model output. Title, body, fix hint, repair contract, summary, controls and notes are plain English. Three new fields hold the rest:

    • lead: one sentence on what breaks.
    • quip: a 1–3 sentence quote in Dottore's voice about the finding.
    • summary_quip: a quote about the change.

    The prompt's voice contract is rewritten to match, with calibration examples.

  2. Inline finding layout. Each comment shows, in order:

    • the heading;
    • the one-sentence lead;
    • a visible Suggested fix;
    • the quote;
    • a collapsed Details block with the explanation, other acceptable fixes and expected proof;
    • a one-line footer.

    Only the collapsed detail is ever trimmed, and the [truncated: …] notice goes away.

  3. Merge follow-ups. A new defect near an open Dottore thread checked this round is posted as a reply in that thread. The match needs the same path and side, plus either the same enclosing block or a gap of 20 lines or less. The thread stays open and its identity follows the latest finding, so the repair check and autofix judge the follow-up.

  4. Walkthrough.

    • "Viable, with notes" becomes a green TIP saying nothing is required before merge.
    • Sections are renamed Summary, Defects, Optional notes and Repairs confirmed.
    • The Defects section is omitted when there are none.
    • Quotes appear under the verdict, under Summary and above Defects. The fixed remark pools are rewritten in Dottore's voice.
    • Only failing controls and blocking proof gaps stay visible. Everything else goes into a collapsed "Review notes" block.
  5. Repair prompt. The prompt always starts with lines telling the agent that the findings are automated and can be wrong, stale or overstated, and that it must reproduce or trace each one before changing code.

Regression proof: scripts/regressions/dottore-comment-shape.regression.mjs covers trimming, heading parsing, the clean-walkthrough shape, follow-up matching, and the verify-first prompt lines.

Alternatives considered

  • Drop the persona entirely. Rejected: the voice is part of Dottore's identity. Moving it into quotes keeps it without hiding the facts.
  • Only raise the character limit. That still buries the fix and the facts in long voiced text, and still opens a new thread per round.
  • Resolve the old thread and open a new one for each follow-up. That is the current behavior, and it scatters one problem across many threads.

Additional context

  • Code lives in .github/dottore-review/dottore_review.py and .github/dottore-review/reviewer-prompt.md.
  • Example of thread sprawl: #8233.

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 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8244 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Dottore's review comments are hard to read and act on: - **Inline findings get cut off before the fix.** The body is truncated at about 1,085 characters partway through the explanation, so the suggested fix is often lost. A `[truncated: inline finding was N chars, limit is M chars]` debug line is also posted publicly. - **The persona voice runs through every sentence,** including titles, bodies, fix hints, control-check details and notes, so the facts are buried. - **The inline fix hint is the vague version.** The concrete fix shapes and expected proof from the repair contract appear only in the walkthrough. - **Follow-up findings open new threads every round.** On #8233, 11 reviews produced 12 threads on about 20 lines of code. - **A clean PR looks like it has a to-do.** When nothing needs fixing, the top box is a yellow WARNING ("No actionable defects were isolated, but non-blocking notes remain."). The plain "No actionable defects" message only appears further down, under the summary. - **Control checks, unresolved hypotheses and observations are always expanded,** although most of them don't affect the verdict. - **The copy-paste repair prompt reads as instructions to apply.** It doesn't tell the receiving agent that the findings can be wrong and must be checked against the code first. ## Proposed solution Anything important is concise, plain technical text. The voice moves into separate quotes, which stay fully theatrical and true to Il Dottore from Genshin Impact. 1. **Model output.** Title, body, fix hint, repair contract, summary, controls and notes are plain English. Three new fields hold the rest: - `lead`: one sentence on what breaks. - `quip`: a 1–3 sentence quote in Dottore's voice about the finding. - `summary_quip`: a quote about the change. The prompt's voice contract is rewritten to match, with calibration examples. 2. **Inline finding layout.** Each comment shows, in order: - the heading; - the one-sentence lead; - a visible **Suggested fix**; - the quote; - a collapsed **Details** block with the explanation, other acceptable fixes and expected proof; - a one-line footer. Only the collapsed detail is ever trimmed, and the `[truncated: …]` notice goes away. 3. **Merge follow-ups.** A new defect near an open Dottore thread checked this round is posted as a reply in that thread. The match needs the same path and side, plus either the same enclosing block or a gap of 20 lines or less. The thread stays open and its identity follows the latest finding, so the repair check and autofix judge the follow-up. 4. **Walkthrough.** - "Viable, with notes" becomes a green TIP saying nothing is required before merge. - Sections are renamed Summary, Defects, Optional notes and Repairs confirmed. - The Defects section is omitted when there are none. - Quotes appear under the verdict, under Summary and above Defects. The fixed remark pools are rewritten in Dottore's voice. - Only failing controls and blocking proof gaps stay visible. Everything else goes into a collapsed "Review notes" block. 5. **Repair prompt.** The prompt always starts with lines telling the agent that the findings are automated and can be wrong, stale or overstated, and that it must reproduce or trace each one before changing code. Regression proof: `scripts/regressions/dottore-comment-shape.regression.mjs` covers trimming, heading parsing, the clean-walkthrough shape, follow-up matching, and the verify-first prompt lines. ## Alternatives considered - **Drop the persona entirely.** Rejected: the voice is part of Dottore's identity. Moving it into quotes keeps it without hiding the facts. - **Only raise the character limit.** That still buries the fix and the facts in long voiced text, and still opens a new thread per round. - **Resolve the old thread and open a new one for each follow-up.** That is the current behavior, and it scatters one problem across many threads. ## Additional context - Code lives in `.github/dottore-review/dottore_review.py` and `.github/dottore-review/reviewer-prompt.md`. - Example of thread sprawl: #8233. ## 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.
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#8174
No description provided.