You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2129a78
Browse filesBrowse the repository at this point in the historyBrowse files
fix(review): stop attributing main-only changes to PRs (#1265)
Supply host-pinned merge-base introduction evidence separately from main-only and endpoint drift. Verify test-merge parents, retain explicit unknown/truncation states, and require causal ownership across findings and derived review guidance without suppressing valid cross-file regressions.
Distinguish ordinary Markdown beside source from storage-contract evidence. Qualify review/repair fetch source refs so pruning cannot remove the target branch, and keep the dependency-free retry regression independent of host pnpm.
Verified with real Git topology regressions, fresh read-only CLI/model negative and positive controls on the exact reviewed head, 262 focused checks, and the complete local gate: 3,785 passed, 9 platform skips, zero failures. Exact-head hosted CI and the current-body ClawSweeper review are clean; the prior changelog-scope finding was rejected with policy evidence and cleared on re-review.
PR: #1265
CI: https://github.com/openclaw/clawsweeper/actions/runs/33082263194
Review: #1265 (comment)
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ checkpoint, and status-only commits are intentionally omitted.
19
19
20
20
### Changed
21
21
22
+
- PR reviews now separate introduced changes from main-only drift, verify test-merge parents, and avoid stored-data warnings for ordinary Markdown prose beside source.
23
+
- Review and repair fetches preserve the target branch ref when Git pruning is enabled.
22
24
- Default close-mode apply runs now requeue up to five exact re-reviews for records whose close was blocked by source drift or an unverified-checkout review, so stale backlog records converge to closeable instead of being skipped by every cursor sweep.
23
25
- Live verification now publishes a sanitized, capped dev-server log tail when browser startup fails, and detects a start command that exits before its URL becomes reachable without waiting for the readiness timeout.
24
26
- Live verification now installs a missing target package manager on demand after execution is approved, publishes installer failures as verification results, and guides plans toward stable assertions the run can satisfy.
Copy file name to clipboardExpand all lines: prompts/review-item.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,30 @@ The checkout must remain byte-for-byte clean. Use read-only inspection commands
69
69
70
70
Review deeply before closing. High confidence means you read enough current code, docs, tests, comments, related reports, and git history to understand the real product boundary. Do not decide from the issue title, one exact `rg` hit, or one nearby file. Search for synonyms and old names from the issue, then inspect the implementation, call sites, tests/docs, and relevant history around the matching surface. Prefer several independent checks over a single brittle match. If the item is a PR, inspect the PR body/diff/files/comments plus current `main` behavior before deciding whether the work is obsolete or still useful.
71
71
72
+
For PR ownership, start with the host-computed `PR Introduction Evidence`.
73
+
`introduced` is the pinned merge-base..head delta; `endpointDrift` is base..head
74
+
and is not introduction evidence. `baseChanges` and `baseOnlyFiles` identify
75
+
base-branch work, not edits by this PR. `checkoutSha` records the actual local
76
+
revision; `fetchedMainSha` is behavioral context and may differ from both the
77
+
checkout and the pinned PR base. GitHub `pullFiles` supplies bounded PR patches,
78
+
not an endpoint comparison; check truncation and pinned identities before use.
79
+
When host evidence is unavailable, ambiguous, or incomplete, say what is missing
80
+
and use only independently verified introduced hunks. Never guess ownership from
81
+
an older head's contents or a current-main comparison.
82
+
83
+
Every finding must identify an actual introduced trigger and its causal link to
84
+
the failure. An untouched affected file is a valid finding location when another
85
+
introduced hunk causes the regression; this is not a changed-file allowlist.
86
+
Current main versus an older head cannot establish a revert or downgrade. For
87
+
a claim about what merging would remove, verify the test merge has exactly the
88
+
pinned main/base parent followed by the exact head parent, then compare its
89
+
result against that main parent. Do not substitute a final merge commit, stale
90
+
test merge, or `mergeable` metadata. A clean merge does not rule out semantic
91
+
regressions. Apply this ownership check to all derivative risks, labels, scores,
92
+
compatibility warnings, and recommended fixups, not only `reviewFindings`.
93
+
Before returning the decision, remove or correct claims whose introduced trigger
94
+
was disproved; unavailable evidence is not an automatic pass or a contributor defect.
95
+
72
96
Every review must answer whether the item is still necessary. For both issues
73
97
and PRs, check whether current `main` already solves the central user problem,
74
98
whether the fix is in the latest release or main-only, and whether a merged or
@@ -667,7 +691,10 @@ Durable Object or hosted storage schemas, serialized JSON state written to disk
667
691
or a database, vector or embedding row identity/query-compatibility metadata,
668
692
and doctor, repair, migration, or backfill code that rewrites persisted state.
669
693
Do not treat pure query-only changes or non-semantic docs wording as data-model
670
-
breakage by default. When a PR materially changes a stored data model, require
694
+
breakage by default. Markdown beside source is not automatically runtime code:
695
+
distinguish prose from changed machine-consumed frontmatter, configuration, or
696
+
persisted-format contracts; unchanged frontmatter is not an introduced trigger.
697
+
When a PR materially changes a stored data model, require
671
698
maintainer-visible migration or upgrade compatibility proof before any pass,
- The target checkout is read-only for review. Do not modify repository files; use the scratch directory or /tmp for downloaded evidence and generated video stills/contact sheets.
484
502
- A token-light maturity helper is available at ${maturityHelperPath}. For issue maturity labels, first run \`node "$CLAWSWEEPER_PROOF_SCRATCH_DIR/maturity-stable-shortlist.mjs"\` from the target checkout and compare the issue against that shortlist; read the full scorecard or taxonomy only if the shortlist is ambiguous.
0 commit comments