Skip to content

Validate snapshot schema version on read#18

Merged
askmy-stack merged 1 commit into
mainfrom
feat/snapshot-version-validation
Jul 11, 2026
Merged

Validate snapshot schema version on read#18
askmy-stack merged 1 commit into
mainfrom
feat/snapshot-version-validation

Conversation

@askmy-stack

Copy link
Copy Markdown
Owner

Summary

  • Reject unsupported tool_semantics_version values in read_snapshot with an actionable upgrade message
  • Keep version 0.1 working; add accept/reject unit tests
  • Also validate outputSchema is an object when present during capture

Fixes #7

Test plan

  • pytest
  • ruff / mypy

Made with Cursor

Reject unsupported tool_semantics_version values with an upgrade hint so future snapshot formats fail loudly instead of silently mis-parsing.

Co-authored-by: Cursor <cursoragent@cursor.com>
@askmy-stack askmy-stack self-assigned this Jul 11, 2026
@askmy-stack
askmy-stack merged commit fbc1725 into main Jul 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate snapshot schema version on read

1 participant