Skip to content

Linux engine: activate_window's raise wait is slower than the vendor (declared speed gap, no closing route) #373

Open

Description

@SSFSKIM

Since task 63 (M4; the design session, 2026-11-06: "a path to the person's window is the class that reopens work"), cua's activate_window answers only once the window manager has raised the window, bounded at 1 s. That way the agent's next input can't reach the window that covered it. The vendor answers as soon as its requests are processed, before the raise.

At M4's release gate on :0 (step V3, the chrome-input scene, the 0.4.0 candidate at 514f5c6), activate_window measured:

  • cold: 10.4 ms against the newest build's bar of 3.86, interval [5.6, 7.8];
  • warm: 7.9 ms against the bar of 0.52, interval [6.1, 9.0].

Effect was 40/40, and the witness and audit were clean. Before task 63, cua was faster here (M3's gate warm interval [-0.2, -0.05]). No verdict run on :0 measured activate_window between task 63 and the gate. The design session declared it a speed gap with no closing route (sminos 666): the wait is the safety.

Possible leads, if speed here ever matters more than the guarantee: answer at the raise event instead of a polled stacking read; or let a following input carry the wait, as task 63's foreground pointer wait already does, instead of activate_window itself.

Evidence: docs/evidence/2026-10-28-own-linux-engine/m4/gate/ (V3 and its re-judge), m4/foreground-raise/.

Related: #307.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 13, 2026
  2. added 2 commits that reference this issue on Nov 13, 2026
  3. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    Landed with #171 M4, PR #380 (78b4959, linux-engine-v0.4.0).

    Candidate 3 (c55c8e0), V3 on :0: cold 11.56 ms against the bar's 4.26 (interval [6.035, 8.265]), warm 8.46 against 0.55 ([6.285, 10.045]), effect 40/40, audit and witness as the vendor builds'. It is declared under this ticket and listed apart (c3-c55c8e08/out/V3.rejudge-speed-gap.txt).

  4. added 4 commits that reference this issue on Nov 14, 2026
  5. added a commit that references this issue on Nov 22, 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