Repository navigation
Kit: #187's isolating slot, the control build without the inert click, the keys-then-click and dialog rows (refs #187, #188, #279) - #280
Merged
Conversation
…ERT_CLICK, CI-compiled), and activationJoin in the input meta (refs #187) A1: under CUA_CONTROL_NO_INERT_CLICK, activationClickPlan's one inertOutside return becomes skipped(controlBuild), and the ping names variant control-no-inert-click. No shipping Package.swift defines it; engine-swift compiles the branch so it cannot rot. A2: HeldActivations.acquire and refresh record activationJoin (fresh, shared, rearmed, replacedSpent) before any activation runs; absent when no held activation is reached. Decision Log entry of 2026-11-05. Sminos-Session: cursor235#b93055dd (cua on macbook)
… in cua/nativeEngine (refs #187) The service whitelists input meta keys and the client reshapes the ping's identity, so without this neither the join nor the control build's variant reaches a result. A release's identity is unchanged; the variant attests and never gates the connect. Sminos-Session: cursor235#b93055dd (cua on macbook)
… isolating cell with composing in its verdict, #188 on AFTER (refs #187) B: control-build copies native/engine whole, defines CUA_CONTROL_NO_INERT_CLICK on the copy's Engine target alone, checks only that line differs, and builds it through the CLI's own engine build (buildEngine sourceRoot). isolate-187 drive runs A B B A A B: each block a swap (engine-copy restore, approve with no terminal so any prompt stops it, the running engine's ping attested: saved build, half's variant), 2 background-paste repetitions and 3 chrome/composing@textedit paste rows; then the AFTER-only block (a swap to AFTER, #188's --part 188 as it is; C2 and C3 register in AFTER_ONLY, C4 in TAIL, --no-tail), the owner's source. --blocks resumes or reruns blocks. C1: judgeIsolate is pure over records and writes item-187-isolate.md with the pre-registered bar. A repetition or composing row is counted only when attested, its click planned outside the frame and of its half's kind (inertOutside early / skipped controlBuild), and valid; each part is INCONCLUSIVE below 4 counted, DOES NOT LAND on 2 BEFORE deliveries, 2 BEFORE non-read failures or 2 AFTER misses, LANDS at 5 of 6 / 8 of 9 with no AFTER read timeout; LANDS needs both parts. Rows keep cua/nativeEngine and activationJoin; the re-slot kit stays runnable (its dry runs unchanged). Runbook: Item 187: the isolating slot. Sminos-Session: cursor235#b93055dd (cua on macbook)
…C4 (b) and (c) in the tail; the popup page (refs #187, refs #279) C2 (3 repetitions, block 7 after #188): Chrome relaunched and placed behind TextEdit, ⌘L into its run window, then inside the hold a coordinate click into the textarea; premise activationJoin rearmed; pre-registered: no raise, TextEdit frontmost throughout, no repair (delivery restores 0, no after-action repair), the page saw the click (its click and textarea-focus counters), nothing out of place after the display hold. PASS 3 of 3, FAIL on any, INCOMPLETE otherwise. C3 (3 repetitions): Chrome on the new popup page (scene-page.mjs popup variant; scenes-mac up chrome --page popup adds --disable-popup-blocking to that launch alone), the popup opened by the page when the kit posts to its loopback server, so no person and no engine action opens it; the activation watcher on before it opens; the session takes the popup as Chrome's window (runner open step windows); ⌘A, then a click on the popup's close button inside the hold; the hold ended by an observation of the electron scene; after the release hasFocus false with its blur, AXFrontmost false, TextEdit frontmost. Premise: the popup opened, rearmed, the popup gone. C4 (b) and (c) in TAIL, 3 repetitions in one session each, measured with no verdict: ordered, the guard's repairs and their times, out of place after the hold, the click's join. The touch rule takes an item's further scenes (Finder for (c)); the popup's window is Chrome's process and bundle, so its activation is the scene's. Dry run 1128 steps (block 7 286, the tail 79); runbook's step list, counts and seams updated. Sminos-Session: cursor235#b93055dd (cua on macbook)
…d re-slot's records (section D) (refs #187) partVerdict, for the cell and composing: decisive first, at any count (any counted AFTER read-stage timeout; 2 or more counted BEFORE deliveries; 2 or more BEFORE failures at a stage its meta names; 2 or more AFTER misses), then INCONCLUSIVE below 4 counted only when nothing decisive happened, then LANDS on absolute counts (at least 5 counted each way for the cell, 8 for composing). A failure with no stage meta (the legacy -10005) is stage unknown: a miss, never decisive. The judge's header, the verdict file's bar and the runbook say so; the tests cover every branch, rulings 2 and 3 at low counts. isolate-187 replay (scripts/cursor-sitting/isolate-replay.mjs) runs the judge's pure pieces over item-187-reslot2/ as recorded and under 60 named cases (each half attested by the slot's recorded build, dd7a's missing click kind read as the control's, six a half by counting each real repetition twice), and C2's and C3's judges over synthetic fixtures; it writes item-187-isolate-replay.md and exits 1 on any outcome not as expected. 60 of 60 as expected; a test checks the committed file is current. Sminos-Session: cursor235#b93055dd (cua on macbook)
…n every exit, one preparation's pair, swaps checked again from their records, #188 attested, stage-less failures named (refs #187) P1: the drive records the preparation's pair (control.json, checked again against this checkout: its tree, and that tree with the one define) and the owner's end choice (--end restore-owner, the default, or keep-merged, 1ea561bc:403) at its start, refusing unless each save is the pair's build. On every exit (completed, partial, stopped, thrown) the cleanup applies the end choice by a swap and attests it (that save's build, no variant); a cleanup that does not attest is the verdict file's and the drive's first line, and the drive exits 1. P2: the judge never trusts a stored ok: a swap counts only when its records show its half's save of the pair restored and its observation attesting the half, and a repetition or row only in a block whose swap counts. #188's rows and cell-3 parts whose action's result does not attest AFTER are made invalid before #188's judge. The replay supplies its stand-in identity only where a record names none (64 of 64 as expected). Every counted stage-less failure is named under the verdict (1ea561bc:402). Tests for each; the runbook's commands, counts (1137 steps) and the cleanup's failure path. Sminos-Session: cursor235#b93055dd (cua on macbook)
#188 rows with no action unattested; judge's exit gated on the cleanup; engine-identity read-back (refs #187) P1: signalGuard catches SIGINT, SIGTERM and SIGHUP during the drive: the drive stops after its current step (driveItems' abort; abortableIo makes every later task and cell of the item throw, so its sessions close), only the end items run, then the cleanup applies the end choice and attests it, the verdict file is written, and the drive exits 128 + the signal. A second signal during the cleanup is ignored and said on stderr. SIGKILL and crashes are out of reach; the runbook says so beside the by-hand restore. Tested with a child process sent SIGTERM, SIGINT, and SIGTERM twice mid-BEFORE on a fake engine. P2: attested188 reads a row's action in its own attempt only, and a row with none is unattested and invalid. P2: isolate-187 judge exits 0 only when the verdict lands and the cleanup is attested (isolateExit). 1ea561bc:404: isolate-187 engine-identity reads the running engine's ping (build and variant) against the end choice's save; step 16 uses it, a control variant stopping the operator for the by-hand restore. Sminos-Session: cursor235#b93055dd (cua on macbook)
…s in their own process group, an interrupted attempt run again (refs #187) A terminal's Ctrl-C signals the whole foreground group, so a helper the cleanup ran with execFileSync died with it while the kit ignored the signal, and the restore refused. Every subprocess the swaps and the cleanup use now runs detached in its own group (scripts/cursor-sitting/detached.mjs, awaited, output captured, its timeout killing its whole group): cua engine stop, status and approve, the restore's copies (engine-copy's restoreEngine takes a copy), and the attestation's cua serve (openSession, openDriven and the runner's open step take detached). driveThenCleanup runs the cleanup up to 3 attempts, each restore with a fresh aside. Tested with the child leading its own group and the group signalled mid-BEFORE and again while the restore's real subprocess helper runs (SIGINT, SIGTERM): the helper finishes, the owner's engine ends restored and attested, exit 130 and 143; with the helper in the child's own group it dies, and the retry recovers on attempt 2. Sminos-Session: cursor235#b93055dd (cua on macbook)
…187) Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
marked this pull request as ready for review
November 5, 2026 13:43
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 5, 2026
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.
Summary
The kit for the next attended MacBook slot, whose verdict decides whether #187 can close: it asks whether the inert activation click (#261) is what restored Chrome's background paste. The 2026-11-05 slot showed delivery restored, but not why: the BEFORE half ran the owner's older engine (dd7a), which differs from #261's build in more than that one click, and its timeouts carry no stage.
This slot compares the merged build (AFTER) with a control build of the same head without the inert click (BEFORE). Both halves record the stage of every failure. The verdict is pre-registered on delivery and stage, and a replay of 11-05's records shows each of its checks coming out both ways.
Refs #187. Refs #188. Refs #279. It closes nothing: #187 closes on the slot's verdict.
Nothing here has run live. The slot is arranged by the design session with the owner.
What changes
Engine (ddf7d59; service pass-through c702e0a):
#if CUA_CONTROL_NO_INERT_CLICK, the one.inertOutsidereturn inactivationClickPlanbecomes.skipped(.controlBuild), which removes both the early and the release inert click. Nothing else changes.variant: "control-no-inert-click", which shows incua/nativeEngine. A shipping build has no variant.buildEngineare unchanged. The engine-swift CI gate compiles the-Dbranch so it can't rot.activationJoinin the input meta (fresh,shared,rearmedorreplacedSpent), so the keys-then-click row can show that Engine: an activation never leaves an arm (inert click), the multi-line paste settles each Return, and item 187's re-slot kit (refs #187, refs #188) #261's hold join fired.Kit (scripts/cursor-sitting/:
control-build.mjs,item-187-isolate.mjs,item-187-join.mjs,isolate-replay.mjs,detached.mjs):control-buildcopies native/engine, adds the define to the copy's Engine target only, checks the copy against the shipping tree, and builds it through the CLI's own build path. It records the shipping and control build ids as one pair (control.json).isolate-187 driveruns the blocks A B B A A B, each a swap of a saved half: a restore, an approve with no terminal (any prompt stops the drive), and an attestation from the running engine's ping.--end restore-owner|keep-merged, default restore-owner) is recorded at the start and applied on every exit: completion, a partial run, a stop, an exception, or SIGINT, SIGTERM or SIGHUP.isolate-187 engine-identityis the operator's put-back check. It reads the installed build and variant, so a control left behind by a SIGKILL or a crash is seen before the owner leaves.isolate-187 judgewritesitem-187-isolate.md):read, read from stage meta alone, and the frontmost paste was not delivered.activationJoin rearmed. It passes 3 of 3 on no raise, TextEdit frontmost throughout, no repair by either guard, and the page having seen the click.--disable-popup-blockingon that page's launch only. The row sends ⌘A, then clicks the popup's close button, which closes its own window. After the hold ends, the main window'shasFocus()must read false, a blur must have been seen, AXFrontmost must be false and TextEdit still frontmost. The touch rule counts the popup as Chrome's scene.isolate-187 replay, committed asitem-187-isolate-replay.md): 64 of 64 cases as expected, over 11-05's records plus named mutations and synthetic fixtures for the two new rows. 11-05's records as recorded judge INCONCLUSIVE (3 counted a half). A test keeps the committed file current.Runbook: a new section in docs/evidence/2026-10-30-macos-agent-cursor/README.md, "Item 187: the isolating slot". It has the offline build and save of both halves, the owner's steps, the step list, the hands-off notice, the end choice, the signals, and what to do if the cleanup fails. The estimates are about 25–34 minutes in all, the owner active about 3–4, and hands-off about 17–23. They are extrapolated from 11-05, not measured.
Limits
Tests
quietlytest helper can hide async test results (3651b0e, tech-debt-tracker.md).The plugin and marketplace version goes from 0.22.0 to 0.22.1 (1f45971), since the shipped engine gains
activationJoin.Sminos-Session: cursor235#b93055dd (cua on macbook)