Skip to content

feat(review): show review scores above the product verdict - #1757

Merged
obviyus merged 1 commit into
mainfrom
review-scores-above-product
Oct 8, 2026
Merged

obviyus merged 1 commit into
mainfrom
review-scores-above-product

Conversation

@obviyus

@obviyus obviyus commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

PR review comments now show ## Review scores right under ## What this changes, above ## Product.

 ## What this changes
+## Review scores
 ## Product
 ## Merge readiness
-## Review scores
 ## Decision needed / Before merge / Findings

Evidence

Rendered-comment proof through the shipped renderer (renderReviewCommentFromReport(report, "none"), the function that builds the published comment), using the real stored report from a local ClawSweeper review of openclaw/openclaw#166599. macOS, Node 24.21, each dist/ built from source with pnpm run build. Visible top-level sections, in order:

Build Visible sections
main 197df62 (before) What this changes → Product → Merge readiness → Review scores → Before merge → Findings
this PR, head d77fd2f (after) What this changes → Review scores → Product → Merge readiness → Before merge → Findings

Everything after these sections stays in the single collapsed Agent review details block. The comment layout test pins the new order. Focused suites (review-comment-rendering, pr-review-quality, clawsweeper): 142/142 pass.

Limits: rendered locally from a stored report; no comment was posted from this head.

Merge Danger

Door: two-way: presentation order only.

Blast radius: PR comment layout. Parsers key on section headings, not order.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 8:56 PM ET / October 8, 2026, 00:56 UTC (Revision 2).

ClawSweeper review

What this changes

Move the review scores table below What this changes and above Product in PR review comments.

Example: A maintainer reads a completed PR review

  • Before: The visible sections begin What this changes → Product → Merge readiness → Review scores.
  • After: The visible sections begin What this changes → Review scores → Product → Merge readiness.

Product

Kind: Preference · Worth it: Yes
User problem: Readers must pass the product verdict and merge-readiness block before reaching the review scores.
Reason: The contributor responsible for the prior merged layout proposes this adjustment, supplying area-specific direction. Moving an existing block has minimal maintenance cost and makes scores easier to scan.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main retains the previous layout, and the updated rendered-output evidence addresses the prior proof request. No actionable patch defect remains.

Priority: P3
Reviewed head: d77fd2f99939f39af03099c3ee68d49105075131

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, correct layout change with sufficient local rendering evidence, limited to an in-process production renderer rather than the full publication entry point.
Proof confidence 🦐 gold shrimp (3/6) Sufficient (live_output): The updated body records before/after output from the changed production renderer using a real stored report on macOS with Node 24.21 at the pinned head. It demonstrates scores preceding Product and preserves the collapsed details block; no GitHub publication was exercised, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The evidence invokes the production renderer locally with a real stored report; it does not exercise review publication through the CLI or GitHub. That limit does not obscure the changed section-order output.
Agent review details

How this fits together

ClawSweeper converts stored review reports into GitHub comments for contributors and maintainers. The changed renderer controls the order of visible sections while retaining the existing review judgments and merge guidance.

flowchart TD
 A[Stored review report] --> B[Comment renderer]
 B --> C{Review completed?}
 C -->|Yes| D[Change summary and review scores]
 C -->|No| E[Failed review guidance]
 D --> F[Product and merge readiness]
 E --> F
 F --> G[GitHub review comment]
Loading

Technical review

Best possible solution:

Use the existing scores renderer in the requested position while preserving heading-based readers and all review gates.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is an intentional presentation preference; the base source and supplied before/after output establish the section-order difference.

Is this the best way to solve the issue?

Yes: relocating the existing rendering block is the narrowest implementation, and heading-based consumers remain compatible.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 197df625648b.

Provenance checked

Testing

Proof path: in-process harness. Added test files: 1.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 197df62 adds src/clawsweeper-report-comment-presentation.ts:486 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 197df625648b; files: src/clawsweeper-report-comment-presentation.ts)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.

Label justifications:

  • P3: This is a small comment-layout improvement with no change to review decisions, stored state, or authorization.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-08T00:43:42.114Z sha d77fd2f :: needs changes before merge. :: none

@obviyus

obviyus commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient Contributor real behavior proof is sufficient. label Oct 8, 2026
@obviyus
obviyus merged commit 11c625d into main Oct 8, 2026
29 checks passed
@obviyus
obviyus deleted the review-scores-above-product branch October 8, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant