Skip to content

feat(browser): verify Chromium headless shell across platforms - #154396

Merged
vincentkoc merged 4 commits into
mainfrom
feat/lightweight-browser-05-shell-verification
Sep 23, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
feat/lightweight-browser-05-shell-verification

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Current signed head: 58aea9a752ffdd2f8c18f38918ccb01f53349c0f. The inherited placement lifecycle test fixture now supplies required policyConfig; the previously failing check-test-types-core-4 passes on corrected PR04 ea418a67d7fa72213bacc1a8543336ff5907d6fa (run35883329532, job107258058958). Production browser behavior is unchanged by that correction. Exact combined packaged proof at 3582077699e1a97d705438a0d2d49c7f2c216d26 passed all controls with clean cleanup. Remaining required hosted/native landing gates and independent final QA are tracked separately; this is not a claim that every PR has landed.

Related: #154341

Current landing verification — 2026-09-23

Current PR head: 422826da6c560fc583747f75462ac7aca8c1d3a6. Vincent authorized prerequisite-first landing of the experimental opt-in Lightpanda stack and its additive engine/config/status contract. No merge or deployment is claimed here; exact-head hosted checks and native landing gates remain required.

This prerequisite-driven restack is patch-identical to the reviewed boundary; it incorporates the resolved main/config baseline from #154359. Earlier native AutoReview remains tied to the unchanged source patch, not relabeled as a new run. Current-head hosted CI and a fresh completed ClawSweeper review remain required.

Proof scope: dated evidence below retains its original source identity. The new combined image/profile-preservation run at dd25d85031ab090b4b4ad9cba0ad4beeff9debb8 is pending in #154607 and #154608; no earlier image is relabeled as that repair proof.

This boundary’s patch is unchanged; only prerequisite ancestry changed to include the reviewed admission and benchmark repairs.

Fresh isolated native AutoReview found no remaining actionable P0–P2 defects after the accepted PR02/03/06 repairs and adjudication of the metadata/external-profile false positives. Exact reviewed file hashes and unchanged boundary patch IDs bind those reviews through the prerequisite-driven restack; patch-identical head changes are not relabeled as new review runs.

Final combined proof at 71e4fb2b164423175c6b0324365cc18e5c7808ef: all 47,508 tracked files/symlinks and modes match the tested source. Route/schema tests 53/53, five-file formatting and scoped type-aware lint pass; a real pinned Lightpanda 0.4.1 workflow passes ref actions, exactly-once submission, capability/single-page checks and the repaired stale-target validator.

A fresh complete application image built in 238.447s, image sha256:ac252a09fd89aa2f041a37078d13fc7c8f6107835923cab2644fa9ed76084fbd. Its build-info matches the exact combined commit. The unchanged default Playwright script passes (16.754s). Packaged Gateway/browser smoke passes (22.336s): Chromium start/open/snapshot/stop, same-route Chromium selector-wait success, and four Lightpanda selector rejections with exact BROWSER_CAPABILITY_UNSUPPORTED/engine: lightpanda structured errors before adapter contact. This isolated Linux amd64 proof uses synthetic pages and no provider/account actions. Source inventory is unchanged after build/runtime; owned containers are removed and the task daemon is stopped.

Historical evidence below retains its original source and scope. In particular, the old broad staleTargetRejected assertion is superseded by the new positive-control/exact-error proof, and historical memory sampled across full validation is not a measurement of the repaired validator. No new three-run performance matrix, native macOS/Windows runtime proof, whole-Gateway memory saving, or broad website compatibility is claimed. The full image’s Lightpanda negative probes cover pre-adapter admission; actual Lightpanda ref actions are covered separately by the current source-controller workflow.

ClawSweeper’s synthetic-fixture qualification landed in openclaw/clawsweeper#1646. Qualification is not review approval or proof of deployment: the fresh full-input browser review must still demonstrate admission on its actual trusted policy and exact head/body. No gate is bypassed.

Stack continuation: #154342 → #154359 → #154360 → #154382 → this PR.
Base: feat/lightweight-browser-04-portability.

What Problem This Solves

Provides a reproducible, explicitly labelled Chromium headless-shell comparison after the Lightpanda licence audit. Reuses the existing Chromium/CDP owner instead of adding another automation daemon or introducing a new engine dependency.

User Impact

Adds --headless-shell <binary> to the opt-in route benchmark, separate requested-distribution reporting, and distribution-specific scratch directories. Documents the repository-pinned installer, platform prerequisites and companion-asset notices. No production configuration, default browser, package manifest, lockfile, or live deployment changes.

Non-AGPL alternative, not an MIT-only distribution: Chromium headless shell retains Chromium's LGPL/MPL and other third-party obligations. The Playwright installer also downloads separately licensed FFmpeg/platform helpers. No binaries are bundled or mirrored here.

Verification at 3fc7d33295d8a76291b65bbbaa442d38407d42f4

Fresh independent review passed, including CLI rejection cases and scratch/lifecycle ownership. Reviewed diff SHA-256: b0a64136fa4543291026c6ca344bac4ee5d5b405f3a3d4f89ebeb2d209c0d153.

Local scoped lint, extension type checking, formatting, focused MDX, and git diff --check passed. A local Linux headless-shell smoke also passed. Full hosted CI is not claimed; hosted checks are tracked separately.

All Crabbox runs used the exact commit above and Playwright 1.63.0's Chrome-for-Testing 153.0.8010.12 / build 1243. Each successful run completed one first task plus ten measured warm tasks through OpenClaw's actual browser routes: navigation, snapshot, ref typing, exactly one submission, wait and text extraction.

Platform Crabbox execution Headless-shell workflow Limits
Linux x64 / Node 24.18.1 AWS Linux VM, native engine 11/11 passed Sampled engine-tree PSS available
Windows Server 2022 x64 / Node 24.18.1 AWS Windows VM, native engine 11/11 passed Memory sampler intentionally returns null
macOS 26.5.2 ARM64 / Node 26.7.0 SRT-confined controller, separate task-local native engine 11/11 passed over loopback CDP Not an in-SRT engine or Mac VM proof; no engine memory/startup figures

macOS environment limitation

Normal multiprocess Chromium cannot start inside Anthropic Sandbox Runtime 0.0.77: bootstrap_check_in ... MachPortRendezvousServer ... Permission denied. This matches upstream SRT issue 210. No supported mach-register allowance exists in that version; adding allowMachLookup is not a fix.

The successful macOS route test kept the controller's filesystem/network confinement and attached to a separately launched, task-owned engine with an isolated profile/home, loopback CDP and cleanup. No --single-process substitution, user browser reuse or sandbox-disable patch was used. The existing benchmark's browser --no-sandbox flag remained unchanged on all platforms. SRT itself was not weakened. External mode correctly leaves distribution/version/startup/memory fields null; separate launch metadata and binary hashing establish which engine was tested. This is application-route compatibility evidence, not full browser-process isolation or managed-launch proof.

Linux comparison

Same AWS Linux VM, separate controller invocations, shell then full Chromium, same version and launch flags. No production sites or LLM.

Metric Headless shell Full Chromium
Maximum sampled engine-tree PSS 199.48 MiB 514.62 MiB
Warm workflow p50 646.86 ms 667.89 ms
Warm workflow p95 737.94 ms 742.94 ms
Engine readiness 1603.93 ms 319.68 ms
Start to first task completion 2844.95 ms 1695.44 ms
Controller end RSS, separately measured 1140.60 MiB 1137.10 MiB

The shell used less sampled engine memory here, but its first launch was slower. These are one-run synthetic results, not true memory peaks, incremental controller overhead, total-host savings or a production performance guarantee. Do not compare these numbers directly to the earlier Lightpanda measurement on a different host.

Observed executable SHA-256 values:

  • Linux x64: ded93a9c9a53a1ae040f08124badcca95c938e9d5015ff340c3b5538c41bf39e
  • Windows x64: addfa79abb060e1e514e155ed745d4bf96140bca402735958bb4e223aea0b98c
  • macOS ARM64: a0bfe7b4da4787b66058477d696cd1d09065d25f06a548947722b9af77ee8282

These are observed digests, not independent signature verification. The Linux LICENSE.headless_shell hash was b92247f7a44c14627ef5cbbe0aa6dcca4e4422b7c05e6f2c660054061a5e3da7.

Why not promote Obscura yet?

The audit in the preceding PR identifies Obscura 0.2.3 as an Apache-2.0 lightweight candidate, with five MPL-only dependencies and incomplete release notices/provenance. Exploratory Linux route probes of both rendering and no-render binaries failed form typing/actionability through the semantic compatibility profile; the Chromium profile also exposed discovery incompatibility. The failure resembles upstream issue 807, but a root cause is not claimed. No DOM-evaluation bypass or unsupported production adapter is added. This is a compatibility gap in the tested integration path, not a claim that every Obscura client fails.

Reproduce

Install the checkout's frozen dependencies. Use the pinned installer and preserve its full distributions/notices:

node node_modules/playwright-core/cli.js install chromium-headless-shell
node node_modules/playwright-core/cli.js install --dry-run chromium-headless-shell
node --import ./scripts/tsx.mjs extensions/browser/scripts/bench-lightweight.ts --headless-shell "/path/to/chrome-headless-shell" --iterations 10 --output shell.json
node --import ./scripts/tsx.mjs extensions/browser/scripts/bench-lightweight.ts --chromium "/path/to/chrome" --iterations 10 --output chromium.json

Windows uses chrome-headless-shell.exe. Mac split mode uses --endpoint http://127.0.0.1:<port> --engine chromium against the explicitly managed task-local engine; it does not establish engine identity by itself. Linux requires browser system libraries and fonts.

Remaining Gaps

  • Other architecture/OS-version combinations are unverified; no universal “all OSes” or production-site parity claim.
  • In-SRT macOS Chromium launch remains blocked upstream.
  • No engine/artifact is certified MIT-only or universally compliant. Complete binary/deployment redistribution review remains distinct from this source/dependency audit.
  • No merge, release, default change or live OpenClaw deployment.
