Skip to content

Vendor node_repl on Linux runs cells unconfined when the sandbox launcher fails after preflight #135

Closed

Description

@SSFSKIM

Observation (M0 of #116, task 3, 2026-10-14)

On Linux, the vendor node_repl fails open when its sandbox launcher fails at runtime: with CODEX_CLI_PATH pointed at a harness-owned script whose sandbox subcommand exits 73, the vendor host returned isError:false and the cell wrote a sentinel outside cwd and TMPDIR, inside the harness-owned directory. The same injected failure is refused on macOS (mini). Recorded in the #116 spec's Decision Log and Surprises (172a6bb) as a declared vendor-defect observation; the parity case keeps its independent assertion and is never skipped or normalized.

Exposure

On the vendor route, cua's pre-launch preflight is the only guard. A launcher that passes preflight and then fails at cell time runs cells unconfined on Linux. After #116 M5 the own host is the Linux default and refuses in this case, so the exposure remains only for Linux sessions explicitly routed to the vendor host (CUA_REPL_HOST=vendor, or a vendor-routed browser-service home).

Proposed hardening

A post-launch confinement self-check on the vendor route: after the host starts, run one probe cell that attempts a write outside cwd/TMPDIR and refuse the session (surface text plus doctor row) if it succeeds. Alternative: refuse the vendor host on Linux once the own host is default, leaving the override macOS-only. Owner's call on which.

Acceptance

Injected launcher failure on a Linux vendor-routed session yields a refusal before any user cell runs; the #116 parity case for this scenario records the refusal as the vendor-side result; macOS behaviour unchanged.

Activity

  1. added
    bug
    status:needs-human
    priority:P2
    on Oct 14, 2026
  2. SSFSKIM commented on Oct 14, 2026

    @SSFSKIM
    OwnerAuthor

    [board] needs-human: Found by #116 M0 task 3 (spec 172a6bb). Own host refuses from M1; vendor-routed Linux sessions stay exposed. Hardening choice (post-launch self-check vs refusing vendor on Linux after M5) is the owner's.

  3. added 2 commits that reference this issue on Oct 14, 2026
  4. SSFSKIM commented on Oct 17, 2026

    @SSFSKIM
    OwnerAuthor

    Owner ruling 2026-10-17: the alternative is chosen. #115 retires the vendor host on Linux (CUA_REPL_HOST=vendor refused there; #79 removes the vendor browser route), so no Linux session runs on the vendor node_repl and its fail-open path is unreachable. Closes with #115.

  5. added
    status:deferred
    and removed
    status:needs-human
    on Oct 17, 2026
  6. SSFSKIM commented on Oct 17, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Resolved by #115's retirement of the Linux vendor host (owner ruling 2026-10-17); closes when #115 lands.

  7. removed
    status:deferred
    on Oct 18, 2026
  8. SSFSKIM commented on Oct 18, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Closed with #115: the Linux vendor host is retired (M3, #160), so the unconfined-after-failed-launch path no longer exists in current cua. Older cua versions sharing a home are covered by the 0.15.0 notes (update every cua first, then prune).

  9. added a commit that references this issue on Nov 29, 2026
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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions