Repository navigation
fix(apple): select only entries named Assets.car as asset catalogs - #4094
Merged
Merged
Conversation
inspect-asset-catalog selected every bundle entry whose relative path ended in Assets.car, so an unrelated NotAssets.car directory was listed as a skipped catalog and, with no real catalog present, failed the inspection instead of returning the empty inventory; a regular file such as OldAssets.car would have been sent to assetutil. The selector now compares the final path component exactly. Fixes #3914 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. |
Contributor
[Medium impact] The PR appears safe to merge. SummaryCatalog selection now checks the final path component instead of a suffix.
No actionable code or security issues found. Tests were inspected, not run. Local history showed no superseding change; GitHub status and discussions could not be checked because authentication was unavailable. Reviews (1) · Last reviewed commit: "fix(apple): select only entries named As..." · Reviewed by Greptile |
This was referenced Oct 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
Fixes #3914.
inspect-asset-catalogtreated every bundle entry whose relative path ended inAssets.caras a compiled catalog. An unrelatedNotAssets.cardirectory was listed as a skipped catalog. If the app had no realAssets.car, inspection then failed instead of returning the supported empty inventory. Only entries named exactlyAssets.carare catalogs now.Problem and expected behavior
collectAssetCatalogs(src/artifacts/apple/AppleAssetCatalogAnalysis.ts) filtered withentry.path.endsWith("Assets.car"). A suffix match also accepts:Contents/Resources/NotAssets.car, which is recorded as uninspected and, with no catalog present, makes inspection throwArtifactReaderFailure("path", …);OldAssets.car, which would be sent toassetutilas a catalog.Reproduced with the issue's fixture: an inert
/usr/bin/truecopy as the executable, anInfo.plist, and an emptyNotAssets.cardirectory.NotAssets.cardirectoryartifact_operation_failed:Asset catalog entries are not regular files and were not inspected: Contents/Resources/NotAssets.car (directory), 564 bytescatalogs: [],total_records: 0, no-catalog limitation, 2,169 bytesThe 7-byte difference between the two passing outputs is the longer fixture path in the subject.
Change and scope
/-separated path component is exactlyAssets.car.DirectoryArtifactReaderalways reports/-joined relative paths.Assets.carare still disclosed and still block an absence claim;Contract and boundary impact
Semantic owner and earliest changed stage: asset catalog entry selection in
collectAssetCatalogs.Contribution scope fit and linked maintainer decision: a bug fix within the existing static, read-only boundary; not applicable.
CLI and MCP/tool-catalog contract: schemas unchanged.
Provider, bridge, target-format, or platform compatibility: macOS
assetutilpath only.Evidence, artifact, provenance, or reconstruction contract: an app with no catalog now reports the documented empty inventory instead of a false skipped catalog.
Target selection, authority, upstream behavior, and cleanup details:
assetutilno longer runs on files that are not namedAssets.car.Generated metadata, package, or installation impact: none.
Read existing files or captured data.
Evidence and regression coverage
src/artifacts/apple/AppleAssetCatalogAnalysis.test.ts. The "app without compiled catalogs" case now also contains aNotAssets.cardirectory and anOldAssets.carfile. It still asserts the empty inventory and thatassetutilnever runs. The case fails on main (1 failed / 9 passed) and passes with the fix./Applications/KeepingYouAwake.app, which has two realAssets.carcatalogs (61 records). Median of 3 CLI runs:8b6dd01b6e8eea3d8b6dd01b6e8eea3dReal catalogs are selected identically, and timing is unchanged within noise.
Validation performed
npx vitest run src/artifacts/apple/AppleAssetCatalogAnalysis.test.ts— 10 passed; against main, 1 failed as expected.npx vitest run src/artifacts/apple src/domain/apple/appleAssetCatalog.test.ts tests/boundary/filesystem/nativeArtifactGoldens.test.ts tests/acceptance/applications/assetCatalogResourceKeys.test.ts— 9 files, 89 passed.npm run check:fast— passed.Compatibility, safety, and release
assetutil.assetutilis no longer launched on unrelated*Assets.carfiles.Author readiness
Human owner:
Before merge
type(scope): outcome.🤖 Generated with Claude Code