Fsm.hpp had grown to ~1200 lines holding everything. Split it behind the
same <Void/Fsm/Fsm.hpp> umbrella (which now just includes Machine.hpp), with
no behaviour change:
- Machine.hpp — the Machine<Derived,ResultT> template: States list, nested
State/Reactive bases, lifecycle, events, nesting, persistence.
- Detail/Reactive.hpp — the declarative transition DSL lifted to standalone
templates (TransitionTable/EventEntry/EventClause/AfterClause/
TransitionBuilder parameterised by Derived/ResultT); Machine::Reactive
aliases TransitionTable/TransitionBuilder.
- Detail/Awaiter.hpp — one EventAwaiter built on
ExecutionContext::{try_take_any,set_waiter}; the four near-identical inline
awaiters (await_event / await_event_for / await_any / await_any_event)
collapse to make_event_awaiter wrappers with per-call projections.
- Detail/Introspect.hpp — namespace-scope StateInfo/EdgeInfo + free
to_mermaid(span<StateInfo>); describe() returns the shared structs,
to_mermaid() delegates.
- Detail/TypeName.hpp — shared Detail::type_name<T>() (P2996 identifier_of,
typeid fallback), replacing the per-class state_type_name helper.
982 green, ASan clean, -Werror Fsm build clean. No test changes needed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>