Selecting and Varying Behaviour
Strategy as a callable, Template Method and its function alternative, State and finite state machines, and Command with undo and command queues.
Strategy: the callable
Strategy's force survives while its structure dissolves into a callable type, a read-only mapping and a call, which leaves selection, configuration and what a quote records about the rule that priced it.
Template Method and the function alternative
Template Method straddles: the hook structure dissolves into a function that takes hooks, and the inheritance form survives where a family of variants shares state and code across steps.
State and finite state machines
State survives because no feature says which transitions are legal; a read-only table, frozen states with a match ending in assert_never, and a seeded transit model make the lifecycle short and checkable.
Command, undo, and command queues
Command survives where undo needs data a deferred call never kept: frozen amendment values, an inverse computed when the amendment runs, undo and redo stacks and a queue that applies all or nothing.