optimize: the upgrader may also remove in the tools, a tool only for a good reason
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bfa0224711
commit
f195c2c7bf
2 files changed
+7
-5
No files matched your search
@@ -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:
|
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;
|
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.
|
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.
|
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.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Optimizer's instructions to the upgrader: the tools
|
# 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 `<Target>/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 `<Target>/CLAUDE.md`, read in full.
|
||||||
|
|
||||||
## Why
|
## Why
|
||||||
|
|
||||||
@@ -12,8 +12,9 @@ The analysis folder: `report.md` first, if it exists (the commands behind each f
|
|||||||
|
|
||||||
## What you decide
|
## 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 `<Target>/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.
|
- **Add**: a script of the analyst that showed what the tools did not show, and that would help on other stations, enters `<Target>/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 `<Target>/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 `<Target>/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.
|
- **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.
|
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:
|
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 <Target>/scripts/<tool>.py data/<STATION> …`), with `--start` and `--end` of the range and `--out <output folder>/work/tools/`; look at each PNG with Read.
|
1. Run each changed or added tool on the range, from the root you are called from (`python3 <Target>/scripts/<tool>.py data/<STATION> …`), with `--start` and `--end` of the range and `--out <output folder>/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 <output folder>/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 <output folder>/work/` (replacing theirs, or added if absent): they must still work.
|
||||||
|
3. A removal: `grep -rn <its name> <Target>/scripts <Target>/GUIDE.md` shows nothing that still refers to it.
|
||||||
|
|
||||||
## Your output
|
## Your output
|
||||||
|
|
||||||
@@ -31,7 +33,7 @@ On top of the skeleton of your trade:
|
|||||||
|
|
||||||
- after the `**Changed**` line: `**data.py**: unchanged | changed: <the reading error fixed, in one sentence>`;
|
- after the `**Changed**` line: `**data.py**: unchanged | changed: <the reading error fixed, in one sentence>`;
|
||||||
- `## 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 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`): `- <tool or script>: <optimised, added or left>, and why`;
|
- `## What I decided` (after `## Diagnosis`): `- <tool or script>: <changed, added, removed or left>, and why` (a removal: its good reason and the command that replaces it);
|
||||||
- under `## Checks`: the trial commands and what they return, figures in `<output folder>/work/tools/`; then `Report commands rerun: <number>, and "no failure" or the failures`.
|
- under `## Checks`: the trial commands and what they return, figures in `<output folder>/work/tools/`; then `Report commands rerun: <number>, and "no failure" or the failures`.
|
||||||
|
|
||||||
## Your answer
|
## Your answer
|
||||||
|
|||||||
Reference in new issue
Block a user