Repository navigation
fix(review): preserve dependency links and avoid diagnostic storage warnings - #1341
Conversation
Carry repository identity and full source SHAs through structured evidence, report serialization, parsing, and both public comment paths. Keep dependency docs and VISION references on their own repository and revision; do not guess links for unresolved or conflicting locations. Do not treat generic diagnostic identifiers as vector persistence evidence. Recognize Go test files through the shared role owner while retaining real storage, migration, rename, and incomplete-evidence warnings. Include before/after regressions and a reproducible offline production-boundary proof with sanitized observations. No OpenClaw product or translation changes. Reproduction: openclaw/openclaw#134934 (comment) Clarification: openclaw/openclaw#134934 (comment)
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 5:41 PM ET / 21:41 UTC. ClawSweeper reviewWhat this changesThe branch preserves the source repository and full revision for evidence links, while excluding diagnostic Go test files and generic identifiers from persistence-change warnings. Merge readinessThis PR remains necessary: its verified introduced delta repairs review-link identity and false stored-data gating that are not present in the fetched base. The current-head implementation and supplied before/after proof show no actionable defect. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper converts structured review evidence into durable records and public comments, while its change classifier decides when a reviewed PR needs stored-data migration scrutiny. Repository identity and file-role classification feed those outputs and review gates. flowchart LR
A[Structured review evidence] --> B[Evidence normalization]
B --> C[Durable review report]
C --> D[Public review comment]
E[Changed PR files] --> F[Stored-data classifier]
F --> G[Migration review gate]
D --> H[Maintainer decision]
Before merge
Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Land the focused identity and classifier repair with its exact-destination and persistence-control coverage intact. Do we have a high-confidence way to reproduce the issue? Yes: the supplied current-head replay records the prior failing renderer/classifier cases and the candidate’s observed passing results, with retained persistence controls. Is this the best way to solve the issue? Yes: carrying verified repository identity through the existing report pipeline and narrowing detection to storage evidence is the smallest maintainable repair. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5121370cfadc. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Replace substring URL assertions with parsed href membership. Prose and lookalike link destinations can no longer satisfy the evidence-link oracle. Add a counterexample covering details blocks, visible URL text, and a lookalike href. This addresses the two test-only CodeQL annotations without suppressions or changes to production URL handling.
|
@clawsweeper re-review Addressed the CodeQL disposition and rank-up action on a9455acae0ab. Both annotations were in The current CodeQL result gate is successful. The two outdated annotation threads are resolved, and the main PR body now contains their exact locations, data-flow disposition, and updated proof. Validation on this head: node --test test/review-comment-rendering.test.ts test/decision-parser.test.ts70 tests passed; the broader nine-suite set passed 268 tests. Fresh precommit and committed-branch Codex autoreviews are scoped-clean at the default P0 threshold. node docs/proof/review-evidence-identity/run-proof.mjsPassed on this exact head: eight evidence cases and three storage cases. The recorded baseline failures and positive storage controls remain in the linked proof artifact. The Windows launcher and sparse-build checks are successful; the full The documented pre-existing local macOS launcher prerequisite gap is unchanged. OpenClaw PR 134934, translation/provider canaries, model/toolchain settings, and translation dispatches remain outside this work. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Routing prose was being inferred as actionable merge work, creating a bogus checkbox and remaining-item count on otherwise clean reviews. Carry producer-owned typed next-step intent through the canonical report into the checklist renderer. Explicit non-actions suppress only the derived next-step item; absent, malformed, or ambiguous intent retains conservative legacy compatibility. Genuine required actions and independent blockers remain visible, with scores and repair/automerge markers unchanged. Validation: 200 focused tests, 10 paired compiled-renderer replay cases, and the producer/report round-trip passed. Full pnpm check CI, CodeQL, Windows launcher, and sparse build passed on the reviewed head. Related reproduction: #1341 (comment)
What Problem This Solves
Fixes an issue where reviewers following dependency evidence links were sent to the reviewed repository instead of the dependency repository. The same review could also label diagnostic-only changes as a persistent vector/embedding data-model change and ask for migration proof that did not apply.
Concrete reproduction: the docs-i18n review on OpenClaw PR 134934, with the maintainer clarification. That PR and OpenClaw product code are not changed here.
Why This Change Was Made
Repository identity was absent from structured evidence, and saved-report parsing discarded URL destinations and full commit identifiers before reconstructing links. The repair carries an explicit repository through the decision, report, and close/keep-open rendering pipeline. It preserves commit-pinned dependency URLs, keeps the target's docs and latest-VISION conventions target-only, and leaves conflicting or unresolved locations unlinked rather than guessing.
The persistence classifier previously treated generic words such as
chunkIDandmetadataas vector-storage evidence anywhere in changed code, including logging. Generic identifiers now require the existing owner-path or same-hunk storage evidence; explicit vector contracts and real storage/schema/migration signals retain their warnings. Go*_test.goclassification is shared with the file-role owner, including PR surface statistics.User Impact
Evidence links lead to the correct source repository and revision. Diagnostic-only Go changes no longer produce a false migration-proof request. Real persistence changes, renamed production storage, and missing/truncated known-storage evidence remain review-gated.
Historical Markdown reports remain readable. Correct explicit destinations retain their identity and full SHA; already-wrong historical destinations cannot have lost ownership inferred automatically. This does not edit the existing public review or change close/repair/merge policy.
OpenClaw Bay Impact
None. Per-evidence source locations and this existing classifier projection do not change Bay's observer API, lifecycle schema, routes, or controls.
Documentation Impact
Updates the active implementation reference
docs/pr-review-comments.mdwith repository identity, unknown-location behavior, Go test roles, and the persistence evidence boundary. The review prompt now requires per-entry repository ownership and separate entries or explicit links for mixed-repository evidence. The reproducible script underdocs/proof/review-evidence-identity/is historical proof, not operator policy.Evidence
Local validation on Node 24.20.0 / repository-pinned pnpm 11.10.0 passed:
pnpm run build:all, the nine focused suites (268 tests),pnpm run check:static,pnpm run lint, proof-script lint/syntax checks, andgit diff --check.Precommit Codex autoreviews are scoped-clean at the default P0 threshold. A separate committed-branch review is required and checked before landing.
Known pre-existing local validation gap: the full macOS run had 4,294 passes, nine platform skips, and three failures. The Knip deadline and Git history-fixture failures passed isolated reruns. The unchanged label-proof harness still encounters a two-second process-identity deadline because Apple's system Python launcher performs
xcruncache work before entering Python; traced startup exceeded eight seconds. An incomplete bytecode-only mitigation was removed. This PR does not change that host prerequisite, interpreter, identity safety, or deadline. The same baseline's hosted full CI is green; green exact-head CI is required before merging this PR.CodeQL Review Disposition
The two GitHub Advanced Security annotations (first assertion, second assertion) point to URL substring assertions in
test/review-comment-rendering.test.ts, originally lines 177 and 180. Their inputs are synthetic renderer fixtures, and their result is a Node test assertion; neither is a production URL sanitizer or authorization decision.The test oracle is now stronger: it parses actual Markdown link destinations with the existing MarkdownIt dependency and compares exact hrefs rather than searching the whole output text. A counterexample inside a details block proves that visible URL prose or labels paired with a lookalike href cannot satisfy the expected destination. The related source, commit, docs, VISION, and unresolved-location checks use the same exact-destination boundary.
This addresses the ClawSweeper rank-up action by tracing both alerts and improving the regression coverage. No suppression, alert dismissal, new dependency, production URL-handling change, or security exception was added. The production replay remains passing; fresh exact-head CodeQL results are required before merge.
Real Behavior Proof
Claim and surface: the actual compiled public-review renderer preserves dependency identity, and the actual persistence classifier does not gate the captured diagnostic-only diff while retaining a genuine stored-data control.
Scenario: the cited Codex source at commit
78c290807ce710180111df227df3b7a4fe845452, the captured diagnostic patches from OpenClaw PR 134934, and synthetic complete review metadata. No live GitHub mutation or model inference is involved in the offline replay.Command:
Observed result and artifacts: the same script exits 1 against a separately compiled
48bd2b42f1dd0504c9afc8643c9781290604b3b2baseline and exits 0 against this candidate. The sanitized replay summary records all assertion failures and storage controls; the reproducible recipe emits all eight evidence cases.openclaw/openclaw(incorrect)openai/codexThe source URL in
openai/codexreturned HTTP 200 while the incorrectopenclaw/openclawdestination returned HTTP 404. The pinned sibling source blob was inspected directly and its SHA-256 is recorded in the summary.Limits: this is controlled offline execution of the changed production boundary, not a new model/translation canary or live comment publication. Unit tests and CI are supporting checks rather than claims of live translation behavior.
Scope and size
Production code and schema/prompt contract: +206/-57 (net +149). Tests and proof support: +823/-8, including the durable replay recipe and sanitized result. Active documentation: +28/-8. Production growth carries repository identity through the existing owner pipeline; the classifier repair itself is net +4 lines.
No new dependencies, configuration options, storage backend, or protocol version. Implementation-close evidence ownership is a separate follow-up, not an expansion of this renderer repair.
Maintainer edits
The branch is in the owner repository and remains editable by maintainers.