Repository navigation
docs: prioritize macOS daemon recovery - #21740
Closed
AmethystLiang wants to merge 11 commits into
Closed
AmethystLiang wants to merge 11 commits into
AmethystLiang wants to merge 11 commits into
Conversation
…evidence Replace the helper-first recovery design with a two-layer plan: an in-daemon opendir verdict plus a notice on the existing attribution poll (ship now), and the helper probe for already-deployed old daemons (evidence-gated). Record the 2026-09-21 measurements: on Documents, access(2) passes while opendir gets EPERM, so the current accessSync verdict is blind to the incident's folder class; daemon-spawned login shells carry the daemon's grant; the login wrapper is unconditional in production.
…the helper probe daemon_pty_cwd_denied fired for 1,438 users in 21 days (2.8% of users adopting a different-version daemon, 96% on Documents/Desktop/Downloads), so the daemon's existing verdict already observes the failure and the helper probe for old daemons has no population left to cover. A fresh same-version daemon ended the denial for about 69% of observable users; the notice copy now tells the rest to re-allow the folder.
9 tasks done
…resh-daemon probe
…ion step, what is known about the stuck third
…a third; split later denials by the denying daemon's version
…set, prompt deadline
…nd the open scope
…icts stay unknown
Contributor
Author
|
Closing as a stale design draft from September. The macOS daemon/TCC code it plans for has changed since. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
STA-7948: on macOS, Orca's terminal daemon can lose the ability to read a workspace under Documents, Desktop, or Downloads while the Orca app itself still can. Terminals in that folder fail with "Operation not permitted" and agents like Codex die reading their cwd. This PR lands the finalized plan and the evidence behind it. Docs only, no production code.
What the evidence says
daemon_pty_cwd_denied(shipped 2026-09-01) fired for 1,438 users in 21 days, 96% of them on a daemon forked by an older app build. That is 2.8% of users who adopted a different-version daemon. 528 users hit it on two or more days.accessSyncverdict, so no new daemon code is needed to observe the failure.~/Documentsshows a second TCC mode whereaccess()passes butopendirfails, so the plan hardens the check to real enumeration.The plan
Record app-versus-daemon divergence in main from the existing verdict, expose it on the existing
macTccAttributionpoll, and show a second toast pointing at the existing Manage Sessions restart, with copy that also says to re-allow the folder if the restart is not enough. Harden the daemon check fromaccess()toopendir. The signed-helper PTY probe from the first revision is dropped: it only covered daemons without the verdict, and that population is already shrinking to zero.Files
docs/plans/macos-tcc-explicit-recovery-design.md: finalized plan.docs/plans/validation/README.md: transport validation, 2026-09-21 live machine evidence, PostHog field data.docs/plans/validation/live-2026-09-21/: the three scripts used.docs/plans/macos-tcc-durable-relocation-design.md: unchanged; the field numbers argue for reopening prevention separately.Validation
Docs only. No daemon restarted, no TCC state changed, no window shown during evidence collection. Raw evidence with account paths is kept off-repo.
Follow-up
Implement the plan against
mainin one PR. The remaining open item (a three-step check on one affected machine) only confirms the notice copy.