Skip to content

macOS engine: a concealed type_text failing mid-delivery answers at once, so its time and kind can reveal where in the secret it stopped #422

Open

Description

@SSFSKIM

Problem

#414 makes every concealed type_text failure into a password field that is detected after delivery answer at one fixed deadline: the last key post plus 1100 ms. Its reason comes only from the final length batch and the final focus read. That way, neither the reply time nor the reason depends on the secret.

Failures detected during delivery bypass that policy. They throw past TypeReadback.finish, so they answer as soon as they happen. These failures are:

  • an input-source change at the check after the last event;
  • an intervention between units;
  • an event-creation failure.

The time of such a reply leaks the secret's length. A failure at unit k answers about k × 250 µs after the first post, plus the check's time. The error kinds also differ. The native inputSourceChanged message carries entered/total counts. The secret wrapper withholds that native text, but the kind and the timing still reach the caller.

This predates #414 and is #354's delivery-failure path, so it isn't specific to password fields. Found by #414's final narrow review (f217f06..4517236, finding 4).

What to do

For a concealed request, once any event has been posted:

  • Stop posting at once, as today.
  • Answer through a fixed post-delivery policy. Route the reply through one deadline, measured from the planned end of delivery or the last post, whichever the design picks.
  • Use one value-free reason. Collapse delivery-time failure kinds into one reason, so neither the moment of failure nor its kind distinguishes secrets.

Literal requests may keep their immediate, detailed errors.

Check

Stub tests for each delivery-time failure kind, at different units, with two secret lengths:

  • the reply time and reason are identical;
  • nothing is posted after the failure.

A concealed request's failure meta never carries entered/total counts.

Spawned by #414.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    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

    bugpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions