Create a RailBlocked result from a registered reason code.
Usage in rails: return blocked("COMMAND_NOT_ALLOWED", { command: "/plan", phase: state.phase });
Replaces inline blocked returns: return { kind: "blocked", code: "COMMAND_NOT_ALLOWED", reason: ... };
...
The returned object is structurally compatible with RailBlocked. Recovery steps and quickFix are included for LLM and user guidance.
Optional
Create a RailBlocked result from a registered reason code.
Usage in rails: return blocked("COMMAND_NOT_ALLOWED", { command: "/plan", phase: state.phase });
Replaces inline blocked returns: return { kind: "blocked", code: "COMMAND_NOT_ALLOWED", reason:
...};The returned object is structurally compatible with RailBlocked. Recovery steps and quickFix are included for LLM and user guidance.