Sanitized machine-readable route evidence
{
  "commit": "3fc7d33295d8a76291b65bbbaa442d38407d42f4",
  "engineVersion": "153.0.8010.12",
  "playwright": "1.63.0",
  "playwrightBrowserBuild": 1243,
  "linux": [
    {
      "platform": "linux",
      "arch": "x64",
      "node": "v24.18.1",
      "memoryMethod": "Maximum sampled Linux /proc descendant-tree PSS/RSS, not a true peak; sampling attempts every 50 ms plus task boundaries. Excludes controller. Null for external engines and unsupported hosts. Controller RSS is a separate end-of-workload sample, not incremental overhead or a peak.",
      "workload": "Local synthetic form through OpenClaw routes, no LLM. One first task includes initial page open/attachment; each measured warm task includes navigation, default efficient AI snapshot (Lightpanda selects aria refs), typing, exactly one submission, wait and text extraction. Capability/session checks run after measurement.",
      "engineOrder": [
        "chromium"
      ],
      "distributionOrder": [
        "chromium-headless-shell"
      ],
      "results": [
        {
          "engine": "chromium",
          "distribution": "chromium-headless-shell",
          "engineVersion": "HeadlessChrome/153.0.8010.12",
          "connectionMode": "spawned",
          "warmIterations": 10,
          "checks": {
            "workflow": true,
            "exactlyOnceSubmission": true
          },
          "startupMs": 1603.9316999999992,
          "firstTaskMs": 1237.6393720000015,
          "coldStartToFirstCompletionMs": 2844.9482590000007,
          "warmP50Ms": 646.8605339999995,
          "warmP95Ms": 737.9371979999996,
          "warmTaskMs": [
            705.5573970000005,
            646.8605339999995,
            634.9467490000006,
            686.4699439999986,
            668.9588029999977,
            645.9451079999999,
            646.0920079999996,
            709.3686269999998,
            737.9371979999996,
            633.7525389999973
          ],
          "meanWarmSnapshotBytes": 217.6,
          "engineMaxSampledPssMiB": 199.4775390625,
          "engineMaxSampledRssMiB": 434.10546875,
          "memorySamples": 168,
          "controllerRssAfterWorkloadMiB": 1140.6015625
        }
      ]
    },
    {
      "platform": "linux",
      "arch": "x64",
      "node": "v24.18.1",
      "memoryMethod": "Maximum sampled Linux /proc descendant-tree PSS/RSS, not a true peak; sampling attempts every 50 ms plus task boundaries. Excludes controller. Null for external engines and unsupported hosts. Controller RSS is a separate end-of-workload sample, not incremental overhead or a peak.",
      "workload": "Local synthetic form through OpenClaw routes, no LLM. One first task includes initial page open/attachment; each measured warm task includes navigation, default efficient AI snapshot (Lightpanda selects aria refs), typing, exactly one submission, wait and text extraction. Capability/session checks run after measurement.",
      "engineOrder": [
        "chromium"
      ],
      "distributionOrder": [
        "chromium"
      ],
      "results": [
        {
          "engine": "chromium",
          "distribution": "chromium",
          "engineVersion": "Chrome/153.0.8010.12",
          "connectionMode": "spawned",
          "warmIterations": 10,
          "checks": {
            "workflow": true,
            "exactlyOnceSubmission": true
          },
          "startupMs": 319.68319900000097,
          "firstTaskMs": 1371.8090219999995,
          "coldStartToFirstCompletionMs": 1695.4416130000009,
          "warmP50Ms": 667.8942170000009,
          "warmP95Ms": 742.9374879999996,
          "warmTaskMs": [
            666.0743330000005,
            661.1417430000001,
            742.9374879999996,
            654.9244420000014,
            740.213366,
            700.0591749999985,
            667.8942170000009,
            658.1033790000001,
            686.1660929999998,
            712.5496339999991
          ],
          "meanWarmSnapshotBytes": 217.6,
          "engineMaxSampledPssMiB": 514.62109375,
          "engineMaxSampledRssMiB": 1532.71484375,
          "memorySamples": 143,
          "controllerRssAfterWorkloadMiB": 1137.09765625
        }
      ]
    }
  ],
  "windows": [
    {
      "platform": "win32",
      "arch": "x64",
      "node": "v24.18.1",
      "memoryMethod": "Maximum sampled Linux /proc descendant-tree PSS/RSS, not a true peak; sampling attempts every 50 ms plus task boundaries. Excludes controller. Null for external engines and unsupported hosts. Controller RSS is a separate end-of-workload sample, not incremental overhead or a peak.",
      "workload": "Local synthetic form through OpenClaw routes, no LLM. One first task includes initial page open/attachment; each measured warm task includes navigation, default efficient AI snapshot (Lightpanda selects aria refs), typing, exactly one submission, wait and text extraction. Capability/session checks run after measurement.",
      "engineOrder": [
        "chromium"
      ],
      "distributionOrder": [
        "chromium-headless-shell"
      ],
      "results": [
        {
          "engine": "chromium",
          "distribution": "chromium-headless-shell",
          "engineVersion": "HeadlessChrome/153.0.8010.12",
          "connectionMode": "spawned",
          "warmIterations": 10,
          "checks": {
            "workflow": true,
            "exactlyOnceSubmission": true
          },
          "startupMs": 162.58819999999832,
          "firstTaskMs": 1881.6359999999986,
          "coldStartToFirstCompletionMs": 2047.6459000000032,
          "warmP50Ms": 667.499800000005,
          "warmP95Ms": 683.1417999999976,
          "warmTaskMs": [
            677.6635999999999,
            683.1417999999976,
            649.6457999999984,
            669.18299999999,
            662.4469000000099,
            667.499800000005,
            669.493100000007,
            661.5100000000093,
            666.9167000000016,
            669.5439000000042
          ],
          "meanWarmSnapshotBytes": 217.6,
          "engineMaxSampledPssMiB": null,
          "engineMaxSampledRssMiB": null,
          "memorySamples": 0,
          "controllerRssAfterWorkloadMiB": 966.40625
        }
      ]
    }
  ],
  "macOS": {
    "report": {
      "platform": "darwin",
      "arch": "arm64",
      "node": "v26.7.0",
      "memoryMethod": "Maximum sampled Linux /proc descendant-tree PSS/RSS, not a true peak; sampling attempts every 50 ms plus task boundaries. Excludes controller. Null for external engines and unsupported hosts. Controller RSS is a separate end-of-workload sample, not incremental overhead or a peak.",
      "workload": "Local synthetic form through OpenClaw routes, no LLM. One first task includes initial page open/attachment; each measured warm task includes navigation, default efficient AI snapshot (Lightpanda selects aria refs), typing, exactly one submission, wait and text extraction. Capability/session checks run after measurement.",
      "engineOrder": [
        "chromium"
      ],
      "distributionOrder": [
        null
      ],
      "results": [
        {
          "engine": "chromium",
          "distribution": null,
          "engineVersion": null,
          "connectionMode": "external",
          "warmIterations": 10,
          "checks": {
            "workflow": true,
            "exactlyOnceSubmission": true
          },
          "startupMs": null,
          "firstTaskMs": 1548.4287499999991,
          "coldStartToFirstCompletionMs": null,
          "warmP50Ms": 941.9874579999996,
          "warmP95Ms": 989.5028329999986,
          "warmTaskMs": [
            952.4652500000011,
            974.4614999999994,
            955.1712499999994,
            912.918916999999,
            924.6464999999989,
            941.9874579999996,
            958.2610000000022,
            989.5028329999986,
            919.7231670000001,
            933.2630419999987
          ],
          "meanWarmSnapshotBytes": 217.6,
          "engineMaxSampledPssMiB": null,
          "engineMaxSampledRssMiB": null,
          "memorySamples": 0,
          "controllerRssAfterWorkloadMiB": 771.015625
        }
      ]
    },
    "engineMetadata": {
      "sourceCommit": "3fc7d33295d8a76291b65bbbaa442d38407d42f4",
      "distribution": "chromium-headless-shell",
      "version": "HeadlessChrome/153.0.8010.12",
      "platform": "darwin",
      "arch": "arm64",
      "engineInsideSrt": false,
      "controllerInsideSrt": true,
      "args": [
        "--headless=new",
        "--disable-gpu",
        "--no-sandbox",
        "--no-first-run",
        "--no-default-browser-check",
        "--disable-sync",
        "--disable-background-networking",
        "--disable-component-update",
        "--disable-features=Translate,MediaRouter",
        "--disable-session-crashed-bubble",
        "--hide-crash-restore-bubble",
        "--password-store=basic",
        "--no-proxy-server",
        "--use-mock-keychain",
        "--remote-debugging-address=127.0.0.1"
      ]
    }
  }
}

