Repository navigation
Build the device helper without the generation engine - #194
Merged
Merged
Conversation
Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
lynnswap
commented
Nov 20, 2026
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Nov 20, 2026
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
privateheaderkit-device-helperno longer depends onPrivateHeaderKitCore. Target discovery, the device source snapshot, and running-application resolution move to a new target,PrivateHeaderKitSourceInspection, which the helper andPrivateHeaderKitCoreboth use. The helper stops linking the generation engine and GRDB.Details
PrivateHeaderKitSourceInspectiondepends onPrivateHeaderKitHelperProtocolandPrivateHeaderKitExecutableResolution. The code did not go intoPrivateHeaderKitHelperProtocolbecause that target holds only message types and reads neither the file system nor the process table.TargetDiscovery,TargetCandidate,TargetKind,DeviceSourceSnapshot, andRunningApplicationResolver. They were nested inPrivateHeaderGeneration, which Core declares.DeviceSourceSnapshot.source()andcatalog(), the target query and resolver, andArtifactPath.DiscoveredTarget.artifactRootis aString, so the catalog does not need Core'sArtifactPath. Its JSON encoding is the same string as before. Core validates the root when it reads the catalog of a device snapshot and when it builds each artifact path under the root.StateError.invalidArtifactPathfrom the existing check incatalog(). Before this change, decoding that catalog stopped the CLI on the precondition inArtifactPath.init(rawValue:)and never reached the check. No test is added for this case, following the decision on Reduce the generation pipeline and CLI to what header generation needs #179 not to harden against a hostile peer.PrivateHeaderKitCoreTests. The discovery tests also exercise Core's resolver, and the iOS and watchOS compile checks build that test target.Package.resolvedchanges only inoriginHash. A plainswift package resolveafter the manifest change also removes theopencombinepin; this PR keeps the reviewed pins.Testing
swift test: all six test bundles pass (493 tests).scripts/build-release.sh --version dev --platform iphoneos --testpasses. The stagedprivateheaderkit-device-helpercontains noPrivateHeaderKitCoreor GRDB symbols.__device-sourceon macOS 27.2.1 before and after this change. Both runs report the same catalog (3,927 groups, 4,482 targets) and the same metadata apart fromproducerVersion.swift package resolvesucceeds with and without--force-resolved-versionsand leavesPackage.resolvedunchanged.🤖 Generated with Claude Code