Skip to content

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) #423

Open

Description

@SSFSKIM

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:

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

  1. 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.

  2. 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 _meta for concealed requests.

    Weigh each against the false-confirmation risk that ended the fixed schedule.

Check

Either:

Spawned by #414.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 18, 2026
  2. added a commit that references this issue on Nov 18, 2026
  3. changed the title [-]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)[/+] on Nov 18, 2026
  4. changed the title [-]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)[/+] on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions