Skip to content

fix(review): state each proof gap once and publish only verified facts - #1767

Merged
obviyus merged 6 commits into
mainfrom
presentation-dedupe
Oct 8, 2026
Merged

obviyus merged 6 commits into
mainfrom
presentation-dedupe

Conversation

@obviyus

@obviyus obviyus commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

What

Host-side rendering fixes from the 2026-10-08 hosted-review audit (defects 4, 5, 6, 8-host, 9). No prompt/instruction changes in this PR (the retired testingReview.addedTestFiles instruction step already landed identically in #1765).

  • Proof row (publicReviewScoresBlock): the Proof confidence cell no longer prints "Not applicable" beside a rated tier. With a rated tier and no proof block, it shows the proof summary (sufficient/override keep their status word). Only an NA tier reads "Not applicable". When proof blocks merge, the cell only says "Real behavior proof is necessary before merge. See Before merge."
  • One gap, one place: the Add real behavior proof Before-merge item owns the proof ask. The host no longer adds the "Needs real behavior proof before merge:" prefix (it doubled the model's own prefix on #167360). The status: label justification is now only the label meaning. ### Tests keeps the missing end-to-end scenario (a different fact from the proof assessment; see Codex disposition 2).
  • Likely related people: likelyOwnerLines publishes only people tied to a verified commit. Unverified routing candidates and unknown placeholders are dropped; the section is omitted when none remain (keep-open and close comments).
  • PR surface: apps/ (Swift, Kotlin) is a Source root; Swift *Tests/ dirs and Gradle src/test*/ / src/androidTest*/ source sets are Tests. "Added test files: N" moves to the host PR-surface summary and counts only test files whose GitHub status is added. Reports written before file status was stored omit it. The model field testingReview.addedTestFiles (instructions said "adds or changes") is deleted from schema, parser, types, and report. Local-range reviews now record GitHub file status words (added, modified, renamed, ...) instead of git letters, so the count works there too.
  • Plumbing noise (#165844): "REST comparison returned 225 files across 15 later main commits" and the wall-clock seconds are model-written evidence text, not host-rendered. No host change; handed to the Rules slice.

Why

Audit: local hosted-audit-2026-10-08.md.

  • #167372, #167361, #167367, #167369, #167373, #158148: "🦐 gold shrimp (3/6) — Not applicable: MEMBER-authored PR …" put a tier and a gate status in one cell.
  • #167360: "Needs real behavior proof before merge: Needs real behavior proof before merge: …" and the same proof gap in proof row, Before merge, Tests, and the status-label justification. #167367 showed the same repetition.
  • #167376, #165844, #166183, #156673: public names with "role: unverified routing candidate; confidence: low … no historical authorship or introduction is verified", or "unknown".
  • #167378: two Kotlin production files counted as "Other", with "Source 0".
  • #165844: "Added test files: 4", but the diff adds 0 test files and changes 4.

Proof

Before = ad52903dc (main) dist; after = this branch's dist. Reports are built from a real saved report (166082.md), with each audited PR's hosted-comment proof/rating/testing/owner text and the real GitHub file list with status (gh api repos/openclaw/openclaw/pulls/<n>/files). Rendered with renderReviewCommentFromReport(report, "none"). Excerpts are from diff before/<n>.md after/<n>.md:

#167360 (external, mock-only proof):

-| **Proof confidence** | 🦐 gold shrimp **(3/6)** | Needs real behavior proof before merge: Needs real behavior proof before merge: the updated before/after output composes …
+| **Proof confidence** | 🦐 gold shrimp **(3/6)** | Real behavior proof is necessary before merge. See [Before merge](#before-merge). |
-- [ ] **Add real behavior proof** - Needs real behavior proof before merge: Needs real behavior proof before merge: the updated before/after output …
+- [ ] **Add real behavior proof** - Needs real behavior proof before merge: the updated before/after output …
-- **unknown:** The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
-- `status: 📣 needs proof`: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Needs real behavior proof before merge: …
+- `status: 📣 needs proof`: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

The one remaining "Needs real behavior proof before merge:" is model text. The Rules slice removes the prompt line that tells the model to write it.

#167367 (MEMBER, rated proof tier):

-| **Proof confidence** | 🦐 gold shrimp **(3/6)** | Not applicable: Under the supplied MEMBER association, … it does not establish a full Gateway cleanup run. |
+| **Proof confidence** | 🦐 gold shrimp **(3/6)** | Under the supplied MEMBER association, … it does not establish a full Gateway cleanup run. |
-Likely related people:
-- **steipete:** Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
-  (joshavant, vincentkoc likewise)

#165844:

-Proof path: in-process harness. Added test files: 4.
+Proof path: in-process harness.
-Source +116, Tests +458, Other -1. Total +573 across 15 files.
+Source +116, Tests +458, Other -1. Total +573 across 15 files. Added test files: 0.
-Likely related people: (3 unverified routing candidates)

#167378 (Kotlin):

-Tests +105, Other +36. Total +141 across 3 files.
+Source +36, Tests +105. Total +141 across 3 files. Added test files: 0.
-| Source | 0 | 0 | 0 | 0 |
+| Source | 2 | 41 | 5 | +36 |
-| Other | 2 | 41 | 5 | +36 |
+| Other | 0 | 0 | 0 | 0 |

Tests (focused, against dist):

  • node --test test/pr-proof-automation.test.ts test/pr-review-labels.test.ts test/pr-surface-stats.test.ts test/regression-provenance.test.ts test/review-close-policy.test.ts test/review-comment-rendering.test.ts test/pr-review-comment-risk.test.ts test/openclaw-file-role.test.ts test/pr-review-quality.test.ts → 217 pass, 0 fail.
  • New: maintainer proof row keeps the tier and summary (#167367); a blocking proof gap renders once, with no doubled prefix (#167360); native app buckets (#167378); added-test count from status (#165844); rendered "Added test files" plus the omission for legacy reports.
  • Changed pins: unverified-person tests now assert omission; the status-label test asserts no proof ask; the apps/runtime.ts → other pin is now source; addedTestFiles parser pins are deleted.
  • pnpm run check (full, on the branch before the rebase onto fix(review): keep paperwork and stale conflicts out of Before-merge items #1765 and before the last Tests-line commit): EXIT 0, all tests passed. After the rebase: build, check:changelog, oxfmt check, and focused tests (pr-proof-automation, review-comment-rendering, pr-review-labels, review-prompt-policy, pr-review-quality, pr-surface-stats, local-range-review) pass.

Codex review dispositions

codex review --base main:

  • [P2] "Remove the retired field from the live review instructions" (instructions/pr-review-rules.md still asked for testingReview.addedTestFiles, which the new schema rejects). Valid, fixed: fix(review): keep paperwork and stale conflicts out of Before-merge items #1765 (Rules slice) merged the identical deletion. The rebase dropped this branch's copy. The review policy hash includes the schema text, so cached reviews are invalidated.
  • [P2] "Preserve the missing scenario in the single proof item" (second run): suppressing missingE2e under Tests when proof blocks merge dropped the required scenario, which the Before merge item (realBehaviorProof.summary) does not carry. Valid, fixed by keeping the Tests line. The duplication that remains is model text (summary vs. missingE2e), and the Rules slice owns that.
  • Full pnpm run check also showed that local-range reviews persisted git status letters. Fixed by mapping them to GitHub words at the local producer, with the tests updated.

Merge Danger

  • Door: two-way. These are rendering changes plus one removed model output field. Stored reports with an Added test files: line still parse (the line is ignored).
  • Blast radius: every public PR review comment (proof row, Before merge proof item, status-label justification, Tests section, Likely related people, PR surface summary) and close comments (people list). The schema and instructions change alters the review policy hash, so cached exact reviews are invalidated once. Touches the Verdict-slice file clawsweeper-label-presentation.ts, but only the status-label justification hunk (agreed with that slice). isOpenClawTestRolePath is shared with config/data-model detection, so native test targets are now also excluded there.

@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 P2 Normal priority bug or improvement with limited blast radius. 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. 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 8, 2026, 3:32 PM ET / 19:32 UTC.

ClawSweeper review

What this changes

This PR removes repeated proof requests, hides unverified people, corrects native-app classifications, and derives added-test counts from recorded file status.

Example: A reviewer reads an OpenClaw PR that modifies four existing test files

  • Before: The comment says “Added test files: 4.”
  • After: The PR surface summary says “Added test files: 0.”

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, correct presentation repairs with observed production-renderer output, although the demonstration stops at an in-process renderer rather than the shipped CLI or hosted publication.
Proof confidence 🦐 gold shrimp (3/6) Sufficient (live_output): The PR records before/after output from the compiled production comment renderer using saved review data and real GitHub file statuses, showing corrected proof text, people filtering, native-source totals, and added-test counts. This establishes the changed rendering behavior within a local process; hosted publication is outside the demonstrated scope. Older report fields remain readable, and absent file status suppresses the count without migration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Contributors see repeated proof requests, misleading test counts, and people whose connection to the code has not been verified.
Reason: The audited output contradicts the existing factual-reporting contract. Repairing the existing presentation owners provides clear value without introducing a new configuration or parallel review path.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main still produces the audited presentation errors, and the merged rules change addresses only the model-side guidance. No actionable patch defect was found.

Priority: P2
Reviewed head: d34c607a9d7a49d4f59f6934206b1545384b79a5

Before merge

None.

Findings

None.

Agent review details

How this fits together

ClawSweeper turns structured review decisions and GitHub file metadata into saved reports and public review comments. These changes affect the explanations and statistics readers see while preserving the existing proof and merge gates.

flowchart TD
  A[Review decision] --> C[Saved review report]
  B[GitHub or local Git file metadata] --> C
  C --> D[Proof policy]
  C --> E[Verified people and file statistics]
  D --> F[Public comment renderer]
  E --> F
  F --> G[Review scores and Before merge guidance]
Loading

Technical review

Best possible solution:

Keep factual counts and attribution host-owned, with one actionable proof request and a separate description of the missing scenario.

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

Yes: base source and the supplied before/after rendered comments establish the repeated proof text, misleading test count, and native-source misclassification; this read-only review did not execute target code.

Is this the best way to solve the issue?

Yes: the repairs stay in the existing renderer, report adapters, and file-role owner, while preserving proof gates and tolerating older reports.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

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

Security

None.

Evidence

What I checked:

  • Introduced production changes: The pinned introduction changes presentation, file classification, local file-status normalization, and the retired testing count field; it does not change proof applicability or merge authorization. (src/clawsweeper-review-presentation.ts:443, d34c607a9d7a)
  • Observed renderer output: The complete PR body records compiled production-renderer before/after output using a saved report and real GitHub file lists: repeated proof text disappears, unverified people are omitted, the added-test count becomes zero, and Kotlin production files move into Source. This is direct renderer evidence, not hosted publication proof. (d34c607a9d7a)
  • Related rules change is already merged: fix(review): keep paperwork and stale conflicts out of Before-merge items #1765 removed the live instruction for the retired count and changed model guidance about repetition; its scope does not implement this PR's host-rendering repairs. (instructions/pr-review-rules.md, ef72f4b940b4)
  • Existing-report compatibility: The report parser ignores the retired Added test files line while retaining proof path, missing scenario, and low-value tests. File-status metadata is optional, and legacy reports omit the new count instead of inventing it. (src/clawsweeper-report-parser.ts:248, d34c607a9d7a)
  • Verified attribution boundary is preserved: Public owner projection already discards model-supplied attribution without the host verification receipt; the new list filter suppresses the remaining empty-commit routing placeholders. (src/clawsweeper-regression-provenance.ts:204, d34c607a9d7a)
  • Current-main area history: Current-main history connects Ayaan Zaidi to the product/testing review presentation and Peter Steinberger to proof-policy alignment, provenance verification, local statistics, and shared file-role classification. (src/clawsweeper-review-presentation.ts, ef72f4b940b4)

Likely related people:

  • Ayaan Zaidi: Raw commit 197df62 adds src/clawsweeper-review-presentation.ts:470 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-review-presentation.ts)
  • Peter Steinberger: Raw commit 8d11c21 adds src/clawsweeper-review-presentation.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8d11c21558ba; files: src/clawsweeper-review-presentation.ts)

Review metrics

Metric Value Why it matters
Production and test changes Production +110/-93; tests and test support +214/-55 The modest production growth carries file-status facts through existing owners, with focused rendering and compatibility coverage.

Labels

Label changes:

  • add P2: This corrects misleading review guidance and statistics without changing core runtime availability or merge authority.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This corrects misleading review guidance and statistics without changing core runtime availability or merge authority.
  • 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.

@obviyus
obviyus merged commit 602e573 into main Oct 8, 2026
22 checks passed
@obviyus
obviyus deleted the presentation-dedupe branch October 8, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. 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