Repository navigation
Check pairing copy around the random check words - #2228
Merged
Merged
Conversation
TestM1M4M8M9M10AppPair banned engine words by substring across every visible line, including the three random check words. The word list holds "ledger" and "cello", which contains "cell", so about 2.3% of pairings failed the check. Remove the pairing's own words from the line before the ban check. All other copy is still checked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What fails
TestM1M4M8M9M10AppPairfails at random withL3 terminal copy: "Waiting for approval on your other computer. It should show: ...".Cause
The test bans engine words by substring on every visible line, and that line includes the three random check words. The 256-word list holds
ledgerandcello, andcellocontains the bannedcell. Each of three words has a 2 in 256 chance of being one of them, so about 2.3% of pairings fail.This is a test defect. The list stays unchanged because both computers derive and compare these words.
Change
The test removes the pairing's own
Wordsfrom each line before the ban check. All other copy is still checked, and theallowedpattern still covers the whole line.Evidence
celloandledger.WordFortemporarily returningledger, the old test fails with the same line and the new test passes.L3 terminal copy.🤖 Generated with Claude Code