From cecca5dd53caecad6840a95c87169944fb8d721d Mon Sep 17 00:00:00 2001 From: Aryan Sanjay Nagbanshi Date: Sun, 29 Nov 2026 02:42:42 +0100 Subject: [PATCH 1/2] Pass line origin to the ranking in the robustness run --- README.md | 5 +++-- src/codexray/report/robustness.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index be429851..2ff96650 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,9 @@ source files. Every finding cites the commit, file and lines behind it. | 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." | +| `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 | 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. 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() From 9979bd020ad13908acd5a630f53492d46524a472 Mon Sep 17 00:00:00 2001 From: Aryan Sanjay Nagbanshi Date: Sun, 29 Nov 2026 02:42:42 +0100 Subject: [PATCH 2/2] Update the README status of judge, decisions propose, check and the stability table --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2ff96650..f19e1406 100644 --- a/README.md +++ b/README.md @@ -20,14 +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" | +| 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 | -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. +The results in this repository were made without AI calls: the finding text is the fixed +sentences built from the facts. ## Prerequisites