Repository navigation
fix(schema): the pre-reconcile default-dataset sweep reads only the org columns it copies (#1290) - #1291
Merged
Conversation
…rg columns it copies (#1290) Every deploy since #518 failed: er-schema-migrate planned the additive `ADD COLUMN record_allowance`, then ensure_schema died on `column "record_allowance" does not exist` before the reconciler could add it. ensure_default_datasets runs ahead of the reconciler and read orgs through the generated full-row org::read::list, which names every catalog column, so any new orgs column broke boot on every existing store. --atomic rolled dev and prod back, leaving the previous release serving. The sweep now selects only the eight columns it copies into the default dataset (OrgSeed), as the adjacent config_versions read already does for the same reason. pg_schema_replay gains a phase that drops the newest org column and boots the store; it fails on the previous code with the deploy's exact error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
|
athvin
temporarily deployed
to
marketing-preview
November 27, 2026 01:51 — with
GitHub Actions
Inactive
This was referenced Nov 27, 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 #1290
ensure_default_datasets(runs before the reconciler) reads only the org columns it copies instead of the generated full-row statement; apg_schema_replayphase pins it.Follow-up to #1286 (#518): every deploy since it merged fails in
er-schema-migratewithcolumn "record_allowance" does not exist(runs 45922458663, 45923693490);--atomickeeps the previous release serving.Proof
pg_schema_replayphase 6 passes; run against the previousfixups.rsit fails with the deploy's exact error (SqlState(E42703) column "record_allowance" does not exist).make check(see comment once finished).Risk & rollback
Narrows one read; same rows, same fields. Reverting would re-break deploys.
Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-27T02:01:19Zmainis 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:
b3c3907e— rust 45924990554, frontend 45924990823, infra/devcontainer successimagesbuilt, or correctly never ran because nothing that goes intoan image changed: 45924990813 success
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: deploy 45925250641 success (dev + prod) — the schema-migrate hook that failed twice now passes; the live process at https://dupezero.com/api/openapi serves E3 — API usage, entitlements and commercial metering #518's
/v1/orgs/{org}/usagedeploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: deploy green; drift/kind red before for known reasons (Confirm the er-alerts email subscription and prove alert delivery #1056, kind probe red since 2026-11-10: KeyError 'token_hash' after the credential-omission fix #1106)
Donethrough the automation rather than byhand, and the issue closed: Deploys fail since #518: the pre-reconcile default-dataset sweep reads orgs through the full-row statement #1290 CLOSED via the merge
(a skill, a reference, memory) — or nothing new was learned: memory
pre-reconcile-reads-must-be-narrowSpecific to this change
/usageliveContext — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
🤖 Generated with Claude Code