v0.99.5.2 — Schema Integrity, Automated Migrations, Expanded Test Coverage
Infrastructure and reliability release. Establishes automated migration deployment as a standard part of the CI/CD pipeline, expands end-to-end test coverage to eleven new test suites, and hardens the platform against accidental schema drift between environments.
Automated Migration Deployment
Database schema migrations are now applied automatically as part of every deployment to staging and production. Previously, migrations required a separate manual step after code deployment — a gap that caused the 2026-05-18 schema drift incident where production was running code that expected schema changes that had not yet been applied.
The new workflow:
- Runs migration deployment before the application starts handling requests on every environment push
- Checks that production and staging are always in sync on every CI run, and fires a platform alert if drift is detected
- Catches schema divergence at the CI level before code is merged, not after it is deployed
A pre-commit guard has also been added to the development workflow that prevents a schema change from being committed without a matching migration file, closing a class of developer-level drift errors at the source.
Expanded End-to-End Test Coverage
Eleven new end-to-end Playwright test suites have been added, covering:
- Wizard validation — extended coverage for product data wizard field validation and rejection behaviour
- Document upload flows — full upload cycle including file type validation and error states
- AI features — document extraction and compliance analysis flows, including quota-reached handling
- Withdrawal flow — DPP withdrawal and re-publication lifecycle
- Verifier round-trip — complete operator → verifier → approval cycle
- Public DPP — full body rendering and JSON-LD output correctness for all battery categories
- Audit log integrity — verifies that audit records are written correctly and the hash chain is unbroken after key platform events
- Save and resume — concurrent wizard save-and-resume behaviour under parallel sessions
- Slug and retired slug handling — GTIN resolution edge cases and retired slug redirect behaviour
- Mobile public DPP — full DPP page rendering across common mobile viewports
These suites bring the total automated end-to-end coverage to 23 passing tests with 0 failures.
Operator Help Documentation
Five operator help pages were updated with a factual correction: the DPP edit window after publishing is 14 days, not 30 days as previously documented.
Platform Notes
This release also includes supplier-portal reliability improvements behind a feature flag that is active on staging only. These changes — including an improved supplier inbox, materials library, and certificates page with cross-operator identity awareness — will be promoted to production in a future release once the staging validation period is complete.