Skip to content

Run the AI jobs on the three repositories and publish the judged results #75

Todo

Description

@Pranav-Mathad

Owner: Pranav · Priority: P0 · Blocked by: the issue-12-found-problems branch landing on main; #74 if it lands in time

Parallel work: The AI calls can start before the other issues finish. Responses are cached per packet (§8.6), so a later codexray report costs nothing more.

1. Goal

The published results carry the AI judgement the challenge is named after. Today they carry none.

codexray judge and codexray decisions propose are on main (#67, #69), but the committed bundles and results/ were produced before they landed. On main, for all three repos:

  • every finding's judgement.status is template (219, 189 and 179 findings; 0 with AI text);
  • report.json has usage: [], and no usage.json is committed;
  • no finding has a simulation, and batch_simulation is empty.

The sponsor's slide "What a good judgement looks like" is four facts plus one judgement from the model built on them. The usage ledger is also what shows the "AI used wisely" criterion, and spec §4.3 marks it as required for submission.

2. Scope & File Boundaries

Create or edit

  • results/<id>/ for the three repos: add usage.json and simulation_batch.json, refresh findings.json, manifest.json, decisions.yaml
  • web/public/bundles/<id>/ for the three repos (through make bundle)
  • results/README.md and the status table in README.md: remove the "not built" and "no AI call was made" statements once they are no longer true

Do not touch

  • Code. If the run shows a defect, open a separate issue with the output and link it here.
  • The reviewed rules in rules/<id>.yaml.

3. Inputs

  • LLM_API_KEY in the environment (the sponsor gateway; budget 150 € per day per team). Never written to a file or a log.
  • GITHUB_TOKEN as in the earlier runs, so prs is the same.
  • Job B judges the first 25 findings of its four types per repo, 3 votes each (settings/judge.yaml).

4. Implementation Steps

  1. One run folder per repo, made from one commit of main. Anything that changed in src/codexray/repository/ or settings/ since the last run gives a new params_hash, so start from codexray ingest and go through parse, model, analyze.
  2. uv run codexray judge --repo <id>, then uv run codexray report --repo <id>, then make bundle REPO=<id>.
  3. Copy the run's files into results/<id>/, byte for byte.
  4. Check that findings.json, manifest.json and the bundle all name the same end_sha and params_hash.

5. Acceptance Criteria & Verification

No new test cases; run it and look (TEAM_RULES.md rule 3).

  • Per repo, state in the pull request: findings with status: "ai" and with status: "template", how many answers failed a check of §8.4 and fell back, calls, tokens and cost from usage.json.
  • Run codexray judge and codexray report a second time: no new gateway call is made and findings.json is byte for byte the same.
  • Open each repo in the web app: the first judged finding shows the claim, its cited lines open in the code pane, "try the fix" redraws the grid, and the Report screen shows the usage table.
  • Read the 25 judged claims of one repo against the cited lines and say in the pull request how many hold.
  • If the gateway could not be reached or the budget ran out, say so and report what was and was not judged. Do not fill in results by hand.
  • make check passes.

Branch: issue-75-judged-results. Open a pull request whose description says Closes #75. The specification is spec.md; the working rules are in AGENTS.md, TEAM_RULES.md and CONTRIBUTING.md.

Activity

  1. added
    owner:pranav
    P0
    submission
    on Nov 29, 2026
  2. Pranav-Mathad commented on Nov 29, 2026

    @Pranav-Mathad
    OwnerAuthor

    On hold: this work is being done inside #77, so it should not be started separately.

    When #77 is ready, check it against section 5 of this issue (counts of AI and template text, failed checks, the usage numbers, no new gateway call on a second run, the judged claims read against their lines). If it meets them, #77 can close this issue.

  3. Pranav-Mathad commented on Nov 29, 2026

    @Pranav-Mathad
    OwnerAuthor

    The one acceptance item of this issue that #77 left open is now done for artemis: the 25 judged claims were read against the lines they cite, at the pinned commit d8fc451, by an independent read-only pass. No code was changed and no AI gateway call was made.

    Result

    Count
    Claim holds 20
    Holds partly (core right, one detail overstated or unsupported) 5: ranks 4, 18, 25, 29, 37
    Does not hold 0
    Could not be decided 0
    • All 64 citations resolve: the evidence id exists, the lines are inside the file, and the blob matches the pinned commit.
    • 35 of the 64 citations cite a wider line range than the evidence record they name (for example evidence E1 is line 3 and the citation is E1 lines 3 to 8). Not counted as a failure, but a reader comparing the two will see it.
    • Suggested fixes: 14 plausible as written, 11 plausible only with a caveat the text does not state, 0 implausible.

    The five that hold partly

    Rank Overstated phrase What the code shows
    29 "course offers no comparable entry point" course/api/CourseApi.java exists and describes itself as the API for other modules. It has one method, so the accurate statement is that it does not cover these uses.
    37 "would remove most of these links" The named declarations account for 4 of 9 links. The finding's own simulation removes 0.
    18 "would remove the back-link" foundation/types/sidebar.ts line 4 imports the same Course-derived type, so the link stays.
    25 "a value type held by the domain entity rather than a transfer object" The cited lines are imports; the entity holds it only in @Transient fields. The fix text on the same finding says the use is not shown.
    4 "course- and exam-specific UI components" The import dialog also serves admin user import and tutorial groups.

    For a demo

    • Strongest: rank 59 (exact claim, the fix is confirmed by the code and by the simulation), rank 54 (two cautious statements, both confirmed on reading further), rank 7 (one import, one self-contained helper, simulation agrees).
    • Weakest: ranks 29, 37 and 18, for the reasons above.

    Also seen, not examined further

    Three simulation results look unexpected and were not investigated: rank 39 reports 164 links removed for a one-link finding, rank 54 reports the target link removed with 0 links removed, and rank 59 reports 2 links removed where weak_links is 1. Two fix texts (ranks 25 and 45) say the import goes away while the simulation says the target link remains; the screen now says "Simulated: the link remains" beside them.

    Limits

    • One repository, one reader. Shopware and graylog claims were not read.
    • "Plausible" is judged from reading; no fix was applied or compiled.
    • Checks outside the cited lines were text searches at the pinned commit with test files excluded; a use through a re-export or a template would not appear.

    Still open on this issue: "try the fix" and opening cited lines have not been clicked through on screen, and job A's calls are not in the usage ledger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0owner:pranavsubmission

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions