Repository navigation
Conversation
Android's application projection fed every non-file occurrence into unavailable_components, so a known ZIP symlink was reported without authenticated content and forced coverage.status to partial. Select file and slice occurrences first, as the Harmony projection already does after morluto#7886, and describe the limitation for files or slices only. Validation: tests/boundary/filesystem/android/application.test.ts (12 checks; the new symlink control fails before this change); tsc --noEmit; oxlint; verify:module-boundaries. Work-by: OpenCode (DeepSeek V4.1 Flash Free)
Android, Harmony and Apple each repeated the rule that only file and slice occurrences carry content. Move it into projectedContentEntries and projectedUnavailableComponents beside projectedFileComponents, so the next projection inherits the same semantics instead of re-deriving them. Validation: mobileApplicationGraphProjection, Android and Harmony boundary suites (46 checks); Apple domain and boundary suites (63 passed, two host EPERM symlink failures); tsc --noEmit; oxlint; verify:module-boundaries. Work-by: OpenCode (DeepSeek V4.1 Flash Free)
Contributor
[Medium impact] The PR appears safe to merge. SummaryThe PR fixes Android’s unavailable-content list by sharing the file-and-slice selection rule across Android, Apple, and Harmony.
No actionable issues or security findings were identified. Tests were not run during this review. The supersession check could not be completed because GitHub access was unauthenticated. Reviews (1) · Last reviewed commit: "refactor: share file and slice selection..." · Reviewed by Greptile |
Contributor
|
TL;DR: I ran the PR's 2 changed test files on Node 22.23.4, 24.22.1 and 26.12.1. They pass on head 4877c3f. With the 4 source files from ec10702 swapped in, 2 tests fail on each Node version.
Not run
Test setupCommandsnpm ci --offline
npm run test:prepare
xvfb-run -a npm run test:focused -- src/domain/mobileApplicationGraphProjection.test.ts tests/boundary/filesystem/android/application.test.ts🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊 |
This branch has not been deployed
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.
Problem
unavailable_componentsin the Android application projection is built fromevery inventoried occurrence, so a ZIP symlink entry — which has no content
bytes by design — is reported as content whose identity could not be
authenticated. A real APK with
assets/current -> assets/v1therefore returnseven though the inventory is complete and every real file was read.
Harmony had the same asymmetry and fixed it in #7886 by selecting
fileandsliceoccurrences first. Android and Apple still encoded that rule inline.Outcome
unavailable_components; it keeps itspath-only identity, as Apple already did.
coverage.statusstayscomplete-within-inventorywhen the inventory iscomplete and no file content is missing.
Approach
projectedContentEntriesandprojectedUnavailableComponentsbesideprojectedFileComponentsinmobileApplicationGraphProjection.ts, so the"content occurrence vs path-only structure" rule has one owner.
kind === "file" || kind === "slice"filter.Evidence
tests/boundary/filesystem/android/application.test.tsbuildsan APK containing a Unix symlink and asserts empty
unavailable_componentsplus
complete-within-inventorycoverage. It fails before this change(1 failed | 11 skipped) and passes after it.
npx vitest run tests/boundary/filesystem/android/application.test.ts— 12/12.npx vitest run src/domain/mobileApplicationGraphProjection.test.ts tests/boundary/filesystem/android/application.test.ts tests/boundary/filesystem/harmony— 46/46.npx vitest run src/domain/apple/appleApplication.test.ts tests/boundary/filesystem/appleApplication.test.ts— 63 passed; the two failures areWindows
EPERMwhen creating symlinks and are unrelated to this change.npm run typecheck,npx oxlinton the touched files, andnpm run verify:module-boundaries(3447 source files) pass.Not run: the CLI/MCP acceptance lanes, because this checkout has no built
dist/.Relates to #7886.