Repository navigation
fix(config): republishing an earlier version rebuilds again — the rollback ran nothing (#530) - #1382
Merged
Merged
Conversation
…lback ran nothing (#530) The publish rebuild's idempotency key was publish:{version}:rebuild. A rollback republishes an earlier version, so it matched that version's first publish, got its long-finished job back, and enqueued nothing: the response listed a job id, the bad version's results stayed, and the docs page's rollback instruction silently did not work. The key now names the publish event: this version, the version it replaces, and when that one was published. Each publish is distinct, a v1 → v2 → v1 → v2 cycle included, and a retried request (same prior) still dedupes. pg_config_rollback proves it through the API: v1 + three deliveries, a bad v2 that visibly changes the duplicate groups, then republishing v1 enqueues a fresh rebuild and restores v1's groups exactly. It failed before the fix. Also asserts incremental runs and a full rebuild agree at v1. Decision (#530): republish-and-rebuild is the supported rollback; no snapshot restore without recompute. api-contract's launch-readiness lists each failure and its recovery call. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 29, 2026 03:08 — with
GitHub Actions
Inactive
This was referenced Nov 29, 2026
This branch was previously deployed
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.
Closes #530
What
Fixes the rollback. Republishing an earlier config version, which is the documented way to roll back, ran no rebuild. The publish rebuild's idempotency key was
publish:{version}:rebuild, so a republish matched that version's first publish and got its long-finished job back. The bad version's results stayed. The key now names the publish event: this version, the version it replaces, and when that one was published. Also adds the recovery table #530 asks for (each failure and its API call) to api-contract's launch-readiness reference.Why
#530's definition of done: a customer can restore an earlier run's results, the docs list each failure's recovery call, and a pg test runs bad publish → rollback → earlier results. Decision: republish-and-rebuild is the supported rollback; there is no snapshot restore without recompute. The test found that this path did not work at all.
Proof
make checkexit 0. Newpg_config_rollback(real Postgres, real executor): publish v1 and deliver base_10, publish a bad v2 that visibly changes the duplicate groups, then republish v1. It must enqueue a fresh rebuild (assertedqueued) and restore v1's groups exactly. It failed before the fix with v2's merged groups. It also asserts that incremental runs and a full rebuild agree at v1.pg_dataset_configstill passes.Risk & rollback
A retried publish request still dedupes (same prior version, same timestamp). A v1→v2→v1→v2 cycle now gets a distinct key each time. Rollback:
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-29T05:05:44Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: — d67b9d1, rust 46218981736 + frontend 46218981849 success
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46218981740
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — its own deploy 46219250226 failed: er-tenant-migrate's hook timed out behind a long p3live job I had left running on er-dev, not this diff; the deploy of 7c43aea (run 46225900472) succeeded and contains this commit
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer success on d67b9d1
Donethrough the automation rather than byhand, and the issue closed: — API: restore a dataset's results to an earlier run, and document the recovery operations #530 CLOSED by fix(config): republishing an earlier version rebuilds again — the rollback ran nothing (#530) #1382 via automation
(a skill, a reference, memory) — or nothing new was learned: — republish is the rollback, and its rebuild key is now per publish event; launch-readiness.md has the recovery table
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
Probe trail: the rollback response's
jobs_enqueuedid predated v2's job, which exposed the reused key.🤖 Generated with Claude Code