diff --git a/README.md b/README.md index 11cec66..4bb9c86 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ The optimisation of the AIMsight detectors and of the reading tools, from one analysis, and nothing else. An analysis (made in the aimsight-app app by the analyst) leaves in its folder the two things needed: its labels, the truth on its range, and its own scripts with what it missed. On that analysis, the `optimize` skill: 1. **the detectors**: measures their score on the range, and the benchmark on every label of `labeling/auto`; has them fixed by the `upgrader`, one fix per commit in `~/aimsight-detectors`; has them judged by the `validator`, which keeps, has some removed, or cancels: no station goes back, no overfitting; -2. **the tools**: has the `upgrader` bring the analyst's useful scripts into the reading harness, one fix per commit in `~/aimsight-tools`; always, whatever the detectors gave; +2. **the tools**: has the `upgrader` add, change or remove in the reading harness from what the analyst needed (a tool removed only for a good reason), one fix per commit in `~/aimsight-tools`; always, whatever the detectors gave; 3. writes the summary of the session. The `upgrader` and the `validator` come from the `agents` repository, each with its instructions from `instructions/` (`upgrader-detectors.md`, `validator-detectors.md`, `upgrader-tools.md`); the rules of each target are its own `CLAUDE.md`; the benchmark (`bench/`) from the `detectors` repository. Nothing is pushed. diff --git a/instructions/upgrader-tools.md b/instructions/upgrader-tools.md index c47a7cb..06a7b09 100644 --- a/instructions/upgrader-tools.md +++ b/instructions/upgrader-tools.md @@ -1,6 +1,6 @@ # Optimizer's instructions to the upgrader: the tools -What `/optimize` asks of the upgrader (agents repository, `agents:upgrader`) in part 2, on top of its trade. The target is the tools repository (the reading harness); its rules (remove nothing, the simplest first, no judgement in a tool's output, `data.py`) are in `/CLAUDE.md`, read in full. +What `/optimize` asks of the upgrader (agents repository, `agents:upgrader`) in part 2, on top of its trade. The target is the tools repository (the reading harness); its rules (add, change or remove, a tool only for a good reason; the simplest first; no judgement in a tool's output, `data.py`) are in `/CLAUDE.md`, read in full. ## Why @@ -12,8 +12,9 @@ The analysis folder: `report.md` first, if it exists (the commands behind each f ## What you decide -- **Optimise**: a tool that got in the analyst's way (output too long, unreadable figure, option to guess) is tuned: a better default, an option, a sentence of the guide. +- **Change**: a tool that got in the analyst's way (output too long, unreadable figure, option to guess) is tuned: a better default, an option, a sentence of the guide (changed or removed). - **Add**: a script of the analyst that showed what the tools did not show, and that would help on other stations, enters `/scripts/`, made general; or an option of an existing tool does the same, which is better. A script that only served this range stays where it is. +- **Remove**: a tool (or an option, an output) superseded, by what you add or by another tool, or wrong, for a good reason of `/CLAUDE.md`; its commit also removes it from `GUIDE.md`. A tool the analyst did not use on this range is not a reason. What `/CLAUDE.md` keeps from removal (`data.py`, `common.py`, a tool named outside the target): left, the removal proposed in "What I decided". - **Nothing to do** is a decision: if the tools were enough and nothing got in the way, touch nothing and say so. You write nothing in the analysis folder. @@ -23,7 +24,8 @@ You write nothing in the analysis folder. There is no check command (`Checks: none`). For each fix, before its commit: 1. Run each changed or added tool on the range, from the root you are called from (`python3 /scripts/.py data/ …`), with `--start` and `--end` of the range and `--out /work/tools/`; look at each PNG with Read. -2. Rerun, on the range, the commands of the analysis report that use a changed tool, with `--out /work/` (replacing theirs, or added if absent): they must still work. +2. Rerun, on the range, the commands of the analysis report that use a changed or removed tool (a removed one: its replacement instead), with `--out /work/` (replacing theirs, or added if absent): they must still work. +3. A removal: `grep -rn /scripts /GUIDE.md` shows nothing that still refers to it. ## Your output @@ -31,7 +33,7 @@ On top of the skeleton of your trade: - after the `**Changed**` line: `**data.py**: unchanged | changed: `; - `## What the analyst used` (before `## Diagnosis`): the tools and the scripts it used, and what it missed or what got in its way, summarised; -- `## What I decided` (after `## Diagnosis`): `- : , and why`; +- `## What I decided` (after `## Diagnosis`): `- : , and why` (a removal: its good reason and the command that replaces it); - under `## Checks`: the trial commands and what they return, figures in `/work/tools/`; then `Report commands rerun: , and "no failure" or the failures`. ## Your answer