Repository navigation
test: report a divergence a minority of siblings shares - #205
Merged
Merged
Conversation
The clone sweep reported a member only when exactly one sibling differed, so two siblings that drifted together - a pair added in one change, or a defect copied into two files - went quiet. When Float32 joined Float64, 24 waived divergences vanished. The extra and lone-body rules now fire for a group smaller than a third of the family, reported once under the group's names joined with " + " and waived once under that name. Eleven sub-family divergences surfaced on main, each legitimate and waived with its reason. The seed copies a reference-based GetHashCode into Int32Set and Int64Set; the old sweep passed it, the new one catches it. Closes #200 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The minority sweep (#200) reports Values($T) on Int32Range and Int64Range as present in 2 of 7 core ranges. Every discrete range has Values(step); only on the integers is the step the element type, so the date and month ranges' overloads normalize to a different signature. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 18, 2026
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 #200
Problem
The clone sweep reported a member only when exactly one sibling differed from the family. Two siblings that drifted together — a pair added in one change, or a defect copied into two files — were invisible. When
Float32Range/Float32Set(#199) joinedFloat64Range/Float64Set(#198), 24 divergences that had been waived for Float64 vanished and their waivers went stale.Change
test/oracles/CloneSweep.cs: the extra and lone body rules fire for a minority — one sibling, or a group smaller than a third of the family (MinorityDivisor = 3). A lone body must sit near a cluster larger than the group, so neither side can pose as the consensus. A group divergence is reported once, its unit the names joined with+in ordinal order (Int16Set + Int32Set + Int64Set), and waived once under that name. A single sibling is reported exactly as before, so every existing waiver still matches (0 stale).test/oracles/clone-waivers.json: 11 group divergences surfaced on main, all legitimate sub-families, each waived with its reason: the integer families'IntegerLiteralparsing and number element converter, the temporal arities'Oformat, the NodaTime store helpers and literals, the timestamp/calendarnormalizeValue, the overflow-checkedFiniteLengthofDecimalRangeandInt64Range, and the ISO pairRequireIso/ToIso.docs/oracles.mdand theCloneDivergenceTestsremarks describe the rule and its new limit (a sub-family of a third or more still looks like a consensus).The float families' shared divergences become reportable once #198/#199 are updated from main; each is then waived once as
Float32… + Float64….Tests
hash-by-reference-copied-into-two-sets.patch: copies a reference-basedGetHashCodeinto bothInt32SetandInt64Set. With this change,CloneDivergenceTestsfails oncore value sets · Int32Set + Int64Set · GetHashCode() · lone body. With the oldCloneSweep.csand the same defect, it passed.dotnet run tools/oracles.cs seeds two-sets→CAUGHT. The existing single-sibling seedsibling-drops-input-function-trim.patchis still caught.dotnet run tools/oracles.cs clones: 76 divergences, 76 waived, 0 unwaived, 0 stale.🤖 Generated with Claude Code