7e0f13d678
- sector_radar: add batch sector-count aggregation and sector member lookup
over the strict last-good membership snapshot (postgres + in-memory fakes)
- selection: add SelectionSectorReader port, list_sector_counts use case,
and sector_stock_codes filtering via run identity resolution; queries stay
inside the selection context per ADR 0001
- http: add GET /api/v1/selection/sectors and forward sector param on
/results and /runs/{run_id}
- fix stale positional args in pattern-scoring run tests; cover new behavior
with read-service, application, and HTTP contract tests
Zhixing Server
FastAPI 后端使用 Python 3.12 与 uv。业务代码按限界上下文组织;只有真实业务需求明确后才在 src/zhixing_server/modules/ 下新增上下文。
uv sync
uv run uvicorn zhixing_server.main:app --reload
uv run pytest
uv run ruff format --check .
uv run ruff check .
uv run pyright