Repository navigation
#171 M4: the measured improvements to cua's Linux engine; linux-engine-v0.4.0 - #380
Conversation
The settle sittings, the engine-stop burst lane with its control built from the head with only the REPL host's stop of before T7b (control-tree.sh), the constants from the search sittings, the musl build and the harness export, and the evidence copier. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…the pointer The idle search showed Electron's input page counting a second mousemove about 160 ms after a background move, with no input: Blink's own move at the same place once the status line's layout changed. The count is no measure of a move's completeness there; the page now reports where its last move left the pointer, and the settled reading is judged by that. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… give From the fix wave's searches, idle and at twice the load, on the complete effect: a coordinate click 25 (gnome-terminal at load), an element's primary action 0, GTK 4's animated action 250, Qt's 125 (Qt 6 at load), a named action 0, move 75 and scroll 75 (Electron's page: its last motion and its every wheel step), drag, drag_handle and activate_window 10, clipboard_read and move_relative 0. press_key, key_down, key_up and the paste's settles keep task 62's, their judges and readers unchanged. The confirmation on these values follows. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ction settle 10 The idle confirmation on 0 missed on Electron's page: its element click 3 of 34, its context action 5 of 33, each effect late (Electron's tree shows a page change at once or about 65 ms later). Both go to 10, the next step, confirmed in a sitting of its own and in the loaded confirmation. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ave room for the title bar Since this VM's fonts changed (fontconfig's cache rebuilt at 08:09Z, 2026-11-07, by another session's update), Openbox's title bar is 2 px taller, and a 1050x780 Firefox window at y=22 runs off the 800 px screen: cua refuses its pointer input in shared mode as not unobscured, 31 of 31 a series. The settle experiment opens its Firefox scenes 740 px tall. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Every scene window a run places (Desktop.place, openFamily, the recorder's window) is now put at the screen's top left at its listed size, shrunk where needed so that its frame, read from _NET_FRAME_EXTENTS, lies inside the 1280x800 screen with an 8 px margin (scenes.mjs fitted, placeOnScreen). The VM's fonts changed on 2026-11-07 (fonts-noto-* installed by the MAWS devenv update) and Openbox's title bar grew from 20 to 22 px; a 1050x780 Firefox window then ran off the 800 px screen and every case that needs it fully visible was refused. The settle experiment's own 740 px Firefox geometry goes: it uses the shared helper now. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The searches (idle, idle-2, load2), the shipped-lane confirmation idle and at twice the load with its audits, the element actions confirmed at 10, the Firefox sittings the font change refused, the fitted Firefox and Chrome sittings (43 of 43, idle and loaded), task 63's device cases once on the fitted harness (29 of 29), and the engine-stop burst lane with the ruled control idle and loaded (the control cut 0 of 160 bursts each time, why in the README). The settle README's constants table now carries the final values beside task 62's. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…desktop The re-review: auditVerdict rejected invalid and refused runs but passed a desktop-class run, one whose input took effect while the background witness or the front-window check failed. The engine's trace cannot see such a change when another client makes it (Qt activating itself), so the audit must read it from the run. It now fails, naming each run's witness fields, activations and front-window state, which the audit's run record now keeps. A recount of every committed settle sitting (m4/settle/, m4/settle/fix/, m4/foreground-raise/) found no desktop-class run, audited or timed. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…put kind The Decision Log records the rule, the click split the design session approved, the engine's animated_action answer, every constant and which moved once the judges required the complete effect, the audit's desktop-class fix and its zero recount, the burst lane's control and why it cannot cut, the font change and the frame fit, and what T18 carries (MIN_ENGINE_VERSION 0.4.0, binding; #302 as a declared limit). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…rver keeps offscreen needs no first damage The desktop route's path keeps the vendor's points, the leading one at the pointer's own position included (the server delivers a motion there, as a motion listener shows), and drops the vendor's 8 ms between them. A capture of a window that is, or lies inside, a window of another depth than its parent (GTK 4's ARGB frame on the 24-bit root) waits only for 10 ms of quiet: the server already keeps its contents offscreen, so the redirect's pixmap is complete and nothing repaints. `--capture-wait quiet` is the control lane that takes every pixmap as complete. Live tests for both. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…op cells on every family `SPEED_GAPS` declares nothing now: desktop `move`'s later requests are judged as any other series. `xprobe motion-watch` listens for pointer motion as an application does (core or XInput 2, with raw motion on the root), for the question whether a motion to the pointer's own position is delivered. The settle experiment gains desktop-route pointer cells on kate, Qt Creator, Writer, gnome-terminal, xterm and the GTK 3 and Qt scenes, so a change to the desktop path's pacing is measured on every family of the matrix. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ss check's control lanes Over the wire, the events experiment first runs the motion listener: per engine and listener mode (core MotionNotify, XInput 2 XI_Motion), a move to the pointer's own position, a 1 px move (the positive control), a path, and the same with button 1 held, each engine's X connection through xtrace, so every XTEST motion is read beside what the listener received. A listener that misses a control's 1 px move fails the run. The readiness check judges a capture the engine took as kept offscreen against the window's unobscured capture too, since a window that never repaints shows the same pixels twice, and runs each `--variant` as a control lane that must capture some first frame wrong. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…only The desktop route keeps its path's step in its own state, so a control lane can put the vendor's 8 ms back (`--variant path8=--path-step-ms 8`) beside the shipped engine in the same sitting. The default stays no pause. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…he pointer's own position No pause at all failed the wait rule: an Electron page's desktop `move` missed the service's move settle in 26 of 31 runs idle (Chrome's in 21 of 32), the page reporting an intermediate point until Blink's own move about 200 ms later; 1 to 6 ms missed too, 7 held. The vendor's 8 ms between two positions stays. What goes is the pause after the path's leading motion, which is at the pointer's own position and moves nothing: a one-step move answers at once, as the newest build's does, and every motion the pinned build sends is still sent. The live test reads the pauses from the motions' server times. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The motion listener, the path wait's no-pause run and its search, the final engine's events, settle and readiness sittings idle and at twice the load, the activate-then-click cell on both engines, and every fixed wait inventoried as kept or changed with its reason. Four small harness debts logged. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…here nothing covers it inside its frame T9's offscreen shortcut took any window with a depth change in its ancestry as complete at the redirect. The review found it unsafe: inside a 32-bit frame on the 24-bit root, a same-depth sibling over the window is drawn into the frame's pixmap, and the window's new pixmap is copied from there (compNewPixmap, with inferiors), so the capture showed the sibling's pixels. The design session's ruling (2026-11-07): check containment and occlusion inside the retained ancestor, and wait for the first damage in every other case. cover.rs `complete_offscreen` finds the nearest window of another depth than its parent; a window that is it owns its pixmap, and one inside it counts as complete only when it lies wholly inside every ancestor up to it and no sibling above it (or above an ancestor inside it) overlaps it, judged as `fully_unobscured` judges the screen. Each level of the stacking read now carries the parent's depth, so the judgement takes no request of its own, and x11.rs makes it with the unobscured one, before the redirect. readiness.rs takes both from its caller. The live test (x11.rs) puts a window under a same-depth sibling in an ARGB frame, one alone in it, one past its edge, an ARGB top-level and a 24-bit window, all under a cover on the screen, with an application that repaints 40 ms after an exposure. On the code before this commit the sheltered window was captured at 10 ms as `offscreen`, every pixel the sibling's red. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… the leading motion T9 dropped the pause after a path's leading motion, at the pointer's own position, from every path that shares `move_path_paced`, `drag_handle`'s held moves included. Its evidence covers Chromium's held moves (Chrome and Electron) but no Firefox held move. The design session (2026-11-07): keep that pause for Gecko for now; the drag tasks (T10 to T16) measure whether it can go. `DragPacing.held_lead_pause` says so per family row: true for Gecko only. The desktop path and every other family keep T9's behaviour. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…il, and a reference mismatch The design session's ruling (2026-11-07): when the quiet control also captured every first frame right, the sitting does not discriminate, and is labelled CONTROL NON-DISCRIMINATING, not FAIL. A pinned capture off its truth is a REFERENCE MISMATCH. Neither is a pass: the pass condition is unchanged (`readinessOutcome`); only the label says what kept the sitting from passing. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ps and holds Evidence `m4/waits/fix/` with its README: the capture rule's sittings on the final engine (958db27, musl), idle and at twice the load, GTK 4 alone and every family with the quiet control; the activate-then-click cell at twice the load in both modes (0 of 120 presses under another window); the tests' RED and GREEN. The waits README's inventory adds `drag_along`'s step after every sample, the last included, and Gecko's held-move pause after the leading motion, both "kept, T-drag owns it"; cites #323 for the click and wheel holds; and states the capture rule's fix-wave form and the readiness check's new labels. Tech debt 1 now reads REFERENCE MISMATCH. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The Decision Log records the desktop path (the leading motion and the 8 ms kept, the pause after the leading motion gone, SPEED_GAPS empty), Gecko's held-move pause kept for the drag tasks, the capture's offscreen rule and its occlusion check inside the retained ancestor, the readiness labels, #323 for the click and wheel holds, and task 63's carried cell. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The drag experiment now decides a verdict for the shipped cua lane, and the run exits nonzero when it fails (Acceptance 3; Decision Log, M4 pre-flight): - The long browser paths (Chrome's and Firefox's canvas, Chrome's drag and drop) are judged on warm speed under the interval rule: usable samples are runs that took, 20 a side or not judged, a vendor build sets the bar only with 20 usable and gives it up short of that at 40, an undetermined cell is topped up in rounds to 40 a side, and the verdict names the build that set the bar (stats.mjs judgeSeriesSpeed). - Chrome's and Electron's thumbs land at or past the pinned build's mean distance of the same sitting, run by run. - Under load the landed counts decide, 40 drags a side, distances reported. - Chrome's drag and drop runs in front for every lane. - drag.html counts the motions Chrome received per press (pointerrawupdate, which Chrome dispatches during a scrollbar drag too), kept per run. - Named-only cells: Writer's unprimed first drag, checked against the primed cell's selections, and Firefox's held drag_handle moves, spaced by cua's service settle, with a no-press control that must miss. The verdicts live in drag-judge.mjs, the harness's *-judge.mjs pattern. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…s named Five sittings on private displays, b103323's harness: the released 0.3.0 fails what it should (short Chromium thumbs, slow long paths), the head's musl build as a development run, the load lane at 40 a side (thumbs 36 and 33 of 40 against the pinned build's 40), Firefox's held drag_handle moves with their no-press control, and Writer's unprimed lane. Positive controls and the thumbs' distance against the motions Chrome received, offline on the same rows. The drag summary's median columns are warm medians and now say so; a comment on the held-move spacing is corrected to what the probe saw. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…rds, rotating blocks The task review's five findings on the drag judges: - A long path's effect is judged on every candidate run whatever the vendor builds took, and a drop's or a stroke's reader is proven by either vendor build's take (judgeDragCell; the review's probe, 40 pinned misses and the candidate at 39 of 40, now fails). - drag.html counts the coalesced samples of pointerrawupdate and pointermove (getCoalescedEvents), with the dispatched events beside them; a display-free test runs the page's own script. - A run keeps a motion record only when its press is newer than the record read before the drag (freshReceived): the no-press control's runs carry none, never the previous drag's. - A cell's drags run in rotating blocks of 10 on fresh engines, top-ups continuing the rotation (blockPlan). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
On d8d5b55's harness, private displays: Firefox's held moves on the head (cua's canvas drags reach Firefox as 23 coalesced samples in 2 events, against the vendor builds' 30-32 in 16, and still land 5 of 30), the released 0.3.0 idle in rotating blocks (thumbs short, long paths slow, every candidate run's effect judged), and the load lane at 40 a side. The README marks the first sittings as the pre-fix harness's and leaves the head's long-path gain unattributed. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The Decision Log records the long paths' speed judge under Acceptance 3 (usable samples, top-ups, the bar rule, rotating fresh-engine blocks, effects never waived), the thumb judge, the load lane, the true motion count, the opt-in Writer and Firefox held-move cells, 0.3.0 failing what it should, and the two Firefox gaps given to T11. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…eir end, paced by elapsed time The browsers take pointer input once a frame. Chromium's scrollbar takes at most one move a frame and drops the rest (cc's ScrollbarController, drag_processed_for_current_frame_), and its release carries no position, so a thumb stopped where the last frame's first move put it. A page gets one move a frame, so a corner passed within a frame was cut. Gecko's drop target accepts only a position after it has answered an earlier one, so a drop whose motions over the target all came at once dropped nothing. Chromium's and Gecko's drags keep the pinned build's samples, now paced by elapsed time (500 and 300 µs a sample), and rest 20 ms at each corner that turns 30° or more and at the end, the point then visited once more (drag_plan, next_due). Gecko keeps its 30 ms before the release. Gecko's held drag_handle moves rest 20 ms at their end and visit it again, with no pause after the leading motion (held_rest; held_lead_pause off). Chromium's held moves keep their pacing. Every other family is unchanged. The flags --drag-elapsed, --drag-rest-ms, --held-step-ms/-us, --held-rest-ms and --held-lead-pause measure the model. The drag experiment's held-move cells also run on Chrome and Electron, as controls. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The rest before a drag's end makes the end a frame of its own, but a drag on its floor after a take (Chromium's drop, dnd::RELEASE_AFTER_TAKE) already spaces its steps to the floor's end and holds the pointer there with keepalives. A rest there only pushed the release about 20 ms past the floor (Chrome's drop in front 383.8 ms warm against 364.7). Also the harness README's drag flags. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…andle's end rests before its release Chromium's held moves, rerun as the controls of Gecko's, merged their points the same way (three pointermove events against the vendor builds' seventeen; Chrome's handle stroke 19 of 30, its drop 24, Electron's stroke 16, its drop 23), so Chromium's rows rest at a held move's end too. A drag_handle's end, for a family that rests, rests and visits the pointer's place once more before its release dwell: Firefox's first held drop in a window missed when its drag began after the last move (dragstart 47 ms after the press, after every motion). The release is sent whatever the visit did. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…s, its launchers and the L3a reproduction Candidate 2's labelled step directories from the gate (out/: the idle reruns, V5 on :0 and the twice-the-load block, with their re-judge outputs), its attestation, task 77's launchers and analysis scripts, and l3a-repro/ (r1, r2, the Escape check esc1 and the forced stall frz1). Files over 1 MB are gzipped; sockets and the guard's decoy directories are left out. Scanned for token-shaped strings and the stored secret values: none. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… record across all three candidates Candidate 3, build-only run 43608161213, sha256 751ec9be..., attested on c55c8e0. Its reruns (rulings 691, 693): S1 and L3b pass by #302 on both routes (659, 682); L3a passes outright, its Copy cells 30/30 at twice the load; V3 on :0 passes by #373 (666), with chrome-input's right_click_fallback and secondary_action declared unconfirmed (688, 691), 40/40 on all three parts; the cross-checks S2 and S4 match candidate 1's records. The gate README now carries every candidate's artifact and attestation, the engine diffs, the rerun lists and skips with their reasons, the cross-checks, the full ruled-steps table and the declared section with its tickets. rejudge-speed-gap.mjs lets a declared loss the candidate's harness lists (DECLARED_LOSSES) stand, its output on candidate 1 unchanged; new checkers and controls beside it. Tech debt: the menu deadline's precision residue, the terminal-start test's log race, and the verdict line's wording for declared unconfirmed cells. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… summary, and two wording fixes Candidate 1's V1, V2 and V4 series counts were double: they had been counted as "label" fields in results.jsonl, where every cua verdict row carries each series' label twice (intervals[].label and labels[].label). Recounted from each step's summary.md with speed-tally.py (V1 7 faster and 1 within the bound; V2 26 faster, 1 same, 1 within; V4 4 faster; candidate 3's V3 20 faster); the row counts were right. L3a's ruled row is candidate 2's alone; m4/README.md's clippy line names its two runs. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ce made The exit hook from 8a6e0f4 stayed registered after xtrace ended and unlinked the socket path unconditionally, so a harness whose xtrace died early could, at its exit, remove the socket of another run listening at that display number. The proxy now records its socket's device, inode and birth time when it appears (ext4 hands a freed inode straight to the next file), removes it as soon as xtrace ends while it is still that file, and the stop, the exit hook and a failed start remove nothing else. The lifetime test's replaced-socket cases, after an early end and under a running xtrace, leave the replacement in place. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…es and needs the step's coverage (ruling 697) An independent review found the re-judge scripts rebuilt a passing result from the rows their ruling covers and dropped the run's other terminal failures: preparation over its cap, a foreign change at the cleanup, a family skipped. Each script now keeps every failure the run recorded (a verdict run's end row, an experiment's settle verdict or summary) except the exact ones its ruling replaces. It requires the step's coverage as the candidate's steps.mjs plans it, and prints what it replaced, what it retained and its coverage. rejudge-dnd-fisher judges P6's landing by Fisher alone: the raw-count shortcut passed cua 22 of 30 against 20 of 20 at p = 0.0109. The pinned build's reference must be at least the manifest's 30 valid runs. compare-settle also compares the runs' own failure lines. check-declared-unconfirmed judges only its two cells, never a step, and is unchanged. Every re-judge was rerun over its stored records on all three candidates. Every verdict and count is unchanged, and each output was replaced in place: byte-identical but for the new lines, and P6's header. New controls cover each case the review reproduced, and the controls run on every candidate's records. Every earlier control fails as before. The new ones fail under the amended scripts and pass under the earlier ones. The README's ruled-steps table gains the column "other terminal failures retained": none on every rerun. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…sitory ignores Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…s (ruling 699) check-load-sides.mjs reads every drag-cell row with a load record across the gate's 61 stored records (out/, out-rerun1/, c2-f9692898/, c3-c55c8e08/). The load judge ran only in candidate 2's L1, L2a, L2b and L2c: 30 lane rows, every one 40 against 40 on both sides, recounted from the drag-run rows. So no stored verdict depends on loadCounts' raw-count shortcut, which agrees with Fisher only on equal sides. The shortcut is recorded as tech debt with that count, beside the gate README's other limits. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… the x64 asset is the gated bytes, 751ec9be) Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…hecked on the released asset Run 43637317960 on c55c8e0, every job green. The x64 asset is the gated bytes (751ec9be), and arm64 is the build-only subject (0cbde8f0). Pinned in ed5bf1b. In run-owned homes on a private desktop: the fresh-home install and doctor pass, Acceptance 1 passes 11/11 and the device fixture 18/18, each with no sky_linux. Ruling 700: a 0.3.0 home is refused with "run cua install --engine", and that command fixes it. The gate README notes ba0434f tally correction. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…uched; plugin stays 0.28.0, both sides' tech-debt entries kept) Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… on three candidates, the release); M4 ticked; Outcomes & Retrospective Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…n binary preflight and Desktop.closeEverything's cleanup Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Codex Review Summary: ✅ CompletedThis 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. |
💡 Codex Reviewcua/scripts/linux-engine-gate/gate.mjs Line 134 in 58e6c17 When ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Part of #171 (M4 of the own-Linux-engine spec; #171 stays open for M5, M6a and M6b).
M4 of the spec: the measured improvements to cua's own Linux engine, released as
linux-engine-v0.4.0. It is for Linux computer sessions that select cua's engine (CUA_NATIVE_ENGINE=cua, or"engine": "cua"inengine.json). The default staysvendoruntil M5. M4 closes the deviations the design left for it and brings long browser drags and Chromium's thumb drags to the bar. Most of its work went into making answers true (the false successes below).linux-engine-v0.4.0, run 43637317960 from c55c8e0. Its x64 asset, sha256751ec9be45e1f5b8e10fc3aa0a4695f785ecb12a44acd5b069374926ba383cca, is byte-identical to the gated artifact of build-only run 43608161213. It is pinned in ed5bf1b, which changesruntime/engine/linux-engine.jsonalone.MIN_ENGINE_VERSIONis 0.4.0.cua doctorfails its engine row with the same command. Runcua install --engineonce. The defaultvendorselection is unaffected (m4/release/README.md, check 4).docs/evidence/2026-10-28-own-linux-engine/m4/(its README indexes every task).Closes #265
Closes #353
Closes #363
Closes #264
Closes #250
Refs #171
Refs #263
Refs #269
Refs #358 #364 #365 #302 #371 #370 #372 #362 #356 #373 #374 #375 #376 #377 #378 #379
Refs #266 #274 #276 #277 #285 #286 #307 #323
The evidence for each closed ticket. Paths are under
docs/evidence/2026-10-28-own-linux-engine/m4/gate/unless they start withm4/. "Standing for candidate 3" means candidate 3's rerun list kept that step's earlier record.cua:0mslanded Chrome's range 21/40 and scroller 5/40, so this load still tells the pacings apart. Judges PASS, witness clean. Idle (D1, D2, candidate 2): thumbs 30/30 at or past the pinned mean (Chrome at least 146 px against 132.5, Electron at least 144 against 131.1). The mechanism half is T12's record: Chromium's compositor scrollbar takes one move a frame and drops the rest (m4/drag-load/).c2-f9692898/out/L1.release-gate/run/summary.md,…/D1.release-gate/,…/D2.release-gate/.input.htmlwithout the query is unchanged"). Allowed cases: 299 of 300 took; the one miss (dnd visible pointer-in, 29/30) answered "the desktop pointer left its window" and passed by ruling (one-sided Fisher p = 0.5000 against the pinned 30/30, 0 ok with no effect; sminos 662). Refused cases: 250 of 250 refused, 0 took (the pinned build took 0/10 in each: Gecko drops that input). Leave cases: 200 runs, 0 ok with no effect; the selection drags answered "left" 20/20 in P4 and P5, none took.:0: V5 (candidate 2's record; candidate 3 skipped V5 by ruling 691): all 16 device-firefox cases passed, 9 samples each, witness 9/9, audit clean; the 6 shared-mode cases with the pointer outside or under a cover refused; the 4 dedicated cases took the foreground route, effect 9/9; the 5 shared pointer-in cases and the covered element click took effect 9/9. Z0 (candidate 1): Firefox's plain drop 30/30.chrome_dnd_late_take_sharedby ruling 680), and so do D1 and D2; "unchanged" itself is T19's:0sitting (m4/pointer-route/), not a gate comparison. The remaining limits are Linux engine: the Gecko pointer watch's second check stops one round trip after the events, so a pointer that leaves before a later re-read is not caught #362 and Linux engine: a Gecko background drag and drop can end early because GTK's drag source follows the parked real pointer #372.out/P1.release-gate/…out/P6.release-gate/,out/P6.rejudge-dnd-fisher.txt,c2-f9692898/out/V5.release-gate/run/summary.md.t17-fix3), candidate 2's record, standing for candidate 3 (no right click).cua:handle plainlanded 100/100: 95 ok, 5 landed but unconfirmed (cold handles at load, Linux engine: Electron drops have no reliable landing signal, so 6 to 7.5% of landed Electron drops answer unconfirmed #364), 0 false ok. Every handle cell that did not land (left, inzone-out, root, xterm, other, slow; 30 each) answered unconfirmed, 180/180. Idle (H1): 100/100 landed, all ok, misses 180/180 unconfirmed. At the gate's window load (H2): 100/100 landed (96 ok, 4 unconfirmed), misses 150/150 unconfirmed, the bare root unmeasured.t17-fix3has no pinned lane, so "at or above the pinned build" rests on cua landing all 100. The two-sided count is T17's: cua 80/80 against the pinned 79/80, two sittings of 40 a side, on development builds 035b1c0 and e8574df (m4/drag-handle/README.md, result 6).c2-f9692898/out/L4a.release-gate/run/summary.md,…/H1.release-gate/,…/H2.release-gate/.t14-late: the run's own Chrome stopped from 60 to 250 ms after the request), candidate 2's record, standing for candidate 3: 40 drags, 13 real late takes, all 13 reported (the notice, then the next acting request refused once), 27 landed and confirmed, 0 false ok; the takes came 0.8 ms after the release (median), 1.9 ms at most. Candidate 1's C1: 11 of 11 reported.:0(candidate 2), on M3's own scene:chrome_dnd_late_take_sharedanswered honestly (the notice on the read, the next acting request refused, the late drag and drop escaped), passing by ruling 680 (the witness span's limit on one of 9 samples); 63 drop samples, 45 landed, 0 false ok.scripts/linux-engine-gate/steps.mjs); on M3's scene the case is V5's, on the guarded route. (2) "The failing-first test" is T14's record (m4/drops/, on 405aa77: 25 late takes unreported, RED), not a gate step. (3) The drag's own reply had already gone out ok; the notice reports at the next reply, the pre-flight's reading of "unconfirmed" ("through the next acting request's notice, since a reply already sent cannot change").c2-f9692898/out/C1.release-gate/run/summary.md,…/L4c.release-gate/run/summary.md,…/V5.release-gate/run/summary.md,…/V5.rejudge-late-take-window.txt.751ec9be…). A handle started while another client holds the pointer is refused with nothing pressed, in both modes, on aGoogle-chrome-class probe window. A grab taken during the hold makesendanswer "may not have received", never ok. T17's sittings measured the same refusal on real Chrome and Electron, 30/30 each. In the gate (H1, H2 and L4a, candidate 2's records, standing for candidate 3), 300 undisturbed handle drops gave 0 false errors, and every missed handle drop answered unconfirmed.What changed
Measured improvements:
minimized: trueand readable; window input is refused before anything is sent,dedicatedmode included; releases always run.truncated {nodes, depth, failed}from the read's own cut points:{1263, 2, 0}on the over-budget page, "at least 1265 elements not shown" in the facade.m4/waits/). Desktopmove's later requests take 0.40 ms against the newest build's 5.95, closing M1a's gap. GTK 4's offscreen capture waits 10 ms of quiet instead of the 150 ms cap where nothing covers it.settle.mjs: 0 for text and clipboard; drag 25; coordinate click 25; move and scroll 75; GTK 4 and Qt element actions 250 and 125, named by the engine'sanimated_action). TheFocusOuttimer was built, measured unnecessary and replaced by a paste settle (100 ms after keys, 25 ms after clicks); window switches are about 95 ms faster.:0verdict (V1, V2, V4, candidate 1's records): gedit's tree read 78.3 ms warm against 552.5; Chrome's 57.2 against 450; backgroundpress_key1.1 against 235.7 andclick13.9 against 214.8; the over-budget page 986.4 against 6,984.9; gedittype_text62.4 against the newest build's 847.2.False successes removed. Each answered ok for an effect that did not happen, in a vendor build, 0.3.0 or a gate candidate:
Chromium drops taken after the release (T14, Linux engine: a Chromium take after press + 250 ms answers the drag ok while the drop misses #264): the late-take watch now covers every Chromium drag whose drop the engine allows. A late take gets Escape at once and a notice at the next reply of any kind, and the next acting request is refused once. Chrome's drop is confirmed by its activation request (
DROP_CONFIRM150 ms).Firefox's background pointer input with the real pointer outside its window (T19, Linux engine: Firefox background pointer input answers ok but does nothing unless the real pointer is in its window #353): 0/10 took for every kind, all ok. Now shared mode refuses,
dedicatedtakes the foreground route, and a drag whose pointer leaves answers "left".LibreOffice's element points, 27 px high after a configure (T16): corrected from the GTK host panel, or refused when the shape is unknown. cua lands 3/3 in Writer and Impress, the pinned build 0/3.
Electron drops released where nothing took them, and
drag_handleinto Chrome (T17, Linux engine: drag_handle into Chromium gets neither the atomic press nor the press watch, so a lost press answers success #250): Electron drops over the bare root or an xterm answered ok (30/30 each before T17's second fix wave); now unconfirmed, and landed drops are confirmed by the drag cursor's image (on the final engine, 0 of 1,619 counted Electron drags at three loads answered ok without a drop).startis refused with nothing pressed while another client holds the pointer; a grab during the hold makesendanswer "may not have received". A lost handle is released after 30 s, atjs_resetand at a cell's timeout.Foreground pointer input sent before the raise (task 63): in
dedicatedmode at twice the load the press reached the window in front (GTK 4 7–18 of ~32 per series; drags Chrome 4/38, Electron 4/36, Firefox 8/35; scrolls Qt 5 5/36, Qt 6 17/33). Input now waits, bounded at 1 s, until its window is on top at its points, or is refused with nothing sent.activate_windowanswers once no normal window covers its target.An expired or stale drag handle (the whole-branch review): an expired handle took a retried
move_towith the button up, and a stale one could move a later one. Every handle operation now goes through one queue per kernel.A Chromium drag whose path a busy browser threw away (candidate 2): Chromium's
CoalescePendingMotionEventsdiscards queued core motion, so the drag became a click answered ok. The hold now re-sends the path's last point (0f18528).A context-menu action that opened no menu (candidate 3): every
showContextMenucaller answers ok only once a menu appears within 1 s, otherwisemenuUnconfirmed("…the application may have shown its own menu or ignored the request; read the window before retrying"). Behaviour §7.2's ok now means a menu appeared. A timed-out Copy names both risks and sends no recovery. Per family (task 78's development runs,m4/gate/c3-menu-proof/):showContextMenusecondary_action, fallbackmenuUnconfirmed~1.03 s, the page's counter rosemenuUnconfirmed)menu.popup)ShowMenu)No family has a working menu answered
menuUnconfirmed.Not adopted, on evidence:
Cache.GetItemsand anInsertTextlift for GTK 4 (T6); T14's early release at the accept (1 false release in 30); a shorter press + 250 ms hold (T13: no never-take signal).The harness and the gate: a gate takes only the attested musl artifact of the gated commit (T1, #267, PR #273). The harness never changes a window it did not open, runs X RECORD only on private displays (it froze Xorg once, task 41), and runs its own Chrome profile, homes and buses (tasks 43–53). New: the drag judges (T10), the gate runner (
scripts/linux-engine-gate/), the facade suites as steps R1–R4.Plugin 0.28.0, above main's 0.27.24. Local macOS computer use is unchanged. Shared code macOS loads:
kernel-child.mjs(T7b's drain and shim, Linux paths only);supervisor.mjs(T7b's escalation;kernel_resetatjs_resetand at a timeout, 1 s bound, answered at once on macOS);trusted-worker.mjs(module caching,kernelResetdispatch);sky.mjs(thekernelResetexport, a no-op without a service's own);package.json(test:linux-engine-diff, CI only).Validation Evidence
The gate passed on candidate 3 (
m4/gate/README.md): each of its 49 steps passes on the record of the latest candidate that ran it, by the gate's own judge or by a ruling over stored records. Below,out/is candidate 1's,c2/isc2-f9692898/out/,c3/isc3-c55c8e08/out/, scripts are inscripts/.f7c12e9b…393790b9650e…0dbd751ec9be…3ccagh attestation verify --signer-workflow SSFSKIM/cua/.github/workflows/linux-engine.yml --deny-self-hosted-runnersexits 0 for each candidate; on candidate 3 it names c55c8e0 onrefs/heads/feat/171-m4, run 43608161213 attempt 1, a GitHub-hosted runner (c3-c55c8e08/artifact/attestation.json). Every step's--gatepreparation checked again that the attested commit is the checkout's HEAD and that--versionnames it.:0(by Linux engine: activate_window's raise wait is slower than the vendor (declared speed gap, no closing route) #373), L3a (its own judge: every Chrome cell 30 consecutive), L3b (by Linux engine: an Electron page's key release shows in the tree after the 100 ms action settle #302);:0(by ruling 680), and at twice the load L1, L2a–c, L3c–e, L4a–c, L5, F3a, F3b, F4;:0.:0sittings ran under task 50's guards and wrap71, each cleared by the design session: 0 flags and 0 decoy connections every time, the owner's Chrome never signalled, the pointer restored. No speed series in V1–V5 was left undetermined.The steps passed by a ruling over stored records. Each script reads only the stored rows through the candidate's own judge functions and fails its negative controls. Since ruling 697 each replaces only the failures its ruling covers and keeps every other terminal failure and the step's coverage; all were rerun after that, and no verdict moved. "Rerun on 3" rows are superseded by candidate 3's record.
rejudge-302.mjs; controlsrejudge-controls.mjs,rejudge-302-c3-controls.mjsout/S1.rejudge-302.txt,S1.rejudge-controls.txt,S1.rejudge-302-c3-controls.txtrejudge-dnd-fisher.mjs(Fisher alone, pinned reference ≥ 30 valid runs); controlsrejudge-dnd-controls.mjsout/P6.rejudge-dnd-fisher.txt,P6.rejudge-dnd-controls.txtrejudge-speed-gap.mjs; controlsrejudge-gap-controls.mjsout/V3.rejudge-speed-gap.txt,V3.rejudge-gap-controls.txtout-rerun1/D2.release-gate: PASSout/D2.release-gate/stderr.logout-rerun1/V5.release-gate: FAIL (fixed by candidate 2)run-zero2.shout/V5.release-gate/run/apps/*firefox-device_cua.stderr,wrap.outrejudge-302.mjs; controlsrejudge-302-c3-controls.mjsc2/S1.rejudge-302.txt,rejudge-302-c3-controls.txtchrome_dnd_late_take_sharedsample 2/0: an honest answer (a plain drag at 164.97 ms, the notice, the next acting request refused, escaped 1.4 ms after the release), but its dragend came 201 ms after the press, after the witness span (answer + 20 ms) closed. 52 rows, 0 failingrejudge-late-take-window.mjs; controlsrejudge-late-take-controls.mjsc2/V5.rejudge-late-take-window.txt,V5.rejudge-late-take-controls.txtclipboard_read28 of 31 refused,clipboard_write31 invalid: a Copy timed out, then every Copy on that window "context menu did not open"; 0 ok, clipboard unchanged. Not passedc2-f9692898/scripts/l3a-clip.py,l3a-clip2.py;c2-f9692898/l3a-repro/c2/L3a.release-gate/rejudge-302.mjsas amended; controlsrejudge-302-amend-controls.mjsc2/L3b.rejudge-302.txt,rejudge-302-amend-controls.txt,S1-candidate1.rejudge-302-amended.txtrejudge-302.mjs; controlsrejudge-302-c3-controls.mjsc3/S1.rejudge-302.txt,rejudge-302-c3-controls.txtrejudge-302.mjs; controlsrejudge-302-c3-controls.mjs(33)c3/L3b.rejudge-302.txt,rejudge-302-c3-controls.txtrejudge-speed-gap.mjs, amended so a declared loss stands apart; controlsrejudge-gap-c3-controls.mjsc3/V3.rejudge-speed-gap.txt,V3.rejudge-gap-c3-controls.txtThe load judge's raw-count shortcut (
drag-judge.mjs) equals Fisher only on equal sides; all 30 of its stored lane rows (candidate 2's L1, L2a–c) compared 40 runs against 40, so no stored verdict rests on it (ruling 699,c2/load-sides.txt).The release (
m4/release/README.md):linux-engine.ymlwithcommitc55c8e0 andpublishtrue onrelease/linux-engine-v0.4.0: run 43637317960, all five jobs green, published 2026-11-14T20:31:38Z. Downloaded into an empty directory (verify.txt): x64751ec9be45e1f5b8e10fc3aa0a4695f785ecb12a44acd5b069374926ba383cca, equal to candidate 3's gated artifact, so no device scene reran; arm640cbde8f06ca2f70a1ea962fd49452591a2ca16961c746f5d90bfccf53e890d42, equal to that run's arm64 subject; both matchSHA256SUMSand GitHub's digests. x64 is a static-pie,cua-engine 0.4.0 (c55c8e08d9cb).gh attestation verify <asset> --repo SSFSKIM/cua --signer-workflow SSFSKIM/cua/.github/workflows/linux-engine.yml --deny-self-hosted-runners --format jsonexits 0 for each asset (the release run's and the build-only run's attestations, SLSA v1 from c55c8e0, GitHub-hosted). Toolchain: rustc 1.94.1, targetsx86_64-unknown-linux-muslandaarch64-unknown-linux-musl.node scripts/linux-engine-pin.mjs linux-engine-v0.4.0exits 0, verifying both attestations; the tests that read the pin pass, 39 of 39.CUA_LINUX_ENGINE_BIN, each check in a run-owned home (temporary HOME and XDG, an emptyclaude-secrets, its ownCUA_HOME) on a private display, unlike M3's in the VM's default home on:0:cua install --engineinstalls 0.4.0 at the pin's sha256;CUA_NATIVE_ENGINE=cua cua doctorexits 0 withPASS engine(version 0.4.0) andPASS accessibility.enabled;linux-native): 11 of 11; 3,355 samples, at most 0sky_linux, the engine the trusted worker's child;sky_linux;cua install --engine, and the first request is refused with the sentence above; aftercua install --enginedoctor passes and the request answers.The PR head against the gated commit:
git diff --stat c55c8e08 HEAD -- native/linux-engine runtimeshows onlyruntime/engine/linux-engine.json(6 insertions, 6 deletions). main was merged in at b445fd1 (30 commits of macOS engine work); it touches neither frozen path, so no gate step reran.CI:
ci-gateon 4d3085b: run 43634922537 failedtest(a macOS client ping-count timing flake) andparity-browser(the known racywaitforcell) on an evidence-only diff; their rerun was GREEN (43636266249), 8 of 8 across runs.ci-gaterun 43639178511 passed 7 of 8 and failedengine-swift, on BackgroundPointerTests'testAFailedEnablementWriteStillOpensTheFreshWindowAndIsReportedin main's merged macOS code. Its rerun was GREEN (43641035615), so 8 of 8 across the two runs, withtestandsandbox-liveamong them. The PR head 58e6c17 adds only Markdown on top of it: the execution report's M4 section and two tech-debt entries.Reviews:
doperpowers:reviewer-highfrom the merge-base fc091b8 (414 commits, 264 code files), in five slices. Six fix waves: slices A–C's six findings (one P1); three for the handle-ordering class; slices D1–D2's five judge findings (two P1); unread-fix. Converged at 8ab1cc7, every re-review finding nothing. Later bounded reviews: the Linux baseline rule, nothing; R2's top-up, one P1 fixed in 514f5c6, then nothing; candidate 2's fix, nothing. Every posted figure was re-judged with the fixed judges; none changed.doperpowers:reviewer-mediumover the re-judge and check scripts and audit-leak-fix (8a6e0f4): incorrect, three P2 (P6's re-judge passed raw counts on unequal sides; the re-judges dropped other terminal failures; the audit proxy unlinked another run's socket). Fixed in 2851ce4, c204e9e, d57c4ef, 4d3085b; the re-review found nothing.Declared, listed apart (never counted as a pass)
activate_window's raise wait: a declared speed gap with no closing route (the wait keeps the next input off the window that covered its target). V3, candidate 3: cold 11.56 ms against 4.26, warm 8.46 against 0.55, effect 40/40.menuUnconfirmedcells (rulings 688, 691): chrome-inputright_click_fallbackandsecondary_actionon a page that cancels Chrome's menu, as a page drawing its own does. The vendor builds answer ok (cold about 707 ms and 347–352 ms); cua answersmenuUnconfirmedafter its 1 s wait (1048.4 and 1045.7 ms, not judged on speed). The declaration holds only while, for every cua sample, (1) the sample answersmenuUnconfirmed, (2) and the page's context counter rose on the named element, (3) and the witness is unchanged. Each part held 40/40 in both cells, audits clean (c3/V3.check-declared-unconfirmed.txt, with controls); on candidate 1's rows, which answered ok, it does not hold.clipboard_releasewarm, [0.045, 0.11] ms against the newest build's 0.13 (V1); desktoplaunch_appwarm, [0.51, 0.63] ms against the pinned build's 0.66 (V2).Known limits
breeze_cursorsevery move and link drop answers unconfirmed (180/180 landed moves). Cold handle drops land unconfirmed 4 of 100 at the gate's window load (H2) and 5 of 100 at twice it (L4a). The bare-root cell is unmeasured at the window load.role=menuanswersmenuUnconfirmed. Linux engine: in Chromium, a context menu opened by an element action on an unfocused window closes when the request ends #378: Chromium closes a menu an element action opened on a background window when the request ends, with the pinned build as with cua. Linux engine: the menu detection misses GTK 4's, Firefox's and Qt's menus; ShowMenu and menu.popup answer ok unconfirmed #379: the detection misses GTK 4's and Firefox's menus, and Qt's never reach the tree; no request reaches it there today, butShowMenu(Qt) andmenu.popup(GTK 4) still answer ok as soon as they are asked for, as the vendor's do. macOS engine: perform_secondary_action Show Menu answers ok without confirming a menu appeared #374 (macOS):AXShowMenuanswers ok without confirming a menu.drag_handlemove on Chromium or Gecko costs 30 ms, plus 30 ms at the end. The late-take notice renders as the observation's first line (getAXState,getAXStateAndScreenshot,getApp's first emit);getScreenshot,listWindows,listAppsand the releases don't render it, and the next acting request's refusal carries it. Task 22's late-take tail under the person's Chrome profile did not reproduce under the run's own Chrome (2 of 480 at 53 ms or later); Linux engine: a Chromium take after press + 250 ms answers the drag ok while the drop misses #264's watch keeps such drops honest._XEMBED_INFOis pressed unguarded in the sandbox); Linux engine: a restack between the foreground route's last stack read and its press #307 (a few ms between the last stacking read and the press; none misdirected in about 2,200).clipboard_readin a GTK 3 text view leaks the selection inside the app (tracker); Linux engine: stacked same-title Chrome windows answer the duplicates sentence, since Chrome marks no AT-SPI frame active (M4 T5 gap) #274 (stacked same-title Chrome windows answer the duplicates sentence); identity routes cost 20–28 ms more warm with duplicates present. T5's other limits are in its Decision Log entry.minimized: truecovers every WM-iconified window; a held button's release on a minimized window is proven on Xvfb only. LibreOffice's correction depends on vcl gtk3 24.2, its refusal is unit-tested only, Calc's landing inferred. Measure or justify the Linux engine's click and wheel holds #323 (the click and wheel holds, unmeasured). Linux engine: a GTK 3 background move off a hovered widget leaves its hover highlight while the real pointer is under another window over the window #356 (a GTK 3 hover left by a background move). The text-mutator guard stops cua's own code, not a launched app's child.CUA171_LIVE_RUNan accident guard; a parent-made display'sXAUTHORITY;TMPDIRset process-wide; source rules by class) are in "the harness's isolation". The services instrument fails closed above 2,500 nodes or depth 31.compare --enginesjudges wall time (native-baseline compare --engines on Linux: judge engine-answered operations by their in-cell time #370).Unresolved Review Findings
Each is logged in
tech-debt-tracker.md(Open) unless marked otherwise.copy.rscall_by(task 78's re-review); the press boundary proves token plumbing, not the Qt read (task 61 fix 3); the scrolled paste rule's whole read capped by family, not code (task 56 fix 5); T7's third-fix debts (paste.targets.answeredcounts a Refused; a fullWATCH_LOGcosts 25 ms; private-server tests assume free display numbers); three paste-confirmation debts incl. the pre-existing equal-text exposure (task 56 fix 2); two cosmeticroute.rsdebts; kate's and Qt Creator's paste never confirmed (pre-existing).cua serverunning sminos under the agent's session id, the a11y stand-in's reply-serial trust, the events experiment's Xvfb after a stop); the controls runner's prefix match (T4b); identity paths in CI without a window manager (T5, narrowed by task 78); a missing Electron binary dies at spawn instead of being refused first (P3, sminos 665);Desktop.closeEverythingstops at the first throwing step (audit-leak-fix's finding). Flakes: the terminal-start stubs (twice), two clipboard unit races,native-pipe/data-close-error, the Chrome host protocol's 5 ms wait, the remote agent's watchdog.--drag-dnd-release-at-acceptnow measures only the desktop route (Decision Log). Dismissed: T14's re-review P2 that ordinary drop cases hard-fail an honest non-landing (ruling 595: intended).Residue
CoalescePendingMotionEventsdropping a busy browser's queued core motion (drafted, not filed), and Xorg 21.1.12's RECORDFlushClientloop (m4/xserver-record-hang/).Confusions
:0with the person's Chrome profile; M4: a private display with a run-owned Chrome for Testing profile), so M3's and M4's facade numbers are not like for like (m4/README.md).Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)