Skip to content

feat(browser): 隔离人工网页接管与工作台身份 / isolate manual browser handoff from workbench credentials - #7

Draft
Facetomyself wants to merge 22 commits into
feat/web-workbench-attachmentsfrom
feat/web-workbench-browser
Draft

Facetomyself wants to merge 22 commits into
feat/web-workbench-attachmentsfrom
feat/web-workbench-browser

Conversation

@Facetomyself

@Facetomyself Facetomyself commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #6. Draft: this introduces an optional human-operated browser worker. The existing web workbench remains usable with no browser process; no model can operate the worker.

  • A separate non-root, sandboxed Linux Chromium with an ephemeral profile and private pipe, one fixed page per conversation, limited real user gestures and bounded frames. No general remote debugging, lookup of credentials or injected JavaScript endpoint.
  • Strict deployment site allowlist and a separate Unix-only egress broker; optional Compose worker has network_mode: none, read-only root, no capabilities or app data. No published control or proxy ports. A default-enabled sandbox must actually render and attest or be reported unavailable.
  • The independent lease domain binds an opaque conversation, target generation and logged-in owner; views never publish raw frames or handoff content to model or chat channels. The desktop-derived manual panel and authenticated HTTP adapter are implemented. A protocol test alone does not establish end-to-end browser handoff or full desktop parity.
  • The new real-engine CI target uses only a synthetic local form: claim control of the same target, enter text, submit, verify state/pixels and clean up. No external website or third-party account is required.

Native deployment and verification

  • On an older native amd64 Docker target at 6e8beb9, the workbench and Unix broker built. Default owner login and a real local model turn succeeded. The product Chromium image did not finish building: its single bounded Debian package download timed out (124). A separate, explicitly diagnostic run mounted the verified worker source read-only on an existing compatibility Chromium image. With user namespaces disabled on that kernel, the app honestly reported sandbox-startup-failure, returned 503 on Open, and listed no tab; ordinary chat remained usable. No privilege or kernel settings were relaxed and temporary workloads were removed. This is not a successful product worker deployment.
  • Earlier modern-runner receipt: all four preexisting real Chrome workbench flows, 70 UI checks and 237 server checks passed. The new worker bootstrapped and painted its internal blank document, but positive handoff verification stopped at kernel sandbox attestation. The latest fix identifies the actual browser-owned renderer using the private browser process inventory and Linux ancestry rather than assuming a single process group; it retains the sandbox checks. Positive completion is tracked separately below when verified.

Packaged image on a modern Docker host

  • Independent packaged-image test: the actual optional Debian worker image was built natively for linux/amd64 (440,292,133 bytes; Chromium 156.0.8078.108). Under the documented non-root, no-new-privileges, no-capabilities configuration its sandbox initialization was denied before any fixture access. A successful image build is not a working handoff.
  • Controlled comparison: a separately launched sandboxed Chrome client navigated to the same approved loopback document with W3C and fixed CDP navigation through the restricted fixture proxy. The raw worker did not pass its target policy/navigation gate; the controlled client is not the product. The optional feature remains experimental; full handoff is unverified. Ordinary workbench usage does not depend on this peer.

Facetomyself added 13 commits November 26, 2026 15:11
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