Skip to content

Report and finish accept-native’s owned TextEdit fixture for every item selection #196

Open

Description

@SSFSKIM

Problem & intent

When accept-native starts its TextEdit fixture for item 8 without selecting 5 or 6, its report omits fixture steps and why TextEdit remained running. The first M3 hold run launched TextEdit and left it when close could not establish windowlessness; cleanup found five off-screen layer-0 windows.

Treat ownership, cleanup outcome and reporting as one fixture lifecycle: safely quit what this run launched, or say exactly why it cannot. #166 covers reusable mini sitting/item-5 proof, not this item-8 lifecycle defect.

Seams: scripts/accept-native.mjs, scripts/accept/textedit.mjs, scripts/accept/textedit-cleanup-witness.mjs.

Constraints

Success criteria

  • Every run starting the fixture reports setup, ownership, close/quit steps and cleanup verdict, including --items 7,8 and --items 1,7,8 with 5/6 absent.
  • Safely stop the demonstrably run-owned process, including off-screen-only windows, or state the precise ownership/safety uncertainty preventing it.
  • Never quit pre-existing/ambiguous TextEdit; app name alone is not ownership.
  • Tests cover selection-independent reporting, off-screen retained windows, successful cleanup and unowned-process refusal. An authorized hold verifies no owned leftovers.

Open questions

What process-generation/window-ownership evidence safely permits quit when close cannot establish windowlessness? Prefer explicit ownership and precise refusal to global kill or silent leftovers.

Decision log

Sources

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Oct 22, 2026
  2. SSFSKIM commented on Oct 22, 2026

    @SSFSKIM
    OwnerAuthor

    Plan from #117 M4 review (2026-10-23, cua_repl coordinator).

    Two cleanup criteria were tried in M4 and disproved by review:

    • "No on-screen layer-0 window remains": CG's off-screen set also includes minimized documents, documents on other Spaces and hidden windows.
    • "The off-screen set is a subset of the windows recorded at the fixture's own launch": TextEdit's state restoration can reopen owner documents at that launch.

    For the M4/#184 hold, the fixture therefore stays conservative. Any off-screen window blocks its quit, and cleanup is BLOCKED with window numbers and bounds (no titles). The coordinator decides per case on a left-over fixture TextEdit, and acceptance 8 gets an explicit disposition, not PASS.

    The fix this ticket should carry:

    1. Launch the fixture's TextEdit with state restoration suppressed (-ApplePersistenceIgnoreState YES). The launch then opens no restored documents, and its launch-time windows are TextEdit's own.
    2. Quit it politely, in a way that can't lose data: a save prompt keeps it running, which reads as BLOCKED with a named reason. Never SIGTERM or kill.
    3. Any window that appears after launch (a document opened mid-run) still blocks.
    4. Live proof in Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117's M5 sitting: the fixture launches, runs and quits with no leftover process, and a planted restored-state document is not opened (or blocks).

    Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)

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:P2status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions