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
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.