Skip to content

macOS engine: type_text's paste route confirms by exact read-back, keeping #187's delivery and clipboard handling (#361) - #428

Merged
SSFSKIM merged 54 commits into
mainfrom
fix/361-paste-readback
Nov 19, 2026
Merged

SSFSKIM merged 54 commits into
mainfrom
fix/361-paste-readback

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

What changes

Today: when the input source isn't a Latin keyboard layout (Korean, Japanese, Pinyin and the like), type_text pastes. It answers success on #187's effect check alone: some change was seen in the field's range or count. On hosted macOS, main answered success on 599 of 599 controls that went wrong: a page rewriting a character, adding one, or a stale selection. It did so in Safari, Chrome for Testing, Firefox, Electron and an AppKit fixture, under every source. AppKit also confirmed two lines typed into a single-line field (40/40), where the Return selects the field and line 2 replaces line 1.

Now: the paste route gets #354's exact read-back. Success means the field holds its before-value with the selection replaced by the text.

How it works:

Files:

  • native/engine/Sources/Engine/Paste.swift: typeTextByPaste, PasteTyping and pasteReadbackUnits(typing:), which takes the expected text from the request, never from the pasteboard bytes (String(data:encoding:) drops a leading U+FEFF).
  • Input.swift, Methods.swift and TypeReadback.swift.
  • Tests/EngineTests/PasteReadbackTests.swift (new, 23 tests).
  • scripts/cursor-sitting/item-187.mjs: a typed row with typeReadback needs its per-line delivery evidence and confirmed.

Docs:

Plugin 0.28.17 (ruling 1ea561bc:861).

Evidence

Hosted macOS only: kit probe/361-qual, workflow 423150923, README scripts/probe-361/README.md at 92a78f2d. docs/evidence/2026-11-18-paste-readback/README.md has the detail.

The fix 7897cdeb ran against main 645202db: run 44442976031, plus run 44451662130 for the CfT and Electron Pinyin rows a fixture hang had stopped. Four sources, 20 per head per cell, interleaved, all in the background.

Lane Exact pastes confirmed Controls → typeUnconfirmed Wrong successes, fix (main) Clipboard restored Clipboard content in any field or reply Delivery vs. main Privacy
Safari 27.2 480/480 240/240 0 (240) 800/800 0 720/720 0
CfT 157 480/480 240/240 0 (240) 800/800 0 720/720 0
Electron 44 480/480 240/240 0 (240) 800/800 0 720/720 0
AppKit 480/480 240/240 0 (320) 800/800 0 720/720 0
Firefox 160 0/480 (#427) 240/240 0 (240) 800/800 0 720/720 0

Pre-merge check on the final head 6e159e34 (run 44463935687, Korean 2-Set, 10 per head per cell, Safari, CfT, Electron and AppKit): every gate passed in every lane. 60/60 exact pastes confirmed and 30/30 controls unconfirmed, with 0 wrong successes (main had 30–40), clipboard restored 100/100, no clipboard content anywhere, delivery equal to main, and no excerpt or lengths in any of the fix's 400 replies.

What changed after the full run. 7897cdeb..6e159e34 changes only these. Delivery is unchanged, and deliveredUnits is main's again:

  • the reply drops the excerpt and lengths;
  • the expected value keeps a leading U+FEFF;
  • the item-187 judge;
  • docs and evidence.

Cost. A confirmed paste costs about 90–110 ms more at p50 in Safari, Electron and AppKit. A refused control runs the full 1 s poll.

ci-gate (plugin, test, engine-swift) on 6e159e34: GREEN, run 44462048514.

Limits

Review

  • Round 1 (reviewer-high on 9bfb0b50): incorrect. Two P1s (the clipboard restored on a foreign reader's handover; a Return after unverifiable text), two P2s (the deadline, the item-187 judge) and one P3 (Tab docs). All were fixed or ticketed (macOS engine: type_text sends a Tab or a single-line Return after text it could not read back (both routes) #426), and the phase-2 failures reshaped delivery.
  • Round 2 (reviewer-high on main..7897cdeb): incorrect. One P1 (an excerpt could carry the clipboard: excerpts are now removed), and P2s for the BOM, the item-187 judge and the docs on a Return after a rewrite, all fixed. Two deadline P2s were deferred to tech debt.
  • Round 3 (reviewer-medium on 7897cdeb..81fee7a1, ruling 866's blocking test): one P1. The BOM fix had also changed deliveredUnits, which Fix Chrome background paste clipboard-read timeouts in composing@textedit rows #187's secure-field effect wait counts, so a restore could land under a pending ⌘V. It is reverted to main's code in 6e159e34. Its P3 Decision Log wording was fixed too.

Closes #361

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

…bKit's text marker, never inspecting it (refs #395)

Background Safari names no focused element, and #354's walk gives up past
200 nodes, so on a real-size page type_text answered noFocusedElement. In
Safari only (the bundle identifier of the process read), once the
application's AXFocusedUIElement answers none, the read-back now takes
WebKit's route before the walk: the primary window's first AXWebArea (the
walk's bounds), its AXSelectedTextMarkerRange, that range's start marker
straight into AXUIElementForTextMarker on the web area, then at most four
AXParent hops to the field. The walk still runs when the route claims
nothing.

Under ruling 1ea561bc:824: the marker lives only in readbackMarkedElement
and is released there; nothing reads its bytes or length, the end marker is
never resolved, and no other parameterized attribute is asked. Every element
on the way is classified (role and subrole in one batch, #405's
valueClassification) before anything else is read of it; a closed one ends
the lookup with main's reason (secure, or roleUnreadable) and nothing more
read. A field is claimed only when it is the app's, reads AXFocused true and
its parents reach that web area. After typing, and at a checkpoint, a field
the route found is asked itself (AXFocused true on the same handle): no
marker call follows delivered text, and the reads do not depend on a secret.

ReadbackAX carries every Accessibility call of the live reads, so the tests
run the live composition over a stub Safari whose web area answers a real
AXTextMarkerRange with a known offset in its bytes.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…range (refs #395)

The stub web area now answers its range beside an error too, so the
range read's error check is exercised rather than covered by the stub.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…xt's field (refs #395)

Sminos-Session: cursor235#b93055dd (cua on macbook)
… to find the field (refs #395)

agent-cursor.md's typing paragraph loses its sentence on background
Safari's large page answering no focused field: the text-marker route now
finds that field. The docs oracle and the core-documentation test carry the
paragraph byte for byte; PROVENANCE.md and the surface inventory's "Table 3
amendment (2026-11-18, #395, ruling 1ea561bc:824)" record it.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…d the marker tests fail rather than crash (refs #395)

The mutation check found the failed-children guard of the web area's search
survived: its only case had no other web area to find. A web area after the
element whose children failed now must not be taken. The closed-field and
post-input tests unwrap their log positions with a failure instead of a trap.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…rker route (refs #395)

The entry records ruling 1ea561bc:824's conditions as built, the probe's
facts (runs 44296356927 and 44297805982: a 28-byte marker holding the caret
as an LE32 word, a password field's included), the choices the ruling left
(the route before the walk, the web area under the walk's bounds, four hops
to the field, the field focused and under that web area, the field's own
AXFocused after typing, Safari by bundle identifier), what is noted and not
measured, and the proof with its mutation check. #354's limit 11 points to
it. The log is appended oldest first, as this spec's always has been.

Sminos-Session: cursor235#b93055dd (cua on macbook)
… runs only on an absent focus answer (refs #395)

The high review's findings, as the design ruled:
- The web area is checked to be the app's and classified, open as an
  AXWebArea, before its marker is read; otherwise no claim, and the walk
  runs. It is not the field, so a closed classification is no refusal.
- Each ancestor the claim's scope climb passes is checked to be the app's
  before it is compared or climbed.
- readbackFocusedField takes the application's AXFocusedUIElement as a
  ReadbackWalkRead: an absent answer (noValue, attributeUnsupported) goes
  to the primary window, the marker, then the walk; a failed read
  (another error, or a reply that is not an element) to the walk alone,
  as on main (ruling 1ea561bc:824).
- The marker tests skip, rather than trap, where HIServices' private
  constructors or the engine's marker symbols do not resolve; the
  odd-reply test unwraps the symbols with XCTUnwrap.

New tests: the web area another process's, unreadable or classified
otherwise (five cases, no marker call); a failed or wrong-typed
application focus read (no marker call, the walk confirms a small page;
attributeUnsupported takes the route); an ancestor another process's.
The lookup-order test now shows the web area's classification before
its marker read. Each new guard, removed or weakened (six mutations),
fails a test.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ecks and the absent-only route (refs #395)

Item 2 (c): the web area is checked to be the app's and classified
(AXWebArea, open) before its marker is read; each ancestor of the scope
climb is checked to be the app's. Item 2 (e) and item 3: the route runs
only on an absent answer (noValue or attributeUnsupported); a failed
application focus read goes to the walk alone. Item 5: 14 test
functions, the new cases, the skip without the constructors, and the
six new mutations caught.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…pp's own elements (refs #395)

The re-review's findings:
- [P2] `readbackWebArea` takes an ownership predicate, and
  `readbackMarkedField` passes `marker.owned`. An element another process
  serves, the window included, is skipped: its role is not read, it is
  never the web area and its children are never followed, so a foreign
  provider cannot pick the page whose marker is read. The probe's `tree()`
  visited only owned elements. #354's walk is unchanged. The separate
  ownership check on the web area after the search is dropped, since
  the search now checks it.
- [P3] The tests that showed the fallback walk ran by its reaching
  node 1000, which the live walk's wall-clock 40 ms bound could stop
  on a slow runner, now count the window's AXChildren reads instead.
  The web area's search and the walk each read them first: two after
  the route claims nothing, one when a failed focus read skips the
  route.

New cases: in the generic search, a foreign group between the window
and a web area (not found, the group unread), a foreign sibling that
reads as a web area (skipped, the search goes on) and a foreign window
(nothing read); in the stub, a web area under another process's group
(no marker call, noFocusedElement). Removing the search's ownership
guard fails both.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…app's own elements (refs #395)

Item 3: the web area is the first AXWebArea among the app's own
elements, another process's (the window included) skipped unread, as
the probe's `tree()` visited only the app's. Item 5: the web area under
another process's group, six cases, and the search's ownership among
the mutations caught.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ches (refs #395)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ari's text-marker route (refs #395)

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

Sminos-Session: cursor235#b93055dd (cua on macbook)
… never its value (refs #414)

Rulings 1ea561bc:826 (808's paste rule applied to type_text), 833 (the
success names its strength and says what it proves) and 839 (no count:
the caret alone from an empty selection). A field #405's classification
finds secure, with a field's role, is read after its role and subrole only
through one batch of role, subrole, selected range and character count,
classified from that same reply. It confirms when the count is the start's
less the selection plus the typed UTF-16 units and, whenever the range was
read, the caret sits right after the text in the same reply. The record
carries secure:true and confirmation:"length", the success a fixed note;
a failure a reason alone (lengthUnreadable, selectionUnreadable,
lengthMismatch, caretMismatch, noLongerSecure). Safari's marker route
claims a password field as it claims a text field.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…unreadable, tested (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
… is all it proves (refs #414)

agent-cursor.md's typing paragraph, its oracle and core-documentation
copies, the surface inventory's amendment, and the README's secrets
paragraph: a password field succeeds once it has taken exactly as many
characters as were typed; a length cannot tell the right characters
from others; when it fails; Firefox naming its page as focused.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…units, a Return's one CR included (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…t success rides as a length note (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…keeps the lookup's password finding, and never traps (refs #414)

Review of 517ab54..bdfbcfb: a concealed caret elsewhere answers lengthMismatch; the marker route's and the walk's password finding is held at the snapshot (noLongerSecure); noLongerSecure advises against observing a shown secret; a select_text baseline at a password field types nothing; a failed snapshot count is refused before the settle; a count or caret past Int32.max, or a float count, is unreadable; confirmation "length" and the note only after a length check; the leak test fixes the posting's real times before its scan.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…own as text is not observed, and selectText then typeText into one types nothing (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…on only once one ran (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…sword field's record (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…view's fixes and the mutation results (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…othing under a select_text baseline and keeps its record's shape; a count past the limit is a failed read (refs #414)

Review of 81a1aeb..52f0109, R2-1, R2-3 and R2-4.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…says, in a fixed sentence, that the field may show it (refs #414)

Review of 81a1aeb..52f0109, R2-2: keyed on the read-back record's reason noLongerSecure alone; no runtime text forwarded.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ilure warns when the field may show it (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…as held for 50 ms, so an app still taking its keys cannot pass through it (refs #414)

The hosted qualification's AppKit fixture: an extra character at the caret before the first key, and a poll that read the field with its last key not yet taken, matched the expected length and caret. One 5 ms poll within the 1 s budget; a match confirms once the same reply holds for typeReadbackLengthDwellMs (ruling 1ea561bc:842). A literal request ends at a change or a read past the text; a concealed one never confirms after a change and always polls to the budget, so its failure's time never depends on the secret.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…within about a second (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ch confirms only by a read within it; an unavailable caret is no overshoot (refs #414)

Review of f35a42b..cbce12e, R3-2, R3-3, R3-4 and R3-5 (a field that collapses a selection as long as the secret, inserting nothing, confirms: the documented limit of a length).

Sminos-Session: cursor235#b93055dd (cua on macbook)
… user to hide or clear it before any re-query (refs #414)

Review of f35a42b..cbce12e, R3-1.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…'s coinciding-insertion limit narrowed (refs #414)

Sminos-Session: cursor235#b93055dd (cua on macbook)
… it confirms, sized from the hosted qualification's drains (refs #414)

Ruling 1ea561bc:842: one constant, three times the slowest measured drain (AppKit's worst post-to-edit lag, 59.9 ms); a field takes the text within 820 ms. Tests derive the window from the constant; the docs sentence and the Decision Log follow.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…oncealed failure after posting answers at one deadline (refs #414)

Ruling 1ea561bc:842: the dwell is three times AppKit's gap p99 of 72.6 ms (n=269); a field takes the text within 780 ms. The review of cbce12e..1f69470: every concealed failure into a password field after posting, a snapshot refusal included, answers at the post-typing boundary + the budget + typeReadbackFocusReadCapMs, waited against the clock; a held match whose focus read fails reads as a lost match with one focus read more; a read that returns after the budget cannot confirm. A concealed success still ends early.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…post + 1100 ms by construction, its reason from the final batch and focus read alone (refs #414)

The review of 1f69470..f217f06: one origin, the last key event's post (where endedAt is stamped); the cutoff C and the deadline D computed from it once; every AX call of the read-back bounded by the time left to its limit with a 50 ms floor; a concealed failure's reason a function of the final length batch and the final focus read only; the reply waited for until D on the monotonic clock, a late one flagged lateReply; a success's confirming read finished by C. A seeded property test (0x414_F217, 2000 cases) randomizes read and post costs, field behaviour and secret length. The drain allowance is 730 ms.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…d slots, and a focus read that cannot answer is unknown, never a moved focus (refs #414)

The review of f217f06..4517236 and the hosted qualification on 4517236 (78 of 150 concealed controls fieldChanged, 0 of 75 literal): the bound refused the concealed final focus read once a slow last batch left under the 50 ms floor, and a refused read was taken as a moved focus. Now the final batch starts at C - floor and the final focus read at C with its own 100 ms; the floor only schedules; focus is focused, moved or unknown, unknown barring success and leaving the reason to the final batch; noLongerSecure outranks a moved focus; lateReply is decided after the padding with a 10 ms tolerance. The property test runs two secrets over one field timeline.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ms timeout in fixed slots, with no shrinking bound (refs #414)

Live on 2e011db: fieldUnreadable on 62 of 150 concealed controls and lateReply on 138 of 155. The final batch's timeout was shrunk to the time left and timed out on background apps; a timed-out request still occupies the app, so the final focus read queued behind it and ran past D. Now every read keeps typeReadbackMessagingTimeout; regular reads start by C - 200 ms, the final batch at C - 100, the final focus read at C, D = C + 100; a field takes the text within 680 ms. A second seeded property run (0x414_F218, 2000 cases) uses live read costs.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…n Log, and a test flake (refs #414)

The final pin 405b63b passed every behavioural gate on five hosted lanes
(run 44386516599): 100/100 positives, 0/150 false adds, 0/150 fieldUnreadable
and fieldChanged, reason parity, privacy 0, both seeded properties. lateReply
was on 137/155 failures; reply time reaches only _meta, so it stays
informational, and #423 takes it up.

Sminos-Session: cursor235#b93055dd (cua on macbook)
… is, its snapshot after the paste's activation (refs #361)

The paste route answered success on #187's effect check, any change in the field's range or count. It now runs
#354's TypeReadback over the pasted lines (one unit per line, a Return per newline): the snapshot once the paste's
activation ran and before the pasteboard is touched, after a stable range when that activation clicked inside the
window; a Return a single-line field does not take as text is a checkpoint; the final poll once the paste answered,
its clipboard restored. A password field takes #414's length rule. The per-line effect wait and the Return's settle
go from this route, with their now callerless code (returnUnconfirmed, openingReturn, the multi-line note); the
clipboard's snapshot, restore, conflict checks and read wait are unchanged, and the paste method keeps its effect
check, pasteUnconfirmed and its note. Plugin 0.28.17.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…en two sampled reads, and a failure answers when it is known (refs #414)

Ruling 1ea561bc:851 on the review of 4a005a8..a1939d2 drops the fixed-deadline,
fixed-slot schedule: no D, no padding sleep, no lateReply, no final batch or focus
read in a reserved slot. One poll serves literal and concealed requests; a batch
starts only while a messaging timeout is left of the budget, and a match confirms
only on a hold whose start and end are both sampled reads 220 ms apart, its focus
check one AX call completed inside the budget. The allowance stays 680 ms
(1000 - 100 - 220); the docs add that a failure's time can depend on the text
typed (#423).

- P1-1, P1-3: fixed by the rule change; no unsampled slot, and a success's focus
  check must complete by the cutoff.
- P1-2: a password field's focus check is one call, by how the snapshot found the
  field (AXFocusedUIElement again, or the field's own AXFocused for the walk's and
  the marker route's); ReadbackLookup gains .walk.
- P1-4: the concealed reason order is noLongerSecure, fieldUnreadable, a moved
  focus, the rest; a password field's fieldUnreadable takes the may-show remedy
  natively and in the wrapper's secretMayShow.
- P2: a failed marker focus read is unknown; the literal overrun test reaches its
  overrun and asserts the cost was incurred.
- P3: the property runs' stubs no longer retain themselves.

Sminos-Session: cursor235#b93055dd (cua on macbook)
The docs paragraph takes wave 9's text with #361's paste sentence; the surface
inventory's #361 amendment quotes the merged paragraph; the #361 Decision Log entry
says a pasted password field follows wave 9's hold between two sampled reads.

Sminos-Session: cursor235#b93055dd (cua on macbook)
… and focus read alone, and a hold check only gates success (refs #414)

The review of a1939d2..e8e2702:

- 1 (P1): a concealed request's hold check that finds the focus moved, unknown or
  late never ends the poll or sets the reason; whether a hold comes at all can
  depend on the secret. A literal request still answers fieldChanged at once.
- 2 (P1): a concealed request that ends without success always reads one final
  length batch, outside the start limit, then (unless it closed noLongerSecure or
  fieldUnreadable) one focus read; those two alone decide the reason. Nothing seen
  mid-poll is latched.
- 3 (P1): an overshoot taints a concealed poll, as a changed reply does.
- 4 (P1): a password field's roleUnreadable (classified by the lookup, its role
  then unreadable) takes the may-show remedy natively and in secretMayShow.
- 5 (P2): a literal poll that took no batch answers fieldUnreadable; so does a
  concealed reason with no batch.
- 6 (P2): a batch's own start judges both the start limit and the hold.

Sminos-Session: cursor235#b93055dd (cua on macbook)
The read-back's header keeps #414's concealed-reason text and #361's paste-route
sentence in place of the one that said the paste route was not read back.

Sminos-Session: cursor235#b93055dd (cua on macbook)
… ends, as the hosted probe requires (refs #361)

The probe (probe/361-qual, on main 517ab54) found background Electron naming no
focused element once the paste's activation ended in 100 of 100 trials and Safari
in 58 of 100, so the read-back's identity check after the release would answer
fieldChanged on a field that took the text. The final poll now runs once the
pasteboard is restored, inside the paste lock and the activation. Stub tests add
the probe's AppKit case (a single-line field's Return selects it and the second
line replaces the first: typeUnconfirmed, where #187 answered success 40 of 40),
a Return that drops the next line, and Firefox's focus settling at the first ⌘V
(fieldChanged, no excerpt). The Decision Log entry records the choice over reading
the snapshot's handle alone, and the probe's findings.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…d, and a subrole it cannot read is no secure field (refs #414)

The review of e8e2702..3b67bf4:

- 1: a concealed request's final batch no longer presumes a field secure on a
  failed subrole alone (a role other than AXSecureTextField): it answers
  fieldUnreadable, with the may-show remedy, so a field seen visible mid-poll
  keeps its warning. Regular poll batches still presume secure and go on.
- 2: a concealed failure makes its one focus read first, then the final batch, so
  the classifying read is the last before the reply; the reason order stays.
- 3 (ruling 856, a residual): hold checks in a field whose state matches one
  secret's length can change that secret's failure reason, revealing nothing the
  outcome does not. The docs' limit sentence now covers the reason as well as the
  timing, byte-identical in all four copies (#423).

Sminos-Session: cursor235#b93055dd (cua on macbook)
The docs paragraph takes #414's text with #361's paste sentence; the surface inventory's #361 amendment quotes the merged paragraph.

Sminos-Session: cursor235#b93055dd (cua on macbook)
… and the concealed reason's read order is stated apart from its precedence (refs #414)

The review of 3b67bf4..8bc291f, docs and comments only:

- P2: the limit sentence drops its qualifier, byte-identical in all four copies:
  "When it fails, how long it took can depend on the text typed, a
  `{{secret:…}}` included, and so can its reason." A field that unmasks on a
  timer can give a short and a long secret different reasons through posting
  time alone; the Decision Log's Wave 11 residual names that form beside the
  hold-check one (#423), and a test documents it.
- P3: readbackConcealedReason's comment, and the one at the final batch, say the
  focus read comes first and the final batch last, and that noLongerSecure and
  fieldUnreadable win over a moved focus without skipping its read.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…851 (refs #414)

Run 44423869307: all five lanes green. 100/100 positives, 0/150 false adds,
75/75 drops refused, no fieldUnreadable or fieldChanged on exact controls,
reason parity, privacy 0. The design history gains waves 9-11, and the reply
time limit points at #423 as re-scoped.

Sminos-Session: cursor235#b93055dd (cua on macbook)
The docs paragraph takes #414's text with #361's paste sentence; the surface inventory's #361 amendment quotes the merged paragraph.

Sminos-Session: cursor235#b93055dd (cua on macbook)
… it reads back, and stops at the deadline (refs #361)

The review of a122180..9bfb0b5:
- P1: a line's hand-over names no reader, so the first build restored the pasteboard
  under a ⌘V the target had not handled (a clipboard manager's read before it). Each
  line now has a gate (TypeReadback.confirmLine): the field must read the text through
  it before the next part or the restore; a gate that fails holds the item to #187's
  2 s bound from that ⌘V. A field the read-back cannot read keeps #187's effect wait
  and Return settle, restored with their tests.
- P2: the keyed route also sends a Return after text it cannot verify (a refused plan
  confirms nothing), so the paste route stays consistent with it.
- P3: every poll is capped at the request's time left, and no part goes out past it
  (timeoutReached, with what was sent).
- P4: item-187's judge takes a typeText row's typeReadback where it has one.
- P5: the docs say a Tab is pasted as text on the paste route; four copies identical.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Main is #414's squash, whose tree is a122180's, which the branch already carries; every conflict resolves to the branch's own text, so the merge changes no file.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…read-back only decides success (refs #361)

The hosted phase-2 run on 9bfb0b5 (44429799569) found Chrome handling a later
line's ⌘V after the restore that no effect wait held back: the person's clipboard
in the field and in the excerpt, 108 of 116 rows. The gate-per-line build that
followed would still stop delivery on checks it cannot make (Firefox's unreadable
range, its late focus). So:
- Delivery is #187's: each line's effect wait, the Return's settle, the pasteboard
  held until each line shows, and #187's errors. A stub test has a target that
  handles each ⌘V late; skipping the effect wait (the mutation) pastes the owner's
  clipboard.
- The read-back decides success at the end, after the restore, under the activation.
  A Return's checkpoint runs only where no effect showed the line land. A field it
  cannot read is delivered as main delivers it and answers typeUnconfirmed.
- A mismatch after a line no effect showed gives no excerpt and no lengths.
- The deadline cap and pasteDeadlineReached remain. The engine gains a
  pasteEffectReading seam for the tests.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…its expected text keeps a leading U+FEFF (refs #361)

The whole-branch review of main..7897cde:
- P1: neither the read nor the effect proves the target took ⌘V before the
  restore, so a mismatch on the paste route carries its reason alone: no excerpt,
  no lengths. A stub test has a delayed ⌘V after an unrelated effect paste the
  person's clipboard into the field, with nothing of it in the reply.
- P2: the expected units come from the text, not the pasteboard's decoded bytes,
  which drop a leading U+FEFF; tested at the start and after a newline.
- P2: item-187's judge requires a read-back typed row's per-line delivery evidence
  and typeReadback.confirmed.
- P2: the docs' paste sentence says the error never quotes the field, and that a
  Return between lines goes once the field changes, before the read-back, so a
  submit is not protected; four copies byte-identical.
The two deadline items are deferred to tech-debt-tracker.md.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…firmed pastes in the docs (refs #361)

7897cde passed every gate on Safari, Chrome for Testing, Electron and AppKit (runs 44442976031, 44451662130). Firefox delivered as main but confirmed no paste (#427). The paste sentence says so in its four copies, the Decision Log entry lists the residuals (#427, #426, the deadline debt, no contenteditable or pasted password field measured), and docs/evidence/2026-11-18-paste-readback/ records phase 1, the failed first candidate and the final table.

Sminos-Session: cursor235#b93055dd (cua on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T04:53:32.858041Z 81fee7a 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.

…only the read-back expects a leading U+FEFF (refs #361)

The review of 7897cde..81fee7a: deliveredUnits feeds #187's password-field effect wait on both type_text and paste; counting a leading U+FEFF made it 6 for "\u{FEFF}hello" where main counts 5, so an unrelated 6-unit change could satisfy the wait and let the restore land under a pending ⌘V. It is main's again, pinned by a test; the request-derived pasteReadbackUnits(typing:) still expects the character. The Decision Log limits the late-target claim to a wait that sees the paste itself.

Sminos-Session: cursor235#b93055dd (cua on macbook)
@SSFSKIM
SSFSKIM merged commit 44de352 into main Nov 19, 2026
7 checks passed
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.

Engine: type_text through the paste route (non-Latin input sources) gets #354's exact read-back

1 participant