Skip to content

fix(ops): complete safe PostgreSQL production cutover - #1385

Merged
azurras merged 3 commits into
mainfrom
codex/fix-postgresql-cutover-evidence
Sep 6, 2026
Merged

fix(ops): complete safe PostgreSQL production cutover#1385
azurras merged 3 commits into
mainfrom
codex/fix-postgresql-cutover-evidence

Conversation

@azurras

@azurras azurras commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Summary

Complete the Windows PostgreSQL cutover corrections discovered while validating the real failed production attempt.

  • Accept exactly one command-specific Java evidence record amid benign driver logs; reject malformed, conflicting, or duplicate records.
  • Preserve JSON timestamp strings so journal checksums survive disk round trips (PowerShell 7.5+).
  • Serialize writer-lock expiry as UTC ISO-8601 accepted by Java Instant.parse.
  • Validate the candidate with the database-enforced read-only viewer role. Suppress five mutating startup handlers only for deploy-smoke, retaining normal production dispatch.
  • After durable authority intent, switch the website dependency to PostgreSQL and disable MongoDB startup.
  • Advance the persistent writer-start release marker, including resume, and import its owning module explicitly.

Validation

  • Full Windows ops Pester suite: 795 passed, 0 failed, 28 skipped.
  • Focused startup/handler Java suites: 79 passed, 0 failed.
  • Regression tests observed failing before the fixes: journal round trip, ISO writer lease, startup profile dispatch (including legacy VIN cleanup).
  • Independent final scoped review approved; git diff --check passed.
  • Read-only elevated production inspection confirmed ROLLED_BACK, absent authority sidecar, matching catalog digest, and five driver log lines plus one valid snapshot record. No new authority transfer yet.

Operational follow-through

The user already approved up to 30 minutes downtime. Preserve prior failed-attempt evidence and pause automatic deployment before cutover. Ordinary deployment still requires a separate PostgreSQL-aware candidate/backup path before automatic deployment can be reenabled. MongoDB retirement is gated by the recorded 14-day post-authority soak and restore proof; retain the final Mongo archive 90 days.

@azurras azurras changed the title Fix PostgreSQL cutover evidence parsing fix(ops): complete safe PostgreSQL production cutover Sep 6, 2026
@azurras
azurras merged commit 39867e9 into main Sep 6, 2026
8 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.

1 participant