Repository navigation
fix(apple): pair bridge hypotheses within one application root - #931
Conversation
A ZIP or DMG holding two applications produced bridge candidates from scripts in one app to native code in the other. Candidates now pair only components owned by the same application root; components outside every root pair only with each other. A versioned framework with several real version directories now keeps its Info.plist unknown even when only one version has a plist, because Versions/Current, which is not inventoried, decides which applies. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9226ade511
ℹ️ 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".
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".
| const directories = contentDirectories(bundle, layout, tree); | ||
| // With several real versions, Versions/Current (a symlink outside the | ||
| // inventory) decides which plist applies, so the plist stays unknown. | ||
| if (directories.length !== 1) return null; |
There was a problem hiding this comment.
Count only actual directories as framework versions
When Versions/ contains an ordinary file such as .DS_Store or README alongside the sole real version A, contentDirectories() includes that file because Tree.children stores every child name without its entry kind. This new cardinality check therefore returns null for a valid Versions/A/Resources/Info.plist and emits a misleading multiple-version limitation. Retain or infer the child kind and exclude direct files and symlinks before counting real version directories.
AGENTS.md reference: AGENTS.md:L54-L56
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed. In 2e81e86, the anatomy tree records which paths are directories, either observed as directory entries or implied by a deeper path. Framework versions are counted only among those, so Versions/.DS_Store and the Current symlink no longer make a single-version framework ambiguous. A regression test covers .DS_Store beside Versions/A.
A file such as Versions/.DS_Store beside the only real version made the framework look multi-versioned, so its Info.plist became unknown with a misleading limitation. Version directories are now limited to entries observed as directories or implied by deeper paths. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e81e867b2
ℹ️ 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".
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".
| const directories = contentDirectories(bundle, layout, tree); | ||
| // With several real versions, Versions/Current (a symlink outside the | ||
| // inventory) decides which plist applies, so the plist stays unknown. | ||
| if (directories.length !== 1) return null; |
There was a problem hiding this comment.
Document multi-directory plist selection
When a framework has Versions/A/Resources/Info.plist and a second real Versions/B directory without a plist, this condition now returns null because there are two version directories. However, docs/apple-application-analysis.md lines 99–101 still says info_plist_path is null only when there are zero or several plist files; this scenario has exactly one. Update the guide to describe the new directory-based ambiguity so the documented result contract matches the projection.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed. In 6d74992, the guide now says info_plist_path is null when the framework has more than one real Versions/<version>/ directory, even if only one of them holds a plist, because Versions/Current decides which applies. It is also null when the single version directory has no Resources/Info.plist. This matches the projection and the limitation text.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(apple): pair bridge hypotheses within one application root
Follow-up to #922. It merged before these two review fixes were pushed. They answer the Codex comments r4205864180 and r4205864189.
Summary
SwiftSupport/, pair only with each other.Versions/<v>/directories but only one containedResources/Info.plist, that plist was chosen.Versions/Currentdecides which version applies and is not inventoried. With several real versions,info_plist_pathnow staysnull, and the limitation explains why.Contract and boundary impact
Evidence and regression coverage
src/domain/appleApplication.test.tsgains two cases, each failing onmain:First.appandSecond.app, where only same-root pairs remain;Validation performed
npm run test:focused -- src/domain/appleApplication.test.ts tests/composition/analysis-sessions/appleApplication.test.ts tests/boundary/mcp/mobileApplicationGraphMcp.test.ts: 18 passed.npm run check:changed: passed.npm run docs:generate: no changes.npm run verify:macos-bundle(before rebasing ontomain): passed.Compatibility, safety, and release
🤖 Generated with Claude Code