Skip to content

Add opt-in bounded file cycle reporting - #114

Merged
TristanKruse merged 1 commit into
mainfrom
feature/cycle-witnesses-106
Nov 27, 2026
Merged

TristanKruse merged 1 commit into
mainfrom
feature/cycle-witnesses-106

Conversation

@TristanKruse

Copy link
Copy Markdown
Collaborator

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).

@TristanKruse
TristanKruse merged commit b849668 into main Nov 27, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cycles: add bounded witness/reporting mode without hiding baseline debt

1 participant