Skip to content

feat(match): accounts compile at their own score scale, bounded by two corpora (#663) - #1361

Merged
athvin merged 1 commit into
mainfrom
feat/663-account-scale
Nov 28, 2026
Merged

athvin merged 1 commit into
mainfrom
feat/663-account-scale

Conversation

@athvin

@athvin athvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Closes #663

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

What

An entity_type: account config that declares no scale now compiles at ACCOUNT_DEFAULT_FULL_AGREEMENT_BITS = 44 instead of the person scale (60). A second account corpus with declared truth, acct_16 (27 records, 16 accounts, ten traps), is added, and the recommended account config shape (a jaro_winkler:0.90 level on domain_norm, auto_merge: 0.99) is documented in er-matching's config-to-model reference.

Why

60 over-merges accounts on both corpora. The ticket asked for the scale to be decided from more than one corpus. acct_10 resolves exactly only from 44 bits up; acct_16's shared-switchboard pair stays apart only up to 48. 44 is the bottom of the window the two corpora agree on.

Proof

make check exit 0. er-cli e2e with DEDUPE_E2E_DUCKLAKE=1 DEDUPE_E2E_EXTENSIONS=1: 64 passed, including the new the_second_account_corpus_resolves_at_the_account_default and the_account_scale_is_bounded_above_by_the_shared_switchboard.

Risk & rollback

An account org with no declared scale compiles a different model on its next full run, which is the intended change; persons are untouched. 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-28T23:23:37Z

  • 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: — f161d7b, rust 46198694688 + frontend 46198694634 success
  • images built, or correctly never ran because nothing that goes into
    an image changed: — success, run 46198694787 (er-compile changed)
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: — run 46199018821 success; the scale applies at the next compile of an account config, and no account tenant is live
  • 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 f161d7b
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: — The account score scale: decide it, and know that no constant alone fixes it #663 CLOSED by feat(match): accounts compile at their own score scale, bounded by two corpora (#663) #1361 via automation
  • follow-ups are open for everything deferred here — numbers: — Account matching: evaluate TF on phone_e164 as a switchboard discriminator #1360 (TF on phone_e164)
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: — er-matching config-to-model.md states the account scale, the domain level and the threshold together; acct_16/README.md records the grid

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

Grid on acct_16 (auto_merge 0.99, domain-JW config): 30–48 bits exact except the deliberately marginal gray pair; 52+ fuses Adatum+Lucerne. At auto_merge 0.95 the fuse starts at 44. Without the domain level, 44+ fuses at either threshold. Follow-up: TF on phone_e164, #1360. score_scale_calibration updated: its two entity-blind assertions encoded the behaviour this PR deliberately changes.

🤖 Generated with Claude Code

…o corpora (#663)

An entity_type: account config that declares no full_agreement_bits now
compiles at ACCOUNT_DEFAULT_FULL_AGREEMENT_BITS = 44 instead of the person
scale (60), which over-merged distinct companies.

The figure is bounded by two account corpora with declared truth, not
fitted to one. acct_10 resolves exactly only from 44 bits up. The new
acct_16 (27 records, 16 accounts, ten traps) keeps a shared-switchboard
pair of distinct companies apart only up to 48 bits. Both assume a
near-match level on domain_norm and auto_merge 0.99, which the
recommended account config now carries; the config-to-model reference
states the scale, the level and the threshold. TF on phone_e164, the other
discriminator, is #1360.

score_scale_calibration's two entity-blind assertions are updated: this
ticket deliberately changes that behaviour.

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

This branch was previously deployed

1 inactive deployment
marketing-preview — aa99f05e Deployed Nov 28, 2026 by athvin via remove closed PR previews #125
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.

The account score scale: decide it, and know that no constant alone fixes it

2 participants