Premerge preparation — 2026-09-21

Source head recorded on 2026-09-21: cdc60c8caf7ff072bc7d8aa813e92959dc814862. Ready for review/CI, not merged or deployed.

Headless-shell benchmark layer; native-spawn smoke covers inherited benchmark corrections.

The stack is rebased onto 72c2cf7c2faaa8994cb207e0ef4797d0a8bd834b to incorporate canonical fixes for the two observed tooling timeouts (not an unrelated retry): #154627, #154509, #154335, #154345 and #154567. The actual affected tooling tests now pass 32/32 in 129.99s. Runtime-proved combined source b9085a3475f2af46a9990e5986e87978719bb9fe passes extension types, Madge and config-doc checks; 47,508 tracked entries match the remote proof snapshot with zero mismatches.

Before rebasing, the scoped CI repairs passed 156 Docker tests, 56 Chrome/boundary tests, and the 30 affected navigation tests, plus Knip, line-cap, import boundaries, temporary-path/raw-fetch guards, Madge, config docs and formatting. Independent final scoped review is clean. Rebased checks continue on the exact heads; older results remain bound to their measured sources.

A real final-source native-spawn benchmark smoke passes startup, temporary-root handling, the public import path, navigation, snapshot, typing/click, wait/text and exactly-once submission (cold task plus one warm task, Chromium headless shell 153.0.8010.12, Linux amd64/Node24.19.0). This is a behavior smoke, not a replacement performance benchmark.

The earlier complete application image at 07cce573cdf01b1146e677e6ea865ef3eb954955 passed its build, unchanged default Playwright upgrade script, full-Chromium channel sibling, and packaged Gateway/browser start → navigate → snapshot → stop with Gateway exit0. That image is explicitly bound to its earlier source. The rebased complete application image at b9085a3475f2af46a9990e5986e87978719bb9fe also passed: full unmodified image build244.381s; unchanged default Playwright script11.483s; full-Chromium channel sibling1.953s; packaged Gateway/browser lifecycle18.971s. Image ID sha256:a50fa9eb0e34302e54b2ee2f51ae34b083d608c8160278430df6dde424ba97ad. All47,508 tracked entries matched before and after. The task-only daemon stopped cleanly with zero containers.

The final combined head c6198e521533e350d0222c884922e5935e803b1c differs from this measured image source only by two truthful SAFETY comments documenting existing non-null-object guards (PR02 route boundary and PR03 benchmark). Diff inspection and TypeScript transpilation with comments removed prove identical emitted JavaScript. The image is not relabeled as built from the later comment-only SHA. Full assertion/max-lines ratchets and plugin inventory pass without baseline changes.

Normal hosted CI is active on the corrected heads. Scanner input qualification is separate from approval: the inherited synthetic status-redaction fixture still needs trusted ClawSweeper policy-owner qualification; the literal is preserved and no gate is bypassed. No skipped, blocked, pending, failed, or canceled run is counted as passing. Experimental opt-in Lightpanda/config-contract maintainer acceptance and prerequisite-first landing remain review decisions.

Review order

  1. CDP transport compatibility — #154342
  2. Lightpanda profiles and capabilities — #154359
  3. Portable deployment and benchmarks — #154360
  4. Licenses and non-AGPL alternatives — #154382
  5. Headless-shell benchmark verification — #154396
  6. Browser engine adapters — #154508
  7. Managed Chromium efficiency and lifecycle — #154607
  8. Docker browser modes and Lightpanda sidecar — #154608

Land prerequisites first; each upper PR targets the preceding branch. No merge or deployment has been performed.

@clawsweeper

clawsweeper Bot commented Sep 21, 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 extensions: browser size: XS maintainer Maintainer-authored PR labels Sep 21, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 12:09 PM ET / 16:09 UTC (Revision 8).

ClawSweeper review

What this changes

Adds a Chromium headless-shell benchmark option, separate distribution reporting and scratch directories, and installation guidance.

Merge readiness

✅ Ready for maintainer review

Keep open: the benchmark improvement remains useful and absent from current main. No actionable defects remain, and the previous prerequisite-and-retarget blocker is resolved.

Priority: P3
Reviewed head: 58aea9a752ffdd2f8c18f38918ccb01f53349c0f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable benchmark extension with strong platform evidence and no remaining actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Recorded benchmark output demonstrates the added headless-shell selection and reporting through real OpenClaw navigation, snapshot, form submission, wait, and extraction routes on Linux and Windows; macOS evidence correctly covers external-engine route compatibility only. Historical run identities are preserved, with later inherited repairs covered separately. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Recorded benchmark output demonstrates the added headless-shell selection and reporting through real OpenClaw navigation, snapshot, form submission, wait, and extraction routes on Linux and Windows; macOS evidence correctly covers external-engine route compatibility only. Historical run identities are preserved, with later inherited repairs covered separately. No stored-data contract changes.
Evidence reviewed 8 items Introduced scope and verified merge result: Inspected the pinned merge-base-to-head changes. Raw test-merge parents match the pinned base and original head; comparison against that base leaves only the benchmark and documentation changes. Deployment licensing and the policyConfig fixture correction are already present in the base.
Existing browser owner reused: The new option selects the existing Chromium execution path, excludes mixed native/external mode, and separates scratch directories by distribution. Existing route dispatch, task assertions, process cleanup, and production browser defaults remain unchanged.
Still necessary on main: Fetched main retains the benchmark without the headless-shell option or distribution fields. Existing Chromium execution can run compatible binaries, but does not provide the requested distinct distribution reporting. No merged replacement establishes that this remaining change is implemented.
Findings None None.
Security None None.

How this fits together

The browser plugin’s optional benchmark sends synthetic navigation and form tasks through OpenClaw’s real browser routes. It reports task success, timing, and sampled memory for an explicitly selected browser executable or external endpoint.

