Skip to content

fix(golden): steward overrides apply on an account dataset (#1370) - #1432

Merged
athvin merged 1 commit into
mainfrom
fix/1370-account-golden-overrides
Nov 29, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/1370-account-golden-overrides

Conversation

@athvin

@athvin athvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Closes #1370

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

  • golden_task::run_account_guarded applies golden_overrides (entity-keyed) and then golden_record_overrides (record-keyed, through entity_membership) over the assembled account rows, inside its publication transaction. A dialog choice wins, as on the person path.
    • The two tables are probed before the transaction opens, because a failed statement inside it would abort it. A lake with neither table assembles byte-identically.
    • This runs through the generic Executor, so the remote golden pilot gets the same behaviour.
  • ACCT_OVERRIDABLE_GOLDEN_ATTRS holds the 7 account value columns, beside PERSON_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.
  • New acct_golden_overrides_survive_correction_and_a_full_run, plus a unit test of the per-type attribute sets.

Why

run_golden returned early into run_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

  • The new test runs a full account run, then stages a company_name override, a domain clear (both entity-keyed) and a record-keyed domain choice on another entity.
    • After run_correct: ["Steward Chosen Co", "<null>"] and dialog-choice.example.
    • After a later full run: the same values.
  • With the override pass disabled, the same test fails: left: ["acme inc.", "https://www.acme.com"] and right: ["Steward Chosen Co", "<null>"].
  • make check: exit 0. All 10 acct_ e2e tests pass.

Risk & rollback

  • Person paths: unchanged. The person attribute list is the same 11 columns.
  • Account APIs: now accept the account columns and refuse person-only ones on an account dataset. Before this, they accepted person columns that were then silently ignored.
  • Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: merge 45d68da4 (squash of #1432)

Specific to this change

🤖 Generated with Claude Code

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]>
@athvin
athvin merged commit 45d68da into main Nov 29, 2026
43 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 29, 2026 10:30 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — ce2fc12b Deployed Nov 29, 2026 by athvin via remove closed PR previews #159
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.

Account datasets: golden overrides are never applied (mass update, merge-dialog field choices dropped)

2 participants