Skip to content

#117 spike: live AX observation of cua's engine on the hosted macOS runner (it grants the engine Accessibility) #175

Closed

Description

@SSFSKIM

Question

Can GitHub's hosted macOS runner run cua's own native engine (#117) live against harness-launched apps, so that some of the observation checks now booked on the owner's Mac mini run on hosted CI instead?

What is known

  • During Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117's M1a (2026-10-20, run 39348630686), the hosted macOS runner granted cua Engine.app Accessibility. The real-engine untrusted-path test skipped with "this runner grants the engine Accessibility" (test/services-engine-real.test.mjs).
    • The spec's part 7 had assumed the runner holds no grants. It was corrected in 70f1000.
  • Unknown:
    • whether Screen Recording is granted too: the engine's get_app_state always asks for the screenshot, so text observation needs it as well;
    • whether replayd raises a capture confirmation there;
    • whether the runner's display and session suit the scenes (TextEdit, Finder-200, Chrome for Testing, the Electron fixture).

Deliverable (spike)

A findings comment on this ticket, with:

  1. the engine's status grants on a hosted runner;
  2. one get_app_state per scene with a screenshot, or the error;
  3. the display's size and scale;
  4. a recommendation: which of Independence 4: cua's own native accessibility engine (replace sky) measured against a native baseline #117's M2b checks (the differential suite, the golden re-recordings, the oracles) could move to hosted CI, and which must stay on the mini (input routes and anything needing focus or the owner's apps).

No merge. Spec: docs/doperpowers/specs/2026-10-18-own-native-engine-design.md (Verification system, parts 3 and 7; M2b) on feat/117-own-native-engine.

Activity

  1. added
    status:deferred
    priority:P3
    spike
    on Oct 20, 2026
  2. SSFSKIM commented on Oct 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Picked up when #117's M2b plans where its live checks run; M1b goes first.

  3. added
    status:ready-for-implementer
    and removed
    status:deferred
    on Nov 23, 2026
  4. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-implementer: H0 of the #117 M4+M5 pre-flight (ruling 1108) answers it; the no-TCC part runs first

  5. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 23, 2026
  6. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [findings] H0 spike (#117 pre-flight): both parts pass. Every witness ran main b1b1548's code (plugin 0.29.1, engine build 6f874040), on GitHub-hosted runners only.

    • Kit: probe/117-h0, README with the verdict at 56c0894 (scripts/probe-117-h0/README.md).
    • Decision Log: db77512 on docs/117-progress.
    • The only TCC writer: tcc.mjs tccWrite. It refuses unless RUNNER_ENVIRONMENT=github-hosted and the O0 entry exists (ruling 1111).

    Per step (macOS 26.7.2, witness run 45144483807):

    1. The bundle with no rows, launched by open -n -g -a, is its own TCC client with no grants (-10014).
    2. The vendor helper with no rows stays "permissions pending" after ~115 s.
    3. The child relay inherits the runner's grants. All four scenes pass and the click is ok.
    4. Loopback ssh brings up all four scenes; the display is 1024×768 at scale 1.
    5. The macos-27 label does not exist. macOS 27.0.1 is on the xcode-27 preview image.
    6. SIP is off, sudo is passwordless, and both databases are writable.
    7. A user-database row is ignored. A system-database row is honoured only from the next launch.
    8. With rows, after a relaunch, all four scenes pass through the product launch. The first capture raises replayd's "bypass the system private window picker" alert. approve fails engine_capture_confirmation on the copy's first capture; a second approve passes.
      • (c) The probe modes as their own LaunchServices instances: a keystroke lands only with rows; watch-activations works with and without.
    9. The vendor helper with rows passes all scenes and raises the same alert. CfT must be named by path.
    10. Onboarding works only with a relaunch at every stage; a row written under a running engine is never seen.

    macOS 27 (run 45153602451): the same results hold, but only with a bundle built on macos-latest. On that image's Xcode 27 the engine did not compile (run 45150346656, main's code; that is #502). The image also has no user TCC database.

    Outcome:

    • T10: everything can run hosted, so O8 is not needed.
    • Items 5, 6, 7 and 9, and item 8's parts 12 and 13, run hosted on macos-latest. Item 1 runs hosted with ad hoc signing; the real identity needs O1.
    • R5 onboarding is hosted only with relaunches.

    Open blocker: replayd's capture alert holds the front and key focus, which breaks the keystroke, intervention, activation and front-app cells. Dismissing it, or pre-recording replayd's approval, is a consent edit beyond O0's "TCC rows". H0 did neither. This needs a ruling.

    Runs:

    • macos-latest: 45139175518, 45141067063, 45142610176, 45144483807;
    • macos-27 label: 45146485145 (cancelled);
    • xcode-27: 45148602059, 45150346656, 45153602451.
  7. removed
    status:in-progress
    on Nov 23, 2026
  8. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: H0 findings posted (both pass; capture-alert blocker open on #117); kit probe/117-h0 56c0894.

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

    priority:P3spike

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions