Skip to content

feat: wire path validation into file loaders (Item 7) - #68

Merged
mingjerli merged 4 commits into
mainfrom
feat/wire-path-validation
Jul 22, 2026
Merged

feat: wire path validation into file loaders (Item 7)#68
mingjerli merged 4 commits into
mainfrom
feat/wire-path-validation

Conversation

@mingjerli

Copy link
Copy Markdown
Owner

Stacked on #67. Wires the existing PathValidator into Pipeline.from_sql_files / from_json_file (via pipeline_factory.py), with TOCTOU-safe per-file reads for SQL loading.

BREAKING: strict-by-default — rejects symlinked paths, directory-traversal glob patterns, and non-.sql/.json extensions. allow_symlinks=True opts back into following symlinks. Version bumped 0.0.3 → 0.0.4; CHANGELOG updated.

Tests are pinned to validator-specific error messages so they fail if the wiring is reverted (7 new integration tests via the public Pipeline API). Full suite: 1540 passed / 70 skipped / 2 xfailed.

Design: plans/clgraph-items-7-10-wiring-design.md

@mingjerli
mingjerli force-pushed the feat/wire-path-validation branch from 1a40e75 to e8e685c Compare July 22, 2026 12:36
@mingjerli
mingjerli changed the base branch from refactor/query-parser-decomposition to main July 22, 2026 12:36
@mingjerli
mingjerli merged commit fb69448 into main Jul 22, 2026
9 checks passed
@mingjerli
mingjerli deleted the feat/wire-path-validation branch July 22, 2026 15:21
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