Repository navigation
Add the stability table, the rules export and codexray check - #72
Merged
Merged
Conversation
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 #11
What this adds
codexray check <base>..<head> --repo <id>lists the decisions a change breaks, with file and line, and exits 1 when there is one.parseandmodelstages on both snapshots and checks every reviewed, checkable decision from the run'sdecisions.yamlon both maps.make robustness REPO=<id>(report/robustness.py) measures the five tests of spec §11.3 against the baseline order at END.robustness.jsonin the run folder, then runscodexray reportagain soreport.jsoncarries the table.report/stability.py(Module: ranking stability measures (report/stability.py) #21).identical_rerun: a copy of the run's database goes throughcodexray analyzeagain. It records whether the findings are byte-identical and whether every analyze table has the same fingerprint.fresh_ai_run: the order with the stored AI verdicts against the order without them. This is 1.0 by design. Beside it is the agreement of the separate votes stored per judged finding; this makes no new gateway calls.commits_removed_5pct: a copy of the database with 5% of commits (fixed seed) removed fromcommitsandfile_changes, the two history tables analyze and report read, then analyze again.end_date_minus_1_month: the whole pipeline (ingest,parse,model,analyze) again, with END pinned to the last mainline commit before END's date one month earlier.repos.yaml;repos/andrules/link to the real ones.weights_changed_20pct: each weight raised and lowered by 20% and renormalised. The row shows the worst of the six variants, and all six are kept inrobustness.json.Report:
report.jsongetsstabilityfromrobustness.json. Coverage, limits and usage were already filled by Stage 7: assemble findings,findings.jsonand the web bundle (codexray report) #6.codexray reportalso writesARCHITECTURE_RULES.mdnext todecisions.yaml, usingreport/exports.py(Module: architecture rules export (report/exports.py) #22).There are no new test files, per team rule 3. The
checkline is removed fromSTUBS.What I ran and saw
codexray checkon GraylogI made two commits in the Graylog clone with git plumbing; nothing was checked out.
Breaking commit: adds
import org.graylog.datanode.Configuration;tograylog2-server/.../shared/utilities/StringUtils.java.Comment-only commit:
the change breaks no decision (3 reviewed decisions checked; 0 exceptions gone), exit 0.Unknown revision:
codexray: 'nosuchref' is not a commit in repos/graylog, exit 1.The scratch folder is gone afterwards.
Stability table, all three repos
These runs used the reviewed rules from #69, placed in the working tree for the runs and not committed here.
Cells show top 5 kept, top 10 kept, and rank-biased overlap.
codexray reporton Graylog wrote the same bytes in all 2,873 files.components/bootstrap/index.ts(rank 3) andlogic/telemetry/Constants.ts(rank 11). The tie is broken by finding id, so a month less history, or a 20% weight change, swaps them. The cheap loop at 0.66 and the foundation finding at 0.64 are just as close. Three of the six weight variants keep 5 of 5. Ties at the per-type cap are what moves.The robustness run took 14 min on Graylog, 13 min on Artemis and 21 min on Shopware. Most of it is the END-moved-back pipeline; its run folder is kept under
<run>/robustness/.make checkpasses.Not done
codexray judgefrom Add AI jobs B and C with checked votes and fix simulation #67 and would cost about $2.30 per repo. The stored votes are separate calls, so their agreement is what is measured.