planState() serves the /plan command, prompt assembly, the tool admission predicate, and the service methods, so its readiness failure is PlanModeError PLAN_STATE_UNAVAILABLE instead of the tool-only ToolContextUnavailableError. The code set is a literal union documented in place rather than a link to a module-local array. Refs #7869