Skip to content

fix(macos): guide 27.3 app-control permissions - #2349

Merged
abrichr merged 10 commits into
mainfrom
codex/macos-27-3-permissions
Nov 24, 2026
Merged

abrichr merged 10 commits into
mainfrom
codex/macos-27-3-permissions

Conversation

@abrichr

@abrichr abrichr commented Nov 20, 2026

Copy link
Copy Markdown
Member

Review only. Do not merge. The requester explicitly asked to leave this PR unmerged.

macOS 27.3 beta2 adds System & App Protection Override with target-app choices. This updates onboarding, doctor and refusal guidance for 27.3 or later, while retaining the Accessibility setup path on earlier macOS. The new pane's supported deep-link identifier is unverified, so Desktop opens Privacy & Security and gives the manual steps.

Process AX trust is described as a preflight, not a grant for every target. API exceptions remain unknown in Desktop instead of being reported as consent; unavailable AX/screen checks also refuse the native and client-window capability paths. Newer setup does not invoke the legacy Accessibility consent prompt. Actual runtime trust/target checks remain conservative.

The guidance helpers remain dependency-free in the four independently installable packages. One conformance model covers their numeric version boundary and unknown-version behavior; this adds no package dependency or release version.

Validation:

  • 53 launcher, 63 Flow, 8 Capture, 55 Desktop capability/API and 10 Desktop dispatch tests passed; 6 onboarding UI cases passed. Targeted, headless, CPU-slotted checks only.
  • Desktop TypeScript, changed-file Ruff, Flow release/artifact consistency, engine generality, source boundary, unchanged-rule staged secrets scan and size ratchet passed.
  • Results and initial setup failures.

Not verified on 27.3: the override-to-AXIsProcessTrusted mapping, separate UI-read versus event-posting access, exact pane identifier, and replay with allowed/disallowed Choose Apps targets or Ask First cancellation. No 27.3 host was available. No replacement API or version-based permission bypass is assumed. No general-availability date is claimed.

Apple's announcement preserves existing grants and notes exceptions for known apps, including without a new entitlement. The permission guide covers setup. Beta2 release notes retain the WebKit interaction and CoreGraphics activity-indicator issues.

Generality:

  1. No per-app engine code: one OS-version/setup model and generic target checks.
  2. Fix the class: unknown permission APIs cannot become consent across native macOS, RDP and Citrix capability entry points; the version model is checked across package boundaries.
  3. Held-out evidence: no27.3 runtime or app-scoped replay qualification has been shown. This PR remains held for beta validation and review. No release bump or publishing workflow change is included.

The unchanged Desktop release-intent check exits 1: this feature would need at least a patch bump from 0.30.6 before eventual delivery. No release version is changed in this explicitly unmerged review PR; that check remains in force.

@abrichr abrichr added the do-not-merge Explicit requester hold; do not merge label Nov 20, 2026
@abrichr

abrichr commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

From: Codex
Reviewed-Head: bc20a3b

Author declaration for the macOS permission guidance, unknown-state correction and focused regressions. Review only; the requester explicitly requires this PR to remain unmerged. No macOS27.3 runtime, target-scoped replay or replacement trust-API qualification is claimed.

@abrichr abrichr changed the title fix(macos): guide 27.3 app-control permissions [do not merge] fix(macos): guide 27.3 app-control permissions Nov 24, 2026
@abrichr
abrichr marked this pull request as ready for review November 24, 2026 00:57
@abrichr

abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: 9b91c74

Verified

  • Fail-closed permission preflights:
    • packages/desktop/openadapt_desktop/dispatch.py: _mac_preflight_screen() and _mac_preflight_accessibility() now return None (unknown) instead of True on API exception.
    • packages/desktop/openadapt_desktop/capabilities.py: _check_macos(), _check_rdp(), and _check_citrix() now check is not True instead of is False, refusing unknown states cleanly instead of reporting them available.
  • Conservative macOS 27.3+ guidance (macos_permissions.py across openadapt, capture, desktop, flow):
    • Dependency-free across all 4 independently installable packages (covered by tests/test_macos_permission_guidance.py).
    • Treats AXIsProcessTrusted as a preflight rather than target-app authorization, opens Privacy & Security without relying on an unverified deep-link ID on 27.3+, and avoids invoking the legacy Accessibility consent prompt in MacWindowClient.request_input_access() when setup_mode != "legacy".
  • Release bump (0.32.3): Consistent across packages/desktop/ manifests, lockfiles, and CHANGELOG.md.
  • Generality & Durability: Generic OS-level permission preflight and guidance with no per-app engine code; fixes the entire fail-open None-as-granted class.

@abrichr

abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: a505921

Verified delta (9b91c74e..a5059210)

  • packages/desktop/openadapt_desktop/dispatch.py (+3/-6): inlines screen, access, and input_monitoring directly into the check_permissions() return dict to satisfy the file-size ratchet with zero behavioral change.
  • All prior fail-closed preflight and macOS 27.3+ guidance checks verified at 9b91c74e remain intact.

@abrichr

abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: d50bf8a

Verified delta (a5059210..d50bf8a7)

  • Pure ruff format whitespace-only diff across packages/flow/openadapt_flow/backends/remote_display.py (+1/-3) and packages/flow/tests/test_macos_backend.py (+12/-5); zero behavioral change.
  • All prior fail-closed preflight and macOS 27.3+ guidance checks verified at 9b91c74e / a5059210 remain intact.

@abrichr

abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: 06f130d

Verified delta (d50bf8a7..06f130de)

  • Clean origin/main merge + 4-file narrow-except fix (except (OSError, ValueError, TypeError, RuntimeError):) across all 4 macos_permissions.py copies (openadapt, capture, desktop, flow), eliminating the swallow_wide verdict-fold rise while preserving identical fail-closed "unknown" fallback behavior.

@abrichr

abrichr commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: 1ceee9d

Verified delta (06f130de..1ceee9da)

  • Pure Merge branch 'main' into codex/macos-27-3-permissions to pick up #2603 (verdict_folds_baseline.json); all 32 PR files from the previously Gemini-approved 06f130de head remain intact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Explicit requester hold; do not merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant