Skip to content

Latest commit

 

History

History
1020 lines (728 loc) · 61.2 KB

spec.md

File metadata and controls

1020 lines (728 loc) · 61.2 KB

CodeXray specification

Status: working draft, 28 November 2026. hackaTUM 2026, CHECK24 track "Visualise and judge a codebase".

This document is the single source of truth for what we build. It merges the sponsor's deck, what the sponsors told us in person, three research documents from the team, and measurements taken on the real repositories. Where a value is a starting guess, it is marked (initial) and lives in configuration.


1. What we are building

CodeXray reads a large codebase and answers one question for two audiences:

Are the architecture decisions of this project being kept, and where are they not?

  • The CTO gets a verdict per decision (holding, mostly holding, spreading, slipping, broken), a trend over time, and an honest statement of what the tool could and could not see.
  • The team gets a short, ranked list of exceptions to fix first. Each one links to the exact lines of code, says why it matters, and proposes a fix that the tool has tried out on its own map.

The motivation, in the sponsors' words: AI will write most code in the coming years. People will no longer review every line. What they still own is the architecture, so the tool that matters is one that guards it.

1.1 Sponsor requirements

# Requirement Source
R1 Analyse and judge 3 repos: Artemis plus two of our choice, each 2+ years old with 300k+ lines of code excluding assets Deck, slide 16
R2 Deliver an interactive visualisation and a quality report per repo Deck, slide 16
R3 Facts come from deterministic analysis; the LLM sits on top of facts, not instead of them Deck, slides 10–12
R4 Quality over quantity: two judge dimensions with real evidence beat nine with vague text Deck, slide 13
R5 The solution must be language independent Sponsors, in person
R6 CHECK24 mostly uses PHP and Java Sponsors, in person
R7 The most critical point is architectural decisions Sponsors, in person
R8 Bonus (tiebreaker): compare snapshots before and after March 2025 for architectural drift, emerging hotspots and AI-generated risk. "Drift isn't automatically bad." Deck, slide 15
R9 Input is a Git repository and, where available, its GitHub pull requests and issues Portal briefing
R10 For the bonus, use the goal of the relevant pull request or issue as context. Treat patterns as signals, not proof; state uncertainty; check that every cited file, line and symbol is real Portal briefing
R11 Submit a repository with a README and run instructions, results for all three repositories, token usage for each analysis, and a short demo. Devpost, Sunday 10:00 CET Portal briefing
R12 The demo shows the working tool, its results on the shared repository, and the key decisions the team made. The briefing asks teams to explain their trade-offs Portal briefing

1.2 Judging criteria and how we meet each

Criterion (deck wording) How CodeXray meets it Where specified
Actionability: "opens with the most important findings to fix first, not a list of 500 warnings" Opens on decisions and their top exceptions; one root cause is one finding; ranked by impact against effort §9, §11
Traceability: "click any finding and land on the part of the graph and the lines of code behind it" Every fact stores its commit, file and lines; one click from finding to map cell to code §4, §10
Understandability: "someone new to the codebase sees its main modules and how they connect within minutes" Structure grid of modules, one-line module descriptions, decisions list §10
Robustness: "run it twice on the same repo, and the top findings stay (nearly) the same" Ranking is arithmetic only; pinned inputs; stability table shown on screen §9.4, §11.3
Efficiency: "AI used wisely: only where a deterministic approach can't do the job" AI does three narrow jobs; the full report works with zero AI calls §8
Bonus Each decision is tracked across 14 dates; changes labelled planned or unplanned §12

The additional judging hint says findings must be "plausible problems based on actual code evidence", explain "why they matter", suggest "realistic improvements", and be "understandable, verifiable, and useful to a developer".

1.3 Decision log

Decision Status
Lead with architecture decisions; complex-file hotspots become supporting detail Agreed
AI turns written decisions into checkable rules; ordinary code does the checking Agreed
Repos: Artemis, Shopware, Graylog (Camunda only as an optional scale test) Agreed
One language-neutral reading and linking method for every language Agreed
The bonus is designed into every stage from the start Agreed
Scope is set by product quality, not by hours or team size Agreed
Merged Stage 5–6 design (seven finding types, fix simulation) Proposed, open to refinement
Merged Stage 4 and 7 design (structure grid, arithmetic ranking, "try the fix") Proposed, open to refinement
Fix text for pressure points and supporting detail is built from facts by ordinary code, not written by AI Agreed

2. Principles

These hold in every stage. A change that breaks one needs a team decision.

  1. Facts before AI. Detection, counting and ranking are done by ordinary code. The AI reads prose and writes prose.
  2. No fact without evidence. Every stored fact carries the commit, file and line range, or the list of commits, that proves it.
  3. The snapshot is a key. Every table row is tied to a repo and a snapshot commit. The pipeline is a function of one snapshot. Comparing two dates is the same pipeline run twice.
  4. No language or project names in the engine. Anything specific to a language or a project is data in a file, detected automatically where possible and readable by a person.
  5. Same input, same output. Inputs are pinned, output is sorted, and a second run must match the first.
  6. State the limits. Every report says what was read, what was skipped and why, and how accurate the linking is known to be.
  7. Report what is healthy. A decision with zero exceptions is a result, shown with its evidence.
  8. No blaming individuals. Ownership and activity are shown per module or team, never as a ranking of people.
  9. Never guess AI authorship. Only explicit markers count. The label for everything else is "no AI signal", never "written by a human".

3. Scope

3.1 Repositories

Repo Languages Why it is in Observed head on 2026-11-27
ls1intum/Artemis Java, TypeScript Required d8fc4519563de28366e80edd77d2020a2c7a5157
shopware/shopware PHP, JavaScript/TypeScript CHECK24's main language; an online-shop platform; 190 dated decision documents ec8b7141762457f03741e59f85cb1eeb852b062d
Graylog2/graylog2-server Java, TypeScript Second Java project with a different style and a clear AI-adoption date 4912933127e13ba7e84d74daef36f5c182af1320

Each repo is pinned to one commit at kickoff, recorded in the manifest, and never re-pinned during a run. Shopware qualifies under R1: public since 2018, about 620,000 lines of production PHP, MIT licence. Graylog's licence is SSPL; ask the organisers whether source-available licences are accepted (see §15).

3.2 Out of scope

  • Security scanning, style linting and test-coverage measurement.
  • Rankings or scores for individual developers.
  • Detecting AI-written code from style or keywords.
  • Data-flow analysis below the level of one function calling another.
  • Requiring a successful build of any analysed project.

4. System overview

4.1 Pipeline

The deck defines seven stages. Ours map onto them as follows.

Stage Name Our component AI used
1 Repository History miner No
2 Parse Neutral reader and linker No
3 Model Nested map and decision registry No
4 Visualize Static web app No (reads stored text only)
5 Analyze Decision checks, pressure points, drift No
6 LLM Judge Decision reader, exception judge, module describer Yes
7 Explain Ranking, report, exports No

4.2 Commands

One command-line program, codexray, with one subcommand per step. Every subcommand is safe to re-run.

Command Does
codexray ingest <repo-url> Clone, pin, mine history, list files at every snapshot date
codexray parse Read every unique file once; link files per snapshot
codexray model Build the nested map per snapshot
codexray decisions propose Collect decision sources; AI proposes rules; write a reviewable rules file
codexray analyze Check decisions, find pressure points, compute drift
codexray judge AI text for the findings that will be shown
codexray report Rank, write findings.json, build the web bundle
codexray check <base>..<head> Per-change check: which decisions does this change break?

4.3 Storage

runs/<repo_id>/<END_SHA>/<params_hash>/
  manifest.json        pinned commit, params_hash, rules_hash, tool versions, settings, coverage, limits
  codexray.duckdb      all tables from Stages 1–5
  decisions.yaml       the reviewed rules (also kept in our repo under rules/<repo_id>.yaml)
  judgements/          cached AI responses, one file per cache key
  usage.json           every AI call: job, model, tokens in and out, cached tokens, cost (required for submission)
  findings.json        ranked findings (Stage 7 output)
  simulation_batch.json  result of applying all cheap-loop fixes together (§8.5)
  robustness.json      stability measurements
  web/                 static bundle for the browser

params_hash is the SHA-256 of the git flag list, tool and grammar versions, and the settings files. A run with the same pinned commit and the same hash is a no-op. The rules file is not part of it, because rules are reviewed after ingest and reviewing one must not move the run to a new folder. The rules file has its own rules_hash (SHA-256 of the file), recorded in the manifest and included in the cache key of anything that depends on rules.

4.4 The evidence record

Used by every stage. A fact that cannot fill this in is not stored.

{
  "id": "E1",
  "repo": "ls1intum/Artemis",
  "snapshot_sha": "d8fc4519563de28366e80edd77d2020a2c7a5157",
  "kind": "lines | commits",
  "path": "src/main/webapp/app/foundation/service/base-api-http.service.ts",
  "start_line": 1, "end_line": 1,
  "blob_sha": "…",
  "commits": [],
  "role": "offending import"
}

Links are built from this record: a public URL pinned to the commit where the host is known, and an "open in editor" link built from the local path and line. Private repositories, including CHECK24's own, have only the second kind, so both must exist.


5. Stage 1: Repository

Purpose. Turn a repository's history into clean, labelled tables. No code is interpreted here.

5.1 Acquisition

  • Full clone of the default branch (--single-branch, tags kept). No shallow or partial clones: on a blobless Artemis clone, change statistics for 50 commits took 21.75 s against 36 s for the whole history on a full clone.
  • Hooks off, large-file download skipped.
  • Record the head commit as END_SHA. Every later step uses it, never "latest".

5.2 History pass

One pass per repo:

git -c diff.renameLimit=10000 -c core.quotepath=off \
    log -z --raw --numstat -M --first-parent <END_SHA>
  • Rename detection is mandatory. Without it, measured change volume in Artemis is inflated by 41%.
  • Unit of change: one first-parent commit is one landed change. If most first-parent commits are merges, add --diff-merges=first-parent; detect this automatically.
  • Dates: committer date for all time windows; author date kept for code age.
  • Windows are measured from the END commit's date, never from today's date.

5.3 Cleaning: flag, never delete

Flag Rule (initial)
Bot Author matches \[bot\], dependabot, renovate, github-actions, or a known release bot
Noise More than 500 files or more than 50,000 changed lines
Planned restructuring Noise commit whose subject matches a word for restructuring, upgrading, migrating, renaming, formatting, moving or mechanically rewriting code (list: cleaning.restructuring_subject_patterns in settings/repository.yaml); also written to an ignore-revs file
Path class production, test, generated, vendored, lockfile, translation, docs, template, asset
Identity Apply .mailmap, then lower-cased email, then collapse noreply addresses

Generated code is recognised from the repo's own markers (linguist-generated, @generated headers) before any path guess.

5.4 AI evidence

Label Rule Notes
ai_attributed, strong Agent bot as author or committer; a co-author line from a coding agent; an agent session trailer Evidence text is stored
ai_attributed, weak An ambiguous co-author line, such as one produced by accepting a review suggestion Kept apart from strong
bot_automation Dependency and release bots Excluded from AI comparisons
no_ai_signal Everything else Never shown as "human-written"

Per repo, also record:

  • the sponsor date, 2025-03-01;
  • the detected adoption date: the earlier of the first mainline commit adding an agent instruction file (AGENTS.md, CLAUDE.md, .github/copilot-instructions.md, .cursor*, GEMINI.md) and the first month with three or more strong-attributed changes. Review-bot settings do not count.

Both dates are shown everywhere the bonus appears. Measured on Artemis, the share of changes with an explicit AI marker in the year after March 2025 was 0.5%; the real shift arrives in December 2025 to February 2026.

5.5 Snapshots

14 dates per repo: the first day of each quarter from 2024-01-01 to 2026-10-01, plus 2025-03-01, plus END. Each resolves to the last first-parent commit before 00:00 UTC on that date. Files are read with git ls-tree and git cat-file --batch; no working-tree checkout is needed.

Every file row carries its blob_sha (a fingerprint of its content), so an unchanged file is read once across all dates.

5.6 Line-level origin

For every production file at END, record which commit last wrote each line (git blame with the ignore-revs file). Joined to §5.3 and §5.4, each line gets an origin: before or after 2025-03-01, bot or not, AI-marked or not.

Stated limit: this is the last change to touch a line, which is not always who first wrote it. Measured runtime: blame over Artemis's 8,954 production files and 1,029,656 lines took 104 s with 8 workers on a 10-core machine; the whole ingest took 3.4, 7.6 and 3.6 minutes for Artemis, Shopware and Graylog.

5.7 Pull requests and issues

The briefing names these as input "where available" and asks that their stated goal be used as context for the bonus (R9, R10). Fetch from the hosting service, per landed change:

  • the pull request's title and description, and the issues it links to;
  • review counts and check results;
  • AI footers that are lost when a change is squashed.

Cached with the run, so a re-run does not depend on the network. The pipeline must still produce a complete report for a repository that has none.

5.8 Output tables

Table One row per Key columns
snapshots repo, snapshot date, role, commit, file and line counts
snapshot_files snapshot, path blob_sha, lines, language (by extension), path class, reason
commits commit parents, dates, author key, sizes, bot, noise, restructuring label, AI label and strength and evidence, PR number
file_changes commit, path status, old path, canonical path, added, deleted
path_map historical path canonical path at END or <deleted>
structural_events commit date, files, renames, label, subject
ai_events commit or file event, tool, strength, date
monthly_metrics repo, month changes, bot share, median and p90 size, test and production lines, AI share
line_origin path, line range commit, era, AI label
prs (where available) PR title, description, linked issues, reviews, checks, AI footer

5.9 Done when

  • Runs on all three repos with no hand-editing.
  • Two runs produce byte-identical tables (compare SHA-256).
  • Any row can be followed to a commit or file on the host.

Starting point: docs/research/kits/stage1_starter_kit.zip holds working scripts for the history pass, rename map, snapshot resolution and line counts. Known fixes needed: add --first-parent; walk renames in log order, not date order; drop the hard-coded "now" date; replace the Artemis-only module patterns (§7.2).


6. Stage 2: Parse

Purpose. Read every file and work out which file uses which, with no language-specific code.

6.1 The only per-language input

A grammar, chosen by file extension. Grammars are ready-made descriptions of a language's syntax, read by the tree-sitter library, and exist for over a hundred languages. We write nothing per language.

Tested: tree-sitter 0.27.0 for Python, with the Java (0.23.5), TypeScript (0.23.2), PHP and Python grammars. A bundle of many grammars should be evaluated for wider coverage. All versions are recorded in the manifest and are part of params_hash.

A language with no grammar gets history-only facts (Stage 1) and is listed as such in the coverage record.

6.2 Reading one file

What counts as an import, a definition or a name is derived from the labels inside each grammar, by pattern:

Concept Grammar labels matching (initial)
Import import, include, require, namespace_use, use_declaration, using
Definition class, interface, trait, enum, record, struct, type_alias followed by _declaration, _definition, _specifier or _item
Function labels for function, method and constructor definitions
Name labels ending in identifier, or exactly name

Per unique file content (blob_sha), store:

Table Content
definitions name, kind, start line, end line
imports statement text, line
names_used name, first line used
functions name, start line, end line, length, branch count, nesting depth, parameter count, content fingerprint
read_problems line ranges the grammar could not understand

Reading is a pure function of the file content, which is what makes the cache by blob_sha valid across dates and runs.

6.3 Linking, per snapshot

Two rules, applied in order. Each link stores which rule made it and the line that proves it.

  1. Import by path ending. Split the import text into segments. Match it to the file whose path ends with the longest run of the same segments (at least two, or all of them). A quoted path starting with . is resolved relative to the importing file. A file named index, __init__ or mod stands for its folder. If the last one or two segments name something inside a file, drop them and retry.
  2. Same-folder names. A name used in a file and defined in another file of the same folder is a link.

A third rule, "a name defined in exactly one file anywhere", was tested and rejected: it lowered accuracy, to 68% correct on Shopware.

6.4 Measured accuracy

Agreement between the neutral rules and separate language-specific linkers written for comparison, production code only:

Project Language File links: right / found Module links: right / found
Artemis Java 95% / 100% 98% / 100%
Graylog Java 96% / 100% 98% / 100%
Camunda Java 96% / 99% 94% / 99%
Shopware PHP 94% / 100% 99% / 100%
Artemis TypeScript 100% / 98% 100% / 98%
Django Python 90% / 86% 100% / 96%

Python was not looked at while the rules were designed. Speed: Camunda's 16,651 Java files read and linked in about 6 seconds on a 10-core laptop.

These figures are agreement with our own comparison linkers, not with a compiler.

6.5 Known gaps to close

Gap Seen in Fix
Re-exports through folder index files (export … from) are not treated as imports Graylog TypeScript Add the export-with-source form to the import patterns
Relative imports written with leading dots Python Treat leading dots as "relative to this folder"
Top-level functions are not definitions Python; relevant to older-style PHP Add function definitions to rule 2 where a language has no classes in a file
Path aliases from project settings TypeScript Optional refinement; the path-ending rule already resolved most

6.6 Self-checks

  • Silent-miss check. Where a dependency list is recognised (package.json, composer.json, pom.xml, Gradle files), every import the linker treats as "outside the project" must match a declared dependency. Imports that match neither are counted and shown. An earlier language-specific attempt misread 86% of Graylog's screen-code imports without any error; this check would have caught it.
  • Coverage record. Per language: files read, files with unread regions, share of imports linked, share left outside.
  • Optional compiler comparison. Where a project builds, compare links against a compiler-accurate index and store the agreement percentage. If it does not build, the report says "not compiler-checked".

6.7 What no static tool sees

Links created while the program runs: files loaded by a computed path, parts wired together in settings files, calls made by name through reflection. Older-style PHP relies on the first of these. The report lists these as blind spots.

6.8 Done when

  • The four gaps in §6.5 are closed or listed in the coverage record.
  • Runs on Artemis, Shopware and Graylog, plus one small project in a fourth language as a generality check.
  • The silent-miss check passes or reports a number on each.

7. Stage 3: Model

Purpose. One connected, nested map per snapshot, with stable names so two dates can be compared.

7.1 Things and links

Node { id, parent_id, level, path, kind, start_line?, end_line?, loc }
  level: repo | area | module | folder | file | class | function
  kind:  production | test | generated

Edge { id, src, dst, kind, how, count, refs[] }
  kind: uses | extends | calls | changes_with
  how:  import-path | relative | same-folder | declared-type | history
  refs: up to 50 evidence records, sorted
  • IDs are stable across dates. File: F:<canonical path> using path_map. Module: M:<module name>. Class and function: the file ID plus the name.
  • Links are stored once, at the finest level. A link between two modules is the count of links between their contents. A built-in check confirms the roll-up equals the sum at every level.
  • Function-level call links are stored where they can be established, marked as less certain, and used for zooming in only. They stay out of all measurements.
  • Tests are in the model, tagged, and excluded from structure measurements by default.

7.2 Finding the modules

Automatic, in this order:

  1. If the project has at least 8 build units with 20 or more files each, a module is a build unit.
  2. Otherwise, follow the folder path while one folder holds at least 90% of the files, then use the depth that gives at least 8 groups. Stray files outside that path form one "other" group.
  3. A per-project override file can rename or regroup; it is optional and reviewable.

