Skip to content

feat: make PR review comments easier to scan - #776

Merged
steipete merged 36 commits into
mainfrom
pe/clawsweeper-review-layout
Jul 23, 2026
Merged

steipete merged 36 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 Fixed
Comment thread src/clawsweeper.ts Fixed
Comment thread src/clawsweeper.ts Fixed
Comment thread src/decision-packets.ts Fixed
steipete added 24 commits July 23, 2026 07:17
@clawsweeper

clawsweeper Bot commented Jul 23, 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.

@steipete
steipete merged commit 469e667 into main Jul 23, 2026
9 checks passed
@steipete
steipete deleted the pe/clawsweeper-review-layout branch July 23, 2026 20:14
@steipete

Copy link
Copy Markdown
Contributor

Merged — thanks @Patrick-Erichsen! The scan-first layout is exactly the direction we want review comments to go. We fixed CI forward on your branch (marker-compat tests, two CodeQL regex/escaping alerts) and hardened the new section parsing along the way; your design and commits are preserved.

azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
* feat: simplify ClawSweeper PR review comments

* docs: define human-first PR review layout

* feat: explain reviewed system architecture

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.

* feat: keep contributor proof signals visible

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.

* feat: refine human-first PR review layout

* test(review): update pass and proof-cap expectations to the scan-first layout

* fix(review): linear checklist parsing and complete table-cell escaping

* fix(review): harden scan-first layout rendering and routing

* fix(review): close readiness, routine-step, and diagram trust gaps

* fix(review): keep fenced diagram text out of trusted section parsing

* fix(review): block owned-section spoofing and semicolon diagram directives

* fix(review): fence-aware section parsing and history extraction

* fix(review): preserve issue history and tighten fence and rationale trust

* fix(review): details-aware trusted parsing and routine-risk counting

* fix(review): report full evidence count in the verification table

* fix(review): keep mixed routine risks visible and skip completed checklists in history

* fix(review): require patch-quality remediation and block setext spoofing

* fix(review): keep decision packets and diagram labels; unescape checklist text

* fix(review): sanitize report fields at parse and clarify verification rows

* fix(review): normalize CR spoofing, optionless packets, and finding identity

* fix(review): scope history finding extraction to top-level sections

* fix(review): guarantee a follow-up when patch quality blocks readiness

* fix(review): authoritative before-merge parsing and full HTML neutralization

* fix(review): escape report HTML in tables and cover all container prefixes

* fix(review): keep renderer-owned br separators in verification rows

* fix(review): tighten checklist identity, routine rating steps, and PI escapes

* fix(review): route decision-only follow-ups and escape checklist labels

* fix(review): stop trusted section search at the details boundary

* fix(review): surface decision-only questions as the remaining action

* fix(review): broaden routine next-step filter and preserve checklist spacing

* fix(review): count pending decisions in trusted human-review reasons

* fix(review): count pending decisions and sanitize rank-up details

* fix(review): make the before-merge section authoritative for next-step history

* fix(review): top-level section scope, stricter diagrams, actionable next steps

---------

Co-authored-by: Peter Steinberger <[email protected]>
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.

3 participants