fix(cua-driver): accept host identity in embedded health check - #2170
Open
injaneity wants to merge 2 commits into
Open
fix(cua-driver): accept host identity in embedded health check#2170injaneity wants to merge 2 commits into
injaneity wants to merge 2 commits into
Conversation
f-trycua
requested review from
ddupont808,
f-trycua and
r33drichards
as code owners
July 16, 2026 11:21
f-trycua
reviewed
Jul 26, 2026
f-trycua
left a comment
Collaborator
There was a problem hiding this comment.
The exact head compiles and the identity branch is unit-covered, but the host/TCC behavior is not yet demonstrated. Before approval, please compare public health_report output from the standalone CuaDriver app and a real embedded macOS host in a logged-in session, asserting identity status and data as well as the process to which TCC permission is actually attributed. The release-metadata check also needs to pass.
injaneity
force-pushed
the
fix/macos-embedded-health-report
branch
from
August 10, 2026 11:47
e34dd31 to
be6fe93
Compare
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
health_reportbundle identity check aware of embedded modeCUA_DRIVER_EMBEDDED=1aloneCUA_DRIVER_HOST_BUNDLE_IDCuaDriver.appremediation for non-embedded raw binarieshealth_reportidentity data and host/driver TCC parity togetherWhy
Embedded mode intentionally keeps cua-driver in its host application's TCC responsibility chain. The existing
bundle_identityhealth check requiredcom.trycua.driver, so a correctly embedded driver was reported as degraded and received remediation that would break host attribution.The initial fix trusted the embedded-mode environment flag. This revision addresses the review concern by observing the actual parent macOS application and comparing it with the configured host identity. A shell or gateway launch can no longer pass the check merely by setting the flag.
Closes #2102.
Supersedes and closes #1914.
Verification
git diff --checkpass locallyExampleAgentHarness.apprequires all of the following for a pass:bundle_identity.status == "pass"Bundle.main.bundleIdentifierparent_applicationRemaining manual evidence
Run
libs/cua-driver/rust/examples/embedded-host-macos/demo.shin a logged-in macOS session with the relevant TCC grants and attach the resulting PASS log. GitHub-hosted runners can compile and test the code, but they cannot provide an interactive, persisted TCC approval session.