Files
zhixing-system/zhixing-server/src/zhixing_server/modules
yuxuanhui 7e0f13d678 feat(selection): expose run sector aggregates and sector filter on results API
- 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
2026-09-05 19:48:30 +08:00
..

Bounded contexts

Create a module here only after its domain language and ownership boundary are understood:

<bounded_context>/
├── domain/          # Entities, value objects, domain services, ports
├── application/     # Use cases and orchestration
├── infrastructure/  # Adapters for storage and external systems
└── presentation/    # HTTP or message-driven delivery adapters

The domain layer must not import FastAPI, persistence clients, or infrastructure adapters.