Repository navigation
Merged
Conversation
… and one AT-SPI request sets the mode The research pre-flight for #228 (task 177, ruling 1245), with its probes. No product file changes. What the probes and Chromium's source show, on private displays against instances of the run's own: - Two switches, not one. The bridge puts the process on the accessibility bus and is decided once at the app's start: ACCESSIBILITY_ENABLED, GNOME_ACCESSIBILITY or QT_ACCESSIBILITY at 1, else org.a11y.Status IsEnabled (Chromium 112 on). The flag does not start it: the fixture with --force-renderer-accessibility and the switches off was never on the bus. - The mode puts content in the tree. The flag sets it at the start; so does one Accessible.GetAttributes or GetRelationSet from any client at any time, which cua's engine never sends. One request to the running fixture: 2 nodes to 29 in 21 to 61 ms; VS Code 2 to 394 in half a second; cua-engine 0.4.5 then reads 28 where it read 1. - Nothing after the start turns the bridge on. Chrome without the flag is as bare as Electron (4 nodes): what M0.4 saw on the VM was the provisioning wrapper's flag. CEF's sample behaves as Electron; NW.js has no bridge. - Costs: the request's mode 63% on a worst-case page against the flag's 100%, nothing idle; a screen reader started after the request stays in the lesser mode in that app; the flag makes VS Code write itself into screen-reader mode for good. The design it brings: the engine asks an application whose tree came back bare, only when a tree was asked for; launch_app adds ACCESSIBILITY_ENABLED=1; an Electron window whose app is not on the bus gets one sentence. Four taste calls for the owner. One adversarial review round is folded in (the engine cannot read /proc in service; a screenshot must change nothing; which windows are asked; the wait left to the task). Found on the way: launch_app takes 30 s to return for an app that holds gio's output pipes open. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…nd 4 the coordinator's) and the delivery Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…its accessibility on After a state read whose frame came back alone, the engine sends one org.a11y.atspi.Accessible.GetAttributes to the frame's application root, and only when a tree was asked for (get_window_state's new `tree_wanted`, absent true), the application's ToolkitName is Chromium (read once per application, only for a bare frame), the window's WM_WINDOW_ROLE is browser-window (Electron's own: rulings 1251 and 1261), and the application was not asked before on this bus connection. A send that failed is not remembered. The rule is ask::decide, a pure function; ask::ask_if_due runs it, looking each fact up only when the rule needs it. No wait yet (task 2), no reasons (task 3). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… sessions rule.py runs the Electron fixture bare and with the flag, gedit, the GTK 4 scene, kate, qtcreator and a bare GTK 3 frame, and a Chrome of the run's own (its tabbed window and its pop-up, each observed first), with a dbus-monitor of the run's own on the accessibility bus. A screenshot, an app with its tree, other toolkits and Chrome get no GetAttributes; the bare fixture gets one and has its tree at the next read; the other toolkits' calls by member equal the base build's, a bare GTK frame's one ToolkitName read apart. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ng 1267) Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ailed toolkit read is not kept The ToolkitName read and the GetAttributes request name an application root the current connection found, so they no longer go through with_bus, which reconnects and runs the call again on Broken: after a bus restart the same unique name may be another application's, and a request whose reply was lost may already have been delivered. dbus::on_this_connection runs a call on the current connection only and takes a broken one out without making another; the next observation connects and associates again. atspi::toolkit_name answered Ok(None) for any failed call, an I/O timeout included, and the engine kept that for the connection. Any failed call is now an error, which ask::Asked does not keep; only an answer (a name, or something other than a string) is kept. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…nst main on the bus rule.py now watches every method call on the accessibility bus with an unfiltered monitor, brackets each observation between two GetAttributes markers of the probe's own (to the registry's desktop object), so a count of zero is a count; records every expectation as a check and exits 1 on any unmet one. G 7 compares the engine connection's own calls by member, candidate against a build of main (10ee501), on the same windows, and main against itself. gedit, kate, qtcreator and Chrome run with no network. A control engine that ignores tree_wanted turns test 5 red (out/control-broken.jsonl). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…plication, under the ruled rule T1's head 1b6c737, reviewed clean after one fix wave. engine-linux GREEN at the head (run 46102774383). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…tree_wanted: false, the facade renders tree_unavailable, doctor names Chromium
- launchLinux: every application gio launches gets ACCESSIBILITY_ENABLED=1 beside the
desktop session's variables, whatever the supervisor's environment says (E2; ruling 1261).
- bind_linux_app: getScreenshot sends tree_wanted: false; every read that wants the tree
sends nothing new. A state's tree_unavailable {reason} (no_provider, asked) ends the
rendered state with E3's sentence, after the tree and its truncation line, naming the
window's app with its line breaks escaped; a state without it, or with a reason cua does
not know, renders as before.
- The facade scenarios: the screenshot's field and the sentences are declared differences
from the vendor; the vendor-compared Linux scenario keeps the reads that want the tree.
- The Linux service: a test that tree_wanted reaches the engine as given and
tree_unavailable reaches the window state.
- doctor's accessibility.enabled row names Chromium beside Qt 6 (E4).
MIN_ENGINE_VERSION is unchanged: it moves with the 0.4.7 pin (T6), since an engine before
0.4.7 refuses tree_wanted.
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… the frame's content Once ask.rs has asked a bare Electron frame's application to turn its accessibility on, the frame is read again (wait.rs) until it shows a page (a `document web` with children), or content with no `document web` (a window with no page, which ends at once), or the bound passes. The bound, 2 s, is wall time from the request's reply and covers the reads: each read is made by its deadline (atspi::read_by over Bus::recv_until), and a read the deadline cuts is abandoned for the read before it. The answer is the wait's last whole read; the stats line's `ask` record carries `wait`. The wait comes only after a request that went out, so once per application per bus connection: an application asked before is answered as its read came. Nothing else waits. Task 3 adds the `asked` reason where the wait ended without the page (engine.rs marks the point). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…engine's frame wait.py extends task 1's fail-closed runner with the pre-flight's G 2, 4, 9 and 10, and the wait's measurement on the engine's own frame: the fixture (30 runs, page after 27 to 42 ms), VS Code from its package (page after 138 to 282 ms, 45 runs at three moments after it joined the bus), an Electron window with no page (24 to 31 ms) and CEF's terms dialog (not asked). The never-answering fixture waits the 2 s bound once, then never again. shapes.py records what a Chromium window's tree shows as its content arrives, which the wait's end is built on. Against task 1's engine, which does not wait, the run exits 1. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… the screenshot's difference is scoped; a reason must be a string
- src/services/sky.mjs: a Linux launch_app in any shape but {app: <string>} alone (an
extra positional input or key, a non-string app, no input, or an array naming the
method) is refused with LINUX_LAUNCH_SHAPE_REFUSED before an approval is asked or the
service is reached. Only the supervisor's launch sets ACCESSIBILITY_ENABLED=1; a
delegated one reached cua-engine's own launch_app. A test drives cua's Linux service
over the fake engine and shows no launch_app reaches it.
- The vendor differential: a scenario may scope its declared difference
(withoutDifference), and the record without it must equal the vendor's. The screenshot
scenario removes tree_wanted alone.
- bind_linux_app: tree_unavailable's reason must be a string; an array holding a known
reason renders nothing, and an object that converts to no key no longer throws.
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… screenshot sends tree_wanted: false, the facade renders tree_unavailable T4's head 7ea10a2, reviewed clean after one fix wave. ci-gate test-1,test-2,plugin GREEN (46109952433); vendor differential 250/250 against the comparator fixture. Needs engine 0.4.7 (tree_wanted), pinned in T6. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…re confirmed, panels alone wait on - The deadline governs the read itself. Bus::recv_until checks the clock before and after it waits, so replies already in do not outrun it; the read's transport queues nothing and hands out nothing once it passed, and a tree built after it is rejected. Calls queued past a deadline are dropped unwritten (flush is Broken only when a write was cut mid-message), so a healthy connection stays and Asked is kept. - Bus::by(deadline, f): every wait inside f ends by the deadline, a call then failing as a call. The wait carries the window's association and confirms it again, by the deadline, before a replacement read is the answer (engine::confirmed_by); a changed association ends the wait. - Shape::Views: panels alone, or a read with a failed node, tell nothing yet and wait on; NoPage needs something beyond structure and no node lost. - wait.rs's tests move to wait/tests.rs. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…tion recorded wait.py gains `panels` (a window of panels alone waits the bound) and `twins` (two same-title windows of one process: each answers its own page, the wait's read confirmed again). G 9's fallback now needs the bare answer and a wait at the bound; repetition counts below 1 are refused. The final pass at bd5caab exited 0; T1's engine and the pre-wave wait (59d106d) fail their controls. The README records G 10 as met by substitution. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… what the bound covers - tree.rs counts admitted nodes whose GetChildren failed (an error, or a reply that is not a list) in ReadStats::listings_failed. The tree the engine answers, its cuts and its rendering are unchanged: such a node still shows no children, as the vendor's read does. - wait::lost adds those to the read's failed nodes, so a read whose document's panel failed its listing while the controls read whole is Views, not NoPage, and the wait reads again. - wait.rs and engine.rs say what the bound covers: the pauses and every accessibility-bus call, not the X server's replies, which block unbounded everywhere in the engine. tech-debt-tracker.md records them (ruled don't-fix for #228). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The final pass exited 0 (G 2, 4, 9, 10, panels, twins, cef-dialog, vscode-early); T1's engine and the pre-wave-1 wait fail their controls. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ed, for the frame's content T2's head a4a639d, reviewed clean after two fix waves. engine-linux GREEN at the head (run 46159168989). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…not there; its launch_app sets ACCESSIBILITY_ENABLED=1
get_window_state's answer gains tree_unavailable: {reason} (the pre-flight's E3), from what association and the wait
already tell apart (unavailable.rs, a pure function over them):
- no_provider: association found no application on the bus for the window's process, the bus having named every
application's process (atspi::of_process, carried on the fallback's leave), and the window's WM_WINDOW_ROLE is
browser-window (read only in that case);
- asked: the request went out and the wait reached its bound with the frame still alone.
Every other window, and every screenshot (tree_wanted: false), has no field; the tree and its source are unchanged.
The engine's own launch_app sets ACCESSIBILITY_ENABLED=1, as the supervisor's route does (taste call 2). The comments
that said only the supervisor's route sets it now say why that route is kept: it launches outside the sandbox. wait.rs's
BOUND says what the bound covers, as the module doc and the tracker do.
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…e's new constructor tests/identity_boundary.rs's rule that leave is made only in atspi.rs looked for `Fallback(())`, which the previous commit replaced with `Fallback(Why::...)`, so the rule had nothing left to find. It now looks for `Fallback(Why`, and its negative control leaks `Fallback(Why::NoProvider)`; with the old needle that control fails. atspi.rs's own test no longer names after_vendor_error, whose single mention in that file the same test pins. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… negatives), and their evidence t3-reasons/reasons.py extends tasks 1 and 2's runners: private displays and buses, temporary homes, an unfiltered monitor with markers, every candidate observation followed by the base's on the same window (its answer less the field must equal the base's). At 002824f: off-the-bus 3/3 (no_provider), off-the-bus-beside 3/3, asked 3/3 (the field on the observation that waited only), gedit, chrome-on, chrome-off and nwjs 2/2 each with no field; the base as the candidate fails. wait.py's G 9 fallback now requires the asked field, as it promised. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…boundary guards every spelling, the launch test writes nothing - atspi.rs: refs_of leaves out a registry entry that is no object reference, so a malformed listing could look empty. listed_whole says whether it was whole; of_process gives no_provider only then. The fallback answer is unchanged. - tests/identity_boundary.rs: leave made outside atspi.rs is any `Fallback(..)`, whatever its argument or spelling, but the engine's own Observed::Fallback; and atspi.rs's Fallback field must stay private. A negative control for each spelling (`Fallback(())`, `Fallback(Why::..)`, `Fallback(if ..)`, `atspi::Fallback(..)`, a space before the parenthesis), for Observed::Fallback, and for a public field. - apps.rs: the launched program checks ACCESSIBILITY_ENABLED and PATH itself and answers by its exit status; nothing of the environment is written. The test runs again in a process of its own that inherits ACCESSIBILITY_ENABLED=0. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…one to one; the live re-run at f3f8491 - reasons.py: the base replays the candidate's observations kind for kind, the screenshot included (which now asks for its picture, as getScreenshot does, its generated file path the only value normalized), and every candidate answer less its field must equal its base answer; a shorter base list fails. - The re-run at f3f8491: every scenario passed (off-the-bus, off-the-bus-beside and asked 3/3; gedit, chrome-on, chrome-off and nwjs 2/2), 43 answers equal to the base's out of 43; the base as the candidate fails. - The superseded control (a runner TypeError) is removed, and the beside rows are in reasons.jsonl. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ree is not there, and its own launch_app sets ACCESSIBILITY_ENABLED=1 T3's head 17719c9, reviewed clean after one fix wave. engine-linux GREEN at the head (run 46168792363). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
- P1: the association is confirmed again right before GetAttributes, on the connection that found it and by a deadline (Bus::by); a frame that changed, or that cannot be confirmed, is not asked (left: changed), and that skip is not remembered. - P1: a frame with no children whose own GetChildren failed is not known to be bare and is not asked (left: unlisted); the measured bare frame, whose listed child's role fails, still is. - P2: a batch the deadline catches unwritten is dropped cleanly only inside Bus::by (the wait's reads and confirmation, and their table sampling); every other calls_until caller gets Broken as in 0.4.6, so a paste's pre-paste field read stops the paste again. - P2: Bus::call_answered tells a written call's silence from a refusal; a GetAttributes written and unanswered is remembered as asked, and only a request not written or refused is sent again. - P2: WM_WINDOW_ROLE is compared exactly for the ask and no_provider (X11::role_exactly: the whole 8-bit STRING, nothing trimmed). - P2: a read the element or depth limit cut is not a window without a page; a populated document still ends the wait at once. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ith their controls All three pass at 6b624db and their controls fail. T1's first-read check predated task 2's wait (the first read now answers the page the request brought): it accepts the bare read or the wait's page. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… an ERROR message refuses - P1: right before GetAttributes the association runs again on every route, the vendor's title match included (Associated::confirm_for_ask), and holds only when it again names the same frame of the same application root, unambiguously. The reads and input keep their own confirmation. A live test through the real association (gtk3-twins.py's new `twin` command): a window unique at the first read, a same-title same-size sibling shown during the toolkit lookup, and no GetAttributes. - P2: a method return whose body cannot be read (over the size limit, or undecodable) is the application's answer (Answer::Unreadable), so the request is remembered as asked; only an ERROR message is a refusal. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
T1's runner passes (G 7 still main's count) and its control fails; the README says what the title-route confirmation costs the fixture. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…inear time fail_unanswered queues every failed call and its kind, then trims the bookkeeping once; fail_unrefused no longer rescans the reply queue per failure. The trim runs only once the map holds more than twice the queue, so each one at least halves it. Wave 2's classification is unchanged. Failing 10,000 pending calls took 69.2 s before and is now under a millisecond's budget of the test (250 ms). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…s target on every route, and reads and replies fail the way they should 228-engine-fix's head a9b3078, reviewer-high correct after three fix waves (two P1s and five P2s). engine-linux GREEN at the head (run 46180156407). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…, Chrome's paragraph corrected, the model's line, the #171 spec's line, the close-out README.md: the Electron limitation (what shows, what is not on the bus, the costs the owner accepted), Chrome's own window (the provisioning wrapper's flag), the launch variable beside launch_app. docs/cua-api/linux-engine.md: one paragraph for the two sentences. The #171 spec's M5 limitation line, corrected in place and dated. families.mjs's Electron comment. The pre-flight's Outcomes. linux-engine-document.test.mjs pins the sentences to the facade and the variable to the code. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
The tracker's one conflict keeps both sides' new lines. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
`node scripts/linux-engine-pin.mjs linux-engine-v0.4.7` wrote runtime/engine/linux-engine.json (x64 05b9cac4…32cc, arm64 cd1ac299…d631, both attestations verified) and the runtime record's engine version, so the Linux runtime's release is cua-linux-x64-e0.4.7-n24.22.0-s0.163.0-mb71dc1f8185d. MIN_ENGINE_VERSION goes to 0.4.7: getScreenshot sends get_window_state with `tree_wanted: false` (T4), which 0.4.5 and 0.4.6 refuse as an unknown field, so an older installed or override engine is refused with the existing engine_outdated sentences, and the service refuses it before anything is sent. A service test says so for 0.4.5 and 0.4.6, the screenshot included. The lines that name the pinned engine or the minimum follow: the README's pin, runtime release name, parts table and its three minimum sentences; the service, client, bootstrap and doctor tests' sentences and current engine; the fake engine's version; the selection tests' installed versions and the releases below the minimum; the cloud-vm fixture's install release and the runtime cells' fetched engine URL. The plugin and marketplace go to 0.31.0 (a minor, for a behaviour change on Linux; the coordinator allocates the final number). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…iable as it reaches processes, the costs as the evidence limits them The Electron text is conditional (asked when the window is alone, the wait after the request's reply, each sentence for the condition that produces it, a relaunch as a remedy). The launch sentence says a fresh gio process gets the variable and a D-Bus-activated or running instance does not. The lesser-mode warning is Orca, Electron 37 and later, resolved by a restart. Outcomes labels the release and pin as T5's, pending. The CLAIMS row anchors on the environment passed to gio. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
scripts/accept/linux-electron-a11y.mjs opens `cua serve` over MCP as a session does and judges what the facade answers, with the applications outside the sandbox, inside linux-runtime-env.sh's private display and buses: §G 1 (launch_app of the Electron fixture's desktop entry with both switches off: getApp's first observation and the next getAXState have `Fixture button`), §G 3 (the fixture started by hand off the bus: each observation ends with §E3's first sentence, written out in the driver), a screenshot that asks nothing (the facade's own getScreenshot as the app's first observation: no GetAttributes; the next getAXState sends one, to the fixture) and gedit unchanged (getApp's and the next getAXState's text equal byte for byte through this head, main and this head again). The bus is watched as task 1's runner watches it, each observation between two markers to the registry's own object; a registry listing it cannot read whole is unknown, never empty. docs/evidence/2026-11-27-electron-a11y/t5-acceptance/: run.sh installs this head and main (a847150) into homes of the run's own and runs the driver for the candidate, for main as a control (no #228: live 1, live 3 and the screenshot must fail on their content) and for this head with CUA_LINUX_ENGINE_BIN naming 0.4.6 (the open must be refused engine_outdated); engine-direct.mjs sends the screenshot's request straight to 0.4.6 and 0.4.7; judge.mjs holds each run to what it must show. The pure pieces (the monitor's parse, the markers, gdbus's replies) have unit tests. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…ings in the documents A fresh launch puts an Electron app on the bus, where it shows only its window. A read of a bare Electron window on the bus asks the app to turn its accessibility on, and the wait follows the app's answer. The lasting cost and the Orca warning are tied to a request that turned accessibility on. The #171 spec's line summarizes this and says a sentence needs a confirmed missing provider or a frame still bare at the deadline. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…h the confined service run.sh at 47c565c (the 0.4.7 pin, MIN_ENGINE_VERSION 0.4.7), under the host lock, verdict PASS: - §G 1: launch_app of the fixture's entry with both switches off; getApp's first observation has `Fixture button` after one GetAttributes to the fixture. - §G 3: the fixture started by hand off the bus; both observations end with §E3's first sentence word for word. - A screenshot as the app's first observation sends no GetAttributes; the next getAXState sends one and has the button. - gedit through this head, main and this head again: equal byte for byte, and nothing asked. Controls: main (no #228) fails live 1, live 3 and the screenshot on their content; the head with CUA_LINUX_ENGINE_BIN naming 0.4.6 is refused engine_outdated with the literal sentence; 0.4.6 itself refuses the screenshot's `tree_wanted` ("unknown field `tree_wanted`") and answers without it. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…the sentence needs the deadline README, linux-engine.md and the #171 spec's line say a bare read of an Electron window on the bus can ask the app, not that it does. The model's document says a retry reads again without a second request or wait on the same connection. The spec's line says the wait must end at its deadline with the frame still bare. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… 0.4.7, plugin 0.31.0, and the acceptance through the confined service T5's head 07e4a86 (with main a847150 merged). §G 1, 3, 5 and 7 pass through the confined service at 47c565c; the 0.4.6 control is refused as engine_outdated, and the binary itself refuses tree_wanted. ci-gate GREEN at the pin (46183291590) and at the head (46185494154). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…rough the confined service (T5) Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…'s Chromium sentences are conditional The whole-branch review's two JavaScript P2s. The engine client checks the started server's `capabilities.version` against MIN_ENGINE_VERSION before the start resolves, as well as `--version` before it. `--version` and `server` are two executions of one path, so an install from an older checkout can swap the file between them; the 0.4.6 server would then get the screenshot's `tree_wanted`. A report below the minimum, or with no version this cua reads, ends that server and refuses every request queued behind the start with the engine_outdated sentence (or its unreadable-version sibling). A client test runs a fake whose `--version` says 0.4.7 and whose handshake says 0.4.6, none or "v0.4.7"; two service fakes gain the version every real engine reports. Doctor's accessibility.enabled row keeps its status about the switch. Its sentences now make Chromium's part conditional: a Chromium application reads the switch only from Chromium 112, and a bridge variable at its start overrides it (1 starts the bridge, 0 keeps it off). They name launch_app as the route that puts what it starts on the bus whatever the switch says. The tracker gains the wait's failed-root-listing case, deferred to the next engine release. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…hes a setting The whole-branch review's P1, its third P2 and its P3, in the driver. - P1: a nonzero DISPLAY does not prove the session bus or the home are the run's. linux-runtime-env.sh now exports CUA_ACCEPT_RUN and records the display and the session bus it started in the run's env/ directory, which it makes fresh. The driver checks that proof (runProof) before anything reads or writes a setting: the display and the bus are the recorded ones, HOME and XDG_RUNTIME_DIR are the run's, CUA_HOME and --base-home lie inside it. Without the proof it refuses, and no gdbus, dbus-send or dbus-monitor runs (a test with stubbed tools). It also saves both switches and puts them back, failing the run if they did not come back as found. - P2: the gedit comparison runs each pass on its home's own engine. The base pass drops an inherited CUA_LINUX_ENGINE_BIN, and the comparison refuses to run while one is set. The separate override control is unchanged. - P3: the desktop entry's Exec field writes each argument by the Desktop Entry rules (execField): `%` doubled, a reserved character quoted with its escapes, the value's backslashes doubled. Live 1's user-data directory is now `live1 100%`, so the run uses the quoting end to end. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…vate environment run.sh at the fix head, under the host lock, verdict PASS: live 1 (its entry's user-data directory now holds a space and a %), live 3, the screenshot and gedit pass; main fails live 1, live 3 and the screenshot on their content; the 0.4.6 override is refused engine_outdated; 0.4.6 refuses tree_wanted. Each report records the switches as found and as restored, equal. The steps log is kept as steps.log.txt, since *.log is ignored. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…es, and changes no switch it cannot restore
The re-review's four findings on the session proof.
- P1: linux-runtime-env.sh no longer clears <run>/env. linux-runtime-env.mjs
treats it as it treats HOME and the runtime directory: an existing one is
refused (exit 2, before any home is made, its files left as they are), and a
fresh one is made 0700 without -p. A test runs the wrapper on a run that
already holds env/keep.txt.
- P2: runProof compares real paths. CUA_HOME and --base-home must each resolve
inside the run's real path before either session starts, so a base-home
that links to a shared install, or one that cannot be resolved, is refused.
Tested on disk with a symlinked base-home.
- P2: both switches must read as booleans before any scenario changes them
(switchProblems), and a restore holds only when both read back as booleans
equal to what was found (restoreProblems), so a failed last read is a failed
restore.
- P3: the test's stub bus tools take the log's path from their environment
("$CALLS_LOG"), under a scratch whose name holds an apostrophe, with a
positive control that a called stub logs.
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
run.sh at the wave-2 head, under the host lock, verdict PASS: live 1, live 3, the screenshot and gedit pass; main fails live 1, live 3 and the screenshot on their content; the 0.4.6 override is refused engine_outdated; 0.4.6 refuses tree_wanted. Every report's switches read back as found (IsEnabled true, ScreenReaderEnabled false). Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… holds to the minimum, doctor's Chromium sentences are conditional, the acceptance driver owns its session 228-final-fix's head 911e637, reviewer-high correct after two fix waves. ci-gate GREEN on all 9 gates (46198390559). 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. |
SSFSKIM
enabled auto-merge (squash)
November 28, 2026 23:18
SSFSKIM
added a commit
that referenced
this pull request
Nov 28, 2026
… tree on Linux) into feat/117-m5 before the next full sitting C; feat's macOS engine side, 0.31.0's manifests (refs #506) Merge base 96d71cf. Main also carries a847150, the squash of #611, whose branch 7147de8 feat merged earlier. Against feat, the merged tree changes exactly #613's 164 files. 158 of them are byte-identical to bf594e1. The other six auto-merged with feat's own changes: README.md, src/services/sky.mjs (#613's part is Linux-gated), tech-debt-tracker.md, test/repl-parity/selection-oracle.test.mjs, test/runtime-launch.test.mjs and test/services-sky-linux-policy.test.mjs. Conflicts and how they were resolved: - native/engine/Sources/Engine/Version.swift: feat's 0.3.3, over main's 0.2.4 from #611's squash. It is a version line, not code. Methods.swift, Paste.swift and TypeReadback.swift are unchanged against feat. - .claude-plugin/plugin.json and marketplace.json: main's 0.31.0. The plugin's next version is left to the flip PR. 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.
Summary
On Linux, an Electron app (VS Code, Slack, Obsidian, Discord, …) used to show cua a single node unless it was started with
--force-renderer-accessibility. With this PR, cua reads its tree with no flag and no restart. It ships as cua 0.31.0 with linux-engine 0.4.7 pinned.The pre-flight (
docs/doperpowers/specs/2026-11-27-electron-a11y-preflight.md) found that the tree needs two separate things:ACCESSIBILITY_ENABLED=1or by the session'sIsEnabled.What changes:
The engine asks. It sends one
GetAttributesto the app, and only when all of these hold:browser-window, Electron's own and never a browser's;Right before the send, it re-confirms on every route that the window still names the same frame and application, unambiguously. After the app answers, it waits up to 2 s for the content.
The answer says why a tree isn't there, with
tree_unavailableand two sentences:No accessibility tree: <app>, an Electron app by its window's role, is not on the accessibility bus, which it joins only as it starts; start it again with launch_app to get its elements.No accessibility tree yet: <app> was asked to turn its accessibility on and has not shown its elements; observe again.Every other answer is the 0.4.6 engine's, key for key.
launch_appsetsACCESSIBILITY_ENABLED=1for every app it starts, through the supervisor'sgio launchand the engine's own launcher. A Linuxlaunch_appin any shape other than{app: <string>}is now refused before approval.getScreenshotsendstree_wanted: false.MIN_ENGINE_VERSIONis 0.4.7, because 0.4.6 refusestree_wanted. It's checked twice: by--version, and on the running server's own handshake.Doctor's
accessibility.enabledrow names Chromium. Its effect is described as conditional: Chromium 112 or later, with no variable overriding it.The costs the owner accepted (ruling 1261, taste call 1):
Release-notes line (1261): cua turns on accessibility in the Electron apps it reads, until they exit.
The rulings: taste calls 1 and 2 are the owner's, and 3 and 4 are the coordinator's (rulings 1251 and 1261, in the pre-flight's §K).
The §J corrections, with what the repository said before:
google-chromewas the provisioning wrapper, which adds it.scripts/linux-engine-diff/families.mjs's Electron comment: the request turns the tree on once the app is on the bus.docs/cua-api/linux-engine.mdgains the model's line.macOS: the plugin bump to 0.31.0 reaches every Mac. The whole-branch review found no macOS behaviour change: the launch refusal, the screenshot field, the facade's rendering and doctor's changes are all gated to Linux.
Closes #228
Validation Evidence
linux-engine-v0.4.7: https://github.com/SSFSKIM/cua/releases/tag/linux-engine-v0.4.7, built from 3944622 by run https://github.com/SSFSKIM/cua/actions/runs/46181361665. All five jobs passed first time; the arm64 build took 8 min 10 s, so linux-engine: clipboard contention test hung 27 min in the arm64 release build #581 didn't recur.
sha256sum -c SHA256SUMS: both OK.gh attestation verify <asset> --repo SSFSKIM/cua --signer-workflow SSFSKIM/cua/.github/workflows/linux-engine.ymlexits 0 for both.cua-engine 0.4.7 (3944622deb44).§G's live tests through the confined service:
cua serveover MCP, with the kernel in the default scoped sandbox and the apps outside it, under a proven private environment. Evidence:docs/evidence/2026-11-27-electron-a11y/t5-acceptance/. Verdict PASS at 92d2c29:launch_appof the fixture's entry, then the first observation isat_spiwithpush button Fixture button, after exactly oneGetAttributes. The fixture's user-data directory holds a space and a%, so the entry'sExecquoting is exercised end to end.No accessibility tree: …sentence, word for word, and nothing was asked.GetAttributes; the nextgetAXStatesends one and has the button.engine_outdatedbeforeinitialize;tree_wantedwithunknown field \tree_wanted``;Engine-only live tests, each runner failing closed against a control engine: §G 2, 4, 6, 8, 9 and 10, with VS Code, Chrome, NW.js, CEF, gedit, kate and qtcreator, in T1 to T3 (
docs/evidence/2026-11-27-electron-a11y/t{1-rule,2-wait,3-reasons}/,review-fix/).The engine suite (release musl, private displays): 796 pass, 0 fail.
The reviews:
ci-gate by its own selection at 911e637: GREEN, all 9 gates, https://github.com/SSFSKIM/cua/actions/runs/46198390559. The PR head, 36e5581, is a merge commit whose tree equals 911e637's. engine-linux at the reviewed engine head: GREEN (46180156407).
Unresolved Review Findings
Bare(native/linux-engine/src/wait.rs~L202–205; whole-branch review, P2). If the app's rootGetChildrenfails after the request and the wait then hits its deadline, the answer carries the "not yet, observe again" sentence, though panels may already have shown, and the next observation reads again.after_read's check. It's on the tracker.Residue
test/linux-engine-diff/ancestry-watch.test.mjsL86) has a tracker line here, and its occurrence is on Flaky cases behind 48 reruns in four weeks (test 37, engine-linux 7, sandbox-denials 4): the tally from the logs #444.Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)