Repository navigation
Conversation
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Keep AX grants on the running engine, relay-relaunch only after a Screen Recording failure, preserve actionable permission metadata, and add an opt-in foreground approve experiment. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Pin acquisition-only installs to vendor and require the macOS reinstall result to confirm the engine was skipped. Preserve driven-session selection and document explicit own-engine MCP registration. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Require the harness-owned PID and CG window number, write AX size then position without activation, and verify bounded CG frame readback. Keep the command Finder-only and non-prompting. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
…pendencies Split fresh onboarding into opt-in item 14. Prove model permission errors, staged owner grants, same-connection service relaunch, intervention off/on and approved-engine recovery without automating TCC. Refuse incomplete item selections before work and retain whole-suite failure qualifications. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Publish only verified download metadata from sandbox-live. Require a successful recorded run containing the latest acquisition anchor with equivalent acquisition bytes; leave absent or stale evidence blocked without downloading on the mini. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Refs #196. Share onboarding's on-screen window inventory, retain off-screen counts and bounds only, and reread windows plus process launch identity before quitting. Visible windows, foreign PIDs and unreadable lists remain blocking. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Key guidance validation by permission and ENGINE_GRANTS so the real Screen & System Audio Recording sentence passes. Independently hash this checkout before allowing owner revocation; a stale approved engine is not acceptance evidence. Cover producer wording and no-action stale-build refusal. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Record the refined fixture-window ownership guard and hosted permission assumptions. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Refs #196. Record title-free window IDs and bounds at the fixture's own empty launch. Before quitting, require current off-screen IDs to be a subset of that same PID/start-time inventory; new or unclassified windows block cleanup with evidence. Preserve the identity reread after the window probe. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Read doctor before the owner grants Screen Recording and require its intervention-off sentence alongside the AX-only grant state. Reuse the same doctor helper after capture recovery for input-meta proof, and test that missing early diagnostics stop before the SR owner prompt. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Record the coordinator disposition and outstanding fix-wave proof. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
…ixture cleanup Tie Screen Recording recovery to the verified engine PID, retaining pending recovery on a same-process reconnect or no-op launch. Stop classifying launch-time off-screen windows as internal; keep restored documents unsignalled and report sanitized remaining-window evidence. Scope owner no-save guidance to the disposable fixture. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Default item14 to a validated 25-minute owner budget with --owner-window-minutes. Cap each terminal wait at five minutes or the remaining overall time, retain expiry diagnostics, and block later input and approval stages after expiry. Clarify blank TextEdit preparation and preserve bounded in-flight cleanup semantics. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Keep manual Settings, fixture and approval confirmations within the remaining overall budget without imposing a new five-minute limit. Retain clipped alert timers and expiry diagnostics; correct the legacy owner-window header. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Check the exported identifier rather than the local alias, with ordinary and aliased import regressions that still reject missing exports. Runtime code remains unchanged. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Keep owner interval history separate from current-state evidence. Bound alert resolution and fresh observations by one gate deadline, and recheck process capabilities and fixture identity before continuing. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Select an unanswered alert by both category and compatible reported button, allowing same-category responses out of order without resolving other pending alerts. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Pin repeated AX and Screen Recording refusals and exact guidance without requests. Inject approval dependencies without changing approval policy to cover explicit requests and capture gating. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Owner declined the passive prompting policy; restore the existing permission tests and approval implementation. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
… approval" Owner retains ordinary missing-permission prompting. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Owner considered and declined the passive prompting policy. Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 31, 2026
The agent cursor changes what a macOS session on cua's engine shows and the first-call document, so the plugin takes the next minor. Only the two version lines change: a renumber at rebase, should #171's M3 or #211 merge first, touches this commit alone. Sminos-Session: cursor235#b93055dd (cua on macbook)
This was referenced Oct 31, 2026
SSFSKIM
added a commit
that referenced
this pull request
Nov 23, 2026
…s rulings folded in (refs #117) The pre-flight for the macOS default switch: the state of M4, M5 and #211, every acceptance item mapped to a hosted runner, a hosted runner with a named change, or the owner's MacBook with the owner present, the owner's items in one list, the tickets that gate the switch, and the tasks T0 to T14. Revision 2 folds ruling 1108: #211 is re-cut; a declared departure may only be cua being more conservative than the vendor; the minimum-engine rule lands before the flip and the owner rebuilds on the MacBook before it merges; the owner-run onboarding does not gate; H0 runs its part without TCC writes now, and the rest only after the owner's yes is in the Decision Log. Sminos-Session: cursor235#b93055dd (cua on macbook)
Owner
Author
|
Closed by design ruling 1108 (#117 M4+M5 pre-flight, R2): M4 is re-cut from main and ported task by task from this branch's head a8c3bc1. The branch feat/117-m4 stays as the record. Plan: docs/doperpowers/specs/2026-10-18-own-native-engine-m4m5-preflight.md on docs/117-progress (d471260), §3 and §8. Sminos-Session: cursor235#b93055dd (cua on macbook) |
SSFSKIM
added a commit
that referenced
this pull request
Nov 23, 2026
…rom feat/117-m4, as written (refs #117) The 24 Decision Log entries and 9 observations feat/117-m4 added from 2026-10-22 to 2026-10-24 (head a8c3bc1, closed PR #211), text verbatim, in each section's oldest-first order: the decisions as a dated block before the M4 re-cut's, which supersedes them where they differ. Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 23, 2026
…d gate and records (#505) (#513) * cua install builds and signs the macOS engine when selected or with --engine, left pending for cua engine approve (refs #117) --engine now means one thing on both platforms: cua's engine is required, so only with it does the engine step's failure fail the install. On macOS the step runs last, builds through buildEngine at HOME's approved location when CUA_NATIVE_ENGINE or engine.json selects cua (or --engine asks), takes --engine-sign adhoc and --sign-wait / CUA_SIGN_WAIT_MS as engine build does, and never approves: approval stays cua engine approve's, with the owner at the console. The selection's engine_not_installed sentence and doctor's fallback sentence now say exactly that. engine build's text no longer reads "signed with signed with". Sminos-Session: cursor235#b93055dd (cua on macbook) * Harness acquisition installs pin the vendor engine so they never build one (refs #117) Now that cua install builds the macOS engine when it is selected, the parity and baseline harnesses' acquisition-only installs (native-baseline preparation, the remote endpoint, the selection device, the browser-parity capability home) set CUA_NATIVE_ENGINE=vendor on the install step alone, so an inherited selection or a later default never builds an unapproved engine under a scratch HOME. The sessions they then drive keep their own selection. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: the M4 re-cut's Decision Log block, with T1's install decisions (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: permissionsPending names its permission and the by-hand grant steps (refs #117) The Accessibility and Screen Recording refusals now say "cua Engine needs <pane>" with doctor's grantSteps words (System Settings, the "+" button, the bundle's own path) and carry meta.permission, which an input method's meta keeps. The system requests stay (the owner's decision of 2026-10-24). Ported from feat/117-m4's a1af72e onto today's DesktopGate-wrapped requests. Sminos-Session: cursor235#b93055dd (cua on macbook) * Screen Recording recovery on the next screenshot, cua/permission, and the foreground approve (refs #117) The engine client relaunches the engine once on the screenshot after a Screen Recording permissionsPending (shutdown on the checked connection, busy keeps the engine and the original sentence, the engine's close awaited, a launch through the relay), tied to the failing engine's pid so an outside restart counts and a reconnect does not; end_task's generation still stops it. The service carries meta.permission as cua/permission. cua engine approve --foreground launches the first approve's engine in the foreground. Ported from feat/117-m4 (a1af72e, c44e307) onto today's client. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: ruling 1118 (builds go beside the approved engine) and T2's permission-flow decisions (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine builds go beside the approved engine; cua engine approve promotes them and restores on failure (refs #117) Design ruling 1118. buildEngine signs into the pending slot (engine/pending/cua Engine.app) and never touches the approved bundle, approved.json or the running engine, so a busy engine no longer blocks a build. cua engine approve promotes the pending build (stopping the engine, refusing while another connection is open), runs the approve flow, and puts the previous bundle back with approved.json unchanged when it does not complete. Status, doctor and the client's mismatch sentences name the pending build and cua engine approve. The no-approval proof now runs through cua install, plain and --engine, with the real builder. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T1's fix wave, the pending slot beside the approved engine (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine client: end_task during the screenshot's pid read cancels it; an unconfirmed replacement is not observed (refs #117) The pid's status is read on a captured connection and the generation rechecked before the pid is kept, before the relaunch goes on and before the screenshot is written, so an end_task there is the ordinary Released, not a TypeError on a cleared connection. A launch that brings back the failing pid answers the original permission error and keeps the relaunch owed. Review findings 1 and 2 on 16a2762. Sminos-Session: cursor235#b93055dd (cua on macbook) * cua engine approve's promote: rollback puts the approved build back first, survives Ctrl-C and kill -9, and keeps a build published meanwhile (refs #117) The rollback parks the promoted bundle under this process's name, puts previous back, and only then returns the promoted one to the pending slot if a newer build has not taken it; success clears only what it promoted. Ctrl-C at cua engine approve aborts through the same rollback, and a promote left cut short (promoting.json naming a process that is gone) is recovered by the next approve or build. A no-op build keeps a different pending build. A promoted engine that refuses the rollback's stop is reported as still holding the socket, with cua engine stop as the remedy, and a failed first approve no longer claims a previous build came back. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T1's fix wave 2, the promote's rollback and recovery (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine client: no shutdown for a screenshot end_task cancelled after its pid read (refs #117) With a relaunch owed, end_task could come after the pid read had checked the generation and returned, before the request resumed: the relaunch then wrote shutdown on the pipe end_task leaves open for endTask, and an idle engine would exit for a cancelled request. The generation is now checked after each await of the pid read and at the relaunch's start. Review finding on fda61df. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: the M4 re-cut's task list in Progress, T2 reviewed clean (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine probe: window-frame pins a harness-owned Finder window by exact AX identity and CG read-back (refs #117) Ported from feat/117-m4 (M4.5-D, M4.6, M4.8 at 75c9123): `cua-engine --probe window-frame --pid <n> --window <cgWindowID> --frame <x,y,w,h>` writes size once, waits for CG size convergence, writes position once, and reads the frame back. Exit 0 matched, 2 identity refused (with bounded stage diagnostics), 3 no AX trust, 4 unsettable or write failure, 5 final read-back did not converge, 6 size did not converge (position not written), 64 usage. Positively non-AXWindow entries are excluded and listed; the bounded geometry trace is kept on every result. Identity now uses AX.swift's axWindowNumber (the SPI alone, no frame fallback), which main added since M4. Sminos-Session: cursor235#b93055dd (cua on macbook) * Finder harness: pin the frame through the window-frame probe, judge one ordered snapshot, own recovery records (refs #117, #182, #183) PR #199 (e799979) ported onto today's main beside the probe it calls: - Finder's setup ends with the window-frame probe pinning 920x520 at (80,80) after the chrome toggles; a pin that is not exact on the run's own window stops setup. The pin's result, diagnostics, excluded entries and bounded trace are kept in the scene state, the activation evidence and finder-steps.jsonl. - Finder's activation judges one ordered on-screen layer-0 snapshot (front-window.swift `order`), raises the run's window at most once, and names an obstructing owner (Claude and Chrome by name only). - live-device begin refuses while a front or Finder recovery record remains; the front record is created exclusively and cleared only after the saved process is back in front. - goldens and native-mac settle the run's probes before any restoration (goldens-device settle-probes). Against main: `order` takes main's --skip-pid as `front` does, and Finder's activation passes over the approved engine's own windows (the agent cursor's panel, #235), as every other front reading of the harness. Sminos-Session: cursor235#b93055dd (cua on macbook) * cua engine approve is exclusive, and a cut-short promote is recovered by build and signature (refs #117) promoting.json is now the approve lock: created with O_EXCL before the pending slot is read and held until approve returns, so a second approve is refused, naming the first's pid and Ctrl-C, and can neither approve a promoted bundle in place nor promote over the first's previous. A marker whose pid is gone is taken over and its promote recovered; builds never take the lock. Recovery judges previous and the approved path as approval() does, so a re-signed copy of the same build no longer strands the approved bundle in previous. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: M4's own Decision Log and Surprises entries from feat/117-m4, as written (refs #117) The 24 Decision Log entries and 9 observations feat/117-m4 added from 2026-10-22 to 2026-10-24 (head a8c3bc1, closed PR #211), text verbatim, in each section's oldest-first order: the decisions as a dated block before the M4 re-cut's, which supersedes them where they differ. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine: M4's report from the closed feat/117-m4, as its record (refs #117) Copied verbatim from a8c3bc1 (closed PR #211) under a note saying it is the closed branch's record and that the re-cut's own account follows at its finish. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T1 fix wave 3 and T5 decisions; EngineInstall and the window-frame probe in Interfaces (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T1 reviewed clean (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * M4's live evidence from the closed feat/117-m4, after an owner-content check (refs #117) 37 of the 47 files under docs/evidence/2026-10-22-own-native-engine-m4/ at a8c3bc1, byte-identical. The other 10 each name a home-directory path and are left out, as the check's rule says; the directory's README records the check and names each file left out with its reason. Sminos-Session: cursor235#b93055dd (cua on macbook) * M4's live evidence: the 10 files with the account home path, after the design session's ruling (refs #117) The design session ruled on 2026-11-23 that the bare account path /Users/new/ is not owner content (ruling 1124 as precedent; the path is in 4,045 public files on main). The 10 files left out for it are added byte-identical to a8c3bc1, and the README records the ruling and that the check stands otherwise. All 47 of the branch's files are now here. Sminos-Session: cursor235#b93055dd (cua on macbook) * M2b hold 10's evidence: the last matrix run against the vendor, after an owner-content check (refs #117) All 103 files of hold10-20261023-184-188 (2026-10-23, the mini, build d0b2fa13), byte-identical, from the coordinator's job directory: the matrix pair, the native-mac pair with acceptance 6's 0 unexpected differences, route A/B, the #188 diagnostic and the Finder pin. Every file was read for owner content; all passed, the account home path by the design session's ruling of 2026-11-23. The README records the check. The 9 logs are force-added past the repository's *.log ignore. Sminos-Session: cursor235#b93055dd (cua on macbook) * engine-swift builds the real bundle with cua engine build --sign adhoc and verifies it in the pending slot (refs #117) The gate now runs Node: cua engine build --sign adhoc --json under a scratch HOME, then scripts/engine-gate/verify-bundle.mjs checks the answer and the bundle: pending in the slot, this checkout's build and version, bundle id, LSUIElement, a strict ad hoc signature with hardened runtime and no entitlements, pending.json, and nothing approved. Nothing approves, launches or opens the bundle. The unit tests run on the build's scratch, and the control build stays. Sminos-Session: cursor235#b93055dd (cua on macbook) * sandbox-live publishes the verified download proof and installs with the vendor engine pinned (refs #117) hosted-gate.sh's install pins CUA_NATIVE_ENGINE=vendor on that one command, so the gate never builds cua's engine before or after the default flips; nothing in it needs a real engine. download-proof.mjs prints only the verified pin metadata of a fresh download (outcome, source, release, URL host, SHA-256, byte count), the hosted evidence acceptance item 2 cites. M0's scratch root is read from the captures' provenance (recorded-root.mjs) instead of an account's home written in the script; it resolves to the same root, so no fingerprint moves. Ported from feat/117-m4 (ced790b, 24685bb). Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T7 reviewed clean (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * accept-native: item 14 in its owner form, selections that carry their dependencies, the structured reporter, bounded TextEdit cleanup and the build-beside reinstall (refs #117) Ported from feat/117-m4 at 4297d18 (M4.2, M4.5-A/B/C, M4.7, M4.9 and their fixes), leaving out M4.10's coordinator current-display gates. Main had not changed these files since the branch point. - Item 14: the capability-based fresh onboarding, the owner or an operator at the console revoking and re-adding cua Engine's grants; --owner-window-minutes kept. It refuses (BLOCKED) a build pending beside the approved engine, before the owner window and again before approve, which would promote it. Each cell's reply facts now keep its cua/permission; replyFacts and doctorFacts are exported for a driver that sets the stages another way (T3b). - #197: --items must carry each item's dependencies (ITEM_DEPENDENCIES); optInGaps names the items a run leaves BLOCKED for a missing opt-in, on stderr before any item and in the report. Sitting D's selection (1-8, 10-13 with both live flags) resolves complete and without item 9; --live-textedit alone leaves item 6 BLOCKED. - The structured suite reporter and its sanitized diagnostics; the secrets probe's orderly teardown and drained streams; the TextEdit fixture's RTF placeholder and exact readback; #196's bounded cleanup (any remaining window blocks the quit, evidence by number and bounds). - Item 2's reinstall on cua's engine runs the engine step and must leave the approved bundle and approved.json untouched: either nothing changes (the approved build is this checkout's) or a pending build sits at the bundlePath the answer names. On the vendor's engine it stays acquisition-only. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T3, T4 and T7 decisions in the M4 re-cut block (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Finder harness fix wave: the key guard passes over the engine's windows, pending probe launches are established, unusable recovery records are kept (refs #117) - goldens-device's key-guard front reading skips the approved engine's pids, as Finder's activation does, so the agent cursor's panel no longer refuses teardown keys; any other process's window still does. - A pending probe launch names its launcher in the journal. Settlement, recovery and the put-back wait (bounded) until each pending launch is resolved or its launcher and any open of a bundle probe are gone, and wait out this run's goldens-device setup steps by their --run; one still open at the bound is not settled, with the manual step. - The put-back tells an absent recovery record from a valid one and from one present but unusable (null, unreadable, wrong shape): the unusable one is kept and the recovery is not ok, as begin refuses on it. - The window-frame probe's AX list keeps an oversized count (limit-exceeded) without materializing the list. Sminos-Session: cursor235#b93055dd (cua on macbook) * sandbox-live resolves M0's recorded root inside the replay step, and verify-bundle names its metadata check as such (refs #117) Bad capture provenance now fails the two capture replays alone; install, the fingerprints, own-sandbox, probe-secrets and the engine lanes still run and are reported. A test runs the gate's own quiet, step and port_vs_capture under sh with scratch and publish stubbed. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T4 reviewed clean (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Finder harness recovery: only the journal settles a pending launch, recover waits before it stops, records present by lstat (refs #117) - A pending probe launch is over only once the journal holds its outcome row; an empty process table is no evidence. One still pending at the bound is not settled, and the manual step says how a person records it. - recover awaits launches before its owned-process snapshot, as settleProbes does, so a probe that gets its pid meanwhile is stopped before any restoration; a launch left pending by a stopped CLI blocks the put-back. - The put-back tests a record's presence with lstat, as begin does (a dangling symlink is kept as unusable), and takes a Finder baseline only with the window numbers and all three chrome keys finderCheck verifies. Sminos-Session: cursor235#b93055dd (cua on macbook) * Probe journal: a launch neither identified nor answered by its deadline stays pending until its own final line (refs #117) launchProbe journaled `-` when its scan found no process, even with no final line yet, and recovery read that as an outcome. Such a launch is now journaled `unidentified`, which the checker reads as pending; awaitProbe writes `-` once it reads the probe's own final line, and a person may write it by hand. Identified probes are unchanged. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T5 fix-wave decisions, T5 reviewed clean (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Docs for cua's macOS engine: install, signing, approval and permissions in the README and onboarding, and the engine's own js rules (refs #117) The README gains "cua's own macOS engine (opt-in)" under Install: the one approved place and its pending slot, the signing identity and the keychain steps (partition list, Always Allow, signing outside the GUI session), the build (install --engine, engine build), the approval with the owner at the console, the session's permission errors and Screen Recording's relaunch, typing under each input source, status, stop and doctor. The Requirements, the REPL host table, Secrets, Configuration (CUA_SIGNING_IDENTITY, CUA_SIGN_WAIT_MS) and acceptance item 14 follow. The vendor engine stays the macOS default. docs/onboarding-new-mac.md's step 7 is the same sequence as owner steps, and step 8 selects the engine for serve. On macOS the js rules now follow the selected engine, as on Linux: cua's engine replaces the vendor's typeText rule with one on typing under any input source and entering secrets, and adds the permissionsPending rule naming "cua Engine". Both fit the 2,048-character cut beside the runtime's 1,511-character description. Sminos-Session: cursor235#b93055dd (cua on macbook) * T3 fix wave 1: item 2 reinstalls on the pinned engine, item 14 approves without promoting after a console-readiness check, fixture cleanup fails closed, bounded subprocess drain (refs #117) - Item 2 moves to scripts/accept/install-item.mjs with releasePin and enginePin named apart. The archive pin no longer shadows the engine pin, so --engine cua reinstalls with cua selected. A regression test covers it at the item boundary, plus a guard that accept-native declares no other pin. - The reinstall judge accepts buildEngine's discard of a redundant pending copy: the approved build under the approved identity, as pending.json records it. Any other slot change under a no-op answer still fails. - approveEngine({promote: false, expectedBuild}): under the approve lock a pending build is refused (engine_pending_build), and a bundle of another build is refused before anything launches or prompts (engine_unexpected_build). Item 14 approves through it, and a refusal is BLOCKED. - Fixture cleanup fails closed. front-window.swift's windows <pid> exits 3 when the window list cannot be read. readWindows accepts only a reading of that pid that carries its list. cleanUpFixtureApp reads the recorded pid alone and signals nothing on a failed read. pidsOf throws on any pgrep failure other than none-running. - Item 14 asks at the terminal for console readiness, with a bound, before the owner window starts and before anything stops the engine. Its waits use a timer seam instead of MockTimers. - accept-native's subprocesses run through scripts/accept/bounded-run.mjs. After exit, the pipes get a bounded drain, and incomplete output is a failed check of the item, never a hang. - The structured reporter counts test-process warnings (# warnings n) without forwarding their text. Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine docs fix wave: rollback exceptions, the Node refusal for cua's engine, both sign-timeout paths, the capture confirmation's two outcomes, and model rules keyed to the sentence the model sees (refs #117) The README and onboarding say what a failed approve leaves when a build was published meanwhile or the promoted engine would not stop; that a macOS session selecting cua's engine without Node 24 is refused (CUA_REPL_HOST=vendor changes the host, not the engine), the vendor-host fallback being for a session that selects nothing; that a console sign times out as engine_sign_failed and a GUI-job sign as engine_sign_prompt_waiting, with a fresh build and Always Allow as the recovery; and that engine_capture_confirmation means no answer at the terminal. The macOS js rules split typing from secrets and quote "cua Engine needs …", the message the model receives, instead of the error's name. Sminos-Session: cursor235#b93055dd (cua on macbook) * README: doctor's repl.host warns only on an actual fallback; a refused opt-in into cua's engine without Node 24 is a fail (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T6 reviewed clean (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * cua's macOS engine 0.2.0: M4 changes the engine, and the version moves once per PR that does (refs #117) The version is single-sourced in Version.swift: the bundle assembler reads it for CFBundleShortVersionString and the engine answers it on ping and status. Node tests pinning 0.1.0 are synthetic fixtures (fake Info.plists and identities), not the source's version; PROVENANCE.md records the build the goldens were taken on. Linux's MIN_ENGINE_VERSION and pins are untouched; macOS has no minimum yet (held for the flip). Sminos-Session: cursor235#b93055dd (cua on macbook) * A failed engine build keeps its first error block beside the tail, so a compiler crash's assertion is not lost (refs #117) buildEngine reported only the last 12 lines of swift build's output; a compiler crash prints its assertion before a long stack dump, so the detail showed the dump's end and the closing signal 6. The detail now keeps 20 lines from the first line naming an error or a failed assertion, the counted gap and the tail, as one run when they meet, each line cut at 300 characters. Sminos-Session: cursor235#b93055dd (cua on macbook) * Engine help, comments and the prompt-waiting hint say what the code and README now do (refs #117) - engine build's help: the 45 s wait bounds every sign, a console terminal's included, not only one over SSH. - install.mjs: the macOS engine step builds into the pending slot beside the approved engine, which engine approve promotes (ruling 1118). - server.mjs: the computer rules follow the selected engine on either platform (surface.mjs jsRulesFor), not only on Linux. - engine_sign_prompt_waiting's hint: dismiss the left-over prompt and answer a rebuild with a long --sign-wait while it still waits, as the README says, instead of answering the orphaned prompt; the sign test pins that order. Sminos-Session: cursor235#b93055dd (cua on macbook) * T3 fix wave 2: incomplete output fails its producer, preconditions re-read after readiness, redundant slot judged by real signatures, unfiltered window inventory for cleanup, stable session-test budgets (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: T3 reviewed clean; the finishing commits and the merge of main (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * The bundle gate names the kind of signer pending.json records, never the signer's fingerprint (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * An engine that refuses this client's API version gets the same install-then-approve remedy as one answering another version (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * The input-source restore guard holds behind a probe launch with no outcome in the journal, empty process table or not (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Approve promotes only the build it inspected, keeps a newer publication's record, publishes its lock with its holder, and tells the truth about a promoted engine left running (refs #117) - The pending build is claimed out of the slot (claimed/cua Engine.app) and read there before approve waits for the running engine to stop, so a build published during that wait stays pending for its own approve; a claim a killed approve left is given back to the slot by the next approve or build. - A successful approve removes pending.json only while it is the claimed publication's record (build, identity and builtAt), so a same-build publication made during the approve keeps its record. - promoting.json is written whole under the approve's own name and hard-linked into place, so a second approve never reads a live lock as empty and takes it over. - A promoted engine the rollback could not stop: the owner is told it keeps serving new sessions when it is the restored bundle's build (sessions check the build, not the signature), and candidate.json lets the next build or approve stop it once it is idle. Sminos-Session: cursor235#b93055dd (cua on macbook) * Docs: Screen Recording's automatic recovery arrives with the 0.2.0 engine, what to do on a Mac still serving an older one, and what a promoted engine left running after a rollback serves (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * A rollback puts the previous bundle back before it records a promoted engine left running, and promises the automatic stop only for one it recorded (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: the whole-branch review fixes, M4 re-cut Progress and Outcomes; tech-debt rows for its accepted risks (refs #117) Sminos-Session: cursor235#b93055dd (cua on macbook) * cua plugin 0.29.7: the M4 re-cut (refs #117) The number is provisional; the coordinator sets the next free patch at merge (ruling 1129). Sminos-Session: cursor235#b93055dd (cua on macbook) * probe-fake-sky-launch test: a vendor-only grant is refused on every call on today's host, not ended with exit 1 (refs #505) Sminos-Session: cursor235#b93055dd (cua on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#117 M4: install, signing, permissions and docs for cua's own macOS engine.
Refs #117 #197. #196 stays open (bounded cleanup only; follow-up).
What changes
cua installbuilds and approves the engine when it's selected:--engine,--engine-sign adhoc. The hosted gate builds and verifies the real signed bundle.accept-nativeitem 14 (capability-based after the owner's permission control; see the Decision Log). Acceptance runs keep their operands and use a structured test reporter.Proof
docs/doperpowers/specs/2026-10-18-own-native-engine-m4-report.md.Before merge: item 14 PASS with the owner on d0b2fa13 (~15 min). This PR stays a draft until then.
Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)