Repository navigation
fix(rsi): preserve exact inode identity in asset quota scans - #194
Merged
Merged
Conversation
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.
Windows NTFS file IDs can exceed Number precision. Distinct directory and file IDs then collapse to one identity, causing ordinary RSI assets to be rejected as asset_symlink_cycle (and hard-link accounting to alias unrelated objects).
Use BigInt lstat identities inside diskUsage while preserving the existing public Number byte totals. Cycle, symlink escape, quota, scan-limit and hard-link deduplication rules stay in place. The existing RSI assets probe now includes deterministic adjacent high IDs and a real hard link; it fails before the fix and passes afterward.
Validation: standard npm run build and npm run check passed on Windows; the new exact-inode/hard-link regression passed on Windows; the complete scripts/verify/rsi-assets.mjs probe passed on Linux, including cycle/escape/quota and recovery assertions. The older full asset probe has separate Windows dangling-link cleanup/error-classification incompatibilities, so its Linux pass is not presented as a Windows full-probe pass.
No public SDK API or serialized byte format changes. No version tag or release is created.