Skip to content

fix(rsi): preserve exact inode identity in asset quota scans - #194

Merged
1-ztc merged 1 commit into
mainfrom
feat/windows-rsi-inode-identity
Nov 24, 2026
Merged

1-ztc merged 1 commit into
mainfrom
feat/windows-rsi-inode-identity

Conversation

@1-ztc

@1-ztc 1-ztc commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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.

@1-ztc
1-ztc merged commit 571efa4 into main Nov 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant