Skip to content

test: the account arms of incremental match, correction, profile and the golden routes (#1372) - #1434

Merged
athvin merged 1 commit into
mainfrom
test/1372-account-coverage
Nov 29, 2026
Merged

athvin merged 1 commit into
mainfrom
test/1372-account-coverage

Conversation

@athvin

@athvin athvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Closes #1372

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

What

Account tests for the four paths the #547 audit found untested. Tests only; no production code changes.

Path Test
incremental match (run_match_partial) acct_incremental_match_correction_and_profile_run_on_the_account_lake
the correction pass (run_correct) on an account lake same test. #1370's override test also runs it.
er profile with account: true same test
golden-records list, detail and duplicates over HTTP pg_golden_routes_acct

Why

These paths branch on entity type correctly, but nothing proved the account arm. The ticket's rule: any test that fails becomes its own ticket. All four pass, so there are no new tickets.

Proof

  • Incremental match: after a crm-only full run, the vendors batch is the delta. run_match_incremental reports mode == "incremental", delta_records == the vendors row count, and corpus_records == crm + vendors. The scores pair acct_int_std_records keys.
  • Correction: run_correct leaves one acct_golden_records row per entity, and every account record is a member.
  • Profile: run_profile with account: true profiles standardized (has domain_norm) and golden (has company_name), with no given_name in either.
  • HTTP (operator-created account dataset, imported through the API):
    • GET golden-records serves Arrow with company_name and domain and no given_name.
    • GET golden-records/{id} returns the account golden plus its members; an unknown id returns 404.
    • GET duplicates lists the in-source c1/c9 group as an account group.
  • make check: exit 0. All 11 acct_ e2e tests pass.

Risk & rollback

Tests only. The new pg test adds about 45 s to the er-server e2e job. Rollback is git revert <merge-sha>.

Post-merge ledger

Closed by: merge 57969369 (squash of #1434)

  • 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: 57969369: rust 46255077492, frontend 46255077687, infra 46255077517, devcontainer 46255077487, images 46255077525 all success.
  • images built, or correctly never ran because nothing that goes into
    an image changed: built: images 46255077525 success, er-api 57969369 -> sha256:bae9f724…. er-web reused, verified unchanged under frontend.
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: deploy 46255354214. The API launch gate printed production now serves the contract of 5796936918d72b1f93e029e0c044033870263e16.
  • 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: deploy green. drift stays knowingly red on alert path (a confirmed subscriber), which waits on the operator's SNS email confirmation (The er-alerts SNS email subscription has never been confirmed — 19 armed alarms reach nobody #1107) and is unrelated to this change.
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: Account datasets: tests for incremental match, the correction pass, HTTP golden reads and profile #1372 CLOSED by the merge, Product Roadmap → Done via automation.
  • follow-ups are open for everything deferred here — numbers: none. All four account paths passed, so per the ticket's rule no new tickets were opened.
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: nothing new; tests only.

Specific to this change

🤖 Generated with Claude Code

…the golden routes (#1372)

The #547 support audit found four paths that branch on entity type with no
test of the account arm. Each now has one, and each passed, so none becomes a
ticket:

- acct_incremental_match_correction_and_profile_run_on_the_account_lake (er-cli):
  after a crm-only full run, the vendors batch is the incremental delta.
  run_match_incremental scores exactly it against acct_int_std_records.
  run_correct then leaves one account golden per entity with every record a
  member, and run_profile with account: true covers the account standardized
  and golden relations and no person column.
- pg_golden_routes_acct (er-server): over HTTP on an operator-created account
  dataset, the golden-records list serves Arrow with company_name/domain and no
  given_name, the detail returns the account golden and its members (404 for an
  unknown id), and duplicates lists the in-source c1/c9 group as an account
  group.

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

This branch was previously deployed

1 inactive deployment
marketing-preview — c0c1650f Deployed Nov 29, 2026 by athvin via remove closed PR previews #162
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: tests for incremental match, the correction pass, HTTP golden reads and profile

2 participants