Skip to content

Add first-class browser computer use with live session viewing #17

Closed

Description

@ElbertePlinio

Goal

Make PickLab a production-ready, provider-neutral computer-use runtime: agents can launch an isolated headed browser, combine visual and semantic control, watch the session live, inspect replayable evidence, and hand control to a human without exposing the real desktop.

Product decisions

  • Xvfb remains the only display server in v1. Xephyr is out.
  • picklab watch opens a host-side VNC viewer against the isolated display. Observation is server-enforced read-only.
  • A browser session is one record owning private Xvfb and Chrome legs.
  • Chrome uses an ephemeral profile, scrubbed environment, loopback CDP with port 0, and DevToolsActivePort readback.
  • The official Chrome DevTools MCP is reached through a framing-aware PickLab relay, not reimplemented.
  • Evidence is append-only and renders as a static HTML filmstrip.
  • Human control uses an atomic lease plus short-lived agent permits. No control state is stored authoritatively in session JSON.
  • Android viewing/takeover, persistent browser profiles, Firefox/WebKit, uid sandboxing, and remote multi-user viewing are out of scope for v1.
  • No feature flag: each PR preserves current defaults and is independently releasable.

Security posture

Browser/CDP processes still run as the invoking user. V1 is for authorized, trusted development and QA — not hostile-page isolation. VNC and CDP bind loopback only, browser profiles are ephemeral, Chrome receives a scrubbed environment, process groups are verified and killed before profile deletion, and secrets/capability URLs are excluded from persisted diagnostics. SECURITY.md must document the residual same-UID/local-process risk before #18 closes.

PR plan

Dependency order

PR 1 -> PR 3 --------------------------┐
PR 2 -> PR 5 -> PR 6 -> PR 7 ---------+-> PR 8 -> PR 9
PR 4 ----------------------------------┘

PR 1 and PR 2 may proceed independently. PR 4 is also independent, but must land before the final computer-use claim. Shared CLI/MCP session wiring is serialized to keep reviews clean.

Production acceptance

  • A coding agent configures PickLab once and can recreate browser sessions without MCP config edits.
  • Visual desktop tools and semantic DevTools tools operate on the same isolated headed Chrome.
  • picklab watch can attach to an already-running session; closing the viewer never stops or corrupts it.
  • Normal viewing is read-only. watch --control prevents PickLab-managed agent input after human acquisition completes.
  • Sensitive typed values, cookies, headers, bodies, query tokens, JWTs, OTPs, and CDP websocket capabilities never enter persisted evidence.
  • Screenshot pixels are explicitly not claimed to be redactable; automatic capture is suppressed around sensitive inputs.
  • Two concurrent browser sessions have distinct displays, profiles, and CDP ports.
  • Destroy/reap leaves no Chrome process-group members or ephemeral profile data.
  • Hosted CI passes typecheck, tests, coverage, and build without silent prerequisite skips.
  • Before closing: attach one real watch recording and one pause → control → return → resume recording.

Current status: Complete. Final fix merged in #108 (3adf3a9); current-main CI passed on attempt 1.
Next: Follow-up hardening is tracked separately in #110, #111, and #112.

Closure evidence

Requirement-indexed report, screenshots, recordings, raw logs, checksums, and independent vision PASS: ~/Projects/Boards/pickforge/0.4-release/issue17-final/REPORT.md. SHA256SUMS verifies 402 files.

Activity

  1. ElbertePlinio commented on Jul 12, 2026

    @ElbertePlinio
    MemberAuthor

    Baseline observed with PickLab itself (current main):

    • Created isolated 1280x800 Xvfb session
    • Launched xterm and visually inspected screenshots
    • Click → type → key flow worked and produced visible PICKLAB_BASELINE_OK
    • Session destroy cleaned the lab record/process
    • desktop_launch did not focus the launched window; typing before an explicit click produced no visible input
    • session_status exposes display/PID but not width/height
    • Local VNC path could not run because x11vnc is not installed; current error is actionable
    • Artifact report is an inventory only, not an action timeline/replay

    Artifacts: .picklab/runs/20260712-054636-baseline-before-input, 20260712-054651-baseline-after-input, 20260712-054708-baseline-click-focus

    These observations align with PR 1/2/7 scope. No real desktop was touched.

  2. ElbertePlinio commented on Jul 12, 2026

    @ElbertePlinio
    MemberAuthor

    Continuation kickoff:

    No feature flag: each slice remains independently releasable and current defaults stay unchanged.

    Current status: In progress
    Next: merge #23/#25, replace #24 with corrected reviewed contracts, then ship watch and Chrome lifecycle.

  3. ElbertePlinio commented on Jul 12, 2026

    @ElbertePlinio
    MemberAuthor

    Foundation checkpoint:

    No feature flag; current defaults remain unchanged.

    Current status: In progress
    Next: ship PRs 3 and 5.

  4. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    PR 5 lifecycle update: #28 is now at reviewed HEAD 104db9d.

    PR 3 watch and PR 6 relay remain stacked on the lifecycle branch and will be rebased after #28 lands.

    Current status: PR #28 CI queued
    Next: merge lifecycle, then rebase/review watch and relay.

  5. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    PR 5 #28 merged at eddf853.

    Completed slices:

    Current status: In progress
    Next: rebase and ship PR 3 live watch, then PR 6 DevTools MCP relay.

  6. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    PR 3 live watch opened: #30

    Current status: review-clean locally; required CI pending.
    Next: ship #30, then ship PR 6 DevTools MCP relay.

  7. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    PR 3 #30 merged at ad4d177.

    Completed computer-use slices now include VNC safety, contracts, pointer controls, Chrome lifecycle, and live watch.

    Current status: In progress
    Next: rebase and ship PR 6 DevTools MCP relay.

  8. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    PR 6 DevTools MCP relay opened: #31.

    Current status: review-clean locally; required CI pending. Installer mirror is staged in pickforge/landing-page#21 and will be merged immediately after the canonical installer reaches PickLab main.

    Next: ship #31 and the mirror PR.

  9. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    PR 6 #31 merged at ac20ca8; installer mirror pickforge/landing-page#21 merged at 9d9f64b.

    Completed computer-use slices now include live watch, full pointer control, isolated Chrome lifecycle, and the official DevTools MCP relay.

    Current status: In progress
    Next: PR 7 action evidence and HTML filmstrip (#20), then supervised takeover (#21).

  10. ElbertePlinio commented on Sep 5, 2026

    @ElbertePlinio
    MemberAuthor

    Current-main acceptance audit is complete and independently reviewed.

    • Exact merged fix: fix(browser): start headed Chrome from nested homes; keep a desktop test out of the real home #108 / 3adf3a9
    • Main CI: run 33950489942, all five jobs green on attempt 1
    • Real isolated headed Chrome used through both desktop input and the official DevTools relay
    • Read-only watch attached and closed without damaging the session
    • Full pause → control → human interaction → return → agent resume sequence recorded
    • Two concurrent sessions had distinct displays, profiles, temp aliases, and CDP ports
    • Planted typed/query/cookie/JWT/OTP/CDP values were absent from persisted evidence; explicit screenshot pixels remain honestly non-redactable
    • Destroy left no Chrome, Xvfb, x11vnc, viewer, watchdog, listener, display socket, browser profile, or temp alias
    • Independent claude-opus-5 visual verdict: PASS
    • Evidence packet: ~/Projects/Boards/pickforge/0.4-release/issue17-final/REPORT.md; 402 files verified by SHA256SUMS

    The first Chrome start and first viewer-close attempts failed and remain in the packet with diagnoses. Follow-ups are #110 (orphan evidence runs), #111 (stopped-session log retention), and #112 (Chrome background egress). They do not invalidate this issue's acceptance contract.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions