spec: version-mismatch-reject contradicts atomic rollback to old generations #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
`IR.Types.IRVersion` doc: "A version mismatch causes the engine to reject the document and roll back." Spec sells rollback as an atomic symlink flip to any older generation.
Contradiction: gen-41 was written by an older DSL with IR version N-1. After upgrading the engine (which now requires version N), rolling back to gen-41 means re-reading an `intent.json` the engine rejects by policy. Worst case: a bad deploy of gen-42 cannot be rolled back because every prior generation is "version mismatch".
Spec needs a compatibility story:
Also note the IR already de facto uses a second compat mechanism (priority defaults to 100 when absent in FromJSON) — pick one strategy.