Skip to content

fix(browser): 保持单一沙箱页面并实测人工接管 / keep a single sandboxed page and verify human handoff - #16

Draft
Facetomyself wants to merge 8 commits into
feat/web-workbench-skill-libraryfrom
feat/web-workbench-sandbox-handoff
Draft

Facetomyself wants to merge 8 commits into
feat/web-workbench-skill-libraryfrom
feat/web-workbench-sandbox-handoff

Conversation

@Facetomyself

@Facetomyself Facetomyself commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Verified browser handoff at 40c6d20

Source-based two-browser handoff now passes. Default three-component Docker on the tested runner still denies Chromium sandbox initialization. These are separate results; neither an image build nor a blank probe counts as the real human interaction.

  • Workbench UI and physical second Chromium: a signed-in owner opened the registered synthetic form, took a private lease, focused it, entered text, confirmed, finished and reclaimed the same tab/document. The test compared actual composited PNG identity and receipt pixels, checked the fixture received one submission, observed a real 60-second lease expiry, isolated other chats and logout, and verified an empty model/tool history. The complete job passed, with 166 Workbench tests, 412 headless tests, 30 PTY tests and ordinary Chrome regressions.
  • Raw kernel-attested native engine: 73 worker/broker/lease checks and a real Chinese form submission, response PNG, same-tab continuity, back/forward, cancellation and cleanup passed under the ordinary Linux sandbox. Isolated launch has one about:blank page; the control with default background apps produced three extension workers as well. A separate single-variable A/B tied the previous navigation failure to --disable-crashpad-for-testing restarting Chromium's network service before the first allowed proxy request. Only the testing override was removed. Browser crash reporting remains disabled; the standard container also has a hard core-file limit of zero.
  • Actual native amd64 Compose package: built main d67a82b8448d, broker c6bceb4afc12 and worker 1543902bc5e1. In the unchanged confined worker, the separately invoked native diagnose-sandbox exited 1 with BROWSER_START_FAILED, stage version, command Browser.getVersion, hint sandbox-denied. Owner open was 503, ordinary readiness 200, zero tabs and zero site requests. Exact container, socket, network and volume cleanup succeeded. This runner has not passed the packaged handoff gate; no unrestricted capability, process, CDP, seccomp or network fallback was introduced. The eight browser rows remain partial; no wider agent/multi-tab behavior is claimed.

Stacked on #15; addresses the independent optional Chromium gate introduced with #7. Refs sqfcyily#67.

The previous engine failed before opening the test form: Chromium created another service-worker target as the fresh blank page was being configured. A separate private-pipe observation using sandboxed Chrome for Testing 158 reported one blank page and two extension service workers on the previous command line. With default apps and component extensions with background pages disabled, the same blank-only measurement reported one page and no workers. The diagnostic compares distinct fresh profiles, reports counts/scheme/type only, and never contacts a site. It is not a substitute for a real handoff.

Only the two capability-reducing switches change the production launch behavior. The existing rules for additional targets, origins, frames, file/downloads, certificate validation, scoped input/leases and kernel renderer sandboxing are unchanged. There is no debug TCP listener or model automation interface. Local worker/lease regressions pass, including rejecting extra workers even when they appear after startup.

Separate acceptance gates run (1) the real isolated engine with a synthetic same-tab form, (2) the desktop-derived Workbench UI in a normal Chrome controlling a second sandboxed browser, and (3) the published Compose topology with the normal workbench, broker and Chromium images and an unpublished ephemeral test form. The packaged gate also verifies a real rejection honestly on kernels that cannot start the sandbox (owner open denied, no target document/form activity, normal workbench still ready, graceful teardown). That branch still exits nonzero; it never counts inability to launch as a supported handoff. No host kernel, container security profile or deployed service is altered to obtain a passing result. Hosted evidence is below.

Actual results at 660a03e

  • Hosted source kernel/engine check: 64 worker/egress/lease unit and integration checks passed. On installed Google Chrome 157 the unmodified blank startup produced one page + three extension service workers; with the two fixed switches it produced just the one page. The engine got past the original target rejection, painted its blank page and passed the renderer attestation before opening the registered form. The entry navigation still failed: BROWSER_TIMEOUT, Page.navigate sent once with no acknowledgement, zero intercepted document requests/responses, zero broker HTTP/CONNECT or target hits. No genuine submission or same-tab return is claimed.
  • Real client and second sandboxed browser: workbench started, the client renderer passed its own kernel check, a real owner claimed and logged in, an existing chat and CSRF boundary were exercised, but opening the permitted site did not reach the open UI state (PANEL_STATE_MISMATCH). This was not a successful remote handoff.
  • Actual three-image native amd64 Compose gate: built workbench sha256:1c9ddfb4c99b183c899ed468c2937c3c82af29cd6da60bc4429c03b7e85d6280, broker sha256:75208c2ade75826c24075d7edd29d280411eda07426fb5e7c5dcb3b65c45c81e, browser sha256:aa9c599956fd37583fdf12063b6cfa374de56e95ccb81bb8f77e80d2443fe534. The deployed private socket and egress topology was instantiated. Under standard restricted Docker settings, worker state was sandbox-startup-failure, despite positive user namespace quotas. The authenticated open returned 503; main /readyz returned 200; zero tabs, zero fixture GETs or form POSTs. The worker socket disappeared on shutdown and the exact project containers, network, volumes and private test directory were removed. This is a verified failure/fail-closed path on that runner—not a successful deployment or a claim of its exact kernel cause.
  • No parity method promoted based on the blank-target diagnostic. No engine, socket, target or transport security setting was loosened to make a check pass.

Guarded pictures at 812a590

A separate local Linux/arm64 run on Chrome for Testing 158 at 812a590 produced two cropped, verified pictures from the synthetic two-browser Workbench scenario. It kept real production auth, broker, native private session and renderer sandbox attestation. The local client used private pipes rather than ChromeDriver; the sanctioned launcher required an initially empty user profile. The original capture gates matched the approved tab/document identity and actual displayed PNG pixels before writing any file. First capture: blank synthetic form before any input (12f01956bc6e2d7f3cd4dd666262e1452851c93955f40bc7980207d8d9c9e4e3); second: confirmed receipt after finish and reclaim of the same tab (ee2d217f641a3b9d5669b62a12d297aa34dc0b79b24bd6304e7e63d857f29f15). Each is 820×836 and cropped to the dialog without the random challenge strip. The app passed real expiry/logout/idle checks and teardown before publication. This supplements—but does not replace—the green hosted W3C run at 40c6d20 and the separate failing packaged sandbox gate. No GitHub Actions artifact is claimed for the new picture-only commit: dispatch on this repository later reported HTTP 422, Actions disabled.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant