Repository navigation
fix: recognize the password-free OCE JDBC test fixture - #2165
Conversation
…on/jdbc-harness-20261106
|
🦞👀 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. What this changesRecognize one password-free JDBC fixture in two pinned Enterprise test-file versions while retaining refusal of other findings. Example: Scanning configuration-controller.test.mjs blob a47ca824f479fc37a2fa63aa9205cf953cdc11a0 at line 5448.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a concrete scanner false positive through the existing exact-attribution policy, with no discrete code defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherBefore launching the review model, the input scanner stages source material, runs native TruffleHog and classifies findings against host-owned policy. flowchart LR
A[Review inputs] --> B[Committed source staging]
B --> C[Native TruffleHog]
C --> D[Exact fixture classifier]
D --> E[Refuse admission]
D --> F[Continue review]
Technical reviewBest possible solution: Keep this exception in the existing host-owned classifier with exact source and metadata pins. Do we have a high-confidence way to reproduce the issue? Current main lacks JDBC qualification, and the inspected fixture plus retained native results establish the refusal path; this review did not execute it. Is this the best way to solve the issue? The focused classifier extension preserves complete-file scanning and existing refusal boundaries without adding a parallel admission mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e625d2ea5f08. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 6, 2026, 8:27 AM ET / 13:27 UTC. |
What Problem This Solves
ClawSweeper flags a password-free JDBC example in an OpenClaw Enterprise configuration test. The test checks how the parser handles an
@outside the URL authority. It makes no database connection.User Impact
Review-input scanning can recognize that example in two reviewed versions of the test file. A changed file or a different JDBC finding still blocks admission.
Why This Change Was Made
Credential verification stays enabled. The rule requires the observed detector, decoder and finding metadata to match. It also checks the entire committed file, its path and mode, and that the scanner reported the exact line containing the fixture.
Documentation Impact
The proof guide explains how to reproduce the result and when a change to the fixture or scanner requires a new review. Proof guide
Real Behavior Proof
On Linux AMD64, TruffleHog 3.99.4 scanned both complete source files with verification enabled. Running
node docs/proof/oce-jdbc-fixture/replay.mjswith the captured output showed that the baseline classifier refused both findings and the proposed classifier recognized both. It rejected 54 altered inputs and four invalid policy variants. In 11 CLI error cases, the replay exited with a fixed message and withheld the input marker. Value-free replay resultsThe earlier hosted scan reported two findings but retained identifying details for only the first. The second historical finding remains unidentified. The OpenClaw Enterprise PR still needs its own complete hosted scan under the deployed policy.
Evidence
The focused fixture suite passed all 570 cases. The proof guide records an earlier failed full check on the first candidate. The final
pnpm run checkpassed on the identical source tree shared by validation commite72a48cdand PR head64bb5e87: 7,061 passed, 22 skipped, zero failed or cancelled.