Skip to content

cua serve sends no sandbox metadata, so node_repl denies all writes (temp dirs included): decide the sandbox profile #20

Closed

Description

@SSFSKIM

Decision needed (owner)

cua serve never sends _meta["codex/sandbox-state-meta"] on tool calls, so node_repl applies its restrictive default sandbox: reads allowed, writes denied everywhere, including $TMPDIR and /tmp. Spike #8 proved this is what breaks the vendor's profile enrichment (mkdtemp EPERM). It very likely also breaks every vendor feature that needs scratch space: downloads, uploads, screenshots to disk, the untested items of residue 4 (#15). With {"permissionProfile":{"type":"disabled"}} the enrichment works.

Question

Which sandbox metadata should cua serve send with every js call?

  1. disabled (recommended under the project's trust model: the design says the agent is trusted and cua adds no anti-exfiltration policy; the desktop app's own computer-use sessions run with the host-chosen profile). Simplest, unblocks every vendor feature at once. Cost: node_repl's JS cells can write anywhere the user can.
  2. A narrow profile that permits writes under cua's temp/run directories only, if the vendor schema has one (research: enumerate the permissionProfile types node_repl accepts, from the readable vendor source). Cost: a spike first, and some vendor features may still need other paths.
  3. Keep the default and work around it feature by feature (profiles bind: label live backends with their Chrome profile directory and name, computed by cua itself #21 does this for labels). Cost: residue 4 features stay broken.

When decided

Implement as a server setting (CUA_SHIM_SANDBOX, default per the decision), document in README's configuration table, record the decision in the spec's Decision Log (it changes what the runtime may do on the user's machine), verify with the labelled listing and one download.

Activity

  1. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] needs-human: Owner decision: which codex/sandbox-state-meta permissionProfile cua serve should send. Recommended: disabled (trust model: agent is trusted, no anti-exfiltration policy); alternative: a narrow temp-only profile after a schema spike; or keep the write-denying default and work around per feature.

  2. added
    enhancement
    status:needs-human
    priority:P1
    on Oct 5, 2026
  3. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [answers] Owner's decision (2026-10-05): send permissionProfile type 'disabled' on every call cua makes to node_repl. Rationale: matches the design's trust model (the agent is trusted; cua adds no anti-exfiltration policy) and unblocks every vendor feature needing scratch space at once. Accepted cost: JS cells may write anywhere the user can. Implement as CUA_SHIM_SANDBOX (default disabled; 'default' sends nothing), README config table, spec Decision Log.

  4. added
    status:ready-for-implementer
    and removed
    status:needs-human
    on Oct 5, 2026
  5. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-implementer: owner answered: disabled; implementation dispatched on feat/sandbox-meta

  6. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Oct 5, 2026
  7. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Implementing CUA_SHIM_SANDBOX (default disabled): sandbox-state-meta on js/js_reset/turn_ended and the profiles listing launch; a probe shows node_repl also requires sandboxCwd (file URI)

  8. added
    status:in-review
    and removed
    status:in-progress
    on Oct 5, 2026
  9. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #22: CUA_SHIM_SANDBOX (default disabled) on js/js_reset/turn_ended and the listing launch; live write ok/EPERM, labels 3/3 vs 0/3, verify green; independent review dispatched

  10. removed
    status:in-review
    on Oct 5, 2026
  11. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: merged to main

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

    enhancementpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions