Skip to content

fix: classify schema-11 databases as upgradable behind-schema state#124

Merged
levifig merged 2 commits into
mainfrom
fix/schema-11-upgrade-classification
Jul 19, 2026
Merged

fix: classify schema-11 databases as upgradable behind-schema state#124
levifig merged 2 commits into
mainfrom
fix/schema-11-upgrade-classification

Conversation

@levifig

@levifig levifig commented Jul 19, 2026

Copy link
Copy Markdown
Owner

v2.0.0-alpha.10 reports every schema-11 database (all v2.0.0-alpha.9 installations) as invalid with no forward path: the upgrade classifier only recognized versions below 10 and exactly 10 as behind-schema, and the classifier itself rejected both legitimate schema-11 shapes.

  • Route versions between journal-first (10) and the current baseline (12) to the behind-schema classifier.
  • Accept the optional journal-first row and require exactly the auto-applied migrations at or below the recorded version.
  • Falsified with schema-11 fixtures for both shapes (fresh and journal-first); proven against a copy of a real alpha.9 database: typed loaf state migrate schema --apply guidance, non-mutating dry-run, backup-first apply to schema 12, working journal afterward.
  • Installed smoke evidence refreshed for the rebuilt binary.

Follow-up prerelease v2.0.0-alpha.11 will publish this immediately; alpha.10 should be considered unusable for existing installations.

levifig added 2 commits July 19, 2026 16:06
- route versions between the journal-first ceremony and the current baseline to the behind-schema classifier; alpha.10 reported schema-11 databases invalid with no forward path
- accept the optional journal-first row in the classifier and require exactly the auto-applied migrations at or below the recorded version, covering both fresh and journal-first schema-11 shapes
- falsified with schema-11 fixtures for both shapes and proven against a copy of a real alpha.9 database: typed upgrade guidance, dry-run, backup-first apply to schema 12, and working journal reads afterward
- refresh installed smoke evidence for the rebuilt binary
@levifig
levifig merged commit 9a21cff into main Jul 19, 2026
1 check passed
@levifig
levifig deleted the fix/schema-11-upgrade-classification branch July 19, 2026 15:09
levifig added a commit that referenced this pull request Jul 19, 2026
Hotfix prerelease publishing the schema-11 upgrade-classification fix (#124): version files to 2.0.0-alpha.11, curated changelog fold, stamped artifact rebuild, and refreshed installed smoke evidence.
levifig added a commit that referenced this pull request Jul 19, 2026
…the foundation ship (#126)

Reflect updates from the foundation ship: adversarial review recommended for foundational state-model changes (PR #122 evidence: thirteen Codex findings after two Claude reviews), and one explicit fixture per supported starting state for migration/classification code (the alpha.10 transitive-coverage regression, #124).
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