Repository navigation
Description
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" wheneversimulatedis true and there are no new exceptions.- The same file's
SimulationText(line 391) andweb/src/screens/grid/FixPanel.tsx(line 46) use the same wording. - No screen reads
Simulation.target_link_removed. The only use inweb/srcis 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.tsxspec.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 checkpasses.- On a bundle from a judged run, open the Decisions screen and the grid: a finding whose simulation has
target_link_removed: falseshows "Simulated: the link remains" in all three places, and one withtruestill 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