Repository navigation
feat(api): lineage export — every source record to its entity (#1231) - #1242
Merged
Merged
Conversation
…d to (#1231) A declared keyset read (entity_membership/read/lineage_page) and a third export kind, CSV (RFC 4180 quoting) or JSONL. export_write.rs proves the customer's join on a file-ingested dataset: every source record exactly once, and the lineage's entities are exactly the golden export's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
marked this pull request as ready for review
November 25, 2026 19:49
athvin
temporarily deployed
to
marketing-preview
November 25, 2026 19:50 — with
GitHub Actions
Inactive
7 tasks done
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 #1231
What
A third export kind,
lineage: one row per source record, givingrecord_key,source_system,source_record_id, and theentity_idit resolved to, at the export's pinned snapshot. As CSV (RFC 4180 quoting, because a customer's source id is arbitrary text) or JSONL.entity_membership/read/lineage_page, is a keyset page onrecord_keyat a snapshot. It plans and passes the E0xx rules.er.statement's bound moves to 281.kindfield: lineageentity_id= goldenid, at the same snapshot.Why
#1231, part of #521. Golden records and duplicate groups name entities, and a customer's systems hold their own keys. Lineage is the bridge, with no Salesforce in the path.
Proof
make check: 1,190 passed, 0 failed.er-server+er-cli --testsagainst Postgres withDEDUPE_E2E_DUCKLAKE=1: 498 passed.make frontend: 963 passed, 1 failed (triage.spec.ts:53, the mobile-safari swipe spec). This PR changes no file underfrontend/, so that is not this diff; the required Playwright tier is the judge.export_write.rsgains case 6, over the file-ingested account fixture (CSV deliveries, no Salesforce), with a page size of 2 so the keyset crosses pages:(source_system, source_record_id)pairs equal the fixture files' ids;export_write: more than seven rowscsv_fieldunit)Risk & rollback
Additive: one declared read and one export kind. Rollback:
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306onMac· 2026-11-25T20:01:10Zmainis green with this change on it: mergee5486f16. Push runs: infra 45689090745 success, frontend 45689090711 success, devcontainer 45689090653 success, images 45689090527 success, rust 45689090534 success.images: built and succeeded fore5486f16.deployconverged. Process proof was read once the AWS session was restored (2026-11-26). The live colour in dev (ci/web-api-green-5d5f9c8844-88dxb, logged"er-server listening"at 01:36:40Z) and prod (app/web-api-blue-7544598cbb-8rjth, at 01:51:39Z) both runer-api@sha256:5d993716…, built frombae09b2e, which contains this merge (git merge-base --is-ancestor e5486f16 bae09b2eholds). (Earlier note: run 45689648423 (DEPLOY_SHA: e5486f16) succeeded, but the AWS SSO session has been expired since 12:10Z, so the live pods'er-server listeningline could not be read. To be ticked afteraws sso login.)deployis green.driftandkindwere already red on schedule before feat(api): typed response structs, batch 3 — reviews+merges (#1193) #1202.kindfield, which the developer reference renders.Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files