Skip to content

fix: recognize the password-free OCE JDBC test fixture - #2165

Merged
freeqaz-openai merged 6 commits into
mainfrom
fix/oce-jdbc-fixture-qualification-20261106
Nov 6, 2026
Merged

freeqaz-openai merged 6 commits into
mainfrom
fix/oce-jdbc-fixture-qualification-20261106

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Contributor

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.mjs with 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 results

The 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 check passed on the identical source tree shared by validation commit e72a48cd and PR head 64bb5e87: 7,061 passed, 22 skipped, zero failed or cancelled.

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Recognize 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.

  • Before: The JDBC finding is refused as finding_not_reviewed.
  • After: The exact finding qualifies when its complete source, metadata, path, mode and committed references match.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch is focused and source-reviewed with passing exact-head checks, but its useful classifier replay does not meet the repository's production-path proof requirement.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A password-free parser test fixture prevents an Enterprise change from reaching code review.
Reason: This repairs a specific false positive using the established qualification contract; the supplied maintainer-authored designation establishes direction approval.

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
Reviewed head: 64bb5e8775eec5f74e5a1e5cbd00d476a91a166c

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied run exercises the production scanAgentInput admission path with the pinned source range and an unreviewed-finding refusal control.
Agent review details

How this fits together

Before 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]
Loading

Technical review

Best 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

  • Exact native metadata classification keeps the original intent (c338967: Recognize reviewed synthetic findings while retaining detector, decoder, source and metadata boundaries.)
  • Complete-source restrictions keeps the original intent (f7c8c55: Replace broad historical fixture qualification with exact whole-source pins.)
  • Literal witnesses and detector-specific handling keeps the original intent (a56aed8: Qualify one observed non-URI finding through complete source witnesses and exact native metadata rather than a broad exemption.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit c338967 adds src/agent-input-scan-fixtures.ts:503 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c33896727985; files: src/agent-input-scan-fixtures.ts)
  • Peter Steinberger: Raw commit 1358628 adds src/agent-input-scan-fixtures.ts:290 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 13586288bac0; files: src/agent-input-scan-fixtures.ts)
  • Dallin Romney: Raw commit f7c8c55 adds src/agent-input-scan-fixtures.ts:1090 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f7c8c55f33a2; files: src/agent-input-scan-fixtures.ts)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A specific synthetic fixture blocks review admission, with limited scope and no demonstrated broader runtime regression.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A specific synthetic fixture blocks review admission, with limited scope and no demonstrated broader runtime regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Supply the production admission evidence described in realBehaviorProof.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 6, 2026, 8:27 AM ET / 13:27 UTC.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 6, 2026 13:30
@freeqaz-openai
freeqaz-openai merged commit 35656eb into main Nov 6, 2026
37 checks passed
@freeqaz-openai
freeqaz-openai deleted the fix/oce-jdbc-fixture-qualification-20261106 branch November 6, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant