chore(schema): canonical 2.0 layout schema + drift guard#100
Open
beneaze wants to merge 1 commit into
Open
Conversation
Adds the shared JSON Schema for the canonical "2.0" project layout format (schema/optiverse-2.0.schema.json) plus a golden fixture and a test that validates the fixture and pins FILE_FORMAT_VERSION to the schema's version. This is the desktop half of a cross-repo drift guard: the same schema + fixture are validated in optiverse-web's CI, so the desktop app and the web app cannot silently diverge on the interchange format used by the new project import/export. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
schema/optiverse-2.0.schema.jsonfor the canonical2.0project layout format (the desktop save format), plus a golden fixture and a validation test.optiverse-web's CI, so the desktop and web apps cannot silently diverge on the interchange format used by the new web-side project import/export.tests/test_layout_schema.pyvalidates the golden fixture against the schema and assertsFILE_FORMAT_VERSIONmatches the schema's pinnedversion.Notes
jsonschemaas a dev dependency.Test plan
pytest tests/test_layout_schema.py(fixture validates; version pin matches)Made with Cursor