Repository navigation
Conversation
Collaborator
Author
|
@codex review |
6 tasks done
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 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
Attach expanded ASAR members to their actual archive occurrence, preserving the archive's file kind and byte-derived identity.
No tracking issue: found during real nested-ASAR inventory testing; no matching dedicated issue or PR was found.
Problem and expected behavior
Inventorying a filesystem application containing
resources/app.asar/main.jspreviously attachedmain.jsand the archive's top-level directories toresources. The expanded ASAR had no child edges. Opening the same ASAR directly produced the correct hierarchy.The nearest-parent helper accepted directories only, while expanded archives correctly retain
entry_kind: "file". This affected occurrence parents, containment edges, enclosing virtual-directory identities, and the parent artifact identified by record-and-continue integrity evidence.Change and scope
Track the occurrence IDs of containers whose nested reader is actually entered, and admit those IDs alongside real directories when resolving nearest parents against the completed index.
Archive occurrences remain files with byte-derived artifact IDs. A filename, node kind, or format alone does not make an opaque archive a parent. No additional container formats or recursive expansion behavior is introduced.
Built on the now-merged #578 completed-index parent pass. #580 relative-directory hash behavior is retained. No JavaScript resolver/container regression is claimed: that workflow independently preserves the reader's container digest.
Contract and boundary impact
Evidence and regression coverage
Eight real boundary tests cover:
.asar, both filesystem and ZIP.On unchanged baseline
f73bb0f, the two defect regressions fail and six controls pass. The fixed combined matrix passes 42/42 (new containment, ASAR freshness, ZIP parenting, relative-directory identity, and JavaScript reconstruction tests).Executed the built CLI and a real stdio MCP client on an application-bundle fixture: both return
Contents/Resources/app.asar/main.js → Contents/Resources/app.asarand the corresponding corrected containment relationships. Native-addon loading was explicitly blocked during these probes; this does not claim native macOS/provider execution.Independent review found no blocking issues. Additional cancellation-after-hash, rescan, malformed-scan isolation, occurrence-rekey, and corrupted-evidence probes passed.
Validation performed
28e0f4e, including fix(artifacts): resolve parents after archive enumeration #578/fix(artifacts): retain relative paths in directory identities #580, upstream setup-fixture corrections, and fix(artifacts): preserve archive entry types and host paths #581’s ASAR host-path refinements.npm run check:pr: static checks passed; 1,931 tests passed, 1 skipped, 40 failed in seven native bridge/lease suites due to this sandbox's Unix-domain socketlisten EPERM. Those unchanged native suites reproduce 40 failures / 22 passes on the base implementation. This is not a full local test-suite pass.npm run docs:check: passed separately because native test failures short-circuit that step.npm run check:ci: passed.npm_config_cache=/tmp/rea-npm-cache npm run verify:package: fails at the unrelated setup-verifier assertionpackaged setup did not reject an unsupported hoston this Debian host. Reproduced identically on untouched baselinef73bb0f; fix(artifacts): preserve archive entry types and host paths #581 does not change that verifier or setup classification. Packaged artifact checks before that assertion and direct built CLI/MCP probes ran, but this is not a full package-verifier pass. The setup-verifier classification issue is being handled separately.npm pack --dry-run --cache /tmp/rea-npm-cache: passed.git diff --check: passed.Compatibility, safety, and release
No public schema, dependency, or release-metadata changes. Corrected containment changes affected virtual-directory/root IDs and graph commitments; archive and member content digests are unchanged.
Real Hopper/Ghidra and native Windows/macOS execution were not run locally. No bulk extraction, extension-based parent eligibility, path-validation relaxation, or unrelated cleanup.
Review checklist