-
Notifications
You must be signed in to change notification settings - Fork 0
Add configurable path filtering for checkpoint content #174
Copy link
Copy link
Open
Labels
Description
Summary
Allow users to configure which file paths are included or excluded from checkpoint data via glob patterns in .partio/settings.json.
Why
In large monorepos or repos with generated files, build artifacts, or sensitive directories, checkpoint data can include irrelevant noise. Path filtering lets users control what goes into checkpoints, reducing storage and improving signal-to-noise ratio. This is distinct from secret redaction — it controls which file paths appear in checkpoint data at all.
What to implement
- Add
checkpoint_path_filterconfig field withincludeandexcludeglob arrays - Apply filtering during post-commit checkpoint creation
- Exclude patterns take precedence over include when both match
- Default behavior (no filter) captures all paths as before
- Config validation in
partio doctorfor invalid glob patterns
Example config
{
"checkpoint_path_filter": {
"exclude": ["vendor/**", "node_modules/**", "*.generated.go"],
"include": ["src/**", "internal/**"]
}
}Acceptance criteria
- Excluded paths are omitted from checkpoint data
- Include patterns restrict checkpoints to matching paths only
- Default behavior unchanged
make testandmake lintpass
Source
Inspired by entireio/cli#758 (path filtering and general content filtering).
Reactions are currently unavailable