Skip to content

C6 on a machine without the desktop app: the desktop-absent gate - #31

Merged
SSFSKIM merged 5 commits into
mainfrom
feat/c6-desktop-absent
Oct 5, 2026
Merged

SSFSKIM merged 5 commits into
mainfrom
feat/c6-desktop-absent

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Part of #9.

accept-chrome --all's C6 assumed the ChatGPT desktop app's registration was present: its live part accepted only a --replace gate report (backup and byte-for-byte restore of the desktop's manifests), and its refusal check went BLOCKED with nothing foreign to refuse. On the clean-machine VM (no desktop app) neither can hold, so C1–C7 could never pass there.

Parent's definition, implemented:

  • (a) cua chrome register writes cua's manifests into empty slots only: every row placed, no backup, no replacement consequences; the written slots then name cua's host.
  • (b) Chrome launches cua's placed host when the extension is woken: servingHost.pathClass cua.
  • (c) the existing accept-chrome --live round trip passes through it.
  • (d) cua chrome unregister removes cua's manifests (removed/not_needed), and every slot is absent again, deep-equal to the before snapshot.
  • (e) where no browser holds any registration, the refusal and no-op checks are reported N/A (no desktop registration present), never silently skipped, and do not hold the verdict.

The report shape is {scenario: "C6-desktop-absent-live-gate", slotsBefore, register, slotsRegistered, servingHost, roundTrip, unregister, slotsAfter}. The slots come from the new read-only node scripts/accept-chrome.mjs --c6-slots. A desktop-absent report on a machine that holds a registration cua did not write is FAIL, because the --replace gate applies there. Without a report, the BLOCKED steps follow the machine's slots: --replace steps where a foreign registration exists, desktop-absent steps otherwise. The --replace path is unchanged.

Tests:

  • desktop-absent gate pass and 16 failure variants;
  • scenario dispatch and the machine-consistency refusal;
  • BLOCKED step selection;
  • the slot reader;
  • a desktop-absent fixture where the real registerHost/unregisterHost plus snapshots produce a passing report;
  • a registration characterization test (empty slots in, empty slots out), which C6's suite claims now cite.

npm test 421/421. README acceptance section and a Decision Log line updated.

Round 2 (after review ad96b6d..d62808b, three P2s, all fixed):

  • An unreadable slot is unreadable with its error code, never absent (ea4cd93). That keeps the refusal, the no-op, the gate choice and C5 BLOCKED, and it fails a snapshot. On macOS 27, a terminal without Full Disk Access gets EPERM under Chrome's directory.
  • The gate requires Chrome among the placed browsers, with its registered slot cua's (50835d3).
  • Each snapshot must hold exactly one well-formed row per browser (50835d3).

Added scope (parent): C5 without the desktop app. doctorChromeChecks takes the runner's slot snapshot. Where every browser slot is absent, doctor's chrome.host.registered reporting no manifest passes with the stated reason no desktop registration present; absent expected. A disagreement between doctor and the slots fails. Unreadable evidence stays BLOCKED. Without a snapshot, the behaviour is unchanged.

Main (with #27) is merged in; the spec Decision Log conflict was resolved by keeping both entries. npm test 443/443.

Round 3 (after review of the round-2 fixes, two P2s, both fixed in 6ff31e8):

  • C5's "doctor says no manifest but a slot holds one" contradiction now looks only at Chrome's slot, because doctor reads only Chrome's manifest.
  • Unreadable rows in a supplied gate snapshot make the checks that depend on them BLOCKED, with the --c6-slots rerun guidance. Malformed snapshots and established contradictions still FAIL.

npm test 449/449.

Where no browser holds a native-messaging registration (no ChatGPT desktop
app), C6 is judged by a desktop-absent gate report: register writes cua's
manifests into empty slots only with nothing backed up, the slots then name
cua's host, cua's placed host serves the live round trip, and unregister
leaves every slot absent again, identical to the before snapshot. The
refusal and no-op checks that presuppose the desktop's manifest are N/A
there, stated rather than skipped. A desktop-absent report on a machine
holding a foreign registration fails; without a report the BLOCKED steps
follow the machine. accept-chrome --c6-slots prints the slot snapshots.

Part of #9
macOS can deny a terminal without Full Disk Access every read under
Chrome's directory; the slot reader took that for absence, which would let
--c6-slots record 'absent before/after' it never saw and turn the refusal
and no-op checks N/A. Only ENOENT/ENOTDIR is absent now; any other failure
is unreadable with its code, keeps both checks and the gate choice BLOCKED,
and fails a snapshot.
# Conflicts:
#	docs/doperpowers/specs/2026-10-02-standalone-cua-design.md
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