flowchart TD
  A[Selected binary or endpoint] --> B[Benchmark options]
  B --> C[Isolated browser workspace]
  C --> D[OpenClaw browser routes]
  E[Synthetic form tasks] --> D
  D --> F[Chromium or Lightpanda]
  F --> G[Success and measurement report]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +7, Tests +4, Docs +203, Other +2. Total +216 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 15 8 +7
Tests 1 5 1 +4
Docs 2 204 1 +203
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 5 226 10 +216

Review metrics

Metric Value Why it matters
Benchmark interface 1 optional flag; 2 additive report fields; 0 production default changes The change distinguishes browser distributions without expanding the production engine or configuration contract.

Root-cause cluster

Relationship: partial_overlap
Canonical: #154341
Summary: This supplies a bounded comparison capability within the broader lightweight-browser program.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep browser comparisons in the existing opt-in benchmark, with explicit distribution labels and accurately bounded platform measurements.

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

Not applicable: this adds an optional benchmark capability rather than fixing a reported product defect; recorded real-route runs demonstrate its intended behavior.

Is this the best way to solve the issue?

Yes: extending the existing benchmark preserves one Chromium execution owner while adding meaningful distribution reporting and isolated comparison directories.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 05996479d818.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves optional benchmarking and documentation without changing production browser behavior.
  • 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 (live_output): Recorded benchmark output demonstrates the added headless-shell selection and reporting through real OpenClaw navigation, snapshot, form submission, wait, and extraction routes on Linux and Windows; macOS evidence correctly covers external-engine route compatibility only. Historical run identities are preserved, with later inherited repairs covered separately. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded benchmark output demonstrates the added headless-shell selection and reporting through real OpenClaw navigation, snapshot, form submission, wait, and extraction routes on Linux and Windows; macOS evidence correctly covers external-engine route compatibility only. Historical run identities are preserved, with later inherited repairs covered separately. No stored-data contract changes.

Evidence

What I checked:

  • Introduced scope and verified merge result: Inspected the pinned merge-base-to-head changes. Raw test-merge parents match the pinned base and original head; comparison against that base leaves only the benchmark and documentation changes. Deployment licensing and the policyConfig fixture correction are already present in the base. (94f876eb71ea)
  • Existing browser owner reused: The new option selects the existing Chromium execution path, excludes mixed native/external mode, and separates scratch directories by distribution. Existing route dispatch, task assertions, process cleanup, and production browser defaults remain unchanged. (extensions/browser/scripts/bench-lightweight.ts:23, 58aea9a752ff)
  • Still necessary on main: Fetched main retains the benchmark without the headless-shell option or distribution fields. Existing Chromium execution can run compatible binaries, but does not provide the requested distinct distribution reporting. No merged replacement establishes that this remaining change is implemented. (extensions/browser/scripts/bench-lightweight.ts:19, 05996479d818)
  • Previous blocker resolved: GitHub confirms docs(browser): audit engine licenses and non-AGPL alternatives #154382 merged at 2026-09-23T16:01:34Z. This PR now targets main at the same reviewed head, satisfying the previous review’s prerequisite-and-retarget request. (322e358bb0ca)
  • Complete captured proof inspected: Read the full GitHub body and verified SHA-256 e22f6fcabab9ebce4e28cb6e2cb7b417b7ba1cab74b4ae06ef4ba5c07b4cbc83 matches the supplied snapshot. Recorded output at 3fc7d33 shows 11 successful real-route tasks each on Linux and Windows with the headless-shell distribution label, plus 11 macOS external-engine tasks with appropriately null distribution/startup/memory fields. Historical source comparison confirms the added option, reporting, and directory separation remain intact; subsequent inherited benchmark repairs are separately documented with native-spawn smoke evidence. (3fc7d33295d8)
  • Scope and compatibility limits: Documentation explicitly limits the option to benchmark executable selection, preserves existing profiles, distinguishes requested distribution from binary provenance, and retains companion-asset notice guidance. JSON output is a named benchmark artifact, not an application state model or migration. Public docs: docs/tools/browser/lightweight.md. (docs/tools/browser/lightweight.md:258, 58aea9a752ff)

Likely related people:

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

History

