Repository navigation
test: render each candidate row on one line, so a known row cannot read as a catch - #245
Merged
Merged
Conversation
…ad as a catch SeedVerdict.Catches (#55) reads a Verdict message one row per line. A row whose text held a newline (a StringSet element holding \n, an exception message) put its continuation on a line without the [known candidate: prefix, which read as an unknown, caught row: the gate's seed proof could count a seed as caught by a known disagreement alone (#235). Candidates.Judge now writes every row, and the header, on one line, line breaks shown as ⏎; candidates still match the row's original text. SeedVerdictTests: AKnownRowSpanningLines_DoesNotCatch (the issue's repro) fails with the flattening removed; ARowSpanningLines_BesideAKnownRow_StillCatches holds the other direction. Closes #235 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.
Closes #235
Problem
SeedVerdict.Catches(#55) reads aCandidates.Verdictmessage as one row per line. A row whose text contained a newline put its continuation on a line without the[known candidate:prefix, so that line read as an unknown row, which counts as a catch. A string element holding\nor an exception message can produce such a row. The gate's seed proof could therefore count a seed as caught by a known disagreement alone. Today this is latent, because every current candidate is filed.Change
test/oracles/Candidates.cs:Judgenow writes every row on one line, with line breaks shown as⏎. That covers failing rows, unfiled-candidate rows, theSKIPPEDoutput and the header. Candidates still match against the row's original text.Tests
SeedVerdictTests.AKnownRowSpanningLines_DoesNotCatchis the issue's repro: one unfiled candidate,"Int32Set whitespace {1,\n2}: …". It now reads as not caught, and the message shows{1,⏎2}. It fails with the flattening removed.ARowSpanningLines_BesideAKnownRow_StillCatches: a multi-line real row beside a known one still catches. It passes either way, and guards against a fix that goes too far.Candidates.csis linked into four test projects). Conventions 397 passed.🤖 Generated with Claude Code