Skip to content

Say "checked by simulation" only when the fix removes its link #80

Done

Description

@Pranav-Mathad

Owner: Pranav · Priority: P1 · Blocked by: #79 (same file); lands on issue-12-found-problems with #77

1. Goal

The web app says "checked by simulation" only when the simulated fix removed the link it targets. Today it says so for every simulation that ran.

  • web/src/screens/decisions/FixFirst.tsx, simulationShort (line 179): returns "Checked by simulation" whenever simulated is true and there are no new exceptions.
  • The same file's SimulationText (line 391) and web/src/screens/grid/FixPanel.tsx (line 46) use the same wording.
  • No screen reads Simulation.target_link_removed. The only use in web/src is the generated type.

On the judged Artemis run in #77, 32 of 50 simulations do not remove their target link and 4 change nothing (reported from that run; not re-measured here). "Try the fix" is the demo step for a realistic improvement, so the badge must not claim more than the simulation showed.

2. Scope & File Boundaries

Create or edit

  • web/src/screens/decisions/FixFirst.tsx, web/src/screens/grid/FixPanel.tsx
  • spec.md §8.5: one sentence for the case the spec does not cover today

Do not touch

  • src/codexray/** (the simulation itself is not changed), web/public/bundles/, results/, README.md, src/codexray/settings/**.

3. Behaviour

For a simulation with simulated: true:

target_link_removed List badge Detail text and grid panel
true, no new exceptions "Checked by simulation" (as today) "Fix checked by simulation" (as today)
true, new exceptions "Simulated, adds exceptions" (as today) as today, with the warning
false "Simulated: the link remains" "Simulated: the link remains", followed by the same numbers and the exceptions note

"Not simulated" stays as it is. The "Try the fix" button stays for every simulated fix. The batch result is not affected: the batch already applies only fixes that removed their link (judge/simulation.py line 82).

4. Acceptance Criteria & Verification

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

  • make check passes.
  • On a bundle from a judged run, open the Decisions screen and the grid: a finding whose simulation has target_link_removed: false shows "Simulated: the link remains" in all three places, and one with true still shows "Checked by simulation". The fixture bundles hold no simulation of the first kind, so this needs the judged runs from Fix the problems found on the three repositories and publish the judged results #77.
  • Say in the pull request how many simulated findings fall in each row of the table, per repository.

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

Activity

  1. added
    owner:pranav
    P1
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1owner:pranav

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions