Repository navigation
fix(review): admit exact reviewed plugin fixtures in patches - #1602
Conversation
Punchcard-Session: crisp-timber-valley-1q
Punchcard-Session: crisp-timber-valley-1q
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 8:02 PM ET / September 17, 2026, 00:02 UTC (Revision 3). ClawSweeper reviewWhat this changesExtends secret-scan admission to exact approved plugin fixtures in committed additions and removals, strengthens patch validation, and corrects a telemetry test’s clock. Merge readiness✅ Ready for maintainer review The prior coordinate finding and rank-up request are addressed. No remaining actionable defect was found; current main does not provide the changed-line admission this PR adds. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper scans prompts, Git patches, and source blobs before sending review inputs to an agent. Its fixture classifier permits narrowly approved synthetic credentials while refusing findings that lack matching source evidence. flowchart TD
A[Prompt and committed source] --> B[Native secret scanner]
B --> C[Fixture classifier]
D[Approved fixture identities] --> C
E[Git blobs and raw diff records] --> C
C --> F[Admit review inputs]
C --> G[Refuse unqualified findings]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep one source-bound admission parser that accepts explicitly reviewed synthetic fixtures while preserving complete native scanning and refusal of unqualified findings. Do we have a high-confidence way to reproduce the issue? Not applicable as a new admission capability; main’s context-only restriction is source-confirmed, and the supplied native before/after runs demonstrate the motivating refusals. Is this the best way to solve the issue? Yes. Extending the existing parser and reusing exact full-blob classification is a narrow solution, and the prior coordinate defect is repaired. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f48f1cee58c5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Punchcard-Session: crisp-timber-valley-1q
|
@clawsweeper re-review The zero-count coordinate finding and its Rank-up move are addressed at |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What Problem This Solves
The plugin settings reviews in OpenClaw #149330 and #150234 stop on synthetic URL-redaction fixtures.
User Impact
Reviewed synthetic fixtures can pass source scanning when their exact committed bytes qualify. Hosted review must still complete its normal input and review gates. No OpenClaw installation or user configuration changes are required.
Why This Change Was Made
Qualify four observed URI tuples by exact detector, decoder, value digests, ordered whole-line digests, source path and regular-file mode. Extend the existing patch parser so exact reviewed fixtures can bind to added or removed committed lines, including new and deleted files.
Changed lines still pass the existing recursive fixture classifier. A new/deleted file also needs one matching host-captured raw Git record proving its absent endpoint, a rehashed present blob, and a complete matching hunk. Every retained source reference must qualify. Legacy value/path-only rows remain context-only. The complete original patch and blobs, native verification, completion checks and detector-58 supplemental scan stay unchanged.
The parser now removes the split terminator before counting source lines: a malformed hunk could otherwise consume a nonexistent trailing blank line. A separate one-line test correction passes the fixture clock to telemetry inventory lookup; its September 2 records had started expiring under the real clock. Runtime retention and all existing assertions are unchanged.
Real Behavior Proof
Candidate
a7bfde77d197b698a17e43cee3fc6d6280be21ffhas the exact six source files used by the final recorded proof. The final parser SHA-256 isa1bd5b0504259464aa8bcf35cc171b63cb89366f6cc64e1b3eb9e026bea3e3ae; the scanner classifier is unchanged from the original candidate. Pinned native TruffleHog 3.97.4, macOS arm64, Node 24.19.0, pnpm 12.4.1, canonical verification enabled, complete committed ranges and a controlled prompt:f48f1cee58c53a4f9db62ee4..598dc5aebd5a(#149330)1062e94262d4..cc8e264b6d14(#150234)The first range contains 42 changed paths and 74 unique blobs; the second contains 143 paths and 270 unique blobs. Observed
PLAINandHTMLtuples are bound individually; no domain-based exemption or ignored input is added. The source parser and compiled output hashes were recorded before the final scans. Safe result SHA-256 values:9d501f9998d9b64f0d8b27ed68424b66e34146d8cbaaba318aa5b4b1646a6d9fand344bd63f3227ccd6f78e4faa45541466334391af2ccd58489d64e28b9171b568.Reproduce through the existing canonical proof entry point after building this branch:
Limits: this runs the actual scanner, not a model. Hosted review must still admit its own frozen prompt, schema and source inputs. Native Git A/D records, endpoint absence and blob hashes were also independently checked. References cover captured changed endpoints, not every repository alias;
--no-renamescan represent a logical rename as separate D/A records.Evidence
pnpm run check: 6,248 passed, 36 skipped, 0 failed; build, formatting, types and coverage checks passed. Candidate native self-scan admitted in 5,764 ms with zero findings and no source-binding drift. The two target scans admitted in 3,095 and 3,839 ms.a7bfde77d197againstf48f1cee58c5with zero findings; all six source hashes match the final full-suite and native-scan proof.Production: +129/−35, net +94. The final repair adds 7 production lines by absorbing the old A/D-only checks into canonical hunk bounds. This capability requires explicit absent-endpoint and changed-line source proof; it extends one parser and reuses the existing classifier. Tests: +377/−8; docs: +61/−23. No configuration, workflow, dependency, persistent schema or permission change. OpenClaw Bay is unaffected: no dashboard API or public action surface changes.
OpenClaw Bay Impact
Bay is unaffected: no dashboard API, lifecycle state or public action surface changes.
Documentation Impact
Updated the active canonical scan contract in
README.mdand the existing proof recipe indocs/proof/agent-input-scan-context/README.mdfor exact changed-line admission and raw Git absence proof. The scan/parser owners remain the source of truth; detector, capture or admission changes require those descriptions and the executable proof to be refreshed.