Skip to content

B4: promote candidates and atomically publish or roll back - #86

Merged
DavidVFitzGerald merged 5 commits into
mainfrom
feat/b4-publication
Nov 15, 2026
Merged

DavidVFitzGerald merged 5 commits into
mainfrom
feat/b4-publication

Conversation

@DavidVFitzGerald

@DavidVFitzGerald DavidVFitzGerald commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Refs #60.

Ready B3 candidates can now be promoted into a separate target without becoming
visible. Explicit authenticated CLI publication and rollback serialize against
an expected active pointer, preserve immutable revisions, and append a
database-derived operation audit in the same transaction.

Adds create-only checksummed local/GCS transfer, batched candidate loading,
independent target readiness/provenance gates, migration 0003, a disposable target
Compose overlay, and an operator/recovery playbook. Frontend files and mock
contracts are unchanged. No production transfer/publication or provisioning ran.

Independent QA identified coordinated unpublished target drift; the fix binds
exact target table contents to the append-only promotion receipt and rejects
changed data on activation/retry. A focused regression covers this finding.

Validation: container frozen lock check, Ruff format/lint, MyPy, 12 unit checks,
5 PostgreSQL scenarios and 3 focused publication scenarios passed locally,
including exact-cell snapshot assertions across pointer switches. Local tmpfs quota
prevented a fresh dependency copy, so local checks used a read-only compatible
backend environment; CI must verify a fresh frozen install. The ETL workflow now
runs publication/rollback through the B2 API in addition to its existing checks.

Independent QA passed AC1–8 at final commit 8fd71db,
including a separate shared-metadata concurrency check. All four hosted checks
pass at the same SHA: frontend quality, backend quality, API quality and ETL
quality. Ready for maintainer review; no merge performed.
An unchanged frontend unit assertion failed once and passed on its single rerun;
the intermittent behavior is tracked separately in #87. The branch includes the
frontend fixes already merged into main, with no frontend diff in this PR.
See docs/engineering/b4-verification.md and b4-publication.md. I1 retains frontend
integration, R1 actual cloud/restore validation, and R2 full-data/license/audit
signoff and explicit production approval.

@DavidVFitzGerald
DavidVFitzGerald marked this pull request as ready for review November 15, 2026 19:22
@DavidVFitzGerald
DavidVFitzGerald merged commit f0e2f9c into main Nov 15, 2026
4 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