Optionalwarn: ReasonWarningSinkRegister a blocked reason. Duplicate codes and frozen registries fail fast.
Look up a reason by code. Returns undefined if not registered.
Prevent further registration after the registry has been initialized.
Format a blocked reason with variable interpolation.
Returns a structured result ready for RailBlocked construction. Unknown codes are marked explicitly so they cannot be confused with catalog-backed governance messages.
Optionalvars: Record<string, string>All registered codes.
Blocked reason registry.
Central catalog of all known blocked/error codes. Pre-seeded with built-in codes and frozen after initialization.