Build PrivateHeaderKit rewrite foundation#30
Draft
lynnswap wants to merge 49 commits into
Draft
Conversation
Add rewrite requirements, core generation skeleton, source discovery, state/resume contracts, target resolution, and managed artifact cleanup foundations.
This was referenced Jun 18, 2026
Add simulator generation support
Honor numeric simulator runtime bounds
Serialize generation state updates
…codex/use-upstream-swift-events
Adapt raw dump to upstream Swift index events
0e2319e to
5ab9361
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.
Purpose
codex/rewrite-final-base, which was created frommainatdc744389e9e2c03c4d647491ec06aafc9a9a3d57.privateheaderkitcommand and a Core-owned, resume-safe generation pipeline.Changes
PrivateHeaderKitCore: source labels, output/state layout, target discovery/resolution, resume decisions, manifest/run JSON, managed artifact cleanup, run locking, and raw-dump invocation contracts.privateheaderkitthe primary user-facing entry point. Running it without arguments starts interactive generation; automation passes generation flags directly toprivateheaderkitwithout a publicgeneratesubcommand.installas a hidden/bootstrap path forswift run -c release privateheaderkit install; it is not listed as a normal installed command choice.privateheaderkitcommand. Old command names are intentionally rejected, and low-level extraction is hidden behindprivateheaderkit __raw-dump.privateheaderkit-sim-helper, installed underlibexec, withsimctl spawnexecution and runtime/device resolution.PrivateHeaderKitRawDumpCore/PrivateHeaderKitRawDumpRuntimeObjCmodules, removing legacy public dump targets and stale orchestration code.SwiftIndexEventsand switch Mach-O dependencies back to upstream MxIris sources where possible, including direct upstreamMachOSwiftSection.Docs/RewriteRequirements.mdafter applying the rewrite decisions.Testing
swift test --force-resolved-versionsgit diff --checkswift run -c release privateheaderkit installprivateheaderkit --helpprintf '14\n\n' | privateheaderkitto verify the interactive flow shows the default output directory without asking for an output pathNotes
codex-reviewis intentionally held until requested by the user.