Skip to content

fix(knowledge): validate synthesis_schema source paths on load — warn on missing (#4695)#4714

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4695
Apr 15, 2026
Merged

fix(knowledge): validate synthesis_schema source paths on load — warn on missing (#4695)#4714
mrveiss merged 1 commit intoDev_new_guifrom
issue-4695

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 15, 2026

Closes #4695

Summary

  • load_synthesis_schema() and _parse_collection() now accept optional repo_root parameter (defaults to repo root via __file__)
  • After parsing each collection, iterates config.paths and emits logger.warning(...) for any path that doesn't exist
  • Schema still loads — no exception raised, just warnings so operators see the problem immediately
  • 3 new tests covering: valid path emits no warning, single missing path emits 1 warning, mixed list emits correct count

Tests

  • 12 tests passed (9 pre-existing + 3 new)

🤖 Generated with Claude Code

…warning for missing paths (#4695)

After parsing each collection, warn (do not raise) for any declared path
that does not exist relative to the repo root.  Adds repo_root param to
load_synthesis_schema() (defaults to __file__-relative root) and threads
it through _parse_collection().  Adds 3 tests: existing path → no warning,
missing path → warning, mixed list → one warning per missing path.
@mrveiss mrveiss merged commit b685775 into Dev_new_gui Apr 15, 2026
3 of 4 checks passed
@mrveiss mrveiss deleted the issue-4695 branch April 15, 2026 17:16
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

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