Skip to content

fix(read): metrics and data-quality answer on an account dataset (#1367) - #1418

Merged
athvin merged 1 commit into
mainfrom
fix/1367-account-metrics
Nov 29, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/1367-account-metrics

Conversation

@athvin

@athvin athvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Closes #1367

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 …/metrics and GET …/data-quality answer on an account dataset. Both reads take the dataset's entity type. For accounts they:

  • count acct_int_std_records and acct_golden_records;
  • score completeness over the seven account golden columns;
  • count junk as a present-but-invalid phone, since accounts carry no email.

New statements: acct_golden_record/read/completeness_counts (its n is the account golden count) and acct_int_std_record/read/junk_stale_counts.

Why

Both routes were person-only and 503'd on every account dataset: a red cell in #547's support matrix.

Proof

make check exit 0, rebased over #1413. acct_read asserts:

  • 7 records and 4 entities;
  • completeness keys are exactly the account columns;
  • a score within [0,1];
  • the person read still fails on the account lake.

pg_golden_read (the person path) is unchanged and passes.

Risk & rollback

Additive; the person path runs the same statements. 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:42:58Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: — 71c1be1; its own rust 46236208844 was cancelled, and the 07:05 nightly on it failed only the pre-existing scale golden (50k) fails deterministically on main since 03792063..ad38be23 (likely the DuckDB 2.0.1 bump) #1206 scale golden; rust 46242304135 on 7a8145b (contains this commit) success
  • images built, or correctly never ran because nothing that goes into
    an image changed: — success, run 46236208804
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: — run 46236973907 success
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: — infra, devcontainer success on 71c1be1
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: — Account datasets: metrics and data-quality reads are person-only #1367 CLOSED by fix(read): metrics and data-quality answer on an account dataset (#1367) #1418 via automation
  • follow-ups are open for everything deferred here — numbers: — none
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: — account metrics count the acct_* relations; completeness is over the seven account golden columns

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

Span-statement bound 363 → 365.

🤖 Generated with Claude Code

GET …/metrics and GET …/data-quality counted int_std_records and
golden_records and scored completeness over the 11 person columns, so
both 503'd on an account dataset. They now take the dataset's entity
type. Accounts count acct_int_std_records and acct_golden_records,
score completeness over the seven account golden columns, and count
junk as a present-but-invalid phone (accounts carry no email).

New statements: acct_golden_record/read/completeness_counts (its n is
the account golden count) and acct_int_std_record/read/
junk_stale_counts. acct_read asserts 7 records / 4 entities, the
account completeness columns, a score in [0,1], and that the person
read still fails there. pg_golden_read (person) unchanged.

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

This branch was previously deployed

1 inactive deployment
marketing-preview — a0fdc85d Deployed Nov 29, 2026 by athvin via remove closed PR previews #150
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: metrics and data-quality reads are person-only

2 participants