Part of epic #173 (Full Unification of GSL Instruction Schema).
Goal
Existing MLflow-registered instruction versions (register_instruction_version in packages/.../optimization/evaluation.py L2222+) are stored in the legacy ALL-CAPS plain-text format (e.g. PURPOSE:\n- ...). After the format change, replaying or loading a legacy version must still work.
Acceptance criteria
Dependencies
- Blocked by: shared
instruction_schema.py module
Part of epic #173 (Full Unification of GSL Instruction Schema).
Goal
Existing MLflow-registered instruction versions (
register_instruction_versioninpackages/.../optimization/evaluation.pyL2222+) are stored in the legacy ALL-CAPS plain-text format (e.g.PURPOSE:\n- ...). After the format change, replaying or loading a legacy version must still work.Acceptance criteria
instruction_schema.normalize_instructions(raw)detects legacy ALL-CAPS on input and normalizes to Markdown## PURPOSEon output_sanitize_plaintext_instructions(optimization/optimizer.pyL5137) delegates tonormalize_instructionsDependencies
instruction_schema.pymodule