Repository navigation
fix(scan): admit renamed browser CDP discovery fixture - #2111
Merged
Merged
Conversation
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]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Reviews of any OpenClaw PR touching
extensions/browser/src/browser/pw-session.connections.test.tsare 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 digest285d12cc…). openclaw/openclaw#160892 renamed the variable toendpoint, so the unchanged URL now sits on a line hashing to3237384b…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
renamed browser sessionregression intest/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. Fulltest/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
scanAgentInputvia the unmodifieddocs/proof/native-worker-fixtures/run-proof.mjs, TruffleHog 3.99.4 (linux_arm64, release checksume6285aff…),node:24-bookworm(Node 24.22.1) in Docker with--network noneand a cleared environment. Target: OpenClaw base51959d9247b7→ PR #185028 head0e69baee818c; no OpenClaw code executed.main549114c4unclassified_finding/literal_mismatch, blobab575cd0, decoder HTML — identical to the hosted failure diagnosticBoth findings carry line digest
3237384b…. The hosted review must still scan its own complete inputs after this merges and deploys.