Orchestrator (Fsm module, which already depends on Service): holds a
ServiceRegistry, exposes services() for providers, start_services() to
run lifecycle on_start hooks, and launch<F>(args...) which constructs an
FSM, injects the registry as its context (set_services), starts it, and
supervises it via a type-erased FsmHandle (status/stop). stop_all()
stops every supervised FSM then the services (balanced exactly once
against start_services so the explicit call + destructor don't
double-fire on_stop). FSMs resolve dependencies purely by interface
through the injected registry, so the orchestrator wires graphs of
services + state machines with no concrete coupling.
3 tests: service injection into a launched FSM, launch + supervise +
stop_all with a worker-backed FSM hitting a shared service, and service
start/stop lifecycle ordering. 963 green.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>