Files
2026-05-20 17:42:01 -06:00

441 B

Drill: extract-policy

Goal

Move one mixed rule out of orchestration code into a pure decision.

Prompt

Find logic in code/ that mixes decision-making with mechanics. Extract the decision into a pure function or policy with explicit inputs and outputs.

Success conditions

  • The decision is separated from mechanics
  • Inputs and outputs are explicit
  • You can describe the command, event, and workflow role of the affected code