diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 21:27:42 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 21:27:42 -0700 |
| commit | d3a40f72165764888f9a57a3e93db86e88f8e063 (patch) | |
| tree | 89f5fc7b623dfe09b6d994aa608c291fa35da01d /plugins/code-modernization/commands | |
| parent | ff833bd7231262a8521ab3728c5625dc6c4f4a1d (diff) | |
code-modernization: approve a difference once per input
An independent check of a rewritten batch job found differences on two new
inputs of one family (a blank numeric field the rewrite rejects on purpose
and the old program reads as zero). Each input has several output files, so
accepting the deviation meant three or four hand-written entries per input.
A top-level "approvedInputs": {"F23": "reason"} in a cases file now approves
every case that shares that input label. A reason is still required (blank
approves nothing), a case's own reason wins, a missing file is never turned
into a pass, and the result still lists the difference as approved.
Diffstat (limited to 'plugins/code-modernization/commands')
| -rw-r--r-- | plugins/code-modernization/commands/modernize-verify.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/code-modernization/commands/modernize-verify.md b/plugins/code-modernization/commands/modernize-verify.md index e189d201..a1129954 100644 --- a/plugins/code-modernization/commands/modernize-verify.md +++ b/plugins/code-modernization/commands/modernize-verify.md @@ -122,8 +122,8 @@ a rule is wrong, say so and leave the file as it is. Refresh the report (`python3 "${CLAUDE_PLUGIN_ROOT}/scripts/build_report.py" $system`, a convenience: if it fails or `python3` is missing, say so in one line and carry on), then name the next step. **PARTLY PROVEN or NOT PROVEN:** turn each reason, in order, into a command. A failure caused by this machine: run the suite where the tool works (a terminal outside the sandbox, or CI), then run this -command again. A difference the notes call intended: a person records it (`approvedDifference` in the case, or the table in -`BASELINE.md`); you never do. P0 rules no test names: add the rule id to each test that pins it, then run this again. Any other failing +command again. A difference the notes call intended: a person records it (once per input with `"approvedInputs": {"F23": "why"}` at the top of +`fresh-cases.json`, or `approvedDifference` in one case, or the table in `BASELINE.md`); you never do. P0 rules no test names: add the rule id to each test that pins it, then run this again. Any other failing test or difference: `/code-modernization:modernize-transform $system <module>`, or for an uplift `/code-modernization:modernize-uplift $system` (also for a baseline typed by hand, which is measured again in its Step 4, and for a silent delta no test names, which gets a characterization test there). Removed or changed test files are a person's review, never yours to undo. |
