Workflow architecture patterns: modularization, state management, quality tiers, and pipeline composition.