Skip to content

[codex] Add mledb to sprocket migration guardrails#745

Merged
gankoji merged 2 commits into
mainfrom
codex/mledb-sprocket-migration
May 12, 2026
Merged

[codex] Add mledb to sprocket migration guardrails#745
gankoji merged 2 commits into
mainfrom
codex/mledb-sprocket-migration

Conversation

@gankoji
Copy link
Copy Markdown
Member

@gankoji gankoji commented May 12, 2026

Summary

Adds an auditable guardrail toolchain for beginning the MLEDB schema to Sprocket schema migration.

  • adds a migration runner with preflight, coverage, baseline, legacy backfill, validation, and rollback steps
  • adds a guard schema that snapshots existing Sprocket rows and detects changed or deleted pre-existing data after a run
  • adds semantic validation for the MLEDB domains currently handled by the legacy migration SQL
  • adds a domain coverage manifest so deferred MLEDB tables are explicit instead of implied as migrated
  • documents the rehearsal runbook, validation gates, error handling, rollback plan, and promotion criteria

Validation

  • git diff --cached --check
  • bash -n scripts/migration/run-mledb-sprocket-migration.sh
  • scripts/migration/run-mledb-sprocket-migration.sh --help
  • local disposable Postgres fixture executed preflight, coverage, baseline, and validate with zero validation issues

Notes

This is tooling for migration rehearsal and review. It has not been run against a production dump yet; the plan requires a clean disposable-database rehearsal before production use.

@gankoji gankoji marked this pull request as ready for review May 12, 2026 07:00
@gankoji gankoji merged commit 6ac4e3b into main May 12, 2026
18 checks passed
@gankoji gankoji deleted the codex/mledb-sprocket-migration branch May 12, 2026 07:21
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