What
All sub-packages (routes/, services/, knowledge/, prompts/, models/) have __init__.py files, but src/ itself does not.
Why
The code works via Python 3's implicit namespace packages, but this is fragile: some tools (pytest's --import-mode=importlib, certain IDE inspectors, mypy in strict mode) may fail to resolve from src.config import settings. The scripts/build_index.py and scripts/test_generation.py work around this with sys.path.insert(0, ...), which further confirms the packaging issue.
Scope
Acceptance Criteria
Technical Context
What
All sub-packages (
routes/,services/,knowledge/,prompts/,models/) have__init__.pyfiles, butsrc/itself does not.Why
The code works via Python 3's implicit namespace packages, but this is fragile: some tools (pytest's
--import-mode=importlib, certain IDE inspectors,mypyin strict mode) may fail to resolvefrom src.config import settings. Thescripts/build_index.pyandscripts/test_generation.pywork around this withsys.path.insert(0, ...), which further confirms the packaging issue.Scope
src/__init__.pyAcceptance Criteria
src/__init__.pyexistsfrom src.config import settingswithout workaroundsTechnical Context
src/directory