Skip to content

feat: make PR review comments easier to scan#776

Open
Patrick-Erichsen wants to merge 5 commits into
mainfrom
pe/clawsweeper-review-layout
Open

feat: make PR review comments easier to scan#776
Patrick-Erichsen wants to merge 5 commits into
mainfrom
pe/clawsweeper-review-layout

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Summary

  • lead with What this changes, followed by one dynamic Merge readiness outcome
  • separate crab ratings into a Measure | Result | What it means table with the explicit (N/6) scale
  • fold proof, checks, findings, and security into one compact Verification table
  • render actual before-merge work as native task-list checkboxes and omit empty standalone findings
  • keep architecture context visible with Mermaid while moving technical evidence, metadata, workflow notes, and the rating legend under Agent review details
  • preserve parsing compatibility for both legacy before-merge tables and the new checklist format

Visual reference: openclaw/openclaw#112487

Validation

Focused renderer, proof, risk, and review-history tests pass.

pnpm run check passed static checks, formatting, all builds, lint, and changed-file coverage. Its full cross-platform suite completed with 2,524 passing, 9 skipped, and 13 unrelated local failures in macOS/Linux containment and platform-sensitive path/timing tests (capset unavailable on macOS, /private/var normalization, and tight target-validation deadlines). No failures were in the touched review rendering paths.

Add a plain-language system context section and evidence-backed Mermaid flowchart immediately after merge readiness. Preserve compatibility by reading legacy summary headings and extracting the first action from the new Before merge table, including escaped pipes.
Surface sufficient real-behavior proof and two concrete evidence items in the human review while retaining the full evidence list in collapsed agent details. This preserves the proof, tests, and check signals contributors commonly cite in clawtributors.
Comment thread src/clawsweeper.ts
const section = markdownSection(body, "Before merge");
if (!section) return "";
for (const line of section.split(/\r?\n/)) {
const task = line.match(/^- \[[ xX]\]\s+(?:\*\*[^*]+\*\*\s+-\s+)?(.+)$/);
Comment thread src/clawsweeper.ts
Comment on lines +18635 to +18637
return value
.replace(/\r?\n|\r/g, "<br>")
.replace(/\|/g, "\\|")
Comment thread src/clawsweeper.ts
};
const addPrioritized = (text: string, fallback: PublicPriority, label: string) => {
for (const line of publicRiskBulletsFromText(text, fallback).split("\n")) {
const match = line.match(/^-\s+\[(P[0-2])\]\s+(.+)$/);
Comment thread src/decision-packets.ts
Comment on lines +257 to +259
value
.replace(/\r?\n|\r/g, "<br>")
.replace(/\|/g, "\\|")
@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat: make PR review comments easier to scan This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants