Repository navigation
B4: promote candidates and atomically publish or roll back - #86
Merged
Merged
Conversation
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.