Skip to content

fix(scan): admit renamed browser CDP discovery fixture - #2111

Merged
obviyus merged 1 commit into
mainfrom
fix/browser-cdp-fixture-rename
Oct 28, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/browser-cdp-fixture-rename

Conversation

@obviyus

@obviyus obviyus commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reviews of any OpenClaw PR touching extensions/browser/src/browser/pw-session.connections.test.ts are refused by the input scanner (unclassified_finding / literal_mismatch, exit 79). Example: openclaw/openclaw#185028, failed run https://github.com/openclaw/clawsweeper/actions/runs/40544024279.

Why This Change Was Made

The synthetic credentialed CDP URL in that test was qualified for openclaw/openclaw#153597, bound to its complete source line (const cdpUrl = "…/cdp";, line digest 285d12cc…). openclaw/openclaw#160892 renamed the variable to endpoint, so the unchanged URL now sits on a line hashing to 3237384b… and no longer matches.

This adds PLAIN and HTML entries for the same path, mode and value digests (58e53993… / a2b7cdba…) with the new full-line digest. The original entries stay for older bases. No file, domain, detector or decoder allowlist is widened.

User Impact

Reviews proceed when this existing fixture is the only scanner blocker.

OpenClaw Bay Impact

No queue, status, publication or dashboard contract changes.

Documentation Impact

None; the exact-fixture qualification contract is unchanged.

Evidence

  • New renamed browser session regression in test/agent-input-scan-fixtures.test.ts (12 cases: add/remove/context admission plus literal, line, path, mode, role, revision, verified, decoder and extra-occurrence refusals). Without the policy change its 3 admission cases fail; with it all 24 browser-session cases pass. Full test/agent-input-scan-fixtures.test.ts: 500/500.
  • pnpm run check:fast (static checks, all builds, lint) passes. Full coverage suite not run locally.

Real Behavior Proof

Production scanAgentInput via the unmodified docs/proof/native-worker-fixtures/run-proof.mjs, TruffleHog 3.99.4 (linux_arm64, release checksum e6285aff…), node:24-bookworm (Node 24.22.1) in Docker with --network none and a cleared environment. Target: OpenClaw base 51959d9247b7 → PR #185028 head 0e69baee818c; no OpenClaw code executed.

Policy Staged inputs Native findings Result
main 549114c4 19 2 (base line 213, head line 214; both unverified URI) Refused: unclassified_finding / literal_mismatch, blob ab575cd0, decoder HTML — identical to the hosted failure diagnostic
This branch 19 2 (same) Admitted, one classification notice

Both findings carry line digest 3237384b…. The hosted review must still scan its own complete inputs after this merges and deploys.

OpenClaw #160892 renamed the fixture's variable from cdpUrl to endpoint, changing the bound source-line digest. Reviews of PRs touching pw-session.connections.test.ts were refused as literal_mismatch.

Co-authored-by: obviyus <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@obviyus
obviyus merged commit 742f520 into main Oct 28, 2026
22 checks passed
@obviyus
obviyus deleted the fix/browser-cdp-fixture-rename branch October 28, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant