Skip to content

accept-native items 6/7: prove the trusted-root guarantee with the sandbox on, and record what the disabled default allows #34

Closed

Description

@SSFSKIM

Problem

Since #20 cua serve sends the disabled sandbox by default, so a js cell can write into cua's trusted code roots (src/services, src/secrets, state/codex, the vendor modules). accept-native items 6 and 7 fail on the probe-secrets step "model cells cannot plant a module in a trusted code root" (first seen in the clean-machine VM run, issue #9; it fails on every Mac). All other probe-secrets steps pass, including the live Keychain round trip.

Owner's decision (2026-10-05)

Keep disabled as the default and make the consequence explicit: run that probe step with CUA_SHIM_SANDBOX=default so the guarantee is proven where the sandbox is on, and state in README and the Decision Log that under the default a cell can write trusted roots (accepted under the trust model; code integrity is then the user's responsibility). A separate spike (#33) looks for a narrow vendor profile.

Success criteria

  • The plant-a-module step (find it in scripts/probe-secrets* / scripts/accept-native.mjs) runs its connection with CUA_SHIM_SANDBOX=default and its report row says so ("sandbox on: trusted roots unwritable"); a second, informational row records what the default (disabled) allows, labelled as accepted, not FAIL.
  • Items 6 and 7 pass on a Mac with the Keychain helper and TextEdit fixture available.
  • README (configuration paragraph for CUA_SHIM_SANDBOX and the acceptance section) and a Decision Log line record the consequence and the decision.
  • Unit tests for the runner's row logic; npm test green.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P1
    status:in-progress
    and removed
    status:ready-for-implementer
    on Oct 5, 2026
  2. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Running the plant-a-module step with CUA_SHIM_SANDBOX=default and adding an informational row for the disabled default (writes removed and verified removed)

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

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #35: plant step proven with CUA_SHIM_SANDBOX=default (PASS, 4 roots EPERM); informational INFO row for the disabled default (writes removed and verified); accept-native --live-keychain items 6 and 7 PASS; review: no material findings

  5. removed
    status:in-review
    on Oct 5, 2026
  6. 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

    bugpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions