Repository navigation
feat(review): clarify regression provenance output - #1027
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 6:13 AM ET / 10:13 UTC. ClawSweeper reviewWhat this changesAdds conservative rewritten-history regression provenance, durable report fields, and public rendering that distinguishes suspected related PRs from exact verified attribution. Merge readinessKeep open for normal maintainer landing review: current main still supports only exact blame-to-merge provenance, while this branch adds the requested cautious rewritten-history path and resolves the prior unsafe-author blocker. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper converts review decisions into durable reports and GitHub comments. This provenance layer validates a model-supplied source-line candidate against Git and pull-request metadata before report and comment rendering. flowchart LR
A[Review decision] --> B[Provenance candidate]
B --> C[Git and pull metadata verifier]
C --> D{Verified or cautious evidence}
D --> E[Durable review report]
E --> F[Public review comment]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the conservative verification boundary and land the report/parser/rendering change with its legacy and unsafe-author coverage intact. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds internal review-reporting behavior rather than addressing a user-reported runtime failure. Is this the best way to solve the issue? Yes: the verifier keeps exact attribution authoritative and limits rewritten-history output to a clearly labeled, fail-closed relation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 463edfe33f39. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (53 earlier review cycles; latest 8 shown)
|
8a4b4a6 to
2953c07
Compare
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
2953c07 to
62fc8a6
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Problem
The exact review added by #1023 could identify a rewritten-history source commit and author without visibly connecting it to the associated PR. That made otherwise useful provenance incomplete for maintainers. This follow-up preserves the strict verified contract while making cautious evidence explicit and useful.
Implementation
no PR verified(#PR)subject association, mainline ancestry, and exact normalized patch equality preserving paths, hunk locations, and surrounding context; ambiguity fails closedMaintainer policy decision
Martin explicitly chose the public-attribution behavior implemented here: when evidence exists, show the source commit, linked PR when safely resolved, source author, and clear
suspectedversusverifiedstatus together. Suspected output is non-blaming and must not claim causality. Rewritten-history association remains conservative and fails closed tono PR verified. If an author is unsafe to publish, verified canonical attribution is retained while the author/source pair is omitted.Validation
Current head:
62fc8a6cb4ba169697e6bb61561ef7fde76eec84Current base and merge-base:
463edfe33f39954bc2483a4d9b2ae382cd5ffa10tsc -p tsconfig.json,tsc -p tsconfig.repair.json,tsc -p tsconfig.dashboard.json— passednode --test test/regression-provenance.test.ts test/review-comment-rendering.test.ts test/decision-parser.test.ts test/codex-review-runner.test.ts— 92 passed, 0 failedgit diff --check origin/main...HEAD— passedcodex.exe review --uncommittedfor the unsafe-author repair — clean; no actionable findingscodex.exe review --base origin/mainon the exact current head/base — clean; no actionable correctness defect (conservative validation, safe rendering/persistence, focused coverage)keep_open, high confidence,action=kept_open, no failure; artifactlocal-range-1786356010815-25756Real Behavior Proof
Crabbox source sync failed before command execution across both the required
local-containerlane and configured AWS fallback with zero-byte rsync protocol error 12. Martin explicitly authorized direct local Docker as a bounded exception for this PR. No Crabbox run is claimed as successful.Focused direct-Docker proof
This first receipt predates the final rebase and established the focused deterministic contract at head
2953c076bd81e245041137c4ba560d3fb2d00d76; the same focused suite was rerun locally at the current head with 92/92 passing.mcr.microsoft.com/playwright:v1.60.0-noble; image digestsha256:9bd26ad900bb5e0f4dee75839e957a89ae89c2b7ab1e76050e559790e946b948; Node 24.15.0; pnpm 11.10.002094ad489913a1f78ac9a27b12685cd5643a1cb24da23a34753dce1de705397csw116-pr1027-proof-20260810a/774b7942f99cc3aa91e48eaf3f29aeebcc007eedb277d8f2c0bc084f0cda9936die exitCode=0thendestroy; no matching container remainedCurrent-head end-to-end provenance trace
62fc8a6cb4ba169697e6bb61561ef7fde76eec84; base/merge-base463edfe33f39954bc2483a4d9b2ae382cd5ffa10; harness SHA-25682eb36be2d703c8eb195e79661c3d949a804071db270a6ac5966adc46d8133decsw116-pr1027-e2e-finalbase-20260810a/7d6d7d471beeee643c32c2af86129385ad963aa3d5c16f4d904ec3904856e474.gitmounted read-only; source copied to container-only storage; exact head, merge-base, and harness hash verified in-containersrc/clawsweeper-policy.ts:759, commitbb69d1fc582d46298df0f26f9192f721f976e9f4by Martin Clearybuild:allpassed; 6 end-to-end tests passed, 0 failed; container exit 0; 18.700sexitCode=0/destroy; no residual containerCrabbox limitation
Crabbox 0.40.0 provisioned local-container and AWS leases, but every valid attempt failed before the proof script with rsync protocol error 12 and zero bytes transferred, including a local
--debug --full-resyncrecovery. All owned leases were released. The direct-Docker proofs above exercise the changed behavior but do not repair or validate Crabbox transport.Risks / Rollout
Related
Release-note context: ClawSweeper regression provenance now presents commit, author, status, and a verified or safely related PR together without overstating causality.