Skip to content

fix(review): admit the approved browser CDP fixture - #1620

Merged
steipete merged 1 commit into
mainfrom
codex/qualify-browser-session-fixture
Sep 20, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qualify-browser-session-fixture

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

ClawSweeper refuses the browser automation repair in openclaw/openclaw#153597 because its unchanged credentialed-CDP discovery test contains a synthetic URI that has not been qualified.

User Impact

The approved browser test can pass input admission and reach review. Altered or unrelated findings remain blocking.

Why This Change Was Made

Adds only the two maintainer-approved URI detector 17 PLAIN/HTML records. Each binds the exact Raw/RawV2 digests, complete source line, original test path, regular-file mode, and committed base/head references. Scanner options, verification, completion checks, and execution gates are unchanged. The regression reuses the existing exact-fixture harness.

OpenClaw Bay Impact

Unaffected: this changes host-side fixture admission only, with no dashboard API, telemetry schema, or public action changes.

Documentation Impact

Updated the active scanner-policy description in README.md. The historical proof section and retained JSON bind the observed behavior to the immutable source range below; future fixture identity changes require fresh qualification and proof.

Real Behavior Proof

Claim and surface: the canonical scanAgentInput entry point admits the approved fixture while still rejecting a one-byte change. The complete OpenClaw source range is ca128370df1057f5d1169e5918dfe551ac212a81..2d674c57c1d9e5e174c0cecc6961763cf4230157.

Environment: macOS arm64, Node 26.8.2, pnpm 12.4.1, pinned native TruffleHog 3.97.4 with canonical verification enabled; local host, no container image or lease.

pnpm run build:node
node docs/proof/agent-input-scan-context/run-proof.mjs \
  /path/to/disposable/openclaw-at-pr-head \
  ca128370df1057f5d1169e5918dfe551ac212a81 \
  2d674c57c1d9e5e174c0cecc6961763cf4230157 \
  /path/to/browser-session-admission.json

Before: ClawSweeper main 20e7ed8e9aab5e58217708f4aebe89d3af157b8f refused with findings / literal_not_reviewed. After: the identical complete range admitted in 6.4 seconds, classifying this fixture at both endpoints and the separately approved documentation fixture. A disposable one-byte fixture mutation still refused with literal_not_reviewed.

Commands, identity evidence, before/after results, and negative-control records are committed with this PR. Only safe hashes and classification metadata are retained.

Limits: no model ran in the controlled proof. Hosted review must independently scan its own prompt, schema, and complete source inputs.

Evidence

The three new positive regression cases failed on the unqualified policy. The candidate covers real Git-generated additions, removals, context, both qualified decoders, and refusal of altered values, lines, paths, modes, roles, verification, decoder, and extra occurrences.

Independent review of the complete candidate is clean through P2. Repository CI remains required before landing.

@clawsweeper

clawsweeper Bot commented Sep 20, 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.

@steipete
steipete marked this pull request as ready for review September 20, 2026 16:20
@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 12:23 PM ET / 16:23 UTC.

ClawSweeper review

What this changes

Adds exact scanner identities for OpenClaw’s synthetic browser discovery credential fixture, with regression coverage and native scan evidence.

Merge readiness

✅ Ready for maintainer review

This remains useful: current main lacks the exact browser fixture qualification. The narrow policy addition preserves the existing rejection checks, and the recorded native before/after and mutation proof supports it. No actionable defect found.

Priority: P2
Reviewed head: 7ce422a36b1cd827e896663e48e757d7b7cb5b69

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, maintainable repair with native positive and negative evidence and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The committed harness exercises scanAgentInput with native TruffleHog 3.97.4 on macOS arm64: the complete pinned range admits after qualification, while a one-byte mutation refuses before model execution. Retained identities cover both decoders; the complete-range trace observed PLAIN.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The committed harness exercises scanAgentInput with native TruffleHog 3.97.4 on macOS arm64: the complete pinned range admits after qualification, while a one-byte mutation refuses before model execution. Retained identities cover both decoders; the complete-range trace observed PLAIN.
Evidence reviewed 7 items Applicable repository policy: Read the complete root AGENTS.md. No nested AGENTS.md files or maintainer-notes directory were present. Applied the narrow-change, real-proof, and Bay-impact guidance.
Exact qualification and unchanged guards: The introduced production delta adds two URI identity rows and permits their source in policy validation. Existing classification still requires both value digests, matching full-line witnesses, regular-file mode, committed endpoint roles, unverified findings, and matching native metadata.
Production-path proof: Inspected the harness and all five browser-session JSON artifacts. The harness invokes scanAgentInput with the complete committed range; native TruffleHog 3.97.4 on macOS arm64 changes from refusal to admission in 6408 ms, while a one-byte mutation remains refused. The complete-range run observed PLAIN; the retained identity evidence also records HTML. No model execution is claimed.
Findings None None.
Security None None.

