Skip to content

fix(read): records and review merge-group read the account corpus on an account dataset (#1366) - #1413

Merged
athvin merged 1 commit into
mainfrom
fix/1366-account-records-read
Nov 29, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/1366-account-records-read

Conversation

@athvin

@athvin athvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Closes #1366

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

What

GET …/records?key= and GET …/reviews/{id}/merge-group read the account corpus on an account dataset. read::records_by_key and read::merge_group take the dataset's entity type, and a new acct_int_std_record/read/by_keys statement serves the account side. One shaping pass builds the same {record_key, source_system, source_record_id, verified, verified_attributes, attributes} item for both types.

Why

Both routes read int_std_records unconditionally, so they 503'd on every account dataset. This was a red cell in #547's support matrix.

Proof

make check exit 0, rebased over #544. acct_read asserts that the account read returns company_name attributes and no person columns, and that the person read still fails on the account lake, so the fix is the thing that makes it work.

Risk & rollback

Additive: the person path is the same statement, with the same shaping. Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:24d16c2e-fec6-49d8-9797-060338df4848 on brians-MacBook-Pro · 2026-11-29T08:22:47Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

Span-statement bound 362 → 363. #1367 (metrics, data-quality) stacks after this one.

🤖 Generated with Claude Code

…an account dataset (#1366)

GET …/records?key= and GET …/reviews/{id}/merge-group read
int_std_records unconditionally, so on an account dataset (whose
standardized relation is acct_int_std_records) both returned 503.
records_by_key and merge_group now take the dataset's entity type, and
a new acct_int_std_record/read/by_keys statement serves the account
side. Each typed row is serialized before shaping, so one pass builds
the same {record_key, source_system, source_record_id, verified,
attributes} item for both types.

acct_read asserts the account read returns company_name attributes and
no person columns, and that the person read still fails there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit 18b8e3b into main Nov 29, 2026
44 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 29, 2026 06:16 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — afcd4dc6 Deployed Nov 29, 2026 by athvin via remove closed PR previews #144
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: records and review merge-group reads 503 (person-only int_std_records read)

2 participants