Skip to content

fix(target): recognize binary plists by magic under any extension - #2133

Merged
morluto merged 2 commits into
mainfrom
fix/issue-2129
Oct 12, 2026
Merged

morluto merged 2 commits into
mainfrom
fix/issue-2129

Conversation

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

Summary

Target resolution admitted a property list only when its name ended in .plist. Keyed archives under other names were rejected as unsupported binary format before any plist tool ran. Example: TextStylePreviewCache.archive in iMovie's TextFramework, which file reports as "Apple binary property list". detectArtifactFormat already reads the first 8 bytes; it now classifies bplist00 as plist, as the artifact inventory's classifyArtifactBytes does.

Fixes #2129

Before / after

$ rea inspect-keyed-archive …/TextFramework.framework/Versions/A/Resources/TextStylePreviewCache.archive --format json
before: {"code":"target_unavailable","message":"Cannot open artifact: unsupported binary format.", …}
after:  Evidence with subject.format "plist" and the archive's roots/objects/references

A binary plist converted to x.data now gets the same inspect-plist result as the same bytes named x.plist. Only the bplist00 magic is used. XML plists still need the .plist name, because an XML prefix alone does not identify a plist.

Validation

  • New boundary test classifies a binary plist by its magic under any extension (tests/boundary/filesystem/binaryTarget.test.ts). It fails on main and passes with this change; all 48 tests in the file pass.
  • npm run lint passes.
  • npm test: 9150 passed, 15 failed in 8 files. These are the same 8 files and 15 tests that fail on clean origin/main c22111e on this host. Most are environmental (no Hopper, Command Line Tools only, hdiutil, inspector target locations). promptCompletion.test.ts is the main regression tracked in [Bug] Main CI fails prompt completion checks since 07b36c148 #2123.

🤖 Generated with Claude Code

Target resolution admitted a property list only when its name ended in
.plist, so keyed archives with other extensions (for example .archive)
were rejected as an unsupported binary format before any plist tool ran.
Classify bplist00 bytes as a plist, as the artifact inventory already does.

Fixes #2129

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-12T10:40:02.546977Z 7346e82 New commits
ℹ️ 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.

@morluto
morluto merged commit 672bdea into main Oct 12, 2026
31 checks passed
@morluto
morluto deleted the fix/issue-2129 branch October 12, 2026 11:09
@github-actions github-actions Bot mentioned this pull request Oct 12, 2026
3 tasks done
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Binary plists are rejected as targets unless the file name ends in .plist

2 participants