Skip to content

fix(cli): match preview and blocking estimate read the account corpus (#1368) - #1426

Merged
athvin merged 1 commit into
mainfrom
fix/1368-account-match-preview
Nov 29, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/1368-account-match-preview

Conversation

@athvin

@athvin athvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Closes #1368

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

What

  • er_cli::preview_match and er_cli::estimate_blocking now take the Config. They read er_cli::std_corpus(config), the same choice resolve_record makes (E20 — Public duplicate-check and record-resolution API #529): acct_int_std_records on an account lake.
  • The blocking-estimate handler now loads the dataset's config. Both handlers pass it.
  • New acct_match_preview_and_blocking_estimate_read_the_account_corpus in er-cli's acct_e2e.

Why

Both functions registered int_std_records unconditionally, so an account dataset got a 409 from each. Found by the #547 support audit.

Proof

  • The new test builds an account lake with run_all over acct_base.
    • Blocking estimate: counts 21 possible pairs over the 7 account records and keeps a strict, non-empty subset.
    • Match preview: scores the account pairs, would auto-merge the duplicates, and leaves the snapshot unchanged.
  • The existing person tests (lake_e2e blocking estimate and preview) pass with the config threaded through.
  • make check: exit 0.

Risk & rollback

This is a signature change on two er_cli functions, and every caller is updated. A person dataset reads the same relation as before. Rollback is git revert <merge-sha>.

Post-merge ledger

Closed by: merge 9914f704 (squash of #1426)

Specific to this change

🤖 Generated with Claude Code

…#1368)

er_cli::preview_match and estimate_blocking registered int_std_records
unconditionally and took no Config, so an account dataset got a 409 from both.
Both now take the config and read er_cli::std_corpus(config), the same choice
resolve_record makes (#529): acct_int_std_records for an account lake. The
blocking-estimate handler now loads the dataset's config too, and both handlers
pass it.

acct_match_preview_and_blocking_estimate_read_the_account_corpus builds an
account lake with run_all: the estimate counts 21 possible pairs over the 7
account records and keeps a strict subset, and the preview scores them, would
auto-merge the duplicates, and commits nothing.

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

This branch was previously deployed

1 inactive deployment
marketing-preview — aaf47abb Deployed Nov 29, 2026 by athvin via remove closed PR previews #155
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: match-preview and blocking-estimate read only int_std_records

2 participants