Review history (7 earlier review cycles)
  • reviewed 2026-09-21T04:21:00.093Z sha 3fc7d33 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T10:18:44.449Z sha d94612e :: needs changes before merge. :: none
  • reviewed 2026-09-21T11:10:15.584Z sha cdc60c8 :: needs changes before merge. :: none
  • reviewed 2026-09-22T05:44:13.967Z sha 8ec741e :: needs changes before merge. :: none
  • reviewed 2026-09-23T12:49:31.789Z sha 422826d :: needs changes before merge. :: none
  • reviewed 2026-09-23T15:20:00.451Z sha b11dd7173db731e026b7abae9d3b4064ac30d300 :: needs changes before merge. :: none
  • reviewed 2026-09-23T15:54:48.286Z sha 58aea9a :: needs changes before merge. :: none

@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-05-shell-verification branch from 3fc7d33 to d94612e Compare September 21, 2026 10:08
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-04-portability branch from d8f53eb to a683367 Compare September 21, 2026 10:08
@vincentkoc
vincentkoc marked this pull request as ready for review September 21, 2026 10:09
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-04-portability branch from a683367 to 456c7ba Compare September 21, 2026 10:53
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-05-shell-verification branch 2 times, most recently from 989ca28 to cdc60c8 Compare September 21, 2026 11:02
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-04-portability branch from 456c7ba to 8ba9b89 Compare September 21, 2026 11:02
@vincentkoc vincentkoc self-assigned this Sep 21, 2026
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-05-shell-verification branch from cdc60c8 to 8ec741e Compare September 22, 2026 05:21
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-04-portability branch from 8ba9b89 to aee1cdc Compare September 22, 2026 05:21
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the current exact head 8ec741e30718e68b571b2b0d2d1a5e964954ca9a and updated verification section. The accepted selector-admission and benchmark-validator repairs, source-bound native reviews, and fresh packaged proof are documented there. Maintainer acceptance covers this bounded experimental stack; prerequisites must still land first. This requests review only, not repair or merge.

@clawsweeper

clawsweeper Bot commented Sep 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:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the current exact head 72690a2033d63ac1de3d804ca4a5b4a1ae053985 and updated verification section. This is the prerequisite-driven restack of the accepted browser program; source review, repaired invariants, retained proof identities, and remaining packaged/CI gates are explicit. Review only; do not start repair or merge.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-05-shell-verification branch from 72690a2 to 422826d Compare September 23, 2026 12:38
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-04-portability branch from 4a9f390 to 7c67530 Compare September 23, 2026 12:38
Preserve the reviewed browser-stack change while incorporating the landed prerequisites.

Original revision: 8f41f08a1e92c079ad19ab9f3b849be26cf1559b
Preserve the reviewed browser-stack change while incorporating the landed prerequisites.

Original revision: b11dd7173db731e026b7abae9d3b4064ac30d300
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-04-portability branch from 8f41f08 to 455a42f Compare September 23, 2026 15:27
@vincentkoc
vincentkoc force-pushed the feat/lightweight-browser-05-shell-verification branch from b11dd71 to 4b927d5 Compare September 23, 2026 15:27
Supply the required empty policyConfig in the placement lifecycle read fixture. This repairs the inherited check-test-types-core-4 failure while keeping the production browser-stack changes unchanged.
Base automatically changed from feat/lightweight-browser-04-portability to main September 23, 2026 16:01
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S and removed size: XS labels Sep 23, 2026
@vincentkoc
vincentkoc merged commit f5cf1b3 into main Sep 23, 2026
195 checks passed
@vincentkoc
vincentkoc deleted the feat/lightweight-browser-05-shell-verification branch September 23, 2026 16:12
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
…law#154396)

* docs(browser): audit engine licenses and non-AGPL alternatives

Preserve the reviewed browser-stack change while incorporating the landed prerequisites.

Original revision: 8f41f08a1e92c079ad19ab9f3b849be26cf1559b

* feat(browser): verify Chromium headless shell across platforms

Preserve the reviewed browser-stack change while incorporating the landed prerequisites.

Original revision: b11dd7173db731e026b7abae9d3b4064ac30d300

* test(gateway): complete prepared placement read fixture

Supply the required empty policyConfig in the placement lifecycle read fixture. This repairs the inherited check-test-types-core-4 failure while keeping the production browser-stack changes unchanged.
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: browser gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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