Repository navigation
Add opt-in bounded file cycle reporting - #114
Merged
Merged
Conversation
This was referenced Nov 27, 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 #106. Use --cycle-reporting witness or CheckOptions.new(cycle_reporting: :witness) to report one deterministic evidence-backed cycle per cyclic component. Tarjan classifies the whole selected graph and iterative path search supplies a witness without Johnson enumeration. No numeric cutoff or timeout, and no layer/slice API expansion. Default exhaustive JSON and baseline output were byte-identical to main on the three-cycle fixture. The CLI rejects witness mode for baseline creation and checking before loading config; the fingerprint adapter also rejects witnesses returned by custom wrappers. Reporting mode does not split the extraction cache. Local validation: 984 examples, zero failures, 13 platform skips, clean RuboCop, docs links, and an installed-gem smoke. A fixed 18-vertex graph returned 65,536 paths exhaustively versus one witness, with median projection time 1710.71 ms vs 0.86 ms and allocations 2,296,780 vs 2,835 (Windows Ruby 4.0.6, 3 alternating runs per mode, not end-to-end check timings).