Repository navigation
fix(golden): steward overrides apply on an account dataset (#1370) - #1432
Merged
Merged
Conversation
run_golden returned early into golden_task::run_account for accounts, which never read golden_overrides or golden_record_overrides, and the override attribute lists named person columns only. A mass update or a merge-dialog field choice on an account dataset was silently dropped, including in the correction pass. run_account_guarded now applies both tables over the assembled account rows inside its publication transaction: entity-keyed first, then record-keyed through entity_membership, so a dialog choice wins as on the person path. The tables are probed before the transaction opens, and a lake with neither is byte-identical. It runs through the generic Executor, so the remote golden pilot gets the same behaviour. The account golden columns are ACCT_OVERRIDABLE_GOLDEN_ATTRS. The drain accepts either type's columns, and the mass-update and merge APIs hold each attribute to the dataset's own entity type. acct_golden_overrides_survive_correction_and_a_full_run stages a mass update, a clear and a record-keyed choice on an account lake. They hold after run_correct and after a later full run. With the override pass disabled, the steward's company_name reverts and the test fails. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 tasks done
athvin
temporarily deployed
to
marketing-preview
November 29, 2026 10:30 — with
GitHub Actions
Inactive
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 #1370
What
golden_task::run_account_guardedappliesgolden_overrides(entity-keyed) and thengolden_record_overrides(record-keyed, throughentity_membership) over the assembled account rows, inside its publication transaction. A dialog choice wins, as on the person path.Executor, so the remote golden pilot gets the same behaviour.ACCT_OVERRIDABLE_GOLDEN_ATTRSholds the 7 account value columns, besidePERSON_OVERRIDABLE_GOLDEN_ATTRS. The drain accepts either list. The mass-update and merge APIs hold each attribute to the dataset's entity type and answer 422 with a message naming the field and the type.acct_golden_overrides_survive_correction_and_a_full_run, plus a unit test of the per-type attribute sets.Why
run_goldenreturned early intorun_account, which never read either override table, and both attribute lists named person columns only. A steward's mass update or merge-dialog choice on an account dataset was silently dropped, including in the correction pass. Found by the #547 support audit.Proof
company_nameoverride, adomainclear (both entity-keyed) and a record-keyeddomainchoice on another entity.run_correct:["Steward Chosen Co", "<null>"]anddialog-choice.example.left: ["acme inc.", "https://www.acme.com"]andright: ["Steward Chosen Co", "<null>"].make check: exit 0. All 10acct_e2e tests pass.Risk & rollback
git revert <merge-sha>.Post-merge ledger
Closed by: merge
45d68da4(squash of #1432)mainis 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:
45d68da4: rust 46252641327, frontend 46252641281, infra 46252641269, devcontainer 46252641387, images 46252641362 all success.imagesbuilt, or correctly never ran because nothing that goes intoan image changed: built: images 46252641362 success, er-api
45d68da4 -> sha256:017e0917….deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: deploy 46252960789. The API launch gate printed
production now serves the contract of 45d68da457332f695975537b1c166e399f6a284e.deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: deploy green. drift stays knowingly red on
alert path (a confirmed subscriber), which waits on the operator's SNS email confirmation (The er-alerts SNS email subscription has never been confirmed — 19 armed alarms reach nobody #1107) and is unrelated to this change.Donethrough the automation rather than byhand, and the issue closed: Account datasets: golden overrides are never applied (mass update, merge-dialog field choices dropped) #1370 CLOSED by the merge, Product Roadmap → Done via automation.
(a skill, a reference, memory) — or nothing new was learned: a statement that fails inside a DuckDB transaction aborts the whole transaction, so the override-table probe runs before BEGIN. That is recorded in the
OverrideTablesdoc comment.Specific to this change
🤖 Generated with Claude Code