How this fits together

ClawSweeper scans review inputs before sending them to a model. Its host-owned fixture policy classifies known synthetic credentials while blocking unmatched findings.

flowchart TD
  A[Committed source and review inputs] --> B[Native secret scan]
  B --> C[Exact fixture policy]
  C --> D{All findings qualify?}
  D -->|Yes| E[Admit review inputs]
  D -->|No| F[Refuse review]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta Production +4/-0; tests +95/-70 Production growth is limited to the justified fixture qualification; the test delta reuses the existing harness.

Technical review

Best possible solution:

Use the existing exact-attribution policy for this synthetic fixture while retaining native scanning and rejection of altered or unrelated findings.

Do we have a high-confidence way to reproduce the issue?

Yes: the pinned source range and native before-scan artifact identify the exact main-branch refusal. Source inspection confirms the missing qualification; this review did not rerun the scanner.

Is this the best way to solve the issue?

Yes: extending the existing exact identity table is a narrow repair, and the native mutation control demonstrates that changed credentials remain blocked.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 20e7ed8e9aab.

Labels

Label changes:

  • add P2: Repairs a bounded review-admission false positive affecting an existing browser test fixture.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The committed harness exercises scanAgentInput with native TruffleHog 3.97.4 on macOS arm64: the complete pinned range admits after qualification, while a one-byte mutation refuses before model execution. Retained identities cover both decoders; the complete-range trace observed PLAIN.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The committed harness exercises scanAgentInput with native TruffleHog 3.97.4 on macOS arm64: the complete pinned range admits after qualification, while a one-byte mutation refuses before model execution. Retained identities cover both decoders; the complete-range trace observed PLAIN.

Label justifications:

  • P2: Repairs a bounded review-admission false positive affecting an existing browser test fixture.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The committed harness exercises scanAgentInput with native TruffleHog 3.97.4 on macOS arm64: the complete pinned range admits after qualification, while a one-byte mutation refuses before model execution. Retained identities cover both decoders; the complete-range trace observed PLAIN.
  • proof: sufficient: Contributor real behavior proof is sufficient. The committed harness exercises scanAgentInput with native TruffleHog 3.97.4 on macOS arm64: the complete pinned range admits after qualification, while a one-byte mutation refuses before model execution. Retained identities cover both decoders; the complete-range trace observed PLAIN.

Evidence

What I checked:

  • Applicable repository policy: Read the complete root AGENTS.md. No nested AGENTS.md files or maintainer-notes directory were present. Applied the narrow-change, real-proof, and Bay-impact guidance. (AGENTS.md:85, 7ce422a36b1c)
  • Exact qualification and unchanged guards: The introduced production delta adds two URI identity rows and permits their source in policy validation. Existing classification still requires both value digests, matching full-line witnesses, regular-file mode, committed endpoint roles, unverified findings, and matching native metadata. (src/agent-input-scan-fixtures.ts:251, 7ce422a36b1c)
  • Production-path proof: Inspected the harness and all five browser-session JSON artifacts. The harness invokes scanAgentInput with the complete committed range; native TruffleHog 3.97.4 on macOS arm64 changes from refusal to admission in 6408 ms, while a one-byte mutation remains refused. The complete-range run observed PLAIN; the retained identity evidence also records HTML. No model execution is claimed. (docs/proof/agent-input-scan-context/README.md:236, 7ce422a36b1c)
  • External fixture identity verified: The proof explicitly depends on this OpenClaw source fixture. GitHub’s pinned source shows the synthetic browserless.example credential URL inside the credentialed-discovery rejection test, matching the proposed fixture construction. (extensions/browser/src/browser/pw-session.connections.test.ts:354, 2d674c57c1d9)
  • Regression coverage and review limits: The shared harness retains the existing GitHub fixture cases and adds three browser positive cases plus eight negative variants. Tests were inspected, not executed, under the read-only review contract; git diff --check passed and the checkout remained clean. (test/agent-input-scan-fixtures.test.ts:438, 7ce422a36b1c)
  • Still absent from current main: GitHub’s main endpoint still resolves to the pinned PR base. The host-verified base-to-head delta establishes that these browser identity rows remain branch-only; no merged replacement was established. The attempted broader PR search was unavailable. (src/agent-input-scan-fixtures.ts, 20e7ed8e9aab)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 960dccd into main Sep 20, 2026
26 of 27 checks passed
@steipete
steipete deleted the codex/qualify-browser-session-fixture branch September 20, 2026 16:34
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. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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