| 1 |
"""v14 → v15 migrator: identity bump for auto-synth instruction metadata. |
| 2 |
|
| 3 |
Adds additive metadata on ``::instruction::`` sections — ``auto_synth`` |
| 4 |
plus teacher / strategy / timestamp / source provenance. These live in |
| 5 |
body-side magic-comment markers rather than frontmatter, so existing |
| 6 |
v14 documents migrate as pure identity. The schema still advances so |
| 7 |
migration-aware tooling can distinguish docs written before the synth |
| 8 |
loop existed. |
| 9 |
""" |
| 10 |
|
| 11 |
from __future__ import annotations |
| 12 |
|
| 13 |
|
| 14 |
def migrate(raw: dict[str, object]) -> dict[str, object]: |
| 15 |
return dict(raw) |