Skip to content

Bind native keyboard delivery to recorded focus and a one-shot lease #2309

Closed

Description

@abrichr

Native keyboard execution has two related evidence gaps exposed by the Windows qualification campaign in #2301:

  • Recorded key/chord events can lack a focused-target anchor. The runtime may emit the key with delivery_attempted=true while retaining no closed actuation path or actual delivery receipt. Qualification correctly refuses that evidence.
  • Native guarded keyboard delivery binds a frame hash and process/session to a point, but does not retain a one-shot lease over the exact focused element identity. Frame changes before typing also produce safe early halts.

The defect class is temporal binding of keyboard intent, focused-target observations and actual delivery. Known siblings are TYPE, KEY and HOTKEY, including focus replacement, frame/context changes, replayed leases and uncertain partial delivery.

Build one general model: record the actual focused target, compile its target/identity contract, observe an exact focused-target fingerprint plus full frame and context in a one-shot lease, and deliver only while every binding still matches. Only an authenticated typed refusal proving zero keyboard input may permit bounded fresh target/identity/context revalidation of the keyboard phase. A retry must never repeat an earlier focusing click, relax the exact-frame comparison or manufacture an actuation receipt.

Done when:

  • TYPE, KEY and HOTKEY use the same explicit focused-target and lease model.
  • Generated/stateful tests cover changed target, frame and context, malformed requests, replay, lease expiry, missing focus and uncertain/partial delivery.
  • Actual delivery acknowledgements bind the focused target; unobserved or uncertain input remains refused/unverified.
  • A real Windows CI fixture demonstrates valid delivery and the planted refusals with independent read-back; no skips or simulated evidence are counted as native proof.
  • Application-specific setup stays in fixtures/data. The engine names no application.

This is a prerequisite for #2301. It advances safe writes and independent qualification of generated programs. No new cloud resources or production enablement are part of this issue.

Activity

  1. added
    agent-ready
    claimed
    on Nov 20, 2026
  2. abrichr commented on Nov 20, 2026

    @abrichr
    MemberAuthor

    Claimed by Codex (native keyboard evidence prerequisite for #2301).

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

    agent-readyclaimed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions