docs(standards): align layering docs with the port seam; split runtime vs wiring diagrams
This commit is contained in:
@@ -20,7 +20,7 @@ Plus named infrastructure adaptors:
|
||||
- `progress_bus` — progress/event bus.
|
||||
- `<vendor>_<kind>` — fetchers, clients, stores.
|
||||
|
||||
The API stores the dict on `app.state.resources` during lifespan startup.
|
||||
The API stores the dict on `app.state.db_resources` during lifespan startup.
|
||||
Handlers read from it; nothing imports concrete adapters.
|
||||
|
||||
## Shape
|
||||
@@ -85,5 +85,5 @@ Also expose `get_db()` (raw database handle) and pure helpers such as
|
||||
|
||||
- `init()` is **idempotent**.
|
||||
- The composition root is the only place that imports concrete adapters.
|
||||
- Handlers never call `init()`; they read `request.app.state.resources`.
|
||||
- Handlers never call `init()`; they read `request.app.state.db_resources`.
|
||||
- Scripts call `init()` / `shutdown()` around their work.
|
||||
|
||||
Reference in New Issue
Block a user