Repository navigation
linux-engine 0.4.6: release records say what the reply did, and the option (c) live test holds under load (#580) - #599
Merged
Merged
Conversation
…ere it unconfirmed the drop, and a floorless drag overran nothing Item 1 (P2). `release_sync.unconfirm_outlasted` is option (c)'s own gate and switch again (the gate open and `--drag-dnd-unconfirm-outlasted on`), as 0.4.4 recorded it. `release_sync.unconfirmed` is recorded only when its cause turned the drop's confirmation into `Outlasted`: `drop_confirming` returns the cause it applied, None unless Chrome's activation request was the drop's only confirmation, and the drag writes it onto the record once the confirmation is decided. On a window manager without `_NET_ACTIVE_WINDOW` the drop stays unjudged and its record names no cause. No answer changes. Item 3 (P3). `overran` requires a floor: `PathEnd::of` takes the floor's steps only when a floor ran (`--drag-dnd-after-take-ms` not 0), so `cua:floor0` rows read `overran: false`, and `last_step_after_take_ms` is still recorded. The record's construction moved into `gate_record`, unchanged otherwise. Tests: a_dropped_visit_is_recorded_unconfirmed_only_where_it_turned_the_answer and a_floorless_drag_overran_no_floor_and_still_records_its_last_step, both red on 0.4.5's semantics first. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…urned as serialized Item 4 (P3). `wire::jsonl` copied every line twice through two `str::replace` calls, `get_window_state` replies over 4 MiB included. It now returns the serialized string as it is when neither U+2028 nor U+2029 occurs, and otherwise escapes both in one pass that allocates at the first match. The bytes written are unchanged (#572's round-trip test passes; a byte differential of the raw reply lines against the released 0.4.5 is in the task's report). Tests: a_line_with_nothing_to_escape_is_returned_as_it_was_serialized (the same buffer comes back: red on the two replaces) and the_one_pass_escape_writes_what_two_replaces_wrote. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…isit from the activation's case Item 2 (P2). Under load a short path's in-floor tail can drop a visit, and 0.4.5 rightly answers that drop unconfirmed with option (c)'s notice and refuses the next input; the test then failed on its shut-gate case. It now reads the record's `visits_dropped`: a drop that dropped a visit is held to that answer (Outlasted, the notice, the next click refused, `unconfirmed: visit_dropped`), and its case runs again, at most three times, until a drop with both visits proves the activation's answer, which stays as strict as before. Every case also checks `unconfirm_outlasted` as option (c)'s own gate and switch, and `unconfirmed`'s cause. 0.4.5's test failed 2 of 10 runs at 24 stress-ng workers on 8 cores; this one passed 40 of 40 at 24 and 32 workers, one of them through a dropped visit. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…irmed and overran record now Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…the release queued its notice Fix wave 1 (task 176's review, P2). A named Chrome window can go between the gate's opening and the checked tail motion or the button release; with option (c) on, the cached destination still made the drop `Confirming::Outlasted`, so its record said "outlasted", though the release never went up, no notice was queued and the reply was the X11 error. The after-release decision is now `AfterRelease::of(released, confirming)` (handed over, pending, or done), the match the drag already made, and `AfterRelease::recorded` names the cause only on a pending drop. A failed release leaves `unconfirmed` null. No reply changes. Test: a_failed_release_records_no_cause_and_a_queued_notice_does, red on the unfiltered cause first. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… visit only from an in-floor tail Fix wave 1 (task 176's review, P2). The open-gate, option (c) on case could pass with `unconfirmed == "visit_dropped"` and never see option (c)'s own "outlasted". An open gate schedules the tail after the path, which sends both visits whatever its wakeups, so a dropped visit there is a regression. The test now fails a dropped visit unless the record shows the gate shut and an `in_floor` schedule, and keeps the bounded retry for that case alone. Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
`node scripts/linux-engine-pin.mjs linux-engine-v0.4.6` wrote runtime/engine/linux-engine.json (x64 086b270b…55a4, arm64 9f39085d…f625, both attestations verified) and the runtime record's engine version, so the Linux runtime's release is cua-linux-x64-e0.4.6-n24.22.0-s0.163.0-mb71dc1f8185d. MIN_ENGINE_VERSION stays 0.4.5: 0.4.6 changes records, a test and a copy, and no cua code needs it. The lines that name the pinned engine follow it: the README's pin, runtime release name and parts table (its minimum stays 0.4.5), the service test's current engine, the cloud-vm fixture's install release and the runtime cells' fetched engine URL. The plugin and marketplace go to 0.30.1. 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 01:29
SSFSKIM
added a commit
that referenced
this pull request
Nov 28, 2026
Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 28, 2026
…ne fix, main's M6b, #596, #599) into feat/117-m5; engineVersion 0.3.1 over both sides' engine changes (refs #506) Conflicts, each combined so both sides' behaviour survives: - native/engine/Sources/Engine/Version.swift: feat's 0.3.0 (M5) and the fix's 0.2.2 (#587) become 0.3.1, above both. Its readers (client.mjs MIN_ENGINE_VERSION 0.1.0, doctor, engine-bundle, engine-version-check) read it or compare against 0.1.0; nothing pinned either side's string, so none changed. - src/runtime/launch.mjs nativeEngineFor: feat's R4 minimum at selection (pending, minimumVersion = MIN_MACOS_ENGINE_VERSION, the outdated remedy and its comment) kept; M6b's signature taken (no arch or vendor, Linux has no vendor engine; engineSetting gets platform). - src/services/secret-input.mjs userIntervened: #212's interruption account (interruptionOutcome, `interruption` sets entered and the outcome text) on main's placement `mayShow` ('unplaced' default, 'passwordField'), with INTERVENED.userChangedEntered and MAY_SHOW.passwordField only once entered. sky.mjs had auto-merged to that call. Feat's #212 test asserted the getAXState re-query beside an account that says the secret may be in; it now expects the user's check (ruling 1247 d), and the 1247 (d) sweep gains two branches that carry an account. - README.md CUA_NATIVE_ENGINE: main's Linux text (vendor retired, engine_retired, 0.4.5 or later) with feat's macOS minimum sentence (0.1.0, engine_outdated and its remedy). - tech-debt-tracker.md: both sides' entries. Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 28, 2026
…587), and a failed read-back read is retried and diagnosed (#590) (#601) * macOS engine 0.2.2: type_text with no field to read back answers ok with a note; a failed read is read again (refs #587) #587 (ruling 1219): a focused element that is not a text field (Finder's type-select in a list or outline) threw typeUnconfirmed (notTextField) after its keys landed; the vendor answers ok. Both routes now answer success with a note that the text could not be read back and the app should be observed before relying on it or typing it again; the record keeps confirmed: false and the reason. noFocusedElement takes the same contract: the vendor's targetForKeyboardEvent answers the app's pid when focusedUIElement is nil, with no error, and posts without reading the element (F §5.7, the pinned helper's 0x1006f645c). A text field's read-back, the password reasons and selectionChanged are unchanged. #590 (ruling 1225): a role, value or range read at the snapshot (settle and wait included), and a role or subrole read in a poll, that answers nothing is read again up to 2 times, 15 ms apart, while its phase has time (the request's time left less one messaging timeout; the poll's budget). Only a failed read is retried; a mismatch never becomes ok. On an unreadable reason the record carries readFailure {phase, read, axError, retries, msSinceLastKey, role, subrole}, never a value; concealed and password records drop the counts and time. Sminos-Session: cursor235#b93055dd (cua on macbook) * service: the no-field note reaches the tool result's text, and readFailure rides as cua/typeReadback (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec and tech debt: #587 and #590's Decision Log entry, the record's readFailure, the unretried focus check (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin 0.29.23: type_text with no field to read back answers ok, and failed reads are retried (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: ok-with-note only for a literal request whose search finished with no field; a retry never reads past its first try (refs #587) Ruling 1244 on the review of e54eab4..106d201, with ruling 1242's narrowing. - P1-1: a concealed request with no field stays typeUnconfirmed and its remedy never advises a screenshot or getAXState(), whatever the search found. - P1-2: the lookup has three outcomes: a field, .noField (the walk finished with none, and the marker route, when it ran, reached the web area), or nil, indeterminate, which throws as before. The walk answers ReadbackWalkOutcome; the app's own answer of no focus is never enough (background Safari answers so over a focused field). - P1-3: a value or range retry, in the snapshot and its settle, runs only after the role and subrole are read again and still classify the field. - P1-4: a poll's role read naming AXSecureTextField or another role ends the check whatever its subrole read answers. - P2-5: a field the lookup took for a password field is classified by one role read, never retried. - P2-6: no field under select_text's range is selectionChanged, nothing typed or pasted. - P2-7: the keyed route's retries and polls are bounded by the request's deadline. - P2-8: readFailure keeps the role and subrole last read successfully. Sminos-Session: cursor235#b93055dd (cua on macbook) * service: the no-field note's comment follows ruling 1242 (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: rulings 1242 and 1244, the three-way lookup, the invariants and the record (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin 0.30.1: type_text with no field to read back answers ok, and failed reads are retried (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: ok-with-note is notTextField alone; noFocusedElement throws as before; a secret's answers never advise observing (refs #587) Ruling 1247 on the review of 106d201..d51ae68. - noFocusedElement throws typeUnconfirmed exactly as before #587 (a declared limit): .noField, the marker's .noField and ReadbackWalkOutcome are removed, the walk and marker route answer as before except as below. - c: a field the walk or marker found by a text-entry role (ReadbackFound.field's role) that the snapshot reads as another role answers fieldChanged, never notTextField. - b: a password field the marker classified but whose focus or place under the web area it cannot show closes as a password field's (fieldUnreadable, secure), whatever the walk finds. - d: a concealed request's typeUnconfirmed, every reason, ends with a remedy that names no observation (readbackConcealedRemedy, or readbackConcealedMayShowRemedy). - e: under select_text's range the nil lookup (and a closed password claim) answers selectionChanged before any key or ⌘V. - h: after a retry's re-classification, the retried read starts only while the bound allows. Sminos-Session: cursor235#b93055dd (cua on macbook) * secret wrapper: no answer after a secret's first key advises observing the app (refs #587) Ruling 1247 (d). secretMayShow classifies 'passwordField' (as before) or 'unplaced' (notTextField, noFocusedElement, fieldChanged and every other reason posted without confirmation); every sky failure that may have entered part of the secret carries a warning of that kind, worded without a screenshot or getAXState; a userChanged intervention once entered asks the user to check where it went instead of re-querying. The test runs every branch after the first key. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: ruling 1247, notTextField alone, noFocusedElement a declared limit, the secret rule (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: a found field is held to its role first, and select_text's range comes before it (refs #587) Ruling 1249 on the review of ef383ad..75481fd. - (1) The role the walk or the marker route found a field by is compared with the snapshot's before anything else is read: a password field's role or subrole answers becameSecure, any other difference fieldChanged; no value, range or length is read. A field the lookup took for a password field keeps its own check (noLongerSecure); the application's focus is not compared. - (2) Under a pending select_text range, any outcome that cannot hold it (a changed role, a non-text or secure non-field element, the nil lookup, a closed claim) answers selectionChanged before any key or ⌘V. Sminos-Session: cursor235#b93055dd (cua on macbook) * tech-debt: the native engine's input-source and intervention errors still advise get_app_state after a secret's first key (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: one classification identity, one comparison, one selection gate (refs #587) Ruling 1250 on the review of 75481fd..c96a7cc, replacing the case-by-case guards. - R1: a field's classification is ReadbackIdentity (role, subrole if read, open|secure). The lookup's is the baseline when it classified the field (the walk's role, the marker's role and subrole), else the snapshot's first read. Every later classification (the snapshot's first read, #359's wait, the settle, poll and checkpoint, every retry's re-classification, each length batch) goes through readbackClassify alone; any difference ends the read-back: becameSecure, noLongerSecure, else fieldChanged. Only components the baseline read are compared; the walk's first subrole is adopted. - R2: under a pending select_text range, readbackSnapshot lets only a verified-range .expect through; every other answer is selectionChanged there, before any key or ⌘V. - Deleted: wave 3's already-classified skip and foundRole comparison, the per-path selection checks of waves 2 and 3, fieldClosed's own role branches, readbackFieldClosed, readbackLength's own classification checks, and ReadbackFound.field's password and role (now identity). - The proof: a table of 16 classification points x their transitions x selection pending (196 keyed runs; 49 on the paste route), asserting outcome, keys and ⌘V; round 4's three cases by name. Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: the walk's focus check after the poll is classified by R1; AXGroup's unread subrole is open at the final batch (refs #587) Ruling 1254 on the review of c96a7cc..4b07ce0. - P1-1: stillFocused now answers ReadbackRefocus, the focus and the role the walk read of the field it found again; that role goes through readbackClassify (a role-only reading), so a field that turned AXSecureTextField or another role between the last value read and the check ends the read-back, and a checkpointed Return is not posted. Two table rows. - P2-2: the concealed final batch's failed-subrole exception applies only where the role leaves security open: not AXSecureTextField, not neverSecureRoles (#525). AXGroup with an unread subrole answers noLongerSecure again; AXGroup still secure by a read subrole, fieldChanged. Sminos-Session: cursor235#b93055dd (cua on macbook) * tech-debt: a walk-claimed open field whose first subrole read fails goes down the length path (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * plugin 0.30.2: #599 took 0.30.1 (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * plugin 0.30.3: #605 took 0.30.2 (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 28, 2026
…tive no-input record (#602) (#607) * macOS engine 0.2.2: type_text with no field to read back answers ok with a note; a failed read is read again (refs #587) #587 (ruling 1219): a focused element that is not a text field (Finder's type-select in a list or outline) threw typeUnconfirmed (notTextField) after its keys landed; the vendor answers ok. Both routes now answer success with a note that the text could not be read back and the app should be observed before relying on it or typing it again; the record keeps confirmed: false and the reason. noFocusedElement takes the same contract: the vendor's targetForKeyboardEvent answers the app's pid when focusedUIElement is nil, with no error, and posts without reading the element (F §5.7, the pinned helper's 0x1006f645c). A text field's read-back, the password reasons and selectionChanged are unchanged. #590 (ruling 1225): a role, value or range read at the snapshot (settle and wait included), and a role or subrole read in a poll, that answers nothing is read again up to 2 times, 15 ms apart, while its phase has time (the request's time left less one messaging timeout; the poll's budget). Only a failed read is retried; a mismatch never becomes ok. On an unreadable reason the record carries readFailure {phase, read, axError, retries, msSinceLastKey, role, subrole}, never a value; concealed and password records drop the counts and time. Sminos-Session: cursor235#b93055dd (cua on macbook) * service: the no-field note reaches the tool result's text, and readFailure rides as cua/typeReadback (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec and tech debt: #587 and #590's Decision Log entry, the record's readFailure, the unretried focus check (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin 0.29.23: type_text with no field to read back answers ok, and failed reads are retried (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: ok-with-note only for a literal request whose search finished with no field; a retry never reads past its first try (refs #587) Ruling 1244 on the review of e54eab4..106d201, with ruling 1242's narrowing. - P1-1: a concealed request with no field stays typeUnconfirmed and its remedy never advises a screenshot or getAXState(), whatever the search found. - P1-2: the lookup has three outcomes: a field, .noField (the walk finished with none, and the marker route, when it ran, reached the web area), or nil, indeterminate, which throws as before. The walk answers ReadbackWalkOutcome; the app's own answer of no focus is never enough (background Safari answers so over a focused field). - P1-3: a value or range retry, in the snapshot and its settle, runs only after the role and subrole are read again and still classify the field. - P1-4: a poll's role read naming AXSecureTextField or another role ends the check whatever its subrole read answers. - P2-5: a field the lookup took for a password field is classified by one role read, never retried. - P2-6: no field under select_text's range is selectionChanged, nothing typed or pasted. - P2-7: the keyed route's retries and polls are bounded by the request's deadline. - P2-8: readFailure keeps the role and subrole last read successfully. Sminos-Session: cursor235#b93055dd (cua on macbook) * service: the no-field note's comment follows ruling 1242 (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: rulings 1242 and 1244, the three-way lookup, the invariants and the record (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin 0.30.1: type_text with no field to read back answers ok, and failed reads are retried (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: ok-with-note is notTextField alone; noFocusedElement throws as before; a secret's answers never advise observing (refs #587) Ruling 1247 on the review of 106d201..d51ae68. - noFocusedElement throws typeUnconfirmed exactly as before #587 (a declared limit): .noField, the marker's .noField and ReadbackWalkOutcome are removed, the walk and marker route answer as before except as below. - c: a field the walk or marker found by a text-entry role (ReadbackFound.field's role) that the snapshot reads as another role answers fieldChanged, never notTextField. - b: a password field the marker classified but whose focus or place under the web area it cannot show closes as a password field's (fieldUnreadable, secure), whatever the walk finds. - d: a concealed request's typeUnconfirmed, every reason, ends with a remedy that names no observation (readbackConcealedRemedy, or readbackConcealedMayShowRemedy). - e: under select_text's range the nil lookup (and a closed password claim) answers selectionChanged before any key or ⌘V. - h: after a retry's re-classification, the retried read starts only while the bound allows. Sminos-Session: cursor235#b93055dd (cua on macbook) * secret wrapper: no answer after a secret's first key advises observing the app (refs #587) Ruling 1247 (d). secretMayShow classifies 'passwordField' (as before) or 'unplaced' (notTextField, noFocusedElement, fieldChanged and every other reason posted without confirmation); every sky failure that may have entered part of the secret carries a warning of that kind, worded without a screenshot or getAXState; a userChanged intervention once entered asks the user to check where it went instead of re-querying. The test runs every branch after the first key. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: ruling 1247, notTextField alone, noFocusedElement a declared limit, the secret rule (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: a found field is held to its role first, and select_text's range comes before it (refs #587) Ruling 1249 on the review of ef383ad..75481fd. - (1) The role the walk or the marker route found a field by is compared with the snapshot's before anything else is read: a password field's role or subrole answers becameSecure, any other difference fieldChanged; no value, range or length is read. A field the lookup took for a password field keeps its own check (noLongerSecure); the application's focus is not compared. - (2) Under a pending select_text range, any outcome that cannot hold it (a changed role, a non-text or secure non-field element, the nil lookup, a closed claim) answers selectionChanged before any key or ⌘V. Sminos-Session: cursor235#b93055dd (cua on macbook) * tech-debt: the native engine's input-source and intervention errors still advise get_app_state after a secret's first key (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: one classification identity, one comparison, one selection gate (refs #587) Ruling 1250 on the review of 75481fd..c96a7cc, replacing the case-by-case guards. - R1: a field's classification is ReadbackIdentity (role, subrole if read, open|secure). The lookup's is the baseline when it classified the field (the walk's role, the marker's role and subrole), else the snapshot's first read. Every later classification (the snapshot's first read, #359's wait, the settle, poll and checkpoint, every retry's re-classification, each length batch) goes through readbackClassify alone; any difference ends the read-back: becameSecure, noLongerSecure, else fieldChanged. Only components the baseline read are compared; the walk's first subrole is adopted. - R2: under a pending select_text range, readbackSnapshot lets only a verified-range .expect through; every other answer is selectionChanged there, before any key or ⌘V. - Deleted: wave 3's already-classified skip and foundRole comparison, the per-path selection checks of waves 2 and 3, fieldClosed's own role branches, readbackFieldClosed, readbackLength's own classification checks, and ReadbackFound.field's password and role (now identity). - The proof: a table of 16 classification points x their transitions x selection pending (196 keyed runs; 49 on the paste route), asserting outcome, keys and ⌘V; round 4's three cases by name. Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: the walk's focus check after the poll is classified by R1; AXGroup's unread subrole is open at the final batch (refs #587) Ruling 1254 on the review of c96a7cc..4b07ce0. - P1-1: stillFocused now answers ReadbackRefocus, the focus and the role the walk read of the field it found again; that role goes through readbackClassify (a role-only reading), so a field that turned AXSecureTextField or another role between the last value read and the check ends the read-back, and a checkpointed Return is not posted. Two table rows. - P2-2: the concealed final batch's failed-subrole exception applies only where the role leaves security open: not AXSecureTextField, not neverSecureRoles (#525). AXGroup with an unread subrole answers noLongerSecure again; AXGroup still secure by a read subrole, fieldChanged. Sminos-Session: cursor235#b93055dd (cua on macbook) * tech-debt: a walk-claimed open field whose first subrole read fails goes down the length path (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * plugin 0.30.2: #599 took 0.30.1 (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * engine 0.2.3: record beforeInput where nothing of the input was posted (refs #602) The input meta gains `beforeInput: true`, sent only where the engine knows the request stopped before any key, ⌘V or Return, or value write went out: keyText before its first key (a stop there is userIntervened as one between keys is), the keyed read-back's selection gate, runPaste before its first post, pasteOperation before runPaste, setElementValue before the write, each of type_text, paste and set_value before its stretch begins, and the request's prologue. Ruling 1260: never inferred from a null startedAt. Sminos-Session: cursor235#b93055dd (cua on macbook) * Secret wrapper: "nothing was entered" only on the engine's beforeInput record; plugin 0.30.3 (refs #602) secretUnentered replaces the startedAt === null inference for every error: the record, and no input or value effect in an interruption account when one is present. startedAt null alone, an unparsed meta and the vendor's or an older engine's reply answer "may have been entered", with no advice to observe the app (ruling 1247 (d), whose sweep gains the new cases). Sminos-Session: cursor235#b93055dd (cua on macbook) * engine: InputMeta.posting's comment says the wrapper no longer reads startedAt (refs #602) Sminos-Session: cursor235#b93055dd (cua on macbook) * engine: an input request past its deadline at receipt records beforeInput (refs #602) The deadline still answers first; an input method's refusal there now carries the input meta with `beforeInput: true`, since nothing was dispatched (review of 0c39038..d87702f, P2-5; ruling 1268). Sminos-Session: cursor235#b93055dd (cua on macbook) * Secret wrapper: "nothing entered" needs cua's engine selected, the record, a known phase and preparation-only effects (refs #602) Ruling 1268, the review of 0c39038..d87702f: still interacting (P1-1) and concealedInputUnavailable (P1-2) rest on the record like every other branch, an interruption account counts only with a recognized phase and effects from the engine's preparation-only list (P1-3), and the record is read only when CUA_SKY_SERVICE names cua's own engine service (P2-4). Everything else is "may have been entered", with no observe or retry advice. Sminos-Session: cursor235#b93055dd (cua on macbook) * tech-debt: the engine-trust check and the backend import can resolve different targets (refs #602) Sminos-Session: cursor235#b93055dd (cua on macbook) * plugin 0.30.4: #601 took 0.30.3 (refs #602) Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 28, 2026
…e field's classification (#600) (#611) * macOS engine 0.2.2: type_text with no field to read back answers ok with a note; a failed read is read again (refs #587) #587 (ruling 1219): a focused element that is not a text field (Finder's type-select in a list or outline) threw typeUnconfirmed (notTextField) after its keys landed; the vendor answers ok. Both routes now answer success with a note that the text could not be read back and the app should be observed before relying on it or typing it again; the record keeps confirmed: false and the reason. noFocusedElement takes the same contract: the vendor's targetForKeyboardEvent answers the app's pid when focusedUIElement is nil, with no error, and posts without reading the element (F §5.7, the pinned helper's 0x1006f645c). A text field's read-back, the password reasons and selectionChanged are unchanged. #590 (ruling 1225): a role, value or range read at the snapshot (settle and wait included), and a role or subrole read in a poll, that answers nothing is read again up to 2 times, 15 ms apart, while its phase has time (the request's time left less one messaging timeout; the poll's budget). Only a failed read is retried; a mismatch never becomes ok. On an unreadable reason the record carries readFailure {phase, read, axError, retries, msSinceLastKey, role, subrole}, never a value; concealed and password records drop the counts and time. Sminos-Session: cursor235#b93055dd (cua on macbook) * service: the no-field note reaches the tool result's text, and readFailure rides as cua/typeReadback (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec and tech debt: #587 and #590's Decision Log entry, the record's readFailure, the unretried focus check (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin 0.29.23: type_text with no field to read back answers ok, and failed reads are retried (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: ok-with-note only for a literal request whose search finished with no field; a retry never reads past its first try (refs #587) Ruling 1244 on the review of e54eab4..106d201, with ruling 1242's narrowing. - P1-1: a concealed request with no field stays typeUnconfirmed and its remedy never advises a screenshot or getAXState(), whatever the search found. - P1-2: the lookup has three outcomes: a field, .noField (the walk finished with none, and the marker route, when it ran, reached the web area), or nil, indeterminate, which throws as before. The walk answers ReadbackWalkOutcome; the app's own answer of no focus is never enough (background Safari answers so over a focused field). - P1-3: a value or range retry, in the snapshot and its settle, runs only after the role and subrole are read again and still classify the field. - P1-4: a poll's role read naming AXSecureTextField or another role ends the check whatever its subrole read answers. - P2-5: a field the lookup took for a password field is classified by one role read, never retried. - P2-6: no field under select_text's range is selectionChanged, nothing typed or pasted. - P2-7: the keyed route's retries and polls are bounded by the request's deadline. - P2-8: readFailure keeps the role and subrole last read successfully. Sminos-Session: cursor235#b93055dd (cua on macbook) * service: the no-field note's comment follows ruling 1242 (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: rulings 1242 and 1244, the three-way lookup, the invariants and the record (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin 0.30.1: type_text with no field to read back answers ok, and failed reads are retried (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: ok-with-note is notTextField alone; noFocusedElement throws as before; a secret's answers never advise observing (refs #587) Ruling 1247 on the review of 106d201..d51ae68. - noFocusedElement throws typeUnconfirmed exactly as before #587 (a declared limit): .noField, the marker's .noField and ReadbackWalkOutcome are removed, the walk and marker route answer as before except as below. - c: a field the walk or marker found by a text-entry role (ReadbackFound.field's role) that the snapshot reads as another role answers fieldChanged, never notTextField. - b: a password field the marker classified but whose focus or place under the web area it cannot show closes as a password field's (fieldUnreadable, secure), whatever the walk finds. - d: a concealed request's typeUnconfirmed, every reason, ends with a remedy that names no observation (readbackConcealedRemedy, or readbackConcealedMayShowRemedy). - e: under select_text's range the nil lookup (and a closed password claim) answers selectionChanged before any key or ⌘V. - h: after a retry's re-classification, the retried read starts only while the bound allows. Sminos-Session: cursor235#b93055dd (cua on macbook) * secret wrapper: no answer after a secret's first key advises observing the app (refs #587) Ruling 1247 (d). secretMayShow classifies 'passwordField' (as before) or 'unplaced' (notTextField, noFocusedElement, fieldChanged and every other reason posted without confirmation); every sky failure that may have entered part of the secret carries a warning of that kind, worded without a screenshot or getAXState; a userChanged intervention once entered asks the user to check where it went instead of re-querying. The test runs every branch after the first key. Sminos-Session: cursor235#b93055dd (cua on macbook) * Own native engine spec: ruling 1247, notTextField alone, noFocusedElement a declared limit, the secret rule (refs #590) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: a found field is held to its role first, and select_text's range comes before it (refs #587) Ruling 1249 on the review of ef383ad..75481fd. - (1) The role the walk or the marker route found a field by is compared with the snapshot's before anything else is read: a password field's role or subrole answers becameSecure, any other difference fieldChanged; no value, range or length is read. A field the lookup took for a password field keeps its own check (noLongerSecure); the application's focus is not compared. - (2) Under a pending select_text range, any outcome that cannot hold it (a changed role, a non-text or secure non-field element, the nil lookup, a closed claim) answers selectionChanged before any key or ⌘V. Sminos-Session: cursor235#b93055dd (cua on macbook) * tech-debt: the native engine's input-source and intervention errors still advise get_app_state after a secret's first key (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: one classification identity, one comparison, one selection gate (refs #587) Ruling 1250 on the review of 75481fd..c96a7cc, replacing the case-by-case guards. - R1: a field's classification is ReadbackIdentity (role, subrole if read, open|secure). The lookup's is the baseline when it classified the field (the walk's role, the marker's role and subrole), else the snapshot's first read. Every later classification (the snapshot's first read, #359's wait, the settle, poll and checkpoint, every retry's re-classification, each length batch) goes through readbackClassify alone; any difference ends the read-back: becameSecure, noLongerSecure, else fieldChanged. Only components the baseline read are compared; the walk's first subrole is adopted. - R2: under a pending select_text range, readbackSnapshot lets only a verified-range .expect through; every other answer is selectionChanged there, before any key or ⌘V. - Deleted: wave 3's already-classified skip and foundRole comparison, the per-path selection checks of waves 2 and 3, fieldClosed's own role branches, readbackFieldClosed, readbackLength's own classification checks, and ReadbackFound.field's password and role (now identity). - The proof: a table of 16 classification points x their transitions x selection pending (196 keyed runs; 49 on the paste route), asserting outcome, keys and ⌘V; round 4's three cases by name. Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: the walk's focus check after the poll is classified by R1; AXGroup's unread subrole is open at the final batch (refs #587) Ruling 1254 on the review of c96a7cc..4b07ce0. - P1-1: stillFocused now answers ReadbackRefocus, the focus and the role the walk read of the field it found again; that role goes through readbackClassify (a role-only reading), so a field that turned AXSecureTextField or another role between the last value read and the check ends the read-back, and a checkpointed Return is not posted. Two table rows. - P2-2: the concealed final batch's failed-subrole exception applies only where the role leaves security open: not AXSecureTextField, not neverSecureRoles (#525). AXGroup with an unread subrole answers noLongerSecure again; AXGroup still secure by a read subrole, fieldChanged. Sminos-Session: cursor235#b93055dd (cua on macbook) * tech-debt: a walk-claimed open field whose first subrole read fails goes down the length path (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * plugin 0.30.2: #599 took 0.30.1 (refs #587) Sminos-Session: cursor235#b93055dd (cua on macbook) * engine 0.2.3: record beforeInput where nothing of the input was posted (refs #602) The input meta gains `beforeInput: true`, sent only where the engine knows the request stopped before any key, ⌘V or Return, or value write went out: keyText before its first key (a stop there is userIntervened as one between keys is), the keyed read-back's selection gate, runPaste before its first post, pasteOperation before runPaste, setElementValue before the write, each of type_text, paste and set_value before its stretch begins, and the request's prologue. Ruling 1260: never inferred from a null startedAt. Sminos-Session: cursor235#b93055dd (cua on macbook) * Secret wrapper: "nothing was entered" only on the engine's beforeInput record; plugin 0.30.3 (refs #602) secretUnentered replaces the startedAt === null inference for every error: the record, and no input or value effect in an interruption account when one is present. startedAt null alone, an unparsed meta and the vendor's or an older engine's reply answer "may have been entered", with no advice to observe the app (ruling 1247 (d), whose sweep gains the new cases). Sminos-Session: cursor235#b93055dd (cua on macbook) * engine: InputMeta.posting's comment says the wrapper no longer reads startedAt (refs #602) Sminos-Session: cursor235#b93055dd (cua on macbook) * engine: an input request past its deadline at receipt records beforeInput (refs #602) The deadline still answers first; an input method's refusal there now carries the input meta with `beforeInput: true`, since nothing was dispatched (review of 0c39038..d87702f, P2-5; ruling 1268). Sminos-Session: cursor235#b93055dd (cua on macbook) * Secret wrapper: "nothing entered" needs cua's engine selected, the record, a known phase and preparation-only effects (refs #602) Ruling 1268, the review of 0c39038..d87702f: still interacting (P1-1) and concealedInputUnavailable (P1-2) rest on the record like every other branch, an interruption account counts only with a recognized phase and effects from the engine's preparation-only list (P1-3), and the record is read only when CUA_SKY_SERVICE names cua's own engine service (P2-4). Everything else is "may have been entered", with no observe or retry advice. Sminos-Session: cursor235#b93055dd (cua on macbook) * tech-debt: the engine-trust check and the backend import can resolve different targets (refs #602) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: R1 holds at type_text's paste transport effect reading (refs #600) On type_text's paste route every effect reading (a line's baseline, its effect wait, a Return's settle) hands the role and subrole its batch read to the read-back (focusedEffectReading's classified, PasteTyping.saw, TypeReadback.transportSaw). Where the snapshot found the field as the application's focus the reading is the field's and goes through readbackClassify against the baseline; where it was found by the walk or the marker route, a classified reading makes the next hold classify the field itself. runPaste holds (PasteTyping.holds, transportHolds) before every ⌘V and Return, whatever lastSeen says, and after the last line: a transition ends the read-back with R1's reason, no further ⌘V or Return. #602's beforeInput only when nothing was posted. Standalone paste never takes the classified reading; its effect rule is unchanged. Tests: a table of 98 runs (text area and single-line field x the reading a transition is first seen at x 7 transitions x focus or walk), asserting outcome, exact ⌘V and Return counts and beforeInput; standalone paste's effect rule kept. Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: one hold for type_text's paste transport, classified at every reading, a stop after each (refs #600) Ruling 1272 on the review of 0a65832..5e199e8. - The hold: on type_text's paste route the effect watch reads only through TypeReadback.transportHold, which takes the transport's one classifying read (ReadbackReads.effect: effectSample, #187's reads plus the batch's role, subrole and the element it read) and classifies it at the reading: a sample of the field through readbackClassify, any other the field's own role and subrole there and then (P2-3). A notification reads nothing: the hold classifies the field before it is relied on (P1-2). - The stop: runPaste stops after every reading (a line's baseline, its wait, a Return's baseline (P1-1), its settle), before the line or Return counts, before a timeout's generic error (P2-4), the next Return withheld. Before anything was posted the answer says nothing was typed, R1's reason kept, beforeInput (P2-5). - Standalone paste keeps #187's effectReading (now effectSample's reading, the same reads). - Tests: a recording fake (ReadbackTrace) asserting every classifying read of the transport runs inside the hold and no post goes out unheld; a table generated from each scenario's holds x the R1 transitions (25 reading points, 6 scenarios), with exact ⌘V and Return counts. Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: R3, a post gate immediately before every ⌘V and Return of type_text's paste (refs #600) Ruling 1273 on the review of 5e199e8..ccaa4e7: the guard moves to the posts. - runPaste's one posting function runs transport.gate inside the delivery, immediately before the press's events (TypeReadback.transportGate): a classification-only read of the field the snapshot classified (role, subrole) held to the baseline by readbackClassify, and for an application-focus snapshot the application's focus, which must still be the field. Fails closed: any read it cannot complete is fieldUnreadable; any difference R1's reason; before the post; stoppedBeforeKey, the pre-input sentence and beforeInput kept. - Live samples and gate reads use the paste's prepared application element through the read-back's AX layer. The reading-point stops before a line's and a Return's post are deleted (the gate follows each); the stops after a wait and a settle stay for the answer, the settle's passing returnNext. - Tests: a recording fake over 48 generated shapes (8 texts x text area and single-line field x focus, walk, marker): every press immediately after a gate that compared (118 posts); a table of every gate position x 9 transitions (1062 runs) with counts from the gate position; the password field's unreadable subrole; the unmoved-count test fixed. Sminos-Session: cursor235#b93055dd (cua on macbook) * Plugin 0.30.5: type_text's paste route gates every ⌘V and Return (refs #600) Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: the post gate holds "no field" too: a password field appearing stops the paste (refs #600) Ruling 1274. A request whose snapshot classified no field (no focused element found, an unreadable role, a closed claim) holds "no field" as its baseline: before each ⌘V and Return, through the same posting function, the gate reads the prepared application's focus once and classifies what it names; AXSecureTextField by role or by subrole stops the paste becameSecure (stoppedBeforeKey, or "Nothing was typed" and beforeInput). Any other answer posts as before, a failed read included: #597's declared exemption, with no baseline to fail closed against. Tests: the structural test over the no-field lookups too (96 shapes, 250 posts, each after a gate, the no-field gate's focus read inside it); a table of the no-field shapes x every gate position x 4 transitions (528 runs) with exact counts. Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: the latch at the snapshot's exit, the gate reads fieldFocused, and the narrowed no-field exemption (refs #600) Ruling 1275 on round 3's review of 7976269..577dde1. - The latch (readbackSnapshot, beside R2's gate): once the lookup found an element, the snapshot's R1 refusal of it is terminal on both routes, nothing typed or pasted: fieldChanged, becameSecure, noLongerSecure, roleUnreadable, fieldUnreadable, and every closed marker claim. The answer is "Nothing was typed" with R1's reason or the failed read and beforeInput; a password field's keeps its remedy. On the keyed route every such outcome already answered typeUnconfirmed: no former success becomes a refusal. - The gate reads a walk- or marker-found field's own AXFocused (fieldFocused): a field still open but no longer focused is fieldChanged, unknown fieldUnreadable. The deadline is checked again inside the delivery after a gate that passed. - The effect hold checks identity before the role for a focus snapshot. - The no-field gate (1274) applies only where no element was found at all: #597's exemption. - Tests: the latch on both routes (a claim read as another role, a failed role re-read, the stable wait's change, a retry's change that reverted, closed claims); the focus moved off a still-open field in the R3 table (1180 runs) and the structural test; identity first; the deadline after a slow gate; the exact password-field sentence. Sminos-Session: cursor235#b93055dd (cua on macbook) * macOS engine: one secure latch for the whole paste route, fed by every sample and gate read (refs #600) Ruling 1276 on round 4's review of 577dde1..241e7df. TypeReadback.transportObserve is the paste route's one rule: any explicit secure observation (AXSecureTextField by role or by subrole), of any element, from any sample (a line's effect baseline and wait, a Return's settle, the field hold) or the gate's own reads, latches becameSecure where the field held is not a password field or none is held, and transportStop posts nothing more. Role and subrole are read and checked independently everywhere: a failed role read never skips the subrole. An inconclusive reading latches nothing (#597 where no field is held). Tests: every effect sample point of every typing shape x a password field by role and by subrole, the application reporting no focus at the gate after (4408 runs, exact counts); gate rows with the role read failing and a secure subrole in the R3 and no-field tables. Sminos-Session: cursor235#b93055dd (cua on macbook) * engine 0.2.4: the paste route's post gate and secure latch (refs #600) 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
linux-engine 0.4.6 ships the four residue items of 0.4.5's review (#580) and pins them in cua 0.30.1. No answer the engine writes changes:
items 1 and 3 change
--statsrecords;item 2 changes a live test;
item 4 writes the same bytes with one copy fewer.
Item 1 (P2):
release_sync.unconfirmednames its cause only when that cause made the drop's confirmation option (c)'s unconfirmed answer and the release queued that answer.unconfirm_outlastedis again option (c)'s own word: the gate is open and the option is on. A release that failed (the window gone before the tail's checked motion or the button release) records no cause.Item 2 (P2): the option (c) live test tells a legitimately dropped visit from the case it proves.
Item 3 (P3):
overranrequires a floor, socua:floor0no longer recordsoverran: true.Item 4 (P3):
wire::jsonlreturns a line as serialized when it has neither U+2028 nor U+2029. A line with either is escaped in one pass, still written as the six-character escapes (cua-engine (Linux) wire.rs: escape U+2028/U+2029 in JSONL lines (ship with 0.4.5) #572).The release: https://github.com/SSFSKIM/cua/releases/tag/linux-engine-v0.4.6, tag at 61c97dd.
086b270b54555b74e90a1ae910fca2af173561b1065a111021fc3407761155a49f39085d90193e16cd67e2c6c84f65b4c28432945bd49df38f9d8442bb36f625--signer-workflow SSFSKIM/cua/.github/workflows/linux-engine.yml.MIN_ENGINE_VERSIONstays 0.4.5 (src/services/engine/linux/client.mjsL37). 0.4.6 doesn't change the wire, and no cua code needs it (the coordinator, 1252). An installed 0.4.5 keeps serving, andcua install --enginemoves a home to 0.4.6.macOS-visible: the plugin bump to 0.30.1 (
plugin.json,marketplace.json). Nothing else in this diff runs on macOS: the engine, the Linux pin files, the README's Linux lines, and Linux-only tests and fixtures.Closes #580
Validation Evidence
_NET_ACTIVE_WINDOWand with option (c) off; and a failed release with option (c) on, which records no cause;ef714179…119a) against the released 0.4.6 x64 asset (086b270b…55a4), sessions A, B, A, B on one private display.list_windows,get_window_stateof each scene, a missing window, an unknown command and a malformed line.c0f71b21…52c9;cmpA1=B1, A2=B2, A1=A2). That includes a 4,766,703-byteget_window_statereply and 20 of each escape, none raw.ci-gateby its own selection: GREEN, https://github.com/SSFSKIM/cua/actions/runs/46090797729 (plugin, engine-linux, sandbox-live, test-1, test-2).ci-gate --gates engine-linux: GREEN on the rerun, https://github.com/SSFSKIM/cua/actions/runs/46091379414. The first run (46090799829) was red on the clipboard flake whose recorded workaround intech-debt-tracker.mdis a rerun. This PR changes nothing under native/ past the tag.node scripts/linux-engine-pin.mjs linux-engine-v0.4.6wroteruntime/engine/linux-engine.jsonandruntime/linux-runtime.json. The runtime name is nowcua-linux-x64-e0.4.6-n24.22.0-s0.163.0-mb71dc1f8185d. Focused Node tests: 435 of 435 across 20 files.Residue
Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)