Discovery fails: FileNotFoundError on /app/config/notion.yaml #25
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/peregrine#25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Report
Summary
Running discovery produces an immediate failure:
Steps to Reproduce
Expected Behavior
Discovery should run normally. If Notion integration is not configured, it should skip gracefully — not crash.
Actual Behavior
Discovery aborts entirely because
notion.yamldoes not exist.Root Cause (likely)
Code is doing an unconditional open/read of
/app/config/notion.yamlbefore checking whether the Notion integration is enabled. The file is optional (Notion is an optional integration) so its absence should be handled with atry/except FileNotFoundErroror an existence check, and the integration should be skipped if the file is missing.Fix Direction
notion.yamlload with existence check or try/exceptPriority
High — discovery is completely broken when Notion config file is absent (default state for most users)
Fix
Fixed in
scripts/discover.py—load_config()now returnsNonefornotion_cfgwhen the file is absent;run_discovery()only raises ifnotion_push=Trueand the file is missing. Also hardenedscripts/sync.py,scripts/match.py, andscripts/llm_router.pywith the same pattern (clearFileNotFoundErrormessages pointing to.exampletemplates for each). Docker image rebuilt and redeployed.