Repository navigation
feat(native): support ReFS filesystem authority - #10086
Merged
Merged
Conversation
QianNangong
marked this pull request as ready for review
November 11, 2026 09:48
Codex Review Summary: ✅ CompletedThis 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: c2a4d263ae
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
3 tasks done
8 tasks
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
Add fixed local ReFS support to REA's Windows native filesystem authority while preserving the existing NTFS behavior and fail-closed security boundaries. This follows the additional-filesystem direction in #289.
Problem and expected behavior
A ReFS target was rejected before Ghidra started with:
The rejection occurred even when ReFS reported
FILE_PERSISTENT_ACLSand the target DACL was readable. The combined condition made an NTFS-only allowlist look like an ACL capability failure.Expected behavior: fixed local NTFS and ReFS volumes are admitted only when they report persistent ACL support and satisfy the existing handle, DACL, identity, snapshot and cleanup requirements. Every other filesystem continues to fail closed.
Change and scope
openFileto accept NTFS or ReFS withFILE_PERSISTENT_ACLS, with distinct errors for an unsupported filesystem and missing persistent ACL support.File/Runtimeowners and propagate it through open, native inspection, runtime creation/open, Cutter verification, and snapshot source/destination identities.NTFSandReFSinwindowsFileIdentitySchema; unknown values remain invalid.Contract and boundary impact
openFileand theFile/Runtimeowners now preserve the observed filesystem. TypeScript identity validation, native inspection, runtime snapshots and Ghidra diagnostics consume that value. No producer is superseded.filesystemobservations now report their actual NTFS or ReFS value, with snapshot source and destination evaluated separately. No new Evidence field is introduced.Expected effects:
Process launches are the existing verifier/Ghidra/Java workers. Native verification creates and removes private files and DACLs. Network contact is limited to the existing authenticated IPv4 loopback bridge; no external service is introduced.
Evidence and regression coverage
node scripts/rea.mjs analyze D:\项目\逆向分析\魔塔\TSW.execompleted on ReFS with 9 segments, 2079 procedures and 1413 strings, rather than failing snapshot admission.For boundary fixes, identify the applicable boundary and lifecycle regressions covered by the evidence above, and explain relevant gaps.
The evidence covers path-admission, stable identity, snapshot digest, source replacement, reparse conversion, cancellation, failed-close retention/retry and cleanup containment on both filesystems and in both cross-volume directions.
Validation performed
CI repair (
41c1c8a5bb): merged main at047d75a498to include the lifecycle ownership/fixture repair from fix(ci): restore lifecycle ownership coverage #10147 and corrected the ReFS plan link to the repository-owned Windows native guide. On macOS with Node 24.22.1, all 149 tests in the four previously failing lifecycle files and three Windows loader/Ghidra contract files passed;npm run docs:check(including 9 README tests),npm run verify:docs:routes, andnpm run check:fastpassed. Hosted Linux/Windows CI is pending; no new real Windows/ReFS verification was performed.Documentation review follow-up (
b6e95cdd78): website translation and full website checks passed; all 23 active catalog source messages and 19 completed translations declare NTFS/ReFS.npm run docs:check(9 README consistency tests) and pre-pushcheck:fastpassed. No new real-Windows runtime verification for this documentation-only follow-up.Focused loader/provider/doctor tests — 49/49 passed.
npm run checkon WSL — 6/6 tasks passed, including format, typecheck, lint, knip and metadata; architecture guards passed.npm run docs:check— passed.npm run verify:test-discovery— 3386 test files discovered exactly once.npm run verify:windows-native:artifact— passed for the WSL MinGW-built Windows x64 artifact.Full
verify-windows-nativeon ReFS and NTFS — all existing controls passed, plus independent volume identities and both cross-volume snapshot directions.verify-windows-native-inspectionon ReFS and NTFS — controlled rollback, retained ownership, recovery and cleanup passed.verify:ghidra:windowson ReFS and NTFS — all 26 non-mutating operations, byte mappings, references and complete cleanup passed withwindows-x64-local-ntfs-refs-only.verify:packageon WSL — passed.verify:package:windows— passed with 254 tools and packaged MCP/CLI checks.npm pack --dry-run— completed; the generated native manifest and addon are included.Source CLI analysis of the original ReFS target — completed successfully and removed owned runtime paths.
Compatibility, safety, and release
Maintainer review follow-up
Integrated main and fixed the remaining NTFS-only declarations in the authored Windows setup page, architecture admission diagram, and all 23 locale catalogs. Locale wording is unchanged apart from the filesystem name; superseded catalog entries remain available as translation memory.
Validation on macOS: 49 focused Windows loader/Ghidra doctor/capability tests passed;
npm run check:fast,npm run docs:check(including 9 README consistency tests), website translation validation, and the full website check passed. The changed HTML also passes formatting. Source review found no additional native ownership or snapshot-boundary defect. These checks do not independently establish Windows or ReFS behavior; the real-provider evidence above is the author's Windows verification.The PR remains unmerged pending the maintainer's final scope and verification decision.
Author readiness
Human owner: @QianNangong
Before merge
type(scope): outcome.