resolve-source-path-never-raises
IN premise
`resolve_source_path` returns `None` for nonexistent files instead of raising exceptions; callers must check the `None` case.
Summary
This function uses None as its error signal rather than throwing an exception when a file doesn't exist, so any code calling it needs to handle the possibility of getting None back. Forgetting to check for None would cause subtle bugs — the code would keep going with a missing value instead of failing loudly at the point where the file was not found.
Dependents
These beliefs depend on this one:
- source-resolution-is-convention-based-and-fail-safe — Source path resolution follows a convention-based repo-alias/relative-path format and returns None on missing files rather than raising exceptions, providing safe path resolution for the staleness checking pipeline.
Details
| Source | entries/2026/04/29/reasons_lib-check_stale.md |