## Lesson — Define state machine for lifecycle flags

**Tags:** state-management, logic
**Scope:** .claude/skills/preflight/SKILL.md

State flags should only be consumed when a gate produces an actionable answer that will not change on the next query to prevent logic errors in complex gates.
