mud_server.services.policy.utils
Shared utility helpers for policy services.
These helpers are intentionally storage-agnostic primitives used across multiple policy modules. They hold common parsing and guard-rail behavior that should remain consistent across validation, activation, and publish.
Functions
|
Return canonical UTC ISO-8601 timestamp string with |
|
Raise a typed 404 when the target world id does not exist. |
|
Parse |
|
Resolve a positive integer value with strict type and range checks. |
|
Return |
Module Contents
- mud_server.services.policy.utils.now_iso()[source]
Return canonical UTC ISO-8601 timestamp string with
Zsuffix.
- mud_server.services.policy.utils.ensure_world_exists(world_id)[source]
Raise a typed 404 when the target world id does not exist.
- mud_server.services.policy.utils.parse_scope(scope_text)[source]
Parse
world_id[:client_profile]text intoActivationScope.Empty
client_profilealways maps to world-level scope.