git:20261106.220fb37 to git:20261106.6976e1c

106 added, 115 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: crew-close-task
- description: Clôture une tâche crew terminée — vérifie les cases, passes review + simplify (au-delà du seuil), historise, sort les tests IA/DEV selon la politique de tests du projet, barre la tâche du batch. Trigger — "/crew-close-task", "cette tâche est finie", "clôture la tâche".
+ description: Closes a finished crew task — checks the boxes, runs review + simplify passes (above the threshold), writes the history entry, produces the AI/DEV test checklists according to the project's test policy, strikes the task out of its batch. Also triggers on — "/crew-close-task", "cette tâche est finie", "clôture la tâche", "this task is done", "close the task".
---
- Exécute le protocole défini dans `crew/CLAUDE_CONTEXT/CYCLE_DE_VIE.md` § "Gestion des tâches" (point
- 3) — ne sauter aucune étape. Les passes de l'étape 3 et les tests de l'étape 5
- suivent leurs seuils ; la modularité reste toujours exigée (cf.
- `crew/CLAUDE_CONTEXT/AGENTS.md` si ce projet y documente des anti-patterns
- précis).
+ Run the protocol defined in `crew/CLAUDE_CONTEXT/CYCLE_DE_VIE.md` § "Task management" (item
+ 3) — skip no step. The passes in step 3 and the tests in step 5 follow their
+ thresholds; modularity is always required (see `crew/CLAUDE_CONTEXT/AGENTS.md`
+ if this project documents specific anti-patterns).
- **Ancrage racine obligatoire** : tout chemin `crew/...` de ce skill se
- résout **depuis la racine du repo**, jamais depuis le cwd courant. En
- session mono-subtree (cf. `crew/CLAUDE_CONTEXT/CYCLE_DE_VIE.md` § Guides AGENTS.md segmentés), le cwd
- peut être un sous-dossier — un chemin relatif `crew/...` écrit tel quel y
- créerait un `crew/` fantôme dupliqué au lieu de toucher la racine. Résoudre
- la racine une seule fois en début d'exécution (`git rev-parse
- --show-toplevel` ou équivalent) si elle n'est pas déjà connue — pas besoin
- de revérifier à chaque `Read`/`Write`/`Edit`/`Bash` suivant.
+ **Repo-root anchoring is mandatory**: every `crew/...` path in this skill is
+ resolved **from the repo root**, never from the current cwd. In a single-subtree
+ session (see `crew/CLAUDE_CONTEXT/CYCLE_DE_VIE.md` § Segmented AGENTS.md guides), the cwd
+ may be a subfolder — a relative `crew/...` path written as-is would create a
+ duplicate phantom `crew/` there instead of touching the root. Resolve the root
+ once at the start (`git rev-parse --show-toplevel` or equivalent) if it is not
+ already known — no need to re-check on every following `Read`/`Write`/`Edit`/`Bash`.
- ## Étapes
+ ## Steps
- 1. Identifier le fichier `crew/CURRENT_TASKS/<slug>.md` concerné (demander
- lequel si plusieurs tâches sont actives et que l'utilisateur n'a pas
- précisé).
- 2. Vérifier que **toutes** les actions `- [ ]` du fichier sont cochées
- `- [x]`. Si non → **ne pas continuer** : lister les actions restantes et
- s'arrêter là.
- 3. Passes avant closing, **si le diff dépasse le seuil du routage de
- `CLAUDE.md`** (« Fin de tâche » ; identique pour tous les niveaux de la
- politique de tests) :
- - Skill `requesting-code-review` sur le code touché par la tâche.
- - Skill `simplify` sur le même périmètre — couvre réutilisation,
- simplification, efficacité **et** modularité (pas de fichier
- fourre-tout, pas de logique dupliquée à 2+ endroits sans extraction).
+ 1. Identify the relevant `crew/CURRENT_TASKS/<slug>.md` file (ask which one if
+ several tasks are active and the user did not say).
+ 2. Check that **all** `- [ ]` actions in the file are ticked `- [x]`. If not →
+ **do not continue**: list the remaining actions and stop there.
+ 3. Passes before closing, **if the diff exceeds the threshold in the
+ `CLAUDE.md` routing** ("End of task"; same for every level of
+ the test policy):
+ - Skill `requesting-code-review` on the code touched by the task.
+ - Skill `simplify` on the same scope — covers reuse, simplification,
+ efficiency **and** modularity (no catch-all file, no logic duplicated in
+ 2+ places without extraction).
- Sous ce seuil : `verification-before-completion` suffit ; la modularité
- reste exigée.
- 4. **Commit de l'implémentation**, une fois les passes du point 3 faites et
- les retours appliqués : `git status` pour identifier les fichiers
- réellement modifiés par **cette tâche** (celle en cours de clôture — pas
- une autre tâche qui traînerait en parallèle dans le même checkout).
- Croiser cette liste avec la `Zone :` déjà déclarée pour cette tâche dans
- `crew/CLAUDE_BATCH.md` : un fichier hors de cette zone ne doit jamais
- être ajouté sans vérification — en cas de doute, demander plutôt que
- d'inclure silencieusement. Puis `git add -- <ces fichiers>` et `git
- commit -- <ces fichiers>` (le `git add` scopé est nécessaire pour les
- fichiers nouvellement créés, que `git commit --` seul ne stage pas ;
- jamais `-A`/`git add .`, jamais `git commit` nu, jamais de push).
- Distinct et complémentaire du commit auto de bookkeeping crew/ (point 5
- ci-dessous, `crew/crew_hook.py::auto_commit_closure`) : ne pas
- recommitter ici les chemins bookkeeping (`crew/CURRENT_TASKS/<slug>.md`,
- `HISTORIQUE.md`, `TESTS/`, `CLAUDE_BATCH.md`, `INDEX.md`) déjà gérés par
- ce mécanisme séparé. Tâche purement bookkeeping/doc crew (aucun fichier
- d'implémentation touché hors crew/) → no-op explicite : le dire (« rien
- à committer ici »).
- 5. Une fois le commit d'implémentation fait (ou son no-op constaté) :
- - **Décider des tests** (avant d'écrire l'entrée `HISTORIQUE`, qui en porte
- le verdict) : lire `crew/CLAUDE_CONTEXT/TESTS_POLICY.md` et appliquer son
- niveau, sa grille, son protocole d'hésitation et son plafond de cases —
- ce fichier est la seule source de ces règles. **Absent** → projet pas
- encore migré : comportement historique (`full`), rien ne change en
- silence ; ajouter au rapport final « Politique de tests absente :
- `/crew-update` pour l'activer ».
- - Si une checklist est décidée : créer `crew/TESTS/IA/<slug>.md` et/ou
- `crew/TESTS/DEV/<slug>.md` selon le critère de tri de `CLAUDE.md`
- (🤖/🔍 = l'IA peut dérouler seule ; 🖱️ = action humaine réellement
- nécessaire). Ne pas cocher ces tests à la création — validation pour une
- session ultérieure.
- - Supprimer `crew/CURRENT_TASKS/<slug>.md`.
- - Ajouter une entrée dans `crew/CLAUDE_CONTEXT/HISTORIQUE.md` : quoi,
- quand, fichiers/commits clés, et le verdict tests défini par la
- politique (omis en `none`).
- - Barrer la ligne de la tâche dans `crew/CLAUDE_BATCH.md` (`~~`slug.md`~~`,
- batch ou section « À classer ») — **ne jamais supprimer la ligne** :
- `prune_closed_batches` (`crew/crew_hook.py`) ne retire un batch que
- lorsque toutes ses tâches référencées sont barrées ; une ligne
- supprimée au lieu d'être barrée laisse un header de batch orphelin
- que la purge automatique ne détecte jamais.
- 5bis. **Libérer le claim distant** (opt-in : seulement si `crew/CLAUDE_CONTEXT/CREW_CONFIG.md`
- contient `remote_claims : true`, sinon sauter) :
- `python "$HOOK" claims release <slug>.md --done` (`$HOOK` : voir `/crew-start`
- étape 1 ; retire l'entrée de la ref :
- la tâche est terminée). Hors ligne ou échec → non bloquant : signaler que le
- claim expirera tout seul (TTL 8 h) ou à relancer plus tard.
+ Below this threshold: `verification-before-completion` is enough; modularity
+ is still required.
+ 4. **Commit the implementation**, once the step 3 passes are done and their
+ feedback applied: `git status` to identify the files actually modified by
+ **this task** (the one being closed — not another task lingering in parallel
+ in the same checkout). Cross-check this list against the `Zone :` already
+ declared for this task in `crew/CLAUDE_BATCH.md`: a file outside this zone
+ must never be added without checking — when in doubt, ask rather than
+ silently include it. Then `git add -- <these files>` and `git commit --
+ <these files>` (the scoped `git add` is needed for newly created files, which
+ `git commit --` alone does not stage; never `-A`/`git add .`, never a bare
+ `git commit`, never push). Distinct from and complementary to the automatic
+ crew/ bookkeeping commit (step 5 below,
+ `crew/crew_hook.py::auto_commit_closure`): do not recommit here the
+ bookkeeping paths (`crew/CURRENT_TASKS/<slug>.md`, `HISTORIQUE.md`, `TESTS/`,
+ `CLAUDE_BATCH.md`, `INDEX.md`) already handled by that separate mechanism.
+ Purely bookkeeping/crew doc task (no implementation file touched outside
+ crew/) → explicit no-op: say so ("nothing to commit here").
+ 5. Once the implementation commit is done (or its no-op noted):
+ - **Decide the tests** (before writing the `HISTORIQUE` entry, which carries
+ the verdict): read `crew/CLAUDE_CONTEXT/TESTS_POLICY.md` and apply its
+ level, grid, hesitation protocol and box cap — that file is the only source
+ of these rules. **Missing** → project not yet migrated: historical behavior
+ (`full`), nothing changes silently; add to the final report "Test policy
+ missing: `/crew-update` to enable it".
+ - If a checklist is decided: create `crew/TESTS/IA/<slug>.md` and/or
+ `crew/TESTS/DEV/<slug>.md` according to the sorting criterion in
+ `CLAUDE.md` (🤖/🔍 = the AI can run it alone; 🖱️ = a human action is really
+ needed). Do not tick these tests at creation — validation is for a later
+ session.
+ - Delete `crew/CURRENT_TASKS/<slug>.md`.
+ - Add an entry to `crew/CLAUDE_CONTEXT/HISTORIQUE.md`: what, when, key
+ files/commits, and the tests verdict defined by the policy (omitted for
+ `none`).
+ - Strike the task's line in `crew/CLAUDE_BATCH.md` (`~~`slug.md`~~`, in its
+ batch or in the `À classer` (to be sorted) section) — **never delete the
+ line**: `prune_closed_batches` (`crew/crew_hook.py`) only removes a batch
+ when all its referenced tasks are struck; a line deleted instead of struck
+ leaves an orphan batch header that the automatic purge never detects.
+ 5bis. **Release the remote claim** (opt-in: only if
+ `crew/CLAUDE_CONTEXT/CREW_CONFIG.md` contains `remote_claims : true`,
+ otherwise skip): `python "$HOOK" claims release <slug>.md --done` (`$HOOK`:
+ see `/crew-start` step 1; removes the entry from the ref: the task is
+ finished). Offline or failure → non-blocking: report that the claim will
+ expire on its own (8 h TTL) or to retry later.
- 6. **Intégration du worktree de batch**, si la session travaille depuis un
- worktree `../<nom-repo>-batch-<slug>/` sur la branche `crew/batch-<slug>`
- (isolation physique posée par `/crew-start`, cf.
- `docs/superpowers/specs/2026-08-22-worktree-batch-isolation-design.md`) :
- - Si **d'autres tâches du même batch** restent en `crew/CURRENT_TASKS/`
- (batch pas encore entièrement terminé) → ne pas toucher au worktree,
- il sert encore. S'arrêter là pour cette section.
- - Sinon (batch entièrement terminé) : `git rebase main` sur la branche
- `crew/batch-<slug>` (rebase strictement local — pas de `git fetch`,
- aucun remote n'est supposé exister).
- - Rebase propre → fusionner en fast-forward dans `main`, puis
- `git worktree remove ../<nom-repo>-batch-<slug>` et
- `git branch -d crew/batch-<slug>`. Revenir (`cd`) au checkout
- principal avant de continuer.
- - Conflit au rebase → `git rebase --abort`, garder le worktree et la
- branche intacts, lister les fichiers en conflit à l'utilisateur pour
- résolution manuelle. Ne pas tenter de retirer l'entrée session de
- `crew_lock.json` à la main : `crew/crew_hook.py` la nettoie déjà tout
- seul (Stop/SessionEnd) — le travail de code est fini même si
- l'intégration ne l'est pas encore.
- 7. Rapporter : fichiers/commit de l'implémentation (point 4, ou son no-op
- constaté), ce qui a été historisé, fichiers de tests créés (IA/DEV),
- batch mis à jour, et le sort du worktree de batch (conservé car batch pas
- fini / fusionné et supprimé / conflit laissé pour résolution manuelle).
+ 6. **Integrate the batch worktree**, if the session works from a
+ `../<repo-name>-batch-<slug>/` worktree on the `crew/batch-<slug>` branch
+ (physical isolation set up by `/crew-start`, see
+ `docs/superpowers/specs/2026-08-22-worktree-batch-isolation-design.md`):
+ - If **other tasks of the same batch** remain in `crew/CURRENT_TASKS/` (batch
+ not fully finished) → do not touch the worktree, it is still in use. Stop
+ there for this section.
+ - Otherwise (batch fully finished): `git rebase main` on the
+ `crew/batch-<slug>` branch (strictly local rebase — no `git fetch`, no
+ remote is assumed to exist).
+ - Clean rebase → fast-forward merge into `main`, then
+ `git worktree remove ../<repo-name>-batch-<slug>` and
+ `git branch -d crew/batch-<slug>`. `cd` back to the main checkout before
+ continuing.
+ - Rebase conflict → `git rebase --abort`, leave the worktree and branch
+ intact, list the conflicting files to the user for manual resolution. Do
+ not try to remove the session entry from `crew_lock.json` by hand:
+ `crew/crew_hook.py` already cleans it up on its own (Stop/SessionEnd) —
+ the code work is done even if the integration is not yet.
+ 7. Report: implementation files/commit (step 4, or its noted no-op), what was
+ written to history, test files created (IA/DEV), batch updated, and the fate
+ of the batch worktree (kept because batch not finished / merged and removed /
+ conflict left for manual resolution).
- ## Ce que ce skill ne fait pas
+ ## What this skill does not do
- - Ne coche jamais des actions à la place de l'utilisateur pour pouvoir clore
- plus vite — si des actions restent non cochées, il s'arrête et le dit.
- - Ne saute jamais `requesting-code-review`/`simplify` au-delà du seuil de
- l'étape 3, ni l'exigence de modularité en dessous.
- - Ne génère pas de checklist « par réflexe » : `TESTS_POLICY.md` décide.
- - Ne décide pas qu'un test va en `IA/` par défaut — applique le vrai critère
- (l'IA a-t-elle de quoi l'exécuter elle-même ?), pas une facilité.
- - Ne supprime jamais un worktree/branche de batch tant qu'une autre tâche du
- même batch est encore en `crew/CURRENT_TASKS/`.
- - Ne résout jamais un conflit de rebase automatiquement — l'abandonne
- proprement et le signale, ne discard jamais le travail du worktree.
- - Ne committe jamais l'implémentation hors du scoping du point 4 (jamais
- `git commit` nu ou `git add -A`/`git add .`).
+ - Never ticks actions on the user's behalf to close faster — if actions remain
+ unticked, it stops and says so.
+ - Never skips `requesting-code-review`/`simplify` above the step 3 threshold, nor
+ the modularity requirement below it.
+ - Does not generate a checklist "by reflex": `TESTS_POLICY.md` decides.
+ - Does not default a test to `IA/` — applies the real criterion (does the AI
+ have what it needs to run it itself?), not convenience.
+ - Never deletes a batch worktree/branch while another task of the same batch is
+ still in `crew/CURRENT_TASKS/`.
+ - Never resolves a rebase conflict automatically — aborts cleanly and reports
+ it, never discards the worktree's work.
+ - Never commits the implementation outside the step 4 scoping (never a bare
+ `git commit` or `git add -A`/`git add .`).