Repository navigation
fix(read): merge-plans shows the survivor of a merge and both sides of a split (#838) - #1340
Merged
Merged
Conversation
…f a split (#838) GET …/merge-plans was empty right after a steward or assertion merge — the exact entity whose master was just pinned. Its `affected` set keyed on the entity an event names, but a `merged` event is recorded on the ABSORBED entity (which then has no members), and the survivor of a merge whose records were all clustered already earns no `member_added`. Splits were not considered at all. `affected` now also takes the survivor named in a merged event's details.merged_into, every `split` receiver, and the donor its details.split_from names. Fixed at the read layer, so the public entity-events ledger and webhooks are unchanged. - pg_merge_group's plan_master assertion on the survivor is restored (and fails without the fix); - merge_plans_events executes the generator on lake rows in DuckDB: the merge survivor, the split donor and receiver are planned, an untouched entity is not (all three missing without the fix); - er-sql-check's plan vectors still plan for every policy × topology. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 28, 2026 05:36 — 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 #838
er_golden::merge_plans_sql'saffectedCTE followsdetails.merged_into(merge survivors) and includessplitreceivers and theirdetails.split_fromdonors. The restoredplan_masterassertion inpg_merge_group, and a new executing testmerge_plans_events.#838:
GET …/merge-plans(public, viewer) was empty for the entity a customer had just merged throughPOST …/mergesor a review resolution. Fixed at the read layer as the ticket directed, leaving the public event ledger unchanged.Proof
pg_merge_group(DuckLake): the survivor's plan elects the pinned mastercrm:C001; with the old CTE the survivor has no plan row (the survivor has a planpanics) — mutation-checked.merge_plans_events(DuckDB, real lake DDL): an assertion-merge survivor, a split's receiver and its donor are planned; an untouched entity is not; with the old CTE the result is empty — mutation-checked.pg_protect_masterstill passes; er-sql-check 68 passed (plan vectors for every policy × protect × since);make checkexit 0.Risk & rollback
A read widens to entities that genuinely changed; no write path or event changes.
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-28T14:35:55Zmainis 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: — 1153647, rust 46112834941 + frontend 46112834934 success
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46112834937
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — run 46113077015 success; the api pods rolled onto the new image after it (web-api-blue created post-deploy). A read-path change with no new route, so the evidence it is RIGHT is pg_merge_group and merge_plans_events, both mutation-checked
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer success on 1153647
Donethrough the automation rather than byhand, and the issue closed: — merge-plans never shows the surviving entity of an assertion/steward merge #838 CLOSED by fix(read): merge-plans shows the survivor of a merge and both sides of a split (#838) #1340 via automation
(a skill, a reference, memory) — or nothing new was learned: — an executing DuckDB test over the real lake DDL is a cheap way to prove a governed generator's semantics, which plan vectors (planning only) cannot
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
split_from); both are now affected.most_attributespolicy elects fromgolden_lineage, so the executing test usesmost_complete;affectedis shared by every policy.Measurements
Files
🤖 Generated with Claude Code