English: label map, families, labeling rules, knowledge/, validate.py (ex controle.py), ids.py, precedents.py; the labels of auto/ translated, keys start/end/family/review/analysis (manual/: keys only); analysis folders renamed; the 2026-11-16 trial analysis (NORDEND-243)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-16 12:40:03 +01:00
1 parent 4d926ecddc
commit 68a0eefd8b
79 files changed
+2789 -2652

No files matched your search

+12 -12
View File
@@ -1,16 +1,16 @@
# CLAUDE.md
labeling : les étiquettes des déplacements AIMsight et le savoir pour les poser, en un seul exemplaire sur le poste (`README.md`). Diagnostic-App y lit et écrit, Optimizer y lit seulement, tous deux par un lien `labeling -> ~/labeling` ; on commite ici.
labeling: the AIMsight displacement labels and the knowledge to place them, in a single copy on the workstation (`README.md`). Diagnostic-App reads and writes there, Optimizer only reads, both through a link `labeling -> ~/labeling`; commits are made here.
- **Les étiquettes** : `manual/<STATION>.jsonl` (l'expert), `auto/<STATION>.jsonl` (les agents, relues par `revue`), une par ligne, `{"id", "debut", "fin", "categorie", "description", ...}`. Les analyses de Diagnostic-App : `auto/analyses/<STATION>_<début>_<fin>/`.
- **Le savoir** : `familles.md` (les familles, leurs frontières), `regles-d-etiquetage.md` (bornes, un seul événement, description, cause dite), `carte-des-etiquettes.md` (les phénomènes, par son sommaire), `connaissances/`.
- **Les outils**, bibliothèque standard : `python3 controle.py [STATION | fichier.jsonl]` (les règles), `python3 ids.py [STATION]` (l'id stable des nouvelles), `python3 precedents.py "<texte>" [--exclure STATION DEBUT FIN] [--famille F] [--k N]` (le RAG ; Ollama `docker start ollama-bge-m3` ; `--check` sans lui).
- **Vérifier** : `python3 controle.py` (aujourd'hui 18 erreurs attendues : les étiquettes versées par l'app sans `revue`) et `python3 precedents.py --check`.
- **The labels**: `manual/<STATION>.jsonl` (the expert, for him alone), `auto/<STATION>.jsonl` (the agents, reviewed by `review`), one per line, `{"id", "start", "end", "family", "description", ...}`. The Diagnostic-App analyses: `auto/analyses/<STATION>_<start>_<end>/`.
- **The knowledge**: `families.md` (the families, their boundaries), `labeling-rules.md` (bounds, a single event, description, stated cause), `label-map.md` (the phenomena, via its summary), `knowledge/`.
- **The tools**, standard library: `python3 validate.py [STATION | file.jsonl]` (the rules), `python3 ids.py [STATION]` (the stable id of new labels), `python3 precedents.py "<text>" [--exclude STATION START END] [--family F] [--k N]` (the RAG; it starts the Ollama container `ollama-bge-m3` by itself if it does not answer; `--check` without it).
- **Verify**: `python3 validate.py` (today 18 expected errors: the labels submitted by the app without `review`) and `python3 precedents.py --check`.
Règles :
- **`manual/` est à l'expert, pour lui seul** : aucun agent ni aucun processus n'y lit ni n'y écrit ; tout le projet (analyste, précédents, benchmark, optimisation) n'utilise que `auto/`.
- Une étiquette ajoutée à `auto/` passe par `ids.py` puis `controle.py` ; un id ne change jamais.
- Toute heure est en UTC ; descriptions en mots, sans valeur chiffrée.
- Pas de règle propre à une station, une cible ou une date dans les règles et les familles.
- Commits par chemin, jamais `git add -A` : Diagnostic-App écrit ici en même temps.
- Langue : français.
Rules:
- **`manual/` is the expert's, for him alone**: no agent and no process reads or writes there; the whole project (analyst, precedents, benchmark, optimization) uses only `auto/`.
- A label added to `auto/` goes through `ids.py` then `validate.py`; an id never changes.
- Every time is in UTC; descriptions in words, without numeric values; written in English from now on.
- No rule specific to a station, a target or a date in the rules and the families.
- Commit by path, never `git add -A`: Diagnostic-App writes here at the same time.
- Language: English.