feat(kathodos): smart path sanitization for canonical storage (#160)#182
Merged
forkwright merged 1 commit intomainfrom Apr 13, 2026
Merged
feat(kathodos): smart path sanitization for canonical storage (#160)#182forkwright merged 1 commit intomainfrom
forkwright merged 1 commit intomainfrom
Conversation
Cross-platform filename sanitization: NFC normalization, reserved char replacement, whitespace collapse, dot trimming, 255-byte truncation with UTF-8 safety. Foundation for canonical import paths. - New sanitize module with sanitize_component and sanitize_path - unicode-normalization added as workspace dep (already transitive) - template.rs updated to use sanitize_component (replaces with - not _) - Pre-existing apotheke clippy violation fixed (bool→i64 infallible conv) Closes #160
2ce2401 to
eeaa5c2
Compare
3 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
sanitizemodule in kathodos withsanitize_componentandsanitize_pathmatching the spec indocs/data/storage-layout.mdunicode-normalization(already a transitive dep; added to workspace + kathodos deps)/ \ : * ? " < > |) replaced with-"unnamed"template.rsupdated to usesanitize_component(replaces with-not_as the old local fn did)apothekeclippy violation fixed (bool-to-i64 using fallible conversion instead of infallibleFrom)Test plan
cargo test -p kathodos— 85 tests pass (20 new in sanitize module)cargo clippy -p kathodos -- -D warnings— cleancargo check --workspace— workspace compilesCloses #160