diff --git a/CLAUDE.md b/CLAUDE.md index a3819de..1971f2b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,7 +2,7 @@ labeling: the AIMsight displacement labels and the knowledge to place them, in a single copy on the workstation (`README.md`). aimsight-app reads and writes there, Optimizer only reads, both through a link `labeling -> ~/aimsight-labeling`; the support agent writes its folders in `auto/support/`; commits are made here. -- **The labels**: `manual/.jsonl` (the expert, for him alone), `auto/.jsonl` (the agents; `review` = the date the user validated the label in aimsight-app, nothing else writes it), one per line, `{"id", "start", "end", "family", "description", ...}`. The aimsight-app analyses: `auto/analyses/__/`. The support agent's folders: `auto/support/_/`. The cases: `auto/cases/.json`, built by the `cases` skill (`/cases`) from the labels; `review` there is written by the user in the JSON. The point labels: `points/__.csv` (days, end excluded), one line per measurement of the range, `sensor_name,time_utc,valid` (1 or 0), set by hand by the user in aimsight-app (page Points), every point valid at the creation; no family, no cause: the ground truth of the benchmarks, point by point. +- **The labels**: `manual/.jsonl` (the expert, for him alone), `auto/.jsonl` (the agents; `review` = the date the user validated the label in aimsight-app, nothing else writes it), one per line, `{"id", "start", "end", "family", "description", ...}`. The aimsight-app analyses: `auto/analyses/__/`. The support agent's folders: `auto/support/_/`. The cases: `auto/cases/.json`, built by the `cases` skill (`/cases`) from the labels; `review` there is written by the user in the JSON. The point labels: `points/__.csv` (days, end excluded), one line per measurement of the range, `sensor_name,time_utc,valid` (1 or 0), set by hand by the user in aimsight-app (page Points), mainly on the runs of the emulator (`@`), every point valid at the creation; no family, no cause: the ground truth of the benchmarks, point by point. - **The knowledge**, one source per kind (`README.md`), maintained by hand: `families.md` (the families, their boundaries), `labeling-rules.md` (bounds, a single event, description, stated cause), `reading-rules.md` (what the data mean), `stations.md` (the installations); the phenomena, false friends and lessons are the cases, `auto/cases/`, through `cases.py`; the labels themselves through `precedents.py`; what the data are: `tools/DATA.md`. A piece of knowledge lives in one of them only. - **The tools**, standard library: `python3 scripts/validate.py [STATION | file.jsonl | cases]` (the rules), `python3 scripts/ids.py [STATION]` (the stable id of new labels), `python3 scripts/client.py` (what the client is told of a detectors' event, from `families.md`; its check), `python3 scripts/cases.py "" [--family F] [--k N]` (the RAG of the cases; it starts the Ollama container `ollama-bge-m3` by itself if it does not answer; `--list` and `--check` without it), `python3 scripts/precedents.py "" [--exclude STATION START END] [--family F] [--k N]` (the RAG of the labels; `--check` without Ollama), `python3 scripts/points.py` (the point labels: `create`, `read`, `mark`, `datasets`, their check; `--test`). - **For aimsight-app**, which calls them and holds no rule of its own: `validate.check(label, proposed)` (the rules of one label, before it is written in `auto/`), `ids.assign`, `client.message` and `client.action` (the "For the client" columns of `families.md`, per family and per variety). A rename here needs the change there. diff --git a/README.md b/README.md index c479ecc..b8e7ace 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The AIMsight displacement labels and all the domain knowledge to place them, in - `auto/analyses/__/`: the analyses launched from the Data page of aimsight-app (`work/` outside git). - `auto/support/_/`: the folders of the `support` agent (agents repository): the request, the answer, the analyst's work when it was called (`work/` outside git). - `auto/cases/.json`: the cases, the phenomena, false friends and lessons drawn from the labels, one JSON file each (`docs/superpowers/specs/2026-11-18-cases-design.md`); built and refreshed by the `cases` skill (`/cases`, `.claude/skills/cases/`), which never writes `review` nor commits; `review` is the date the user validated a case, written by the user in its JSON, removed by the skill when it changes the case's text; `auto/cases/.read.json`, the skill's state (which case each label went to). -- `points/__.csv`: the point labels, one boolean per measurement of a range (days, UTC, end excluded), `sensor_name,time_utc,valid` (1 valid, 0 invalid), set by hand in the Points page of aimsight-app; created with every point valid; no family, no cause: the ground truth of the benchmarks, point by point. The rejected measurements (without `corr_x`, `corr_y`) are not points. `scripts/points.py` reads, writes and checks them. +- `points/__.csv`: the point labels, one boolean per measurement of a range (days, UTC, end excluded), `sensor_name,time_utc,valid` (1 valid, 0 invalid), set by hand in the Points page of aimsight-app, mainly on the runs of the emulator (`@`, `data_diff/` of ~/aimsight-data); created with every point valid; no family, no cause: the ground truth of the benchmarks, point by point. The rejected measurements (without `corr_x`, `corr_y`) are not points. `scripts/points.py` reads, writes and checks them. - The knowledge, one source per kind, maintained by hand by the user, but for the cases; the analyst reads the four files in full and searches the cases: | Kind of knowledge | Source |