Skip to content

Fix the problems found on the three repositories and publish the judged results - #77

Merged
Pranav-Mathad merged 13 commits into
mainfrom
issue-12-found-problems
Nov 29, 2026
Merged

Pranav-Mathad merged 13 commits into
mainfrom
issue-12-found-problems

Conversation

@Pranav-Mathad

@Pranav-Mathad Pranav-Mathad commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #12 (closed). Closes #76. Closes #80. Covers the publishing part of #75 and includes #79, the code for #74; what is still open on those two is listed under "Not done".

What this changes

Fixes for the problems found while running the three repositories, the merged work from main (AI jobs, stability measurements, check, reviewed rules), and the final results made with all of it: AI text, the usage ledger and the stability table. No contract or schema change.

Analyze (spec.md §9.2, §9.3)

  • Foundation depending on features: the share of modules using a module is taken over the other modules of its own area, counting the areas inside it. Before, it found nothing on Artemis and Shopware. Thresholds unchanged.
  • Slipping needs a rise above the earlier range by more than a margin (status.slipping_rise_margin_per_kloc: 0.01); before, one exception on a zero baseline was a slip.
  • The cap on commits per evidence record is a setting.

Report (spec.md §8.5, §11, §12.2)

  • judge could not run on main: it called assemble without the line-origin argument. Fixed. Its fix simulations and AI module descriptions now reach the bundle (Finding.simulation, MapFile.descriptions); a judgement, simulation or description file that does not validate is an error naming the file.
  • Suggested improvements built from facts for shaky foundation, hidden partners and large-complex-changed findings (Give pressure points and supporting detail a suggested improvement built from facts #79).
  • Hidden-partner titles use their template; a broken rule inside one module reads "Inside X, N link(s) go against a decision"; the foundation summary states the area numbers.
  • report.json lists the emerging hotspots at END (up to 25, the total stated in a limit).
  • The bundle list is written in one fixed order. A limit states how many grid cells show fewer example lines than links.

Repository (spec.md §5.3, §5.7)

  • The restructuring label is the matched word, not the pattern text.
  • A later ingest with the token fetches the pull requests a run made without it is missing.
  • blame_file accepts a relative ignore-revs path.
  • No hosting name is left in engine code (API address, headers and the no-reply pattern are settings).
  • A docs/ folder below the root and component story files count as docs.

Web (spec.md §10, §12.4)

Published: results/<id>/ (findings, manifest, decisions, usage.json, robustness.json, ARCHITECTURE_RULES.md), the three bundles, README.

What was run and what came out

Numbers are Artemis / Shopware / Graylog.

  • Each repository from scratch, twice (ingest to report): same run folder, core.db.fingerprint identical over 25 tables, every written file byte-identical. Then judge and the stability step on one of each pair, and report twice more: identical bytes. Every bundle file loads through its contract model; check_bundle reports 0 errors. results/ and the installed bundles equal the runs (cmp, equal file lists). Neither the gateway key nor the host token appears in any published file.
Artemis Shopware Graylog
Decisions (reviewed rules from rules/) 49 (33) 66 (65) 3 (2)
Findings at END 257 213 221
foundation_on_features (was 0 / 0 / 36) 38 20 67
Findings with status: "ai" / "template" 25 / 232 24 / 189 25 / 196
Judged answers that failed a check and kept the template 0 1 0
Gateway calls 163 247 197
Input / output tokens 322,403 / 78,461 314,160 / 93,934 255,678 / 72,927
Cost $2.28 $2.25 $1.82
AI module descriptions kept 55 122 88
Simulations that ran: target link removed / remains 18 / 32 9 / 10 15 / 35
Hotspots listed 25 18 1
Bundle on disk 43 MB 33 MB 32 MB
  • judge a second time (measured on a scratch Artemis run): 5 seconds, 0 calls answered by the gateway, the ledger and every judgement file unchanged.
  • Cited evidence: on that run, none of the 64 evidence ids cited by the 25 AI claims is missing from its finding.

Stability (spec.md §11.3): top 5 unchanged, top 10 unchanged, rank-biased overlap.

Test Artemis Shopware Graylog
Identical re-run 5, 10, 1.000 5, 10, 1.000 5, 10, 1.000
Fresh AI run 5, 10, 1.000 5, 10, 1.000 5, 10, 1.000
5% of commits removed 5, 9, 0.956 5, 10, 0.997 4, 10, 0.969
End date one month back 4, 7, 0.849 4, 6, 0.791 5, 9, 0.944
Weights changed by 20% 5, 8, 0.922 4, 8, 0.855 4, 9, 0.875

No test leaves fewer than 4 of the top 5. Identical re-run: findings byte for byte the same and no analyze table differing, on all three. The step made no AI call and took 12.2 / 14.1 / 10.4 minutes on a shared 10-core machine.

  • Fixes followed by hand (before the merge with main): Artemis core uses course at core/config/MetricsBean.java:53; the slipping margin sits in a gap of the measured rises (26 between 0.0003 and 0.0087, 9 at 0.018 or more); a Graylog run made without the token stored 0 of 21 pull requests, a second ingest with it fetched 21 and the result is byte-identical to a run that had the token from the start; six path-class candidates were measured on all three and four rejected for moving production code or test fixtures.
  • The app, served with vite and dumped with headless Chrome on all three: counts match the bundles; AI text is marked as AI; the Report screen shows the stability rows, the usage rows and the hotspots; with ai=off every finding shows the fixed sentence. On Artemis, rank 41 (target link remains) reads "Simulated: the link remains" in the list, the detail and the grid's fix panel, and rank 7 (link removed) reads "Checked by simulation" in all three.
  • make check passes.

Not done, not run

  • Run the AI jobs on the three repositories and publish the judged results #75: the 25 judged claims of one repository were not read against their cited lines; cited lines opening in the code pane and "try the fix" redrawing the grid were not exercised (only page text from DOM dumps).
  • Give every fix-first finding a suggested improvement #74: among the ten findings shown, 2 / 5 / 0 have an AI answer whose fix action is "none"; the screen then says "No improvement proposed." although the answer holds fix text. The suggestions were not read against the code here.
  • Job A (decisions propose) was not run again: the reviewed rules were already committed. No ledger of the run that proposed them is committed, so the token table covers jobs B and C only.
  • The "fresh AI run" row compares the ranking with and without the stored answers; it makes no new call with the cache off, which is what spec §11.3 describes.
  • Layout, colours, canvas drawings and clicks were not looked at.
  • A development script on Shopware still counts as production (no path class fits); module names on the grid axes are full paths; spec §9.6 still shows the earlier test numbers.

For reviewers

  • Graylog's foundation_on_features count went from 36 to 67 within the unchanged thresholds: database and three client modules now qualify in their areas.
  • 8 of 73 Artemis module descriptions failed their checks and keep the computed text.
  • A top-up of pull requests rewrites the pull-request parts of a complete run's manifest.
  • The time and disk figures in the README were measured while other runs shared the machine.

Checks

  • make check passes
  • Every new fact carries its evidence: commit, file and lines, or the commits (spec.md §4.4)
  • Output is sorted and has no clock time, so a second run gives the same bytes
  • No language or project name in engine code; new starting values are in settings/
  • Does not touch core/contracts.py, core/schema/ or core/runs.py

Pranav-Mathad and others added 2 commits November 29, 2026 03:27
…ents

Give pressure points and supporting detail a suggested improvement built from facts
@Pranav-Mathad Pranav-Mathad changed the title Fix the problems found while running the three repositories Fix the problems found on the three repositories and publish the judged results Nov 29, 2026
@Pranav-Mathad
Pranav-Mathad merged commit 248c6ff into main Nov 29, 2026
2 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.

Say "checked by simulation" only when the fix removes its link Measure the stability table on the three repositories

1 participant