Task: Implement a simple in-process Service Registry in /app/wired.py
What to implement
Create a Python module at /app/wired.py (or as a package /app/wired/) that provides a minimal, in-memory service registry used by the test bootstrapper.
Optional convenience method that returns a service or a default value if missing.
Behavior and constraints
The registry should be a lightweight, dependency-agnostic container with no side effects on import.
It must be usable by the existing test bootstrap (app_bootstrap) to store and retrieve services.
The class should be importable as wired.ServiceRegistry (i.e., from wired import ServiceRegistry).
Context for use
Tests will call:
from wired import ServiceRegistry
r: ServiceRegistry = app_bootstrap(settings)
sample_interactions(registry) will use the registry to obtain needed services.
The implementation should be compatible with typical usage in a bootstrapper, where services are registered during bootstrap and later retrieved by name.
Notes
Place the implementation in /app/wired.py (or as /app/wired/init.py if you prefer a package).
Include type hints and a brief module/class docstring to explain the purpose.
Do not modify tests or external interfaces beyond providing this module.