refactor: enforce canonical backend imports

This commit is contained in:
leefer
2026-08-02 00:10:43 +08:00
parent 159a9a6a8b
commit 2ef31f6115
8 changed files with 83 additions and 13 deletions
+5 -1
View File
@@ -55,7 +55,11 @@ background scheduler
Root modules such as `screener.py`, `tushare_client.py`, and `mentor_agent.py` are compatibility
aliases to canonical modules. They contain no second implementation and remain only because
the original public import surface is part of the preservation contract.
the original public import surface is part of the preservation contract. Canonical backend
modules must import other canonical modules directly rather than routing through these aliases.
The remaining `api_access` import in `backend/application.py` and preserved lazy
`sentiment_engine` import in the screener repository are registered transition boundaries;
the root `database.py` remains the documented schema/composition anchor.
## Non-negotiable maintenance rules