With no settings this gave 34 modules plus one stray group for Artemis server code, 75 for Graylog and 12 for Shopware core. Known weakness: Shopware's Administration, Storefront and Elasticsearch parts landed in "other"; rule 2 should handle several top-level areas.

The module map is stored per snapshot, because folders move. Artemis went from a layered layout to 19 feature modules in September 2024 and 33 at head.

7.3 Optional add-ons

Framework-specific knowledge is never required and is always labelled as inferred:

  • roles (web-facing, service, data storage, data shape, settings);
  • links from screen code to server addresses;
  • pairing server and screen modules that share a name.

Two roles are used by name in this spec. They are defined by folder alone, with no framework knowledge. A file is web-facing if the folder directly under its module (§7.2) is named web. A file is service code if that folder is named service. Links between roles are the file-to-file links of §6.3, counting both import links and same-folder name links. An import whose name appears only in comments still counts as a link and is reported separately.

7.4 Done when

  • The roll-up check passes at every level.
  • IDs for unchanged things are identical across two snapshots of the same repo.

8. Stage 6: AI jobs

Described before Stage 5 because Stage 5 consumes job A's reviewed output.

8.1 The three jobs

Job Why ordinary code cannot do it Input Output When
A. Read written decisions Decisions are written as prose One decision source at a time A proposed rule in one of four fixed shapes, or "not checkable" Once per repo, reviewed by a person, then pinned
B. Judge an exception Whether an exception is deliberate is a reading judgement One finding packet Verdict, one checkable claim, one structured fix Only for findings the report shows, plus on click
C. Describe a module A one-line purpose needs reading Public names, neighbours, most-changed files Two sentences and three cited responsibilities Once per module, re-run only when its evidence changes

The AI never detects, counts or ranks.

Outside evidence for job A: a 2026 study of 980 decision documents found AI detects violations well when the decision is visible in code, and poorly when it depends on deployment or company knowledge. Another found about 77% of rules derived from written text matched the intent. That is why every proposal is tested by code and reviewed by a person before it can produce a finding.

8.2 The packet for job B

About 5,000 tokens. Facts first, then code, every code line numbered.

  • Finding ID, type, snapshot.
  • Facts as key and value pairs.
  • Neighbourhood: the strongest links around the affected parts.
  • History: when the affected code was created or last restructured.
  • 2 to 4 code slices: the file outline (signatures only), the offending lines with 5 lines either side, the imported declaration. At most about 250 lines. Never a whole file over 300 lines.

Repository text inside the packet is data. The system instruction says so, and the checks in §8.4 bound the damage if a comment tries to give instructions.

8.3 Output for job B

{
  "finding_id": "string",
  "verdict": "misplaced_type | missing_api | legitimate_wiring | mixed_concerns | single_concern | insufficient_evidence",
  "confidence": "low | medium | high",
  "claim": "string, at most 2 sentences and 60 words",
  "facts_used": ["fact keys"],
  "citations": [{"evidence_id": "E1", "start_line": 1, "end_line": 1}],
  "fix": {
    "text": "string, at most 2 sentences",
    "action": "move_symbol | route_through_api | invert_dependency | extract_interface | split_by_responsibility | none",
    "symbol": "string", "from": "node id", "to": "node id"
  }
}

Length limits are enforced by our checks, not by the schema.

For the overloaded-class finding type (§9.3), the allowed verdicts are mixed_concerns, single_concern and insufficient_evidence.

Job B does not judge pressure points or supporting detail (§9.3). Their fix text comes from the template (§8.7).

8.4 Checks after every call

Check Rule On failure
Stop reason The response ended normally; it was not declined or cut off Use the template
Shape Valid against the schema; finding ID matches Retry once
Verdict fits type The verdict is allowed for this finding type Retry once
Citations in range Each cited evidence ID exists and the lines fall inside its slice Retry once
Numbers Every number in the claim and fix equals a fact value or a cited line number Reject
Names Every code name in the text appears in a cited slice, a path or the facts Retry once
Facts used Non-empty and a subset of the packet's fact keys Retry once
Style Length limits; no unsupported verdict words such as "badly designed" Retry once

One retry with the failing check's message added. A second failure stores insufficient_evidence and shows the template text, labelled "computed summary".

8.5 Fix simulation

For move_symbol, and for fixes that remove a specific link, the tool applies the fix to a copy of the map and records:

{"simulated": true, "target_link_removed": true, "loops_before": 150, "loops_after": 149,
 "links_removed": 1, "links_added": 0, "new_exceptions": []}

The report shows "fix checked by simulation" with these numbers. A simulated fix that does not remove the link it targets is shown as "simulated: the link remains", not as "fix checked by simulation". A fix that removes a link (route_through_api, invert_dependency, extract_interface) is not tested: the map is shown with the link taken away and labelled "effect if the link is removed". A simulation that changes nothing on the map is shown as "not simulated". Other fix types are shown as "not simulated". A fix whose simulation creates new exceptions is shown with that warning.

split_by_responsibility is shown as "not simulated".

Batch simulation. Per repo, every cheap-loop fix whose single simulation succeeded with no new exceptions is applied together, on one copy of the map. The fixes are applied in finding-id order, so the result is deterministic. The tool records:

{"type": "cheap_loop", "fixes_applied": 0, "fixes_skipped": 0, "loops_before": 0, "loops_after": 0, "links_removed": 0, "links_added": 0, "new_exceptions": []}

The record is stored as simulation_batch.json in the run folder (§4.3).

8.6 Stability

  • No sampling settings are sent; current Claude models reject them.
  • Verdicts for shown findings use the majority of 3 calls. The claim and fix are taken from the majority sample that passes the most checks.
  • Each finding is judged alone, never beside another.
  • Responses are cached under sha256(prompt_version | model_id | effort | canonical packet). A re-run with the same inputs returns the same text. The report states that a cache is in use and shows fresh-run agreement beside it.

8.7 Template fallback

Every finding type has a fixed sentence built only from facts. Example for a cheap loop:

{src} has {n} link(s) into {dst} ({file}:{line}), while {dst} uses {src} {m} times. {src} is used by {users} files, so the loop couples them. The candidate fix is to move {symbol} into {src}.

For an overloaded class:

{class} has {lines} lines, depends on {deps} project classes and is used by {users} files. Its longest functions are {functions}.

The template also gives a fix sentence for the pressure points and for supporting detail (§9.3). Rules:

  • Built only from the finding's stored facts and evidence. No AI call.
  • Every number in it is a fact value, and every code name appears in the facts, a path or the evidence: the same rule job B's text must pass (§8.4).
  • At most 2 sentences (§8.3).
  • fix.action is one of the values in §8.3. No new value.
  • Shown as "not simulated" (§8.5).
  • It is a standard remedy chosen by finding type and filled in with the finding's facts. It does not come from reading the code, and it carries the same "computed summary" label as other template text.
  • When a value the sentence needs is missing, or a type has no fix sentence, the finding shows "No improvement proposed." in plain words, never an empty field.
Type Action Fix sentence
Shaky foundation split_by_responsibility Separate the part of {file} that changes often from the part that stays, so its {direct_users} direct users depend only on the part that stays.
Hidden partners extract_interface Move what {a} and {b} share into one place that both use. If they must stay apart, a note in each that names the other makes the pairing visible.
Large, complex, often changed split_by_responsibility Split {top_functions} into smaller functions. No other function in {file} has more branches.

{file}, {a} and {b} are the finding's targets. {top_functions} is the stored fact: one or two function names, each with its line range.

The whole report is therefore complete with zero AI calls.

8.8 Models

The CHECK24 gateway passes requests through to the providers' own interfaces. It lists 157 models. Budget: 150 USD per team per day, reset at 00:00 CET, with no carry-over.

Job Model Gateway price per million tokens, in / out Notes
A and B claude-opus-5-5 $4.00 / $20.00 Set effort explicitly; thinking cannot be switched off and is billed as output
C claude-haiku-5-5 $0.12 / $0.59 Low effort

Access:

base URL   https://llm.hackatum.check24.de/api/v1/proxy/anthropic/auto
header     Authorization: Bearer $LLM_API_KEY

The key is read from the LLM_API_KEY environment variable. It is never written to the repository, the run folder, the web bundle or any log.

Checked against the gateway on 2026-11-28 with small test requests:

Feature Result
claude-opus-5-5 and claude-haiku-5-5 Available
Structured output through output_config.format Works on both; all test responses were valid for the schema
Prompt caching Works on both: 1,717 tokens written on the first call and read on the second
Token counting Works
Batch processing Not offered (no route), so there is no batch discount
Model listing endpoint Not offered; use the catalogue at hackatum.check24.de/llm.md
Same verdict across repeated calls 5 of 5 identical in the test; the wording and length differed each time

Rules for requests: send no temperature, top_p or top_k; no prefilled answer; no forced tool choice; the built-in citations feature cannot be combined with structured output; keep the shared instruction prefix above 512 tokens so it is cached. The gateway accepted temperature=0 on Haiku in one test, but the API reference says current models reject sampling settings, so do not depend on it.

The client stays provider-agnostic: one schema, with all checks outside the model.

Expected volume: about 20 to 25 judged findings per repo, three calls each, plus one-off decision reading and module descriptions. A full fresh run is a few dollars. Token usage per analysis is a required part of the submission, so every call is logged to usage.json (§4.3).


9. Stage 5: Analyze

Purpose. Check every decision against the map, find where the architecture is under pressure, and measure change over time.

9.1 Decisions

A decision is a rule the team chose about structure. Every checkable decision has one of four shapes:

Shape Meaning Example
forbid(A, B) A must not use B "Data Node packages must not be used outside the data-node module" (Graylog build file)
only_via(B, C) Others may reach B only through C "Reach a module only through its api, domain or dto folders" (Artemis test)
direction(X, Y) X uses Y, never the reverse Web-facing code uses service code, with both roles as defined in §7.3
acyclic(scope) No loops between these parts No loops between modules

All four are queries on the map and contain no language names.

Where decisions come from:

Source Authority (initial) How it enters
Enforced by the project's own tests, build rules, import bans or analysis rules 1.0 Job A proposes from the source; reviewed
Written in decision documents, guidelines, or rule files for AI agents 0.9 Job A proposes; reviewed
Measured habit: at least 50 links between two groups with at least 95% in one direction 0.8 Computed
Universal: production code does not depend on test code 0.7 Built in

What the three projects contain:

Project Decision sources found
Shopware 190 decision documents (59 since March 2025), 119 custom analysis rules, 18 guideline files, a rules file for AI agents
Artemis 42 architecture test files, 10 import-ban blocks, a 153-line rules file for AI agents
Graylog Import bans in the build file, a 114-line rules file for AI agents

The decision record:

- id: artemis/only-via-api
  statement: "Other modules reach a module only through its api, domain or dto folders."
  shape: only_via
  args: { target: "M:*", door: ["api", "domain", "dto"] }
  source: { kind: enforced, path: "src/test/java/…/AbstractModuleAccessArchitectureTest.java", lines: [31, 60] }
  scope: { modules_covered: 12 }
  exceptions_allowed: []          # the project's own ignore list, with its source
  proposed_by: ai | computed | hand
  reviewed: true

A proposal that cannot be expressed in one of the four shapes is stored as "written, not machine-checkable". It is listed in the report and never produces a finding.

9.2 Checking a decision

For each decision and each snapshot:

  • Opportunities: links the rule applies to.
  • Exceptions: opportunities that break it, minus the project's own allowed exceptions.
  • Conformance: 1 − exceptions ÷ opportunities.
  • Exceptions per 1,000 lines of production code, for comparison across dates.

Status (initial thresholds, to be calibrated on all three repos). Statuses are checked in this order; the first match wins, so every decision gets exactly one.

Order Status Rule
1 Broken Conformance below 90%
2 Slipping Conformance fell by more than 1 point over the last two snapshots, or exceptions per 1,000 lines rose beyond the pre-2025 range by more than a margin (0.01, one exception per 100,000 lines)
3 Spreading The number of modules the rule covers is growing
4 Holding Conformance at least 98%
5 Mostly holding Everything else (90% to 98%, stable)

9.3 Finding types

Decision exceptions (the lead):

Type Gate (initial) Evidence
Broken rule Any exception to a decision, grouped per source module, target module and target folder Each offending line, plus the rule's own source lines
Cheap loop to cut Two modules use each other; the weak direction has at most 3 links and the strong direction is at least 10 times larger The 1 to 3 offending lines and the declaration they import
Foundation depending on features A module with instability at most 0.10 that at least half of the other modules in its area (and the areas inside it) use, itself using a feature module The offending lines, grouped by sub-folder

Instability is outgoing links divided by all links of a module.

Pressure points:

Type Gate (initial) Evidence
Shaky foundation In the top twentieth for direct users and the top twentieth for changes in the last 12 months. Calibrated on all three repos: at the top tenth the bar was 7 to 9 direct users, giving 133, 184 and 115 findings at END The users, and the commits
Hidden partners Two files in different modules changed together in at least 5 commits and at least 30% of their changes over 24 months, with no link between them; commits touching more than 30 files ignored Both files and the shared commits

Inside a file:

Type Gate (initial) Evidence
Overloaded class Production class in the top 5% for lines and the top 5% for project classes it depends on, with at least 10 direct users Its field list and method signatures, and the three longest functions with line ranges, nesting depth and branch count

This type exists because the sponsor's own example judgment (deck, slide 12) is a class that mixes responsibilities.

Supporting detail:

Type Gate (initial) Evidence
Large, complex, often changed Production file with at least 5 non-bot changes in 12 months; score is changes times branch count The two functions with the highest branch count, with line ranges

Named as it is because the score mostly tracks file size: on Artemis, 7 to 8 of the top 10 remain if complexity is replaced by line count.

Grouping rule. One root cause is one finding. Individual lines are evidence inside it and never appear as separate items.

Not shipped as findings, because they proved unreliable on Artemis: "untested class", "dead endpoint", and "everything is one loop".

9.4 Reach

"How far does this spread" is counted as files using the affected code directly or at one remove. The count of everything that could ever be reached is not used: so much code sits in one large loop that it gives the same number to most files. On Artemis, a file with 493 direct users and one with 31 both reach about 2,047 files; counted at two steps they differ as 1,219 against 35.

9.5 Project-level yardsticks

The same for every project and every date, shown without a grade:

Yardstick Meaning
Against-the-grain share Share of cross-module links that point against the main direction of dependencies
Two-way module pairs Pairs of modules that use each other
Decisions by status Count per status, across the five statuses in §9.2
Exceptions per 1,000 lines For decisions that apply

How the main direction is found. Each link between two modules is weighted by the number of file-to-file links (§6.3) between them. All modules are then put into one order by repeating three steps until none are left. A module that uses no remaining module takes the next free place at the back. A module that no remaining module uses takes the next free place at the front. If neither exists, the module with the largest difference between links going out and links coming in takes the next free place at the front, with ties broken by name. The main direction between two modules runs from the one nearer the front to the one nearer the back, that is from users to foundations. A link pointing the other way is against the grain. The order is a deterministic approximation, not a proven minimum.

Measured at head with the pipeline's own links, by probes/recheck_probe.py grain: against-the-grain share 23.5% for Artemis server code, 15.5% for Graylog, 11.8% for Shopware core. Compare only at the same level of grouping.

9.6 What works where

From tests with no project-specific settings:

Finding type Artemis Graylog Shopware
Broken rule from the project's own sources Strong One build rule, zero exceptions Many sources, share that is checkable unknown
Cheap loop to cut 25 candidates 22 5
Foundation depending on features core uses 25 modules plugin uses 33 Framework uses 9, through 1,173 links
History-based types Tested Not yet run Not yet run
Overloaded class Not yet run Not yet run Not yet run

9.7 Done when

  • Every gate has been checked on all three repos and no finding type is tuned to one.
  • History-based types have been run with full history on Graylog and Shopware.

10. Stage 4: Visualize

Purpose. Let a newcomer see the structure in minutes and reach the code behind any claim in one click.

10.1 Delivery

A static web page. It loads one prepared bundle per repo and needs no server during the demo. It never calls an AI model while running.

10.2 Screens

# Screen Shows
1 Decisions (opening) Each decision with its source, status and exception count; below it, the ranked exceptions to fix first
2 Structure grid (default map) Modules down the side and across the top, ordered so normal dependencies fall on one side. Cells against the grain stand out. Clicking a cell lists the links behind it
3 Close-up Boxes and arrows for only the modules in one finding
4 Code pane The file with the evidence lines highlighted, fact chips, and links to the host and to the editor
5 Before and after A switch on the same layout; each change labelled planned or no stated intent
6 Size map and table Where the code mass is, where post-March-2025 code landed, and sortable numbers

Why a grid and not boxes and arrows for the whole project: at module level Artemis has 35 boxes and 421 arrows, Graylog 75 and 823. Research finds a grid easier to read than a node-and-arrow diagram above about 20 nodes, except for following a path, which the close-up covers.

10.3 Interactions

  • Click a finding: the grid highlights its cells, the close-up draws its modules, the code pane opens at the first evidence line.
  • Click a cell or an arrow: list the underlying links as file and line rows.
  • Try the fix: one button applies the simulated fix; the grid redraws and shows what changed (§8.5).
  • Try all cheap-loop fixes: one button applies the batch; the grid redraws and shows loops before and after (§8.5).
  • The address bar encodes the current view, so every finding has a permanent link.
  • Every AI-written sentence carries an "AI" badge. Everything else is marked as computed.
  • A legend is visible on every view.

10.4 Stability of the picture

Layouts are computed once when the bundle is built and stored as positions, so the picture is identical on every run. For before and after, one shared layout is computed from both dates together; switching only changes colours.

10.5 Technology

Need Choice
App React, Vite, TypeScript
Structure grid and size map d3 on Canvas (d3-hierarchy 3.1.3 for the size map)
Close-up Cytoscape.js 3.35.0 with positions from elkjs 0.12.2, computed at build time
Code pane Shiki 4.6.0, read-only
Colours cividis for scores, Okabe-Ito for categories; both safe for colour-blind viewers

Versions were checked against the package registry on 2026-11-28.


11. Stage 7: Rank and explain

11.1 Ranking

Arithmetic only. The AI has no influence on order.

S = percentile of breach size within the finding type        (violating links)
R = percentile of reach                                      (§9.4)
P = percentile of change pressure                            (non-bot changes in 12 months to the affected code)
A = authority of the rule                                    (§9.1; 0.8 for pressure points)

impact   = A × (0.4·S + 0.4·R + 0.2·P)                        weights (initial), in config
ease     = 1.0 if the fix touches 1–3 places, 0.8 for 4–20, 0.6 above   (initial)
priority = round(impact × ease, 2)

order: priority descending, then finding id ascending

For overloaded-class findings (§9.3), S is the percentile of class lines within the type, A is 0.8 and ease is 0.6 (initial).

Post-processing, all deterministic:

  • Findings sharing at least half of their nodes are merged; the lower one is attached as related.
  • At most 3 findings of one type and at most 2 from one module in the top 10.
  • At most 2 overloaded-class findings in the top 10.
  • Supporting-detail findings never enter the top 10.

The weights are a judgement, not a published standard. They are shown in the interface, and the stability table (§11.3) reports what happens when they change.

The AI verdict is displayed beside a finding. A verdict of "legitimate wiring" adds a badge and a filter; it does not move the finding.

11.2 The finding record

{
  "schema": "codexray.finding/1",
  "id": "artemis/cheap_loop/M:admin|M:foundation",
  "run": {"end_sha": "…", "snapshot_sha": "…", "snapshot_date": "2026-11-27", "params_hash": "…"},
  "type": "broken_rule | cheap_loop | foundation_on_features | shaky_foundation | hidden_partners | overloaded_class | large_complex_changed",
  "decision_id": "artemis/acyclic-modules",
  "title": "computed one-line headline",
  "targets": [{"node_id": "M:foundation", "role": "source"}],
  "facts": [{"key": "weak_links", "value": 1, "unit": "links", "source": "stage3.edges"}],
  "evidence": [ /* evidence records, §4.4 */ ],
  "priority": {"S": 0.0, "R": 0.0, "P": 0.0, "A": 1.0, "ease": 1.0, "score": 0.0, "rank": 0},
  "trend": {"first_seen": "2026-07-01", "status": "new_since_2025_03 | worse | better | unchanged",
            "series": [{"snapshot_date": "…", "value": 0}]},
  "origin": {"lines_after_2025_03": 0.0, "lines_ai_marked": 0.0, "note": "explicit markers only; lower bound"},
  "link_quality": {"how": "import-path", "measured_agreement": 0.98},
  "judgement": { /* §8.3 plus status, model, prompt version, cache key, votes */ },
  "simulation": { /* §8.5 */ },
  "caveats": ["string"]
}

The ID contains the repo, type and sorted target IDs, and no commit. The same finding can therefore be followed across dates.

11.3 Stability table

Shown in the report, per repo:

Test What it shows
Identical re-run Same output, byte for byte
Fresh AI run, cache off How stable the AI's verdicts are; ranking cannot change
5% of commits removed at random, fixed seed Sensitivity to history
End date moved back one month Sensitivity to the cut-off
Each weight changed by 20% Sensitivity to our own judgement

Measures: overlap of the top 5 and top 10, and rank-biased overlap at p = 0.9, in which the top 10 positions carry 85.6% of the weight. Target: at least 4 of the top 5 unchanged under each test.

11.4 Report structure

  1. Verdict line: decisions by status, and the project yardsticks.
  2. Decisions, each with source, status, trend and exception count.
  3. Top 10 to fix first, each with facts, claim, fix and simulation result. A finding with no fix says "No improvement proposed.", and a fix that was not simulated says "not simulated". The batch simulation result (§8.5) is shown above the top 10.
  4. What is healthy, with evidence.
  5. Before and after (§12).
  6. What was read and what was not: coverage, linking agreement, blind spots, limits of each fact type.
  7. Stability table and AI usage ledger: which text is AI, calls, tokens, cost.

11.5 Exports

Export Purpose
decisions.yaml The reviewed rules in machine-readable form
ARCHITECTURE_RULES.md The same rules in plain sentences, ready to paste into a rules file for AI agents
codexray check <base>..<head> Lists which decisions a proposed change breaks, with lines. Uses the same two-snapshot comparison as the bonus

12. Bonus: before and after AI

12.1 What is compared

  • The sponsor date, 2025-03-01, as asked.
  • Each repo's detected adoption date (§5.4), shown as a second line on every chart.
  • The quarterly series between and around them, so a trend can be told apart from a one-off.

A two-point comparison at March 2025 is confounded. In Artemis, three planned restructurings land within five weeks after that date.

12.2 The three sponsor items

Item How it is produced
Architectural drift Per decision: conformance and exceptions per 1,000 lines at each date. Per project: the yardsticks in §9.5
Emerging hotspots Change rate in the last 3 months against the prior 9: z = (recent − prior) ÷ √(prior + 1) of at least 3, with at least 2 changes per month recently; new files and restructuring commits excluded
AI-generated risk Per finding: share of its lines that arrived after the date and share with an explicit AI marker. Per project: AI-marked against no-signal changes compared within size bands

12.3 Planned or unplanned

"Drift isn't automatically bad", so every structural change gets a label and its evidence:

  1. Same code, old layout. Re-measure the newer snapshot using the older snapshot's module map, on two measures: exceptions per 1,000 lines and links between modules. If at least half of the change in one of them disappears, it was a reorganisation. From 2026-04-01 to 2026-07-01 Artemis went from 48 to 66 modules; links between modules went from 12,140 to 14,103 under the new layout (+16.2%) and to 12,677 under the old one (+4.4%), so 73% of that change disappears and the split counts as a reorganisation. Exceptions per 1,000 lines moved little under either layout: 0.153 to 0.141 under the new one (-8.3%) and 0.142 under the old one (-7.1%).
  2. Restructuring commits flagged in Stage 1.
  3. Dated decision documents that announce the change. Shopware has 59 written since March 2025.
  4. The stated goal of the pull request or issue behind the change (R10). Job B reads it and says whether the structural change is a step toward that goal; the answer is labelled as AI and cites the pull request.
  5. Where none of these exists, the change is labelled "no stated intent". It is never labelled unplanned by default.

Each new cross-module link is also labelled: expected and found, found but not expected, or expected but missing.

12.4 Wording rules

Allowed: "after adoption, X changed from a to b per 1,000 lines"; "AI-marked changes, a lower bound, are larger and carry N% of growth"; "no evidence of…".

Not allowed: "AI caused"; "X% AI-written"; treating a product feature that uses AI as AI-written code. Artemis's Hyperion module is such a feature.

Three repos with no comparison group cannot show cause. The panel is descriptive and says so.


13. Technology

Layer Choice Why
Pipeline Python command-line program, version pinned The team's scripts are Python; deterministic
History The git program, called directly Fast and exact; libraries that wrap it are far slower
Storage DuckDB, one file per run No server, typed, readable from pipeline and bundler
Reading code tree-sitter with off-the-shelf grammars No build needed; exact line numbers; language-neutral
Map calculations NetworkX Handled all tested projects without trouble
AI client Thin, provider-agnostic; schema and checks outside the model The portal's model list is unknown
Web app React, Vite, TypeScript; static bundle Cannot fail live

Not used: a vector database, an agent framework, AI-based ranking, AI-based code reading, or any step that needs the analysed project to build.


14. Limits we state openly

Limit Consequence
Linking accuracy is measured against our own comparison linkers, not a compiler Figures are agreement, not proof
Links made while the program runs are invisible Fewer links seen in older-style PHP and in code wired through settings files
AI markers are a minimum Tools can be set to leave none
Line origin is the last change to a line Not always the first author
Ranking weights and gates are judgements Shown in the interface, with a sensitivity test
Statuses and yardsticks need calibration Thresholds are initial
A language without a grammar History-only facts
Three repos, no comparison group The bonus describes; it does not show cause
Suggested improvements for pressure points and supporting detail are standard remedies by finding type Filled with the finding's facts, not written from a reading of the code

15. Open questions

# Question Who
1 The sponsor mockup that two research documents refer to has not been seen by the author of this spec. What does it show? Team
2 Is CHECK24's PHP modern (namespaces) or older-style? This affects how many links the tool can see Sponsors
3 Are source-available licences accepted? Graylog is SSPL Organisers
4 Will judges run the tool themselves, possibly on a repo we have not seen? Sponsors
5 How many of Shopware's 190 decision documents are about structure and can be checked? Measure in job A
6 The exact minimum age and size for the two chosen repos "announced by the Challenge team". The deck says 2+ years and 300k+ lines; confirm nothing changed Team

Resolved on 2026-11-28 from the portal: the model list and gateway features (§8.8), and the submission format and deadline (R11, R12).


16. Build order

Ordered by dependency. Each step lists what must be true before the next begins.

# Step Done when
1 Evidence record, run layout, manifest, DuckDB schema Two people can write to the same file without conflict
2 Stage 1 on Artemis, then Shopware and Graylog §5.9
3 Stage 2 neutral reader and linker, with the §6.5 gaps closed §6.8
4 Stage 3 map and module detection §7.4
5 Measured-habit decisions and the built-in ones; the three decision-exception finding types; the overloaded-class type, which needs no history and no AI Findings appear for all three repos with zero AI calls
6 Ranking, template text, findings.json A complete report with no AI
7 Web app: decisions screen, structure grid, code pane The click path from finding to line works on real data
8 Job A: propose rules from written sources; review; pin decisions.yaml for each repo
9 Job B with checks, voting, cache; fix simulation; "try the fix" Verified text on the shown findings
10 History-based finding types on all three repos §9.7
11 Second snapshot at 2025-03-01, then the quarterly series; before-and-after screen §12
12 Stability table, coverage section, exports §11.3, §11.5
13 Fourth-language generality check; optional Camunda scale run Reported in the coverage section

Step 6 is the first point at which the product is demonstrable end to end. Everything after it adds depth without changing earlier steps.


17. Demo path

Criterion What is shown Number on screen
Key decisions (R12) One slide from the decision log in §1.3: what we chose, what we gave up, and why —
Actionability Open on Artemis's decisions; the top exception with its fix "10 of N shown"
Traceability Click the exception, then the grid cell, then the line; open it in the editor "Evidence resolved: 100%"
Realistic improvement Press "try the fix"; the grid redraws Loops before and after, for one fix and for the batch
Understandability Switch to Graylog, unseen; read the grid and module descriptions Module count
Robustness Re-run; then the stability table Top-5 overlap per test
Efficiency Ledger panel; switch AI off and reload: the report is still complete Calls, tokens, cost
Language independence The same screens on Shopware (PHP) and Artemis (Java); the coverage section; the fourth-language check Agreement percentages
Token usage (R11) The usage ledger per analysis Calls, tokens and cost per repo
Bonus The before-and-after switch on Artemis; a decision that spread; a planned restructuring labelled as such Conformance per date

Appendix A. Measurements behind this spec

Taken on 2026-11-27 and 2026-11-28 on a 10-core laptop, from the head commits in §3.1 unless noted. Scripts are in probes/.

Measurement Result
Artemis history pass, full clone 36 s (from the Stage 1 research)
Artemis, grammar-based read of 11,394 Java and TypeScript files, 1.84M lines 1.1 s
Shopware, 12,824 PHP files, 1.58M lines 1.2 s; 1 file with an unread region
Artemis files with unread regions 20 real files of 11,394, one line each, all very new syntax
Artemis server modules in one loop 33 of 34
Artemis two-way module pairs 150 (152 by the Stage 5–6 research, using a different reader)
Artemis links into another module's data-storage code 1,278 (1,279 by the Stage 5–6 research)
Artemis web-to-service links against service-to-web 1,401 against 63, which is 95.7% conformance, with roles as defined in §7.3 and links as in §6.3. All 63 are import links: 35 are static imports of a member, 5 are imports whose name is used only in comments, and 19 of the 63 point at two files. Counting only class names that appear in code gives 1,398 against 23. Script: probes/recheck_probe.py roles
Graylog "Data Node" import ban 0 exceptions
Shopware AI-marked share of non-bot changes 0% before March 2025; 0.6% in the following year; 5.1% since March 2026
Module map density Artemis 35 boxes and 421 arrows; Graylog 75 and 823; Shopware 12 and 71
Artemis top-200 files sharing one "everything reachable" count 119 of 200
Rank-biased overlap at p = 0.9, weight of top 10 85.6%
Gateway check (probes/gateway_check.py) Opus 5.5 and Haiku 5.5 reachable; structured output and prompt caching work; batch processing not offered

Appendix B. Inputs to this spec

Input What was taken from it
docs/sponsor/CHECK24_hackaTUM.pdf Requirements, pipeline, criteria, bonus
docs/sponsor/Additional Hints for judging.txt The extra judging sentence
Portal pages hackatum.check24.de/docs and /llm Submission format, the pull-request and issue input, bonus wording, model catalogue and prices
docs/research/Stage 1 repository history strategy.md, docs/research/kits/stage1_starter_kit.zip Stage 1 method, snapshot dates, cleaning rules, AI labels, the two-date framing
docs/research/Stages 5 and 6 analysis and LLM judge.md, docs/research/kits/track_c_kit.zip Finding types and gates, the packet, output checks, template fallback, the same-code-old-layout method
docs/research/research-stage4-7.md The click path, layouts computed in advance, shared before-and-after layout, change labels, stability tests
Measurements in Appendix A The neutral reader and linker, module detection, the structure grid, the reach count, cross-repo checks

Dropped from those inputs, with the reason: three reading levels with required language packs (the neutral method made them unnecessary); Camunda as a main repo (replaced by a PHP project); AI adjusting scores (ranking must be stable); the "everything reachable" ripple count (it does not tell findings apart); complex-file hotspots as a headline (sponsors asked for architecture).