Skip to content

Remove Core options that no command sets - #191

Merged
lynnswap merged 1 commit into
mainfrom
refactor/unused-core-options
Nov 19, 2026
Merged

lynnswap merged 1 commit into
mainfrom
refactor/unused-core-options

Conversation

@lynnswap

Copy link
Copy Markdown
Owner

Summary

Removes PrivateHeaderKitCore options that no command sets. Their default values become the only behavior, so command-line behavior does not change.

Details

  • Removed: the Layout enum and Options.layout, RawDumping.Options.skipExisting and verbose, TargetRequest.frameworks and system, Options.includeNestedChildren together with the parameter it passed through target discovery, and Plan.target.
  • The plan fingerprint no longer includes the four removed inputs. A resume across this change is rejected as incompatible. Releases already change the fingerprint through the build version; the case that is new is a checkout build that pins PRIVATEHEADERKIT_BUILD_VERSION to the same value before and after.
  • TargetRequest.identifiers and Result.generatedTargets are also unused by the CLI, but tests select targets and observe results through them. They stay until the CLI restructuring in Restructure the CLI into command types and remove unused Core options #183 gives tests another seam.

Testing

  • swift test: all six test bundles pass.
  • A Foundation dump on macOS 27.2.1 is identical to the output before this change (1,023 files).
  • Local Codex review: one finding, the fingerprint change described above, left as is.

🤖 Generated with Claude Code

The bundle layout, the skipExisting and verbose raw-dump options, the
frameworks and system target requests, the switch that disables nested
children, and Plan.target had no caller outside tests. Their defaults are now
the only behavior.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T17:06:49.720489Z d220d75 PR opened
🔒 Security Review ✅ Completed 2026-11-19T17:08:05.188914Z d220d75 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lynnswap
lynnswap merged commit a247507 into main Nov 19, 2026
7 checks passed
@lynnswap
lynnswap deleted the refactor/unused-core-options branch November 19, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant