Skip to content

feat(browser): add pure-CDP browser code mode for edge cases - #126255

Closed
MagMueller wants to merge 7 commits into
openclaw:mainfrom
MagMueller:agent/browser-harness-default
Closed

MagMueller wants to merge 7 commits into
openclaw:mainfrom
MagMueller:agent/browser-harness-default

Conversation

@MagMueller

@MagMueller MagMueller commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Related: #19289

What this changes

This keeps OpenClaw’s native browser implementation and makes Browser Harness the preferred agent browser only when the final runtime policy proves all of the following:

  • the Gateway and browser run on the same local host
  • the session is unsandboxed
  • both browser and exec remain available
  • host exec is approval-free (full / off)
  • the user has not authored native browser.* configuration or explicitly selected the native backend

That authority is rechecked immediately before every Harness child launch. Sandboxed, remote, approval-gated, tab-bound, explicitly native, and authored-browser sessions stay on the existing native browser; browser.enabled=false exposes no browser tool. The native CLI, Gateway API, profiles, Chrome extension, and sandbox browser are not removed.

On first allowed use, OpenClaw installs checksum-pinned uv 0.12.7, managed Python 3.12, Browser Harness 0.1.10, and its pinned 12-package resolution into OpenClaw-owned state, then starts the normal Harness daemon. A transient installation failure falls back to native for that call and can retry later. Product-side telemetry and recording are disabled with BH_TELEMETRY=0, BROWSER_HARNESS_TELEMETRY=0, ANONYMIZED_TELEMETRY=0, recording off, and live-view opening off.

Structured action="open" runs OpenClaw’s canonical navigation guard before installation, daemon, browser, or network I/O. Browser Harness action="exec" is arbitrary Python, so it is deliberately restricted to the same unrestricted host authority as approval-free host exec; it is not presented as a sandbox.

Maintainer decision: first-use installation is intentional behavior for this bundled default, but it is an exception to the extension guideline that runtime should not install dependencies. If that exception is not acceptable, this needs a separate install/update/doctor lifecycle before it can be the default.

User experience

On a fresh default local unrestricted installation, “go to Hacker News and click the first story” exposes one agent browser tool and routes it to Browser Harness automatically. No Browser Use Cloud key or separate browser allowlist is required. Sessions with tighter permissions or authored browser settings keep working through the native implementation.

Security boundary

The switch happens only after the final effective tool policy is known, and the authority is revalidated at the actual child-process boundary. Removing exec, enabling approvals, entering a sandbox, moving execution remote, or disabling browser access prevents Harness execution. This is why Browser Harness is not also the default inside sandbox sessions: its Python runs on the Gateway host, outside that sandbox.

The security-sensitive guard correctly requires a maintainer to review the current SHA and post /allow-security-sensitive-change; no contributor-side approval has been posted.

Verification

Current head: 7e7b3aff7dd85d188d47d5b7051a0064e0f4d42c. The benchmarked runtime component is 849869d331; the only later current-head change is the static process-wrapper inventory declaration required by CI.

  • latest-head focused browser/authority/tool suite: 40/40 passing
  • process-wrapper closure: 15/15 passing
  • assertion ratchet and git diff --check: passing
  • clean install probe: Browser Harness 0.1.10 plus the exact pinned 12-package graph installed under managed Python 3.12 and reported the expected version
  • earlier full exact-head verification of the same product behavior: pnpm check:changed, pnpm build, 149/149 focused regressions, and 1,111/1,111 plugin contract tests passing

Current hosted CI has two test-job failures, not a Browser Harness assertion: one Codex extension shard whose exact test file passes locally 5/5 on this head, and one Windows shard that exits with native heap corruption 0xC0000374. The aggregate gate is consequently red and many later shards were cancelled by fail-fast. Security/static checks are green.

Exact benchmark

106-task Internal Bench Hard run: 81/106 (76.42%), 25 fails, 0 judge errors. This is one task below Laith’s 82/106 reference and six below the historical 87/106 run, so it does not claim a new best score.

Exact inputs:

  • combined OpenClaw target 4a1081fbeda9182f8c99710bafe7706715e0237f = this PR runtime component 849869d331 + generic malformed-tool continuation cfc43047d3 (rebased as fix(agents): continue after rejected malformed tool calls #158568)
  • Browser Harness e3e8069c0ca40befb1a8a0a74da547270767a8be
  • eval platform 9d126c8799912a4d0ee267fe124cb9fdf999bde6
  • Claude Opus 5, medium thinking, direct code mode, balanced prompt, US proxy, Laith GPT-5.5 judge, 60-minute task timeout, 35 steps, and no max-turn enforcement

The generic recovery activated in 21 tasks; 18 reached clean final envelopes and 16 passed the judge. It is intentionally isolated in the three-file #158568 rather than folded into this integration PR. An exact two-task follow-up passed 2/2, but neither rerun reproduced the malformed provider response, so it demonstrates stochasticity rather than independently validating recovery.

The remaining score difference is mostly task/site variance: this run had 11 site-blocked failures versus 5 in the historical 87/106 run. A controlled old-versus-current Browser Harness comparison on the same three anti-bot tasks scored 1/3 in both cohorts, and the relevant Cloud browser/proxy/stealth creation code did not change. Anti-bot was present before (including CAPTCHA failures); it did not previously dominate the sampled outcome to the same degree. No anti-bot bypass is claimed here.

@clawsweeper

clawsweeper Bot commented Aug 19, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: browser size: XL labels Aug 19, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

The browser plugin adds a Browser Harness code-mode backend, selects it for eligible local agent sessions, installs its runtime on first use, and adds host-exec checks, documentation, and tests.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The backend has meaningful implementation and benchmark evidence, but current-head final-effect proof and several blocking contract repairs remain.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Merge readiness

⛔ Blocked before merge - 11 items remain

This remains a distinct browser capability absent from current main. The current head retains blocking upgrade, installation, authority, and fallback concerns from the prior review; its latest commits update wrapper inventory and a generated baseline without changing those paths.

Priority: P1
Reviewed head: d6a05a0b86b0caeaa37fa90e55632c9b6ba16a9c
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should Browser Harness replace the native browser for existing configless installations, and may its dependencies be installed during the first browser tool call?
  • Recommendation: Keep native default: Make Browser Harness opt-in and prepare its runtime in install, update, or Doctor before agent execution.
  • Why: Both behaviors change the shipped browser and plugin lifecycle contracts; the contributor's stated preference does not establish maintainer acceptance.

Before merge

  • Add real behavior proof - Authority-chain proof required: the linked combined benchmark shows earlier Browser Harness behavior, while the pinned head's managed installer and authority integration lack an observed allowed install and revoked-authority rejection before installer network I/O. The focused tests use mocked installation and process paths. No stored-data contract change was identified; redact private endpoints, identifiers, and credentials in any added trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Preserve the native browser contract on upgrade (P1) - A configless existing installation previously received the native tool, but this branch selects Harness and replaces its action schema. Keep the shipped default or provide an explicitly approved and proven upgrade path.
  • Move managed installation out of browser execution (P1) - The first browser action can launch a multi-minute dependency installation. Prepare this runtime through an approved install, update, or Doctor owner so an agent call does not become the installer.
  • Reject revoked authority before the installer downloads (P1) - The new process assertion runs only when a child launches. If approval-free host authority is revoked after the tool starts but before this fetch, the installer still makes a network request. Revalidate at the download boundary and prove the rejected request never occurs.
  • Keep native actions usable after installation failure (P2) - The fallback retains only status, start, stop, open, and screenshot while the registered Harness schema excludes native actions such as tab control and snapshots. An install failure therefore leaves existing native workflows unavailable for that session.
  • Resolve security concern: Revocation does not fence installer network I/O - Managed installation downloads uv before the process-spawn assertion, so a previously allowed browser call can fetch after host-exec authority is revoked.
  • Resolve merge risk - Configless existing installations would switch from the native browser contract to Browser Harness on upgrade without an opt-in or demonstrated upgrade behavior.
  • Resolve merge risk - First browser use can download and install a Python runtime during an agent call; the maintainer must decide whether this exception to the plugin lifecycle is acceptable.
  • Resolve merge risk - The installer can make its uv download request after host-exec authority is revoked, before the process-launch fence runs.
  • Complete next step - Resolve the four review findings, provide current-head allowed and revoked installer proof, and obtain the required maintainer decisions and security-sensitive approval.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Preserve the native browser contract on upgrade — extensions/browser/plugin-registration.ts:416-428
  • [P1] Move managed installation out of browser execution — extensions/browser/src/browser-use-cli-tool.ts:278-282
  • [P1] Reject revoked authority before the installer downloads — extensions/browser/src/browser-use-cli-install.ts:206-215
  • [high] Revocation does not fence installer network I/O — extensions/browser/src/browser-use-cli-install.ts:208
Agent review details

How this fits together

The browser plugin turns an agent's browser tool call into browser actions. Tool policy selects the available backend, which then launches a local process or uses OpenClaw's native browser control.

flowchart LR
A[Agent browser request] --> B[Tool and host policy]
B --> C{Backend selection}
C --> D[Native browser control]
C --> E[Browser Harness tool]
E --> F[Managed install and process]
D --> G[Browser result]
F --> G
Loading

Technical review

Best possible solution:

Keep the native browser as the upgrade default, offer Browser Harness through an explicit backend choice, prepare dependencies through an approved install or Doctor lifecycle, and enforce live authority before installer network I/O.

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

Not applicable to the feature request. Source inspection gives a clear path to the reported upgrade, fallback, and authority concerns; no current-head runtime reproduction was run.

Is this the best way to solve the issue?

No. The code-mode backend is useful, but an explicit backend choice and lifecycle-owned installation are safer than changing existing users' default during an agent call.

Full review comments:

  • [P1] Preserve the native browser contract on upgrade — extensions/browser/plugin-registration.ts:416-428
    A configless existing installation previously received the native tool, but this branch selects Harness and replaces its action schema. Keep the shipped default or provide an explicitly approved and proven upgrade path.
    Confidence: 0.96
  • [P1] Move managed installation out of browser execution — extensions/browser/src/browser-use-cli-tool.ts:278-282
    The first browser action can launch a multi-minute dependency installation. Prepare this runtime through an approved install, update, or Doctor owner so an agent call does not become the installer.
    Confidence: 0.97
  • [P1] Reject revoked authority before the installer downloads — extensions/browser/src/browser-use-cli-install.ts:206-215
    The new process assertion runs only when a child launches. If approval-free host authority is revoked after the tool starts but before this fetch, the installer still makes a network request. Revalidate at the download boundary and prove the rejected request never occurs.
    Confidence: 0.94
  • [P2] Keep native actions usable after installation failure — extensions/browser/plugin-registration.ts:141-152
    The fallback retains only status, start, stop, open, and screenshot while the registered Harness schema excludes native actions such as tab control and snapshots. An install failure therefore leaves existing native workflows unavailable for that session.
    Confidence: 0.91

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5a5a0e7e8a64.

Merge-risk options

Maintainer options:

  1. Repair before merge (recommended)
    Preserve the native upgrade default, move managed preparation out of tool execution, close the installer authority gap, and prove both paths.
  2. Accept the browser transition
    A maintainer may approve the deliberate compatibility and lifecycle changes after the security defect is fixed and upgrade behavior is proven.
  3. Pause the default switch
    Retain the native default and revisit bundling once browser backend policy and install ownership are agreed.

Security

Needs attention: The new authority fence covers child launches but does not cover the installer's earlier network request; the current head also requires its recorded maintainer security review.

Evidence

Security concerns:

  • [high] Revocation does not fence installer network I/O — extensions/browser/src/browser-use-cli-install.ts:208
    Managed installation downloads uv before the process-spawn assertion, so a previously allowed browser call can fetch after host-exec authority is revoked.
    Confidence: 0.94

What I checked:

PR surface

Source +1234, Tests +482, Docs +48, Generated 0, Other +1. Total +1765 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 10 1249 15 +1234
Tests 3 483 1 +482
Docs 2 51 3 +48
Config 0 0 0 0
Generated 2 3 3 0
Other 1 1 0 +1
Total 18 1787 22 +1765

Review metrics

Metric Value Why it matters
Production and test growth production +1236/-14 lines; tests +483/-1 lines The new backend and installer account for substantial production growth, with the bundled-default rationale still awaiting maintainer acceptance.
New browser setting 1 backend option with 2 values The new setting creates a user-facing choice while the branch also changes the default for configless users.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The default switch and incomplete fallback can disrupt existing agent browser workflows.
  • merge-risk: 🚨 compatibility: Existing configless users would receive a different browser backend and action schema on upgrade.
  • merge-risk: 🚨 security-boundary: A revoked host-exec grant can still permit the installer's network download before the child-process check.
  • merge-risk: 🚨 availability: First-use installation may stall or fail during a browser call, and the fallback exposes fewer native actions.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Preserve the native upgrade contract or obtain explicit maintainer acceptance with fresh-install and upgrade proof.
  • Move dependency preparation into an approved lifecycle and repair the native fallback.
  • Add redacted final-effect proof for an allowed install and the nearest revoked host-exec case before network I/O.

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.

History

Review history (51 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-03T05:05:24.457Z sha 06dc9430e906de87bd72f9da7efaddb358eca736 :: needs real behavior proof before merge. :: [P1] Move Browser Harness installation out of plugin runtime | [P1] Revalidate host authority at the Harness I/O boundary
  • reviewed 2026-09-25T08:11:03.307Z sha b6d7ba4e3d81c8a367ab8a209d3cf5816128a713 :: needs real behavior proof before merge. :: [P1] Preserve authored native browser settings after default expansion | [P1] Recheck host authority immediately before Harness I/O | [P1] Move dependency installation out of browser tool execution | [P2] Document the new public plugin tool authority contract
  • reviewed 2026-09-25T09:08:50.236Z sha fb9390d :: needs real behavior proof before merge. :: [P1] Recheck authority at the Harness process boundary | [P1] Move managed dependency installation out of tool execution | [P1] Preserve the browser contract for configless upgrades | [P2] Document the new plugin tool authority contract
  • reviewed 2026-09-25T23:09:13.074Z sha d793238 :: needs real behavior proof before merge. :: [P1] Carry live authority through brokered process launch | [P1] Preserve the native browser contract on existing upgrades | [P1] Move dependency installation out of browser tool execution | [P2] Align browser agent documentation with the new default
  • reviewed 2026-09-26T00:16:46.948Z sha 849869d :: needs real behavior proof before merge. :: [P1] Preserve the native browser contract for existing installations | [P1] Move managed dependency installation out of browser execution | [P2] Align the browser action guide with the conditional backend
  • reviewed 2026-09-26T00:27:18.729Z sha 7e7b3af :: needs real behavior proof before merge. :: [P1] Preserve the native browser contract on upgrade | [P1] Move dependency installation out of browser execution | [P1] Reject a revoked install before download | [P2] Qualify the browser guide by backend
  • reviewed 2026-09-26T02:17:56.320Z sha 7e7b3af :: needs real behavior proof before merge. :: [P1] Preserve the native browser contract on upgrade | [P1] Move dependency installation out of browser execution | [P1] Reject a revoked install before its download | [P1] Keep native actions available when installation fails | [P2] Qualify the browser action guide by backend
  • reviewed 2026-09-27T23:56:54.573Z sha 224d6d8ec2b12e555674b2d6f8fd3d647ba0e421 :: needs real behavior proof before merge. :: [P1] Preserve the native browser contract on upgrade | [P1] Move managed installation out of browser execution | [P1] Reject revoked authority before the installer downloads | [P2] Keep native actions usable after installation failure

Reviewed September 27, 2026, 8:21 PM ET / September 28, 2026, 00:21 UTC (Revision 52).

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 19, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 19, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 19, 2026
@MagMueller

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Redacted real-behavior proof for exact head fe4864342b4508ab3ddf7062e57b3da4c18c1461 and Browser Harness c9d0e566a6f46709ec51f1bb68251bc51018b8a5 (0.1.10). No benchmark prompt, page URL, browser output, or task content is included.

{
  "openclawStatus": "timeout",
  "openclawReturnCode": 2,
  "agentDurationSeconds": 1701.824,
  "assistantTurns": 98,
  "toolCalls": 97,
  "toolFailures": 1,
  "modelToolSurfaceIncludesBrowser": true,
  "browserHarnessLog": {
    "attachedEvents": 2,
    "stoppedRemoteBrowserEvents": 1,
    "errorEvents": 0,
    "tracebackEvents": 0
  }
}

This exact-head repetition reached the OpenClaw model deadline; it was not a Browser Harness transport or cleanup failure. The immediately preceding after-policy-fix source build produced a semantic pass at b664893 in 703.624 seconds, also with browser exposure and explicit remote cleanup: run 32251026433. The exact-head timeout artifact is run 32254358790.

The two review P2s are addressed at the current head:

  • CLI docs now distinguish auto, policy-eligible explicit Harness failure, and policy-ineligible native fallback.
  • The forbidden core-to-private-extension assembly import is removed. Browser registration/schema checks now live in the browser extension suite, while a generic repeated-resolution regression in src/plugins/tools.optional.test.ts proves descriptor caching neither invokes nor discards selectionPreflight.

Validation on the current head: 15 focused files, 468 passed and 1 skipped; the complete changed-code/type/lint/database-first/boundary gate passes. The exact-head 106-task private evaluation is running at 32258116188; only aggregate results will be published.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@MagMueller

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the remaining Windows fallback P2 at exact head c6248c5d5f8bb046189e41dd987cc8c0fe715156. docs/tools/browser.md now states that the Browser Harness model engine requires a macOS or Linux Gateway, while a native Windows Gateway retains the built-in action engine with managed profiles and the Chrome extension. This head differs from the running evaluation SHA only by that documentation commit.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 19, 2026
@MagMueller

MagMueller commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Exact head: e269678

Addressed the two latest findings:

  • Automatic browser authority is now suppressed whenever an operator already authored a top-level profile, allow, alsoAllow, deny, provider, or sender tool policy (and remains suppressed for agent-scoped policy). Added agent-exec and onboarding regressions.
  • Browser Harness bootstrap records timeout state before termination and rejects on timeout even if the child traps SIGTERM and exits 0. Added a cloud cleanup regression proving the durable lease remains recoverable.

Validation: focused Vitest 3 files / 33 tests, pnpm check:changed, git diff --check, and independent P0/P1/P2 review all pass.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@MagMueller

Copy link
Copy Markdown
Contributor Author

Final exact all-fixes 106-task source-build eval: run 32398056065.

Privacy-safe aggregate result:

  • exact pins: adapter 00b84a9cc2050281a86af2e8938ebd40af6697de, OpenClaw f918264c5a01cea4ff4d720e6a2e65fa3d470a2e, Browser Harness 1f42c644bdc63e20ae54b27bdf10bd23f2e0448f (0.1.10)
  • max-turn enforcement disabled; 106/106 manifests confirmed the requested direct/medium/30-minute configuration
  • official score: 68/106 (64.15%), 38 failures, zero judge errors
  • prior uncapped exact-runtime run: 75/106 (70.75%); delta -7 passes / -6.60 percentage points, so this run does not establish semantic parity
  • runner-no-result improved from 16 to 14; non-runner semantic failures increased from 15 to 24
  • all 106 browsers connected, attached, listened, and explicitly stopped; no browser leak
  • zero Browser Harness IPC timeout or Page.captureScreenshot timeout signatures
  • 236 retained hidden-browser screenshots across 101 tasks, all valid PNGs
  • 182.59M tokens, $172.8764, and 55,135.3 aggregate agent-seconds; modestly below the prior run's resource use

Interpretation: Browser Harness transport, screenshot retention, and lifecycle are at parity or slightly better operationally. Agent semantic accuracy is not at parity in this single final run. Private prompts, task identifiers, page content, and answers were not inspected or published.

@MagMueller

Copy link
Copy Markdown
Contributor Author

Scope reset for reviewability: this draft was intentionally rewritten from the earlier 95-file browser-default experiment to the current 15-file orchestrator-only Browser Use CLI integration. Prior comments that discuss onboarding defaults, local/profile daemon leases, Cloud self-provisioning, or broad browser configuration refer to the superseded branch and are not present in the current diff. Current head: f952d4234d7539f8183955733212b577f49327f3.

@MagMueller

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Resolved both exact findings at f9329ff8b9: final-policy host-capability failure now selects the same registration’s same-name native Browser fallback, while browser-denied policy still removes Browser; status/start now run a non-binding list_tabs() Browser Harness/daemon probe before reporting ready. Focused 330 tests, all four typecheck lanes, and extension boundaries pass.

@clawsweeper

clawsweeper Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@MagMueller

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@MagMueller

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@MagMueller

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@MagMueller

MagMueller commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Final exact-head full evaluation: https://github.com/browser-use/new-eval-platform/actions/runs/32565869559

  • Official semantic score: 87/106 (82.08%), 19 fail, 0 judge errors.
  • Laith OpenClaw reference: 82/106; this run is +5 tasks.
  • Exact components: OpenClaw combined 67d71ca (this PR b29e7e2, plus feat(agent): allow explicit one-shot tools #127796 900acbb and fix(agent): retry transient settled finalization #126404 9a3fffe); Browser Harness 6ea0fe6d45554309099f31cbddcd2721108069ee; eval platform 4493acfc31376018326108a7726939b25307a89d.
  • Configuration: Claude Opus 5, medium thinking, Browser Use Cloud, Browser Use CLI 3.0 direct mode, balanced prompt, US proxy, max-turn enforcement disabled.
  • Lifecycle: 106/106 daemon listen/connect/attach/explicit remote stop; zero Browser Harness IPC or screenshot-capture timeout signatures.
  • Evidence: 501/501 retained hidden browser screenshots are valid PNGs across 96 tasks.

No merge action was taken.

@MagMueller

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The PR is now rebased at e6b22f0e48fedb7dff1127a5a6c1cb95a4da47be. The description includes exact-head evidence. This revision hides the disabled tool, preserves authored native config, applies the canonical navigation guard before Harness I/O, retries transient installs, pins the full Python graph, and exposes Browser Harness only after final policy retains approval-free local unsandboxed host exec (with live revalidation before every call).

@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@MagMueller

Copy link
Copy Markdown
Contributor Author

Exact-head follow-up:

@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Maintainer security review required

This external contributor PR changes sensitive security components. A maintainer must review these changes before merging.

Current SHA: d6a05a0b86b0caeaa37fa90e55632c9b6ba16a9c

These sensitive security changes were made:

  • src/agents/approval-free-host-exec-authority.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

After reviewing the changes, post a new PR comment containing only approval commands, each on its own line:

/allow-security-sensitive-change

A later push requires a fresh approval comment.

@MagMueller

Copy link
Copy Markdown
Contributor Author

Final benchmark and split-PR update:

No OpenClaw or Browser Harness merge was performed. This PR still needs the maintainer security-sensitive approval for the current SHA. The two red test jobs are the documented extension-shard flake (its exact file passes locally 5/5) and a Windows native heap-corruption exit, not Browser Harness test failures.

@steipete

Copy link
Copy Markdown
Contributor

Thanks for the PR. We're closing older pull requests that have gone stale against current main.

This large PR still lacks current-head behavior proof, has failing CI and open security-boundary review items, and the author mentioned splitting it up. Smaller, focused PRs against current main are the better path.

If this change is still needed, please open a fresh PR against current main and we'll review it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: browser merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts security-review-required security-sensitive-changed size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants