Skip to content

comparison: schema_versions without the 1.x safeguards#73

Closed
effron wants to merge 2 commits into
mainfrom
schema-versions-no-safeguards
Closed

comparison: schema_versions without the 1.x safeguards#73
effron wants to merge 2 commits into
mainfrom
schema-versions-no-safeguards

Conversation

@effron

@effron effron commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Comparison artifact for #71 -- not for merge.

This is the same schema_versions change with every 1.x safeguard deleted: no serializer-version guards on read, no hybrid or empty-list detection, no schema upgrade command, no UPGRADING.md. It assumes every binary and every repo cuts over to v2 at the same instant.

The size difference is the cost of coexisting with 1.x: +248 lines here vs +855 on #71 (and about half of #71's extra bulk is tests for the failure modes this branch pretends don't exist).

What this version does when the cut-over assumption fails, all reproduced with a real 1.9 binary while building #71:

  • a v1 schema reads as a v2 schema with an empty applied-version list -- no error, and the next write commits that empty list as authoritative
  • a 1.x binary touching a v2 schema rewrites it back to the v1 shape while keeping serializer_version: 2; this version reads that file without complaint
  • there is no conversion path at all for long-lived apps (retail's history doesn't replay, so schema generate fails there; without schema upgrade those apps simply can't adopt v2)

Useful as a reference for which lines exist for the migration story vs the feature itself.

effron and others added 2 commits July 15, 2026 09:38
…eguards)

Comparison-only variant of the schema_versions change with zero
compatibility machinery: no serializer-version guards on read, no hybrid or
empty-list detection, no schema upgrade command, no UPGRADING.md. Assumes
every binary and every repo cut over to v2 simultaneously.

BREAKING CHANGE: serializer_version bumps to 2 with no conversion or
detection path from v1.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@effron

effron commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

closing in favor of #74

@effron effron closed this Jul 15, 2026
@effron effron deleted the schema-versions-no-safeguards branch July 15, 2026 20:35
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.

1 participant