Repository navigation
Oracle step 5: broke only when the change since the previous run caused it - #59
Merged
Merged
Conversation
…ed it The re-check now sees the diff of each finding's changed files since the previous run. A disagreement the diff did not cause (it was already there, or nothing shows what changed) is found_broken, reported apart and not published: the board's "broke as Oracle predicted" counts only what Oracle predicted. A broke with no diff behind it is downgraded in code. Seen on a first weekly run: two places had disagreed for weeks before the previous run, which recorded the agreement as a risk; unrelated edits to one of the files then triggered a re-check, which found the disagreement and counted it as broke. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
maciej-szlosarczyk
approved these changes
Dec 1, 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.
Problem
Step 5 marks a re-checked finding
brokewhenever its places now disagree. The re-check is told only which files changed since the previous run, not how, so it cannot tell a disagreement the change caused from one that was already there.Seen on a first weekly run: two places had disagreed for weeks before the previous run, which recorded the agreement as a risk rather than a bug. Unrelated edits to one of the files triggered a re-check, which found the disagreement and counted it as
broke, so the dashboard showed 1 "broke as Oracle predicted" for something Oracle had not predicted, only missed.Change
compare.diffOfgives each finding the diff of its changed files since the previous commit (read-only, uses the commitchangedFilesalready fetched; cut at 12,000 characters, saying so). The listing also carriesprevious_commit.found_broken: the places disagree, but the diff does not show the change since the previous run caused it (already disagreed, or no diff).brokeis now kept for disagreements the diff shows were introduced.brokewith no diff behind it is downgraded tofound_broken, with a note.report.mdgets a "Found broken" section (after Broke, before Fixed);changes.jsoncountsfound_broken.publish.jsalready sends counts by name, so the dashboard payload is unchanged and itsbrokemeans only what Oracle predicted. No dashboard change, no new release needed on the board side.Tests
diffOf: only the asked files; uncommitted edits count;null(not empty) when the commit or files are missing; cut at the limit.diffandprevious_commit;found_brokenis counted and reported apart and never asbroke;brokewithout a diff is downgraded;publishnever sendsfound_brokenand never folds it intobroke.found_brokenintobroke): each fails.dist/rebuilt: onlydist/oracle.jsand its re-check prompt change; scan bundles untouched.🤖 Generated with Claude Code