diff --git a/README.md b/README.md index be429851..f19e1406 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,14 @@ source files. Every finding cites the commit, file and lines behind it. | Stage 5, `analyze`: decisions, finding types, before and after | Works on all three repositories | | Stage 7, `report`: ranking, `findings.json`, the web bundle | Works on all three repositories | | Web app: Decisions, Structure grid, Close-up, Code, Before and after, Size, Report | Works on the three bundles in `web/public/bundles/` | -| Stage 6, `judge`: AI text for the shown findings | Not built on this branch; prints "not built yet" | -| `decisions propose`: rules proposed from written decision documents | Not built on this branch; prints "not built yet" | -| `check ..`: decisions a change breaks | Not built on this branch; prints "not built yet" | -| Stability table (spec.md §11.3) and the emerging-hotspots list | Not filled yet; the Report screen shows "Not measured in this run." | - -Because `judge` is not built, the finding text is the fixed sentences built from the -facts, and no AI call was made for the results in this repository. +| Stage 6, `judge`: AI text for the shown findings | Works with `LLM_API_KEY` set; answers are cached in the run folder, so a re-run makes no call | +| `decisions propose`: rules proposed from written decision documents | Works with `LLM_API_KEY` set; writes `proposals.yaml` for review, and the reviewed rules are in `rules/` | +| `check ..`: decisions a change breaks | Works; lists each broken decision with file and line, and exits 1 when there is one | +| Stability table (spec.md §11.3) | `make robustness REPO=` after `report` measures it (13 to 21 minutes per repository on 4 cores) and rebuilds the report | +| Emerging-hotspots list | Not filled yet | + +The results in this repository were made without AI calls: the finding text is the fixed +sentences built from the facts. ## Prerequisites diff --git a/src/codexray/report/robustness.py b/src/codexray/report/robustness.py index bf8c2dcb..050c37ac 100644 --- a/src/codexray/report/robustness.py +++ b/src/codexray/report/robustness.py @@ -71,7 +71,7 @@ def ranking_of( """Finding ids in final order, and the findings as canonical JSON.""" from codexray.decisions import registry from codexray.model.rollup import load_tree - from codexray.report import assemble + from codexray.report import assemble, line_shares manifest = contracts.Manifest.model_validate(json.loads(run.manifest.read_text("utf-8"))) decisions = {d.id: d for d in registry.load_decisions(run.decisions)} @@ -81,8 +81,9 @@ def ranking_of( if end is None: raise CodeXrayError(f"{run.root} has no END snapshot") tree = load_tree(con, manifest.repo, end.sha) + origin = line_shares.load(con, manifest, end.sha, settings) findings, _ = assemble.assemble( - con, manifest, settings, decisions, tree, end, dict(judgements or {}) + con, manifest, settings, decisions, tree, end, dict(judgements or {}), origin ) finally: con.close()