mud_server.axis.migration_file_loader
Migration file-backed resolution grammar loader.
This module is intentionally outside the canonical runtime contract.
Use cases:
1. Migration/testing workflows that still validate YAML grammar fixtures.
2. Transitional tooling that reads policies/axis/resolution.yaml from disk.
Non-goals: 1. Runtime policy resolution for world startup. Canonical runtime reads
activated DB policy payloads and parses them via
mud_server.axis.grammar.parse_resolution_grammar_payload.
Functions
|
Load and validate a migration file-backed resolution grammar payload. |
Module Contents
- mud_server.axis.migration_file_loader.load_resolution_grammar(world_root)[source]
Load and validate a migration file-backed resolution grammar payload.
- Parameters:
world_root (pathlib.Path) – World package root. The loader expects the grammar file at
<world_root>/policies/axis/resolution.yaml.- Returns:
Parsed immutable
ResolutionGrammar.- Raises:
FileNotFoundError – If the expected file path does not exist.
ValueError – If YAML content is invalid for the grammar schema.
- Return type: