Repository navigation
Description
Problem
#414 confirms type_text into a password field by its length. Under design ruling 1ea561bc:851, a concealed ({{secret:…}}) failure answers as soon as it is known, within the read-back's bounded budget. The earlier design answered every concealed failure at one fixed time, last post + 1100 ms. That design was dropped, because:
- live runs missed the fixed time on 137 of 155 failures (macOS engine: type_text into a password field confirms by character-count delta, emitting no count (808's rule) #414's hosted run 44386516599);
- its exact schedule kept producing false confirmations (the PR macOS engine: type_text into a password field confirms by its length, never its characters (#414) #424 review).
So a failure's reply time can vary with the typed input. For example, a lost match on a longer secret can be found at a different poll than one on a shorter secret. The reason stays identical across lengths, and the time goes only to _meta (cua/actionInterval), never into the model's text. But a caller that can time replies learns something about the secret, at the resolution of the read-back's polls.
A second form: the reason (ruling 1ea561bc:856). Take a field whose state matches one secret's length but not another's, such as a field that ignores input but collapses a selection of that length. There, the matching secret's poll makes hold checks that the other secret's poll doesn't. Those checks' focus reads, their timeouts, or the app's lag after a timed-out request can change which reason that secret's failure gives: for example fieldUnreadable or noLongerSecure instead of lengthMismatch. This reveals only what the outcome already reveals in such a field: whether its length matched this secret, since there the matching secret confirms and others fail. Found by the review of 3b67bf4d.
The same through posting time (review of 8bc291f1). A longer secret finishes posting later, so in a field that changes on its own clock its final read lands later too. For example, take a field that ignores input and unmasks on a timer. The longer secret's final batch can come after the toggle and answer noLongerSecure, with the warning. The shorter one's comes before it and answers lengthMismatch, while the field is still masked. Neither reply is wrong for the field's state at its final read, and neither confirms.
All of these are a P3 limit, documented in agent-cursor.md and the native engine spec's Decision Log.
What to find out
-
Measure the leak. On hosted lanes (CfT, Electron, Safari, AppKit), take concealed failures (adds and drops) at several secret lengths, and find how well reply time predicts the length. Compare the length-to-length differences with the jitter within one length.
-
If the leak is real, pick a cheap mitigation that doesn't bring back an exact schedule. Candidates:
- quantize the reply to coarse buckets (for example, the next 250 ms step from the first post);
- add random padding;
- withhold the reply time from
_metafor concealed requests.
Weigh each against the false-confirmation risk that ended the fixed schedule.
Check
Either:
- a documented measurement showing that reply time doesn't separate lengths beyond the jitter; or
- a mitigation whose hosted rerun shows the short- and long-secret reply-time distributions overlapping, with macOS engine: type_text into a password field confirms by character-count delta, emitting no count (808's rule) #414's outcome and privacy gates unchanged.
Spawned by #414.
Activity
Evidence: #414's hosted qualification, its live result in the Decisio…
[-]macOS engine: a concealed password-field failure's fixed reply time is missed live on most replies (lateReply 137/155)[/-][+]macOS engine: a concealed password-field failure's reply time can vary with the typed input (#414's limit after ruling 851)[/+]macOS engine: a password field's length confirms only on a hold betwe…
[-]macOS engine: a concealed password-field failure's reply time can vary with the typed input (#414's limit after ruling 851)[/-][+]macOS engine: a concealed password-field failure's reply time, and in a length-matching field its reason, can vary with the typed input (#414's limit)[/+]macOS engine: a concealed failure's classifying batch is its last rea…
Docs: a password-field failure's reason can depend on the text typed,…
Evidence: #414's qualification of its final pin 8bc291f under ruling …
macOS engine: type_text into a password field confirms by its length,…
macOS engine: type_text's paste route confirms by exact read-back, ke…