Skip to content

#604: a failed secret on Linux says "nothing was entered" when the verified engine shows none went out (cua 0.31.1, linux-engine 0.4.8) - #617

Merged
SSFSKIM merged 10 commits into
mainfrom
604
Nov 29, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Summary

When a request carrying a secret fails, cua's secret wrapper tells the model one of two things:

  • "nothing was entered": the model may observe the app and retry;
  • "it may have been partly entered": the model must not observe or retype, and asks the person to check (ruling 1247(d)).

Under ruling 1260 the first answer needs the engine's positive record that none of the input went out. Before this PR, cua's Linux engine sent no record, so every failed secret on Linux answered "may have been partly entered". That was safe but imprecise.

This PR ships linux-engine 0.4.8 and pins it in cua 0.31.1:

  • The engine's record. A failure that posted none of its input carries meta: {beforeInput: true} beside the error. It's true when set and absent otherwise, never false, never a count.
    • Only type_text, clipboard_write and type_characters are tracked. Every other method never carries it.
    • The stage is set per command at the start of each request, so refusals before the method runs (a pending drag, a minimized window, a modal dialog) carry it too.
    • A paste's input begins at the take of CLIPBOARD. A take that itself fails carries no record.
    • The record is withdrawn just before the paste puts back a selection its focusing click moved, since the app may take PRIMARY. A caret restore keeps it.
    • A failure after the first key, paste or value write, or on any untracked path, never carries it.
  • Only cua's verified installed engine can produce the record.
    • The launcher passes the SHA-256 it verified through its guarded lookup, from the pin or the install record, as CUA_ENGINE_SHA256. It's set for the installed engine only, through the launch environment's allowlist.
    • At each engine start, the worker hashes the executable with a bounded, regular-file-only, non-following read, and only a process whose bytes match carries the record.
    • An override (CUA_LINUX_ENGINE_BIN), a replaced file or a missing digest keeps the cautious answer. The worker reads no install record.
  • The client attaches meta to its error. On an engine restart, the other requests waiting get the same sentence without the record, which stays with the request that earned it.
  • The wrapper keeps one predicate, secretUnentered, widened to cua's Linux engine and gated on the verified digest.
  • Linux: Electron apps expose no accessibility tree unless started with --force-renderer-accessibility #228's deferred wait fix (ruling 1286): after the request, a frame whose own child listing failed counts as inconclusive, not bare, so the wait no longer ends with "observe again" on a failed read. Its tracker line is removed.
  • MIN_ENGINE_VERSION stays 0.4.7. An older engine sends no record, so the wrapper keeps the cautious answer; this was shown live on the released 0.4.7.

macOS: the plugin bump to 0.31.1 reaches every Mac. The wrapper's macOS path is unchanged: the widened check applies only to cua's Linux service, gated on CUA_ENGINE_SHA256.

Closes #604

Validation Evidence

  • linux-engine-v0.4.8: https://github.com/SSFSKIM/cua/releases/tag/linux-engine-v0.4.8, built from 8660584 by run https://github.com/SSFSKIM/cua/actions/runs/46227799673. All five jobs passed first time; the arm64 build took 8 min 4 s, so linux-engine: clipboard contention test hung 27 min in the arm64 release build #581 didn't recur.

    3014476f8055b1608b95a35a3709290d79c826bd0874986c65efbf9133156c4b  cua-engine-0.4.8-linux-x64
    92921a65a6d300cf1a2f1b0b4f8c9bca467b04adc47d749d7c6ac9b80d0c8899  cua-engine-0.4.8-linux-arm64
    
    • sha256sum -c SHA256SUMS: both OK.
    • gh attestation verify <asset> --repo SSFSKIM/cua --signer-workflow SSFSKIM/cua/.github/workflows/linux-engine.yml exits 0 for both.
    • The x64 binary reports cua-engine 0.4.8 (8660584eaaf1).
    • The placeholder grep on native/linux-engine found 0 lines (ruling 1038).
  • Live, on the released x64 binary installed through the pin: a private display, a temporary HOME and a fake secret in a temporary store. Every answer is value-free.

    Case Refused before input Failed after its keys
    installed (its verified digest) "nothing was entered" "may have been partly entered"
    override (no digest) "may have been partly entered" "may have been partly entered"
    replaced (digest of other bytes) "may have been partly entered" "may have been partly entered"

    The released 0.4.7 answered "may have been partly entered" in both columns.

  • Tests, each new one seen failing first:

    • the engine suite (release musl, private displays): 802 pass, 0 fail;
    • the focused JS set at the pin: 769 of 769;
    • the client's digest checks, including a FIFO refused without blocking (run in a child with a deadline), a repointed record that changes nothing, and a replacement that answers cautiously;
    • the real Linux service with a fake engine under a temporary HOME, covering every source;
    • the restart's record staying with its own request;
    • the selection restore withholding the record on the live GTK fixture.
  • Review: reviewer-high over three fix waves.

    • Round 1 found three issues, the worst of them an unverified override able to produce the record.
    • Rounds 2 and 3 tightened trust to the answering process. The design ended with the worker reading no record.
    • Then "correct". The pin commit: reviewer-low, "correct", no material findings (both runtime manifests pin 0.4.8, the downloaded binaries match the pinned SHA-256s and their attestations, the minimum stays 0.4.7, both plugin manifests say 0.31.1).
  • ci-gate by its own selection at 07623b7: GREEN 8/8, https://github.com/SSFSKIM/cua/actions/runs/46228939389. engine-linux at 7152b61, the last commit to change native/: GREEN (46210063064).

Unresolved Review Findings

Residue

  • JS-side refusals before the engine is reached (a missing capability, a stale element id) still answer cautiously on a failed secret. That's out of Linux engine: report "nothing of the input was posted" so a failed secret can say "nothing was entered" #604's scope; widening it needs the JS layer to carry its own record.
  • Two harness timing flakes hit gate runs on this branch, neither in code it touches:
    • test/linux-engine-diff/m1a3-review.test.mjs's settled-state test, now logged in the tracker;
    • the clipboard current-time refusal flake already on the tracker.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)

…ot bare in the wait (#228's deferred fix)

A read after the request that shows the frame alone because the frame's own GetChildren failed is not known to be
bare, as ask::after_read already judges the read before the request: the wait reads it as views that tell nothing yet,
goes on, and at the bound does not answer tree_unavailable {reason: asked}. The tracker line goes.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…eforeInput: true} (#604)

A text-input request (type_text, clipboard_write, type_characters) is at Posted::Nothing from its receipt until its
input stretch begins, marked just before it: the paste's take of CLIPBOARD (the one chord comes after it) and the
first key of type_characters. A failure while it is still there answers with cua's `meta` after the vendor's keys and
the notice, {"beforeInput":true}: every refusal before the method runs (a pending drag, a minimized window, a modal
dialog), every check of its input and its target, and on the paste route everything up to the take, its focusing
click and the clipboard lock and snapshot included. From the take or the first key on, and for every other request,
there is no meta, never a false one. The record is never a count.

Tests: the wire's line; refusal_faults' nine refusals after a focusing click, each with its record (six before the
take carry it, three from the take on do not); record_faults' refusals before input, failures after it (a rejected
chord press, a rejected typed key) and untracked requests.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…s record (#604)

cua's Linux client puts an error answer's `meta` on the error it raises, as cua's macOS client does; the wrapper reads
it with the one predicate, secretUnentered, when cua's engine is the selected backend: isCuaEngineService now names
cua's Linux service too, and on Linux the record rides on the client's error rather than a SkyComputerUseError. An
engine before 0.4.8 sends no meta, so its failures keep "it may have been partly entered" (MIN_ENGINE_VERSION stays
0.4.7). Tests: the client's meta; the wrapper's two answers on Linux; ruling 1247 (d)'s sweep with Linux failures
without the record and the vendor backend's record.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…#604), and #228's deferred wait fix

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…have changed PRIMARY (#604 fix wave 1)

A named field that lacks the focus is clicked, and the selection the click moved is put back with AT-SPI's
AddSelection before the clipboard lock; on X11 a toolkit may take PRIMARY with it (GTK's entry does), which a
middle-click paste could use. From just before that restore the paste is Begun, so a refusal after it (a busy lock,
say) carries no record. A caret's restore changes no selection, and keeps it. Tests: the busy lock after a caret's
restore keeps its record; after a selection's (the GTK fixture's new `select` command) it carries none.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…tart's record stays its own request's (#604 fix wave 1)

The realpath check named the JavaScript service, not the executable behind it: CUA_LINUX_ENGINE_BIN takes the same
service, and an override only has to run and report a version, so its record could claim nothing was posted after it
posted. The launch now names how it found the engine (CUA_ENGINE_SOURCE: installed, verified against its install
record, or override), and the wrapper trusts the Linux record only from `installed` (engineRecordTrusted); an
override, or a launch naming no source, keeps the cautious answer. Tested through skyServiceFromEnv, the real Linux
service and a fake engine claiming the record.

When an answer carries `restart: true`, the other requests pending on that engine now fail with the sentence alone:
the answer's meta covers its own request, and a pipelined one may have posted its input.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…install record named at spawn (#604 fix wave 2)

CUA_ENGINE_SOURCE described the file the open verified, but the file may be replaced before the first start or between
starts, and the client runs what is there after checking only its version. The launch now names the installed
engine's install record (CUA_ENGINE_RECORD; none for an override), the Linux service hands it to its client, and the
client hashes the executable just before each spawn: only a process whose bytes the record named carries its
failures' input record. Hot replacement works as it did; a replacement with other bytes, an absent or malformed
record, or none, keeps the cautious answer. The wrapper trusts the Linux service only when the launch named a record.

The real-service secret test now sets a temporary HOME for itself and its children, with the store beneath it.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
… macOS (seen at #604 fix wave 2's gate)

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…t the open verified, reading no record (#604 fix wave 3)

The worker read install.json itself, outside the launcher's guarded lookup (a repointed link was followed, even into
the vendor's tree), validated it more loosely than linux-engine.mjs's reader, and could block for ever on a FIFO. Now
the open's verdict carries the SHA-256 it verified the installed engine by (the pin's or install.json's, read through
the guarded lookup: verifiedLinuxEngine, the selection's `bin.sha256`), and the launch passes it as CUA_ENGINE_SHA256,
in place of CUA_ENGINE_RECORD; an override has none. At each spawn the client hashes the executable (engineDigest): opened
O_NOFOLLOW|O_NONBLOCK, refused unless a regular file within 64 MiB before anything is read, read from that one
descriptor to its size. The trust rule is unchanged: only a process whose bytes matched carries its record.

Tests: a FIFO, a directory or a link at the engine's path is refused at once (in a child with a deadline); the record
repointed after the open changes no answer; a matching file, a replacement, no digest and an override answer as
before; the launch passes the guarded digest and no path, and never the caller's.

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
…0.31.1

`node scripts/linux-engine-pin.mjs linux-engine-v0.4.8` wrote runtime/engine/linux-engine.json (x64 3014476f…56c4b,
arm64 92921a65…c8899, both attestations verified) and the runtime record's engine version, so the Linux runtime's
release is cua-linux-x64-e0.4.8-n24.22.0-s0.163.0-mb71dc1f8185d.

The minimum stays 0.4.7: an older engine sends no record that nothing was entered, so the secret wrapper keeps the
cautious answer on it. The lines that name the pinned engine follow: the README's pin, runtime release name and parts
table (its minimum stays); the service and client tests' current engine; the runtime cells' fetched engine URL and
installed version; the cloud-vm fixture's install release. The plugin and marketplace go to 0.31.1 (a patch; the
coordinator allocates the final number).

Sminos-Session: linux171#3c5ca588 (cua on dc-linux171-1e68)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T05:58:01.152842Z 07623b7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM enabled auto-merge (squash) November 29, 2026 05:56
@SSFSKIM
SSFSKIM merged commit b3b778e into main Nov 29, 2026
11 checks passed
SSFSKIM added a commit that referenced this pull request Nov 29, 2026
…it may have been entered" (refs #616)

The merge of main (b3b778e, #617) kept engineRecordTrusted: "nothing was entered" still
needs the beforeInput record from a trusted engine, macOS's or Linux's. Every other
failure after substitution, on either platform, now says "some or all of it may have been
entered"; #617's Linux record test and its sky case assert that wording.

Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM added a commit that referenced this pull request Nov 29, 2026
…nd behind (#616) (#619)

* macOS engine 0.2.5: an inputSourceChanged stop reports what the field reads back, else a range (refs #616)

Ruling 1291. The count came from the units whose every event had gone out when the
source check before an event saw the switch: a unit whose key down (which carries its
text) went out before that check is in the field but not in the count, and keys posted
before the check can still land after it.

Now the source check throws InputSourceChange, and keyText answers it:
- the field read back by the read-back's own machinery (TypeReadback.countAtStop: R1's
  readbackClassify, readbackPoll with ReadbackRetry, the focus check, a password field's
  length batch, never its value), a reading counting only once it held for the quiet
  window: "after 70 of 1079 characters were entered, as the field reads back";
- unread with a unit part-way: "after between 67 and 70 of 1079 characters were entered;
  the field could not be read back, so read it before continuing", meta enteredRange
  {low, high} and no entered;
- unread with no unit part-way: the posted count, with the same remedy;
- a concealed request: no count, no range, no read-back after the stop, and no advice to
  observe the app once anything may have gone in (ruling 1247, d).

Sminos-Session: cursor235#b93055dd (cua on macbook)

* service and secret wrapper: cua/enteredRange, and "some or all of it may have been entered" (refs #616)

The engine service carries an inputSourceChanged stop's range as cua/enteredRange
({low, high}), reset with every call like cua/entered.

The secret wrapper withholds the engine's sentence and never tells a count; its own
sentence after a key may have posted said "it may have been partly entered", fewer than
may have been when the stop came after the last key (the final source check). It now says
"some or all of it may have been entered", on every failure after substitution. "Nothing
was entered" still rests on the engine's beforeInput record alone, and no sentence once
entry is possible advises observing the app (ruling 1247, d).

Sminos-Session: cursor235#b93055dd (cua on macbook)

* native matrix: the mid-switch row judges a range answer by the field it brackets (refs #616)

The inputSourceChanged pattern takes the range's form ("after between <low> and <high>
of <n> characters"); the lane keeps cua/enteredRange; a row answered with a range passes
when the field holds exactly the text's first <length> units with <length> inside it
(outcome.inRange), and the offline re-judge reads the same.

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Plugin 0.31.1, native engine spec: #616's Decision Log entry and the stop's meta (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Tech debt: inputSourceChanged is concealed-aware since #616; the intervention sentences remain (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* macOS engine: an inputSourceChanged count is exact only when the field reads everything posted (refs #616)

Rulings 1294 and 1295, on the review of bf594e1..68165aa.

- P1-1: the range's low end is the last prefix the field was confirmed to hold (the stop
  poll's last such reading, else the last checkpoint's, else 0), never the units sent
  whole; exact 0 only for a stop before any key down went out.
- P1-2: a reading below what was posted is not settled however long it holds; the poll
  goes to the 1 s budget and then answers the range, with no place to resume from. Exact
  only when the field reads equal to everything posted (or more) for the quiet window, or
  its confirmed prefix already reaches what was posted. The length poll takes the same
  rule.
- P2: where the caret must tell (a value that is the snapshot's own, an ending Return's
  placeholder line), only a value read after the caret read, still the same, counts.
- P2: "x\n\n" with the caret at 2 after a stop past the first Return of "x\n\ny" is one
  Return, not two.
- P2: a prefix ending inside a Unicode-string event's run maps to the request's units.
- 1294 (2): a count above what was posted is accepted and marked readbackAbovePosted on
  the record.

Range sentence: "...after between 67 and 70 of 1079 characters were entered; read the
field before continuing."

Sminos-Session: cursor235#b93055dd (cua on macbook)

* service: cua/enteredRange's low end is the last confirmed prefix; fixtures take the range's wording (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* native matrix: the mid-switch judge reads the sentence's count or range, and tallies range answers (refs #616)

The sentence's count, or its range endpoints and total, must agree with cua/entered or
cua/enteredRange and with the field's length, the field holding exactly that prefix, in
the live judge and the offline re-judge (midSwitchAnswer). The section's
midSwitchAnswers counts exact and range answers per engine and names every range on a
readable field (every mid-switch field is one) for design (ruling 1294, 3).

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Native engine spec: #616's rulings 1294 and 1295 (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Secret wrapper tests: #617's Linux cases take #616's "some or all of it may have been entered" (refs #616)

The merge of main (b3b778e, #617) kept engineRecordTrusted: "nothing was entered" still
needs the beforeInput record from a trusted engine, macOS's or Linux's. Every other
failure after substitution, on either platform, now says "some or all of it may have been
entered"; #617's Linux record test and its sky case assert that wording.

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Plugin 0.31.2 (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* macOS engine: an inputSourceChanged stop runs the ordinary read-back against the posted prefix (refs #616)

Ruling 1297, on the review of 68165aa..ad6c9c4 (an unsettled reading promoted to an
exact count, and four rules the ordinary read-back already keeps).

The stop's own poll is deleted: stopOffset, stopByValue and stopByLength with their dwell,
caret, placeholder and Unicode-run rules. TypeReadback.countAtStop now runs confirm, the poll
a finished type_text ends with, through the units posted, its budget from now:
- confirmed, and no key that can leave the field posted: exact at the posted count;
- otherwise the range, no resume offset: low the last checkpoint that read back (else 0),
  high the larger of what was posted and the furthest one classified reading of the field
  can stand for (its length beyond what the snapshot kept, mapped to the largest request
  offset putting no more in, a Unicode run unit for unit, capped at the whole request);
- a reading past what was posted marks readbackAbovePosted on the record.

Sminos-Session: cursor235#b93055dd (cua on macbook)

* native matrix: a mid-switch range agrees only when 0 <= low < high <= total (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Native engine spec and service doc: #616's ruling 1297, the stop runs the ordinary read-back (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* macOS engine: an unconfirmed inputSourceChanged stop carries no count, only the least cua confirmed (refs #616)

Ruling 1298, on the review of ad0630c..b15c556 (six of seven findings from the fallback
read after confirm failed).

- The fallback read is deleted: stopReading, stopReach, stopInserted.
- Only an exact read-back carries a count and "type the rest from there" (P1-1); any other
  stop is unconfirmed, meta enteredRange {low, high: total}, no entered. Low: the last
  checkpoint that read back, unless confirm's own readings at the stop contradict it (a
  plain field's first difference inside the checkpoint's text, recorded as mismatchAt; a
  password field's length or caret mismatch), else 0.
- "The input source changed part-way, so cua could not confirm how much was entered: at
  least 2 of 5 characters; read the field before continuing.", or without the "at least"
  when nothing is confirmed.
- P1-3: a posted prefix ending in a Return is exact only with the caret read after it (a
  password field: only where its snapshot read a range). Stop-only; ordinary confirm's
  placeholder handling is unchanged.
- readbackAbovePosted marks confirm's own readings of more than was posted (a longer value
  mismatch; a length poll's overshoot, recorded as lengthOvershot).

Sminos-Session: cursor235#b93055dd (cua on macbook)

* native matrix and service: the unconfirmed sentence, {low, high: total}, 0 <= low < total (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Native engine spec: #616's ruling 1298 (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* macOS engine: an inputSourceChanged stop gives an exact count or no number (refs #616)

Ruling 1299, on the review of b15c556..9dd0e30 (every finding a positive claim on an
unconfirmed stop).

- Exact only when ordinary confirm confirms the posted prefix and that prefix holds no key
  that can leave the field and does not end in a Return; a password field the same, on the
  length path's confirm. Such a prefix is not read back at all.
- Every other stop: "The input source changed part-way, so cua could not confirm how much
  was entered; read the field before continuing.", meta enteredRange {0, total}, no entered.
- Deleted: stopCaretAfterReturn, stopContradicts and the checkpoint low end (confirmed,
  confirmedUnits), the "at least" sentence, mismatchAt and ReadbackExcerpt.firstDifference.
- readbackAbovePosted marks any reading confirm took that showed more than was posted, on
  every exit, the length poll's held match left for more included (readbackLengthPast); a
  diagnostic from reads confirm already makes, deciding nothing.

Sminos-Session: cursor235#b93055dd (cua on macbook)

* native matrix and service: the no-number sentence with meta {0, total} (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Native engine spec: #616's ruling 1299 (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)

* macOS engine: an inputSourceChanged stop after a key down states no number (refs #616)

Ruling 1299's pre-decided fallback, on the review of 9dd0e30..479030f, which reproduced a
wrong exact count (a field expanding "a" to "ab" before taking "b": one stale read equal to
the posted prefix confirmed 2 with 3 in the field; a password field that ignored the input
confirmed by length and caret).

- Every stop after a text-bearing key down reads nothing: "The input source changed part-way,
  so cua could not confirm how much was entered; read the field before continuing.", meta
  enteredRange {0, total}, no entered. Before any key down: "after 0 of N", entered 0.
  Concealed requests as before.
- Deleted: countAtStop and the stop's confirm, the countStop plumbing, the exact sentence,
  readbackAbovePosted and its two setters in confirm, readbackLengthPast, and every test of
  the exact form. TypeReadback.swift and TypeReadbackLength.swift are byte-equal to main's.

Sminos-Session: cursor235#b93055dd (cua on macbook)

* native matrix and service: the mid-switch cell judges no number, or 0 with beforeInput (refs #616)

Ruling 1300. The service carries cua/beforeInput. After a key down the cell passes on no
number with cua/enteredRange {0, total} and the field a prefix of the text; before any, on
"after 0 of N" with cua/entered 0, cua/beforeInput and the field unchanged; any other number
fails it, in the live judge and the offline re-judge. The hosted 67-against-70 case answers
no number. 1294 (3)'s per-engine tally and rangeOnReadable are withdrawn.

Sminos-Session: cursor235#b93055dd (cua on macbook)

* Native engine spec: #616's final design, no number once a key down has gone out (refs #616)

Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM added a commit that referenced this pull request Nov 29, 2026
…(cua 0.31.2) (refs #506)

Versions: engineVersion 0.3.4, above feat's 0.3.3 and main's 0.2.5. The plugin is main's 0.31.2.

Resolved by hand:
- Input.swift: InputMeta keeps feat's concealedRefusal and main's enteredRange, and the wire sends both. keyText's
  doc and loop are #616's (downPosted; no number once a key down has gone out). The file differs from main only by
  feat's own M5 changes. TypeReadback.swift and TypeReadbackLength.swift equal main's.
- InterventionTests.swift: feat's #186 every-boundary test (8198c50) asserted the withdrawn count at the key down,
  and it threw a plain EngineError, which #616's keyText answers as a generic error. It is rewritten to #616's rule
  at every event boundary: 0 and no range before any key down; otherwise no entered, the range the whole text, and
  the unconfirmed sentence.
- secret-input.mjs and sky.mjs: #616's "some or all of it may have been entered" wording everywhere, feat's #212
  account sentences included. droppedCharacter now reads "cua never types part of a secret or pastes it". No
  "partly" remains in src/services. #617's engineRecordTrusted is kept beside feat's concealedRefusal sentence.
- The matrix: unicode-run.mjs and unicode-plan.mjs judge midSwitch with #616's midSwitchAnswer (none, zero or count;
  a count always fails). Feat's judgeMidSwitch is removed. lane.mjs's engine meta adds enteredRange and beforeInput.
- Tests: services-sky.test.mjs and services-engine-service.test.mjs keep both sides, and feat's "partly"
  expectations take the new wording. unicode-run.test.mjs is main's.
- The design spec's Text paragraph is feat's, with #616's three edits and the droppedCharacter wording. The wave-1
  spec's #186 oracle line names midSwitchAnswer.
- tech-debt-tracker.md keeps both sides, and drops feat's lastJudgedOf entry, which 275f3bc and ca52dbc fixed.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux engine: report "nothing of the input was posted" so a failed secret can say "nothing was entered"

1 participant