Skip to content

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

Merged
MaxonT merged 1 commit into
MaxonT:mainfrom
CyberKun:fix/normalize-claim-paths
Nov 18, 2026
Merged

MaxonT merged 1 commit into
MaxonT:mainfrom
CyberKun:fix/normalize-claim-paths

Conversation

@CyberKun

Copy link
Copy Markdown
Collaborator

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.

MaxonT commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution! I'm considering this PR and reviewing how it fits with the other proposed changes.

@MaxonT
MaxonT merged commit bb524c6 into MaxonT:main Nov 18, 2026
6 checks passed
MaxonT added a commit that referenced this pull request Nov 20, 2026
Co-authored-by: MaxonT <173550318+MaxonT@users.noreply.github.com>
Agent: codex
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.

2 participants