Skip to content

fix: normalize file paths in claim overlap checks - #38

Open
CyberKun wants to merge 1 commit into
MaxonT:mainfrom
CyberKun:fix/normalize-claim-paths
Open

CyberKun wants to merge 1 commit into
MaxonT:mainfrom
CyberKun:fix/normalize-claim-paths

Conversation

@CyberKun

Copy link
Copy Markdown

Normalize project-relative file claims before storing them and when comparing both old and new claims. ./src/a.py and src/../src/a.py now overlap src/a.py; directory checks use path prefixes rather than arbitrary substrings. Root claims overlap the whole project.

Addresses #32. This implements lexical normalization only. Case sensitivity stays unchanged: detecting a case-insensitive filesystem, resolving symlinks and reconciling absolute versus relative paths are not part of this change.

Added regression cases for equivalent spellings, directory boundaries, different agents/projects, normalized persistence and legacy saved claims.

Validation: privacy scan (tree, wheel and history) passed with 0 hits; Python compilation passed. The two pure path regression tests passed in isolation. The full collaboration suite could not import on Windows because the project requires Unix fcntl; Linux/macOS CI is still needed for the integration test and full suite.

AI assistance was used to implement and check this change.

This branch has not been deployed

No deployments
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