Repository navigation
fix(browser): 保持单一沙箱页面并实测人工接管 / keep a single sandboxed page and verify human handoff - #16
Draft
Facetomyself wants to merge 8 commits into
Draft
Facetomyself wants to merge 8 commits into
Facetomyself wants to merge 8 commits into
Conversation
added 8 commits
November 27, 2026 00:46
…wning in the isolated browser
…workbench session
…ricted egress and manual handoff
… the first approved navigation
… from utility restarts and teardown
…ner sandbox probe
… from container sandbox readiness
…before control and after reclaim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verified browser handoff at
40c6d20Source-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.
about:blankpage; 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-testingrestarting 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.d67a82b8448d, brokerc6bceb4afc12and worker1543902bc5e1. In the unchanged confined worker, the separately invoked nativediagnose-sandboxexited 1 withBROWSER_START_FAILED, stageversion, commandBrowser.getVersion, hintsandbox-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
660a03eBROWSER_TIMEOUT,Page.navigatesent 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.openUI state (PANEL_STATE_MISMATCH). This was not a successful remote handoff.sha256:1c9ddfb4c99b183c899ed468c2937c3c82af29cd6da60bc4429c03b7e85d6280, brokersha256:75208c2ade75826c24075d7edd29d280411eda07426fb5e7c5dcb3b65c45c81e, browsersha256:aa9c599956fd37583fdf12063b6cfa374de56e95ccb81bb8f77e80d2443fe534. The deployed private socket and egress topology was instantiated. Under standard restricted Docker settings, worker state wassandbox-startup-failure, despite positive user namespace quotas. The authenticated open returned 503; main/readyzreturned 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.Guarded pictures at
812a590A separate local Linux/arm64 run on Chrome for Testing 158 at
812a590produced 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 at40c6d20and 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.