Repository navigation
fix(golden): the 50k golden survives DuckDB 2.0's Unicode jaro_winkler, with an independent Splink twin (#1206) - #1421
Merged
Conversation
…r, with an independent Splink twin (#1206) GOLDENS MOVED, and why. The 50k scale golden had failed every night since DuckDB 2.0.1 (#1171). Bisected: it passes at 964f14b and fails at dba8b69 with CI's exact numbers. All 32 drifted predictions pair 'xolomiès' with 'colomiès' and move by 1.3022 bits, which is the surname's jaro_winkler >=0.92 vs >=0.88 gap. DuckDB 2.0 counts Unicode characters where 1.x counted bytes (0.926 -> 0.917). The new value is correct, and the EM m drift follows from the same pairs. The old oracle was Splink 5.0.0 on DuckDB 1.5.5. Python has no DuckDB 2.x, so it cannot be regenerated on the new engine. Instead: - fixtures/golden/gen_historical_50k_golden.py is the generator, reconstructed and verified: it reproduces the committed Splink golden exactly (prior, every m/u, every prediction to 1e-8, every cluster). That needs EM with term frequencies off. - historical_50k_ascii is its --ascii output: every text column folded to ASCII, where bytes and characters coincide. dedupe-core on DuckDB 2.0.1 matches it exactly. That proves Unicode handling is the ONLY divergence from Splink. - historical_50k is re-baselined from this engine by an #[ignore] regenerate test, so it keeps guarding the 237 non-ASCII rows. Its MANIFEST records the provenance. The final clustering is unchanged: 0 of 50,578 cluster assignments differ from the Splink oracle. The test is parameterised over the two cases; all four pass. er-matching's goldens reference records the episode. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 29, 2026 08:22 — with
GitHub Actions
Inactive
Merged
7 tasks done
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 #1206
What
Makes the nightly
scale golden (50k)green again, and keeps an independent Splink oracle beside it.964f14ba, fails atdba8b69f(build(duckdb): move the engine to DuckDB 2.0.1 (#1168) #1171, DuckDB 2.0.1) with CI's exact numbers.jaro_winkler_similaritycount Unicode characters where 1.x counted bytes. All 32 drifted predictions pairxolomièswithcolomiès: 0.926 → 0.917, across the surname's 0.92 level, which is a 1.3022-bit drop and exactly the drift. The new value is correct.historical_50kis re-baselined from this engine by a new#[ignore]regenerate test. Its MANIFEST records the provenance.historical_50k_asciifolds every text column to ASCII and is generated by Splink. The engine must match it exactly.fixtures/golden/gen_historical_50k_golden.pyis the Splink generator, reconstructed and verified.Why
#1206's done-when: bisect, then regenerate with provenance or fix the drift, and say why the change is acceptable. Python has no DuckDB 2.x, so Splink can't regenerate the oracle on the new engine. Re-baselining from our own engine alone would have quietly dropped the parity check, so the ASCII twin keeps it: on data where bytes and characters coincide, the engine still has to equal Splink exactly.
Proof
estimate_without_term_frequencies=True.--asciioutput vs dedupe-core on DuckDB 2.0.1: exact match. The unfolded control on the same build fails.DEDUPE_SCALE_TESTS=1.cargo fmt --check,clippy -p dedupe-core --all-targets -D warningsandmake skills-checkare clean.make check, because disk was at 98% from other sessions' builds and a cold rebuild risked it. CI runs the full gate on this PR, and the scale job only on schedule or dispatch, so I'll dispatch it after merge.Risk & rollback
Test and fixture change only; no engine code. Rollback:
git revert <merge-sha>(the nightly goes red again).Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-29T08:43:01Zmainis 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: — 7a8145b, rust 46242304135 + frontend 46242304082 success; the scale job dispatched on the branch (46238723844) passed in CI
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46242304011
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — run 46242537559 success; test and fixture change only
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer success on 7a8145b
Donethrough the automation rather than byhand, and the issue closed: — scale golden (50k) fails deterministically on main since 03792063..ad38be23 (likely the DuckDB 2.0.1 bump) #1206 CLOSED by fix(golden): the 50k golden survives DuckDB 2.0's Unicode jaro_winkler, with an independent Splink twin (#1206) #1421 via automation
(a skill, a reference, memory) — or nothing new was learned: — er-matching goldens-and-oracles.md records the episode and the ASCII-twin pattern
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
Fixtures added: about 3.3 MB for the ASCII twin. When Python ships DuckDB 2.x, run the generator without
--asciiagainst it andhistorical_50kcan be a Splink oracle again.🤖 Generated with Claude Code