Extensions currently load config/DB by importing and calling global functions (e.g., `get_registry()`, constructing their own `PyriteDB`). This is manual dependency injection that:
A plugin context object passed to plugin methods would be cleaner:
```python class PluginContext: db: PyriteDB config: PyriteConfig logger: logging.Logger # etc. ```
This also addresses the hooks-db-access gap (see `hooks-db-access-gap.md`) — hooks could receive context with DB access included.