Repository navigation
feat(match): accounts compile at their own score scale, bounded by two corpora (#663) - #1361
Merged
Merged
Conversation
…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
temporarily deployed
to
marketing-preview
November 28, 2026 22:51 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #663
What
An
entity_type: accountconfig that declares no scale now compiles atACCOUNT_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 (ajaro_winkler:0.90level ondomain_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_10resolves 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 checkexit 0. er-cli e2e withDEDUPE_E2E_DUCKLAKE=1 DEDUPE_E2E_EXTENSIONS=1: 64 passed, including the newthe_second_account_corpus_resolves_at_the_account_defaultandthe_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-060338df4848onbrians-MacBook-Pro· 2026-11-28T23:23:37Zmainis green with this change on it — the merge SHA, and the runthat 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
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46198694787 (er-compile changed)
deployconverged — proved by a line the running process emitted, notby 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
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer success on f161d7b
Donethrough the automation rather than byhand, 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
(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_calibrationupdated: its two entity-blind assertions encoded the behaviour this PR deliberately changes.🤖 Generated with Claude Code