Skip to content

macOS engine: type_text into a password field confirms by character-count delta, emitting no count (808's rule) #414

Closed

Description

@SSFSKIM

Problem

On macOS, type_text into a password field (AXSecureTextField, or a web password input) can't confirm what it typed. The read-back snapshot refuses secure fields (#354, ruling 589), so the call answers unconfirmed even when every character landed. Typing a {{secret:…}} into a login form is the main use of secrets, so the agent can't tell a successful login entry from a dropped one.

Paste already confirms into secure fields without leaking anything (ruling 808, shipped in #405). The engine reads AXNumberOfCharacters before and after, compares the delta to the pasted length internally, and emits only confirmed or unconfirmed, with meta {secure:true}.

Work

Apply 808's rule to type_text's read-back for a secure target:

  1. Read the field's character count before input and after.
  2. Confirm when the delta equals the typed length, taking any replaced selection into account.
  3. Emit only confirmed or unconfirmed, with meta {secure:true}: no count, no length, no value.

If the count read is unsupported or fails, answer unconfirmed (fail closed).

Proof

  • A stub provider test: the count never appears in the reply, meta, render, error strings or the stderr tail.
  • A live run of the pw-walk kit on each of the six lanes (CfT, both Electrons, Safari, Firefox, AppKit): {{secret}} typed into a password field confirms 20/20, and a deliberately dropped character answers unconfirmed.

Relates

#405, #395, #354.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 18, 2026
  2. SSFSKIM commented on Nov 18, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Taken by cursor235: build on fix/414-secure-type-confirm (from fix/395 head 4170683; merge main after #417), qualify on probe/414-qual (six lanes from probe/405-qual)

  3. 20 remaining items

  4. removed
    status:in-review
    on Nov 19, 2026
  5. SSFSKIM commented on Nov 19, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #424 (cua 0.28.16)

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:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions