@roomi-fields/grillhouse 0.28.3 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +739 -0
  3. package/bin/grillhouse.mjs +128 -26
  4. package/cadre/templates/projet/.github/workflows/ci.yml +2 -13
  5. package/cadre/templates/projet/CLAUDE.md +5 -1
  6. package/cadre/templates/projet/README.md +11 -11
  7. package/cadre/templates/projet/_gitignore +2 -5
  8. package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
  9. package/cadre/templates/projet/package.json +2 -2
  10. package/charte.md +37 -4
  11. package/dist/temporal/acte.d.ts +24 -0
  12. package/dist/temporal/acte.js +139 -0
  13. package/dist/temporal/acte.js.map +1 -0
  14. package/dist/temporal/attributs.d.ts +6 -0
  15. package/dist/temporal/attributs.js +15 -0
  16. package/dist/temporal/attributs.js.map +1 -0
  17. package/dist/temporal/circuit/activites.d.ts +13 -0
  18. package/dist/temporal/circuit/activites.js +33 -0
  19. package/dist/temporal/circuit/activites.js.map +1 -0
  20. package/dist/temporal/circuit/client.d.ts +72 -0
  21. package/dist/temporal/circuit/client.js +247 -0
  22. package/dist/temporal/circuit/client.js.map +1 -0
  23. package/dist/temporal/circuit/commande.d.ts +2 -0
  24. package/dist/temporal/circuit/commande.js +238 -0
  25. package/dist/temporal/circuit/commande.js.map +1 -0
  26. package/dist/temporal/circuit/contrat.d.ts +305 -0
  27. package/dist/temporal/circuit/contrat.js +24 -0
  28. package/dist/temporal/circuit/contrat.js.map +1 -0
  29. package/dist/temporal/circuit/deroule.d.ts +3 -0
  30. package/dist/temporal/circuit/deroule.js +540 -0
  31. package/dist/temporal/circuit/deroule.js.map +1 -0
  32. package/dist/temporal/client.d.ts +47 -0
  33. package/dist/temporal/client.js +69 -0
  34. package/dist/temporal/client.js.map +1 -0
  35. package/dist/temporal/commande.d.ts +2 -0
  36. package/dist/temporal/commande.js +95 -0
  37. package/dist/temporal/commande.js.map +1 -0
  38. package/dist/temporal/deroules.d.ts +5 -0
  39. package/dist/temporal/deroules.js +10 -0
  40. package/dist/temporal/deroules.js.map +1 -0
  41. package/dist/temporal/etat.d.ts +33 -0
  42. package/dist/temporal/etat.js +59 -0
  43. package/dist/temporal/etat.js.map +1 -0
  44. package/dist/temporal/file/activites.d.ts +10 -0
  45. package/dist/temporal/file/activites.js +25 -0
  46. package/dist/temporal/file/activites.js.map +1 -0
  47. package/dist/temporal/file/client.d.ts +4 -0
  48. package/dist/temporal/file/client.js +6 -0
  49. package/dist/temporal/file/client.js.map +1 -0
  50. package/dist/temporal/file/contrat.d.ts +158 -0
  51. package/dist/temporal/file/contrat.js +14 -0
  52. package/dist/temporal/file/contrat.js.map +1 -0
  53. package/dist/temporal/file/deroule.d.ts +15 -0
  54. package/dist/temporal/file/deroule.js +235 -0
  55. package/dist/temporal/file/deroule.js.map +1 -0
  56. package/dist/temporal/installation.d.ts +124 -0
  57. package/dist/temporal/installation.js +408 -0
  58. package/dist/temporal/installation.js.map +1 -0
  59. package/dist/temporal/places/activites.d.ts +8 -0
  60. package/dist/temporal/places/activites.js +13 -0
  61. package/dist/temporal/places/activites.js.map +1 -0
  62. package/dist/temporal/places/client.d.ts +28 -0
  63. package/dist/temporal/places/client.js +64 -0
  64. package/dist/temporal/places/client.js.map +1 -0
  65. package/dist/temporal/places/contrat.d.ts +106 -0
  66. package/dist/temporal/places/contrat.js +21 -0
  67. package/dist/temporal/places/contrat.js.map +1 -0
  68. package/dist/temporal/places/deroule.d.ts +3 -0
  69. package/dist/temporal/places/deroule.js +198 -0
  70. package/dist/temporal/places/deroule.js.map +1 -0
  71. package/dist/temporal/sonde/activites.d.ts +6 -0
  72. package/dist/temporal/sonde/activites.js +52 -0
  73. package/dist/temporal/sonde/activites.js.map +1 -0
  74. package/dist/temporal/sonde/contrat.d.ts +35 -0
  75. package/dist/temporal/sonde/contrat.js +10 -0
  76. package/dist/temporal/sonde/contrat.js.map +1 -0
  77. package/dist/temporal/sonde/deroule.d.ts +3 -0
  78. package/dist/temporal/sonde/deroule.js +39 -0
  79. package/dist/temporal/sonde/deroule.js.map +1 -0
  80. package/dist/temporal/tickets/activites.d.ts +7 -0
  81. package/dist/temporal/tickets/activites.js +81 -0
  82. package/dist/temporal/tickets/activites.js.map +1 -0
  83. package/dist/temporal/tickets/client.d.ts +10 -0
  84. package/dist/temporal/tickets/client.js +31 -0
  85. package/dist/temporal/tickets/client.js.map +1 -0
  86. package/dist/temporal/tickets/contrat.d.ts +56 -0
  87. package/dist/temporal/tickets/contrat.js +13 -0
  88. package/dist/temporal/tickets/contrat.js.map +1 -0
  89. package/dist/temporal/tickets/deroule.d.ts +3 -0
  90. package/dist/temporal/tickets/deroule.js +94 -0
  91. package/dist/temporal/tickets/deroule.js.map +1 -0
  92. package/dist/temporal/travailleur.d.ts +2 -0
  93. package/dist/temporal/travailleur.js +69 -0
  94. package/dist/temporal/travailleur.js.map +1 -0
  95. package/docs/ARCHITECTURE.md +813 -53
  96. package/docs/CADRE.md +17 -0
  97. package/docs/INTERFACE.md +161 -30
  98. package/hooks/crochet.mjs +19 -2
  99. package/hooks/hooks.json +11 -0
  100. package/package.json +16 -4
  101. package/scripts/activites.mjs +2182 -0
  102. package/scripts/aiguillage.d.mts +37 -0
  103. package/scripts/aiguillage.mjs +328 -0
  104. package/scripts/avancement.mjs +159 -64
  105. package/scripts/bilan.mjs +37 -19
  106. package/scripts/cadre.mjs +11 -2
  107. package/scripts/circuit.mjs +888 -3654
  108. package/scripts/circuits-cles.d.mts +4 -0
  109. package/scripts/circuits-cles.mjs +21 -0
  110. package/scripts/circuits-du-serveur.mjs +105 -0
  111. package/scripts/codes-de-sortie.mjs +9 -0
  112. package/scripts/commandes-composees.mjs +45 -41
  113. package/scripts/commandes-du-path.d.mts +7 -0
  114. package/scripts/commandes-du-path.mjs +25 -0
  115. package/scripts/composition-des-langages.mjs +30 -11
  116. package/scripts/conformite.mjs +19 -10
  117. package/scripts/copies-finies.mjs +188 -42
  118. package/scripts/depart-du-ticket.d.mts +53 -0
  119. package/scripts/depart-du-ticket.mjs +124 -0
  120. package/scripts/dependances-internes.mjs +115 -0
  121. package/scripts/dernier-vert.mjs +7 -15
  122. package/scripts/donnees-cles.mjs +228 -0
  123. package/scripts/droits.mjs +11 -1
  124. package/scripts/effets.mjs +352 -0
  125. package/scripts/enveloppe/enveloppe.mjs +119 -8
  126. package/scripts/enveloppe/lancer.sh +27 -32
  127. package/scripts/enveloppe/paquets-du-plan.mjs +2 -2
  128. package/scripts/enveloppe/travail-de-la-copie.mjs +99 -12
  129. package/scripts/etapes.mjs +6 -3
  130. package/scripts/faits-du-circuit.mjs +493 -0
  131. package/scripts/file-des-tickets.d.mts +21 -0
  132. package/scripts/file-des-tickets.mjs +58 -0
  133. package/scripts/flux-des-paquets.mjs +187 -0
  134. package/scripts/fusion-du-changelog.mjs +0 -1
  135. package/scripts/gardes-du-cadre.mjs +12 -2
  136. package/scripts/grillhouse-maj.mjs +16 -7
  137. package/scripts/integration/file.mjs +477 -422
  138. package/scripts/integration/integrer.mjs +20 -22
  139. package/scripts/integration/rejeu.mjs +19 -4
  140. package/scripts/jointure.d.ts +168 -28
  141. package/scripts/langages/cargo/commandes.mjs +426 -119
  142. package/scripts/langages/cargo/composants.mjs +187 -3
  143. package/scripts/langages/cargo/exemples.mjs +75 -17
  144. package/scripts/langages/cargo/index.mjs +32 -13
  145. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +35 -0
  146. package/scripts/langages/cargo/sccache.mjs +62 -16
  147. package/scripts/langages/cargo/squelette.mjs +72 -3
  148. package/scripts/langages/cargo/tailles-des-tests.mjs +195 -0
  149. package/scripts/langages/cargo/tests-de-head.mjs +159 -0
  150. package/scripts/langages/python/commandes.mjs +232 -79
  151. package/scripts/langages/python/composants.mjs +65 -3
  152. package/scripts/langages/python/exemples.mjs +21 -12
  153. package/scripts/langages/python/index.mjs +25 -5
  154. package/scripts/langages/python/lot.mjs +1 -36
  155. package/scripts/langages/python/squelette.mjs +119 -17
  156. package/scripts/langages/typescript/construire.mjs +6 -163
  157. package/scripts/langages/typescript/exemples.mjs +19 -11
  158. package/scripts/langages/typescript/frontieres.mjs +1 -1
  159. package/scripts/langages/typescript/index.mjs +48 -63
  160. package/scripts/langages/typescript/interfaces-contre-code.mjs +4 -4
  161. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +63 -0
  162. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +31 -0
  163. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +40 -0
  164. package/scripts/langages/typescript/mise-a-jour.mjs +1 -2
  165. package/scripts/langages/typescript/regle-des-tests.mjs +13 -0
  166. package/scripts/langages/typescript/squelette.mjs +18 -2
  167. package/scripts/langages/typescript/tailles-des-tests.mjs +40 -9
  168. package/scripts/langages/typescript/tests-de-nuit.mjs +44 -21
  169. package/scripts/langages/typescript/tests.mjs +17 -8
  170. package/scripts/langages/typescript/titres-de-tests.mjs +297 -0
  171. package/scripts/langages/typescript/turbo-des-paquets.mjs +183 -38
  172. package/scripts/langages/typescript/verdict.mjs +1 -1
  173. package/scripts/langages/typescript/verifier.mjs +110 -296
  174. package/scripts/langages/typescript/vitest-config/base.mjs +30 -10
  175. package/scripts/langages/typescript/vitest-config/bornes.mjs +13 -0
  176. package/scripts/langages/typescript/vitest-config/cibles.mjs +123 -62
  177. package/scripts/langages/typescript/vitest-config/delais.mjs +54 -0
  178. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +11 -0
  179. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +100 -0
  180. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +56 -64
  181. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +7 -2
  182. package/scripts/langages/typescript/vitest-config/mesure.mjs +3 -2
  183. package/scripts/langages/typescript/vitest.nuit.config.mjs +22 -13
  184. package/scripts/lecture-unique.mjs +51 -0
  185. package/scripts/mesure/pression.mjs +11 -9
  186. package/scripts/mesure-de-la-machine.d.mts +21 -0
  187. package/scripts/mesure-de-la-machine.mjs +76 -0
  188. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +8 -2
  189. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +120 -0
  190. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +81 -0
  191. package/scripts/migrations.mjs +5 -0
  192. package/scripts/nuit.sh +29 -15
  193. package/scripts/outil.mjs +72 -0
  194. package/scripts/outils-cles.d.mts +24 -0
  195. package/scripts/outils-cles.mjs +0 -1
  196. package/scripts/paquet-npm.mjs +147 -0
  197. package/scripts/paquet.mjs +112 -14
  198. package/scripts/paquets.mjs +34 -6
  199. package/scripts/passe-de-la-machine.mjs +66 -0
  200. package/scripts/places-de-la-machine.mjs +360 -0
  201. package/scripts/places-du-serveur.mjs +170 -0
  202. package/scripts/prefixe-des-tickets.mjs +68 -0
  203. package/scripts/preparation.mjs +10 -3
  204. package/scripts/registre.mjs +3 -2
  205. package/scripts/regles-des-places.d.mts +36 -0
  206. package/scripts/regles-des-places.mjs +70 -0
  207. package/scripts/reponses-du-circuit.d.mts +6 -0
  208. package/scripts/reponses-du-circuit.mjs +28 -0
  209. package/scripts/resultats.mjs +29 -14
  210. package/scripts/retirer-les-copies-finies.mjs +25 -0
  211. package/scripts/sans-reponse.d.mts +4 -0
  212. package/scripts/sans-reponse.mjs +13 -0
  213. package/scripts/seances.mjs +918 -0
  214. package/scripts/services-du-noyau.mjs +28 -11
  215. package/scripts/session-start.sh +10 -1
  216. package/scripts/sortie.mjs +23 -4
  217. package/scripts/sources.mjs +3 -3
  218. package/scripts/sous-commandes.mjs +39 -9
  219. package/scripts/style-a-l-ecriture.mjs +229 -0
  220. package/scripts/superviseur.mjs +382 -16
  221. package/scripts/tableau.mjs +329 -130
  222. package/scripts/taches-du-graphe.mjs +328 -0
  223. package/scripts/ticket-du-circuit.mjs +206 -0
  224. package/scripts/transitions.d.mts +148 -0
  225. package/scripts/transitions.mjs +901 -0
  226. package/scripts/verrou-de-fichier.mjs +2 -2
  227. package/scripts/verrou-de-machine.mjs +322 -62
  228. package/skills/developpeur/SKILL.md +11 -3
  229. package/skills/explorateur/SKILL.md +2 -1
  230. package/skills/pitmaster/SKILL.md +62 -28
  231. package/skills/pitmaster/references/consigne-agent.md +5 -1
  232. package/skills/release/SKILL.md +3 -3
  233. package/skills/relecteur/SKILL.md +22 -8
  234. package/skills/testwriter/SKILL.md +47 -39
  235. package/scripts/demon.mjs +0 -138
  236. package/scripts/integration/file-attente.mjs +0 -61
  237. package/scripts/langages/cargo/touches.mjs +0 -93
  238. package/scripts/langages/typescript/script-des-tests.mjs +0 -6
@@ -33,6 +33,9 @@
33
33
  // `~/.claude`, `~/.claude.json`, the npm cache, the paths of `MAISON_EN_LECTURE` (claude, node,
34
34
  // git and the session's tools) and the repository. No socket of the session comes back. Of
35
35
  // the machine's credentials, only claude's own are in sight.
36
+ // - A project that names its published version (`grillhouse.outil`) gets `~/.cache/grillhouse/outil`
37
+ // read-only, the version installed by the envelope before the session starts: the write lock
38
+ // runs on that version, never on the code of the copy it guards.
36
39
  // - The tools of the project (`grillhouse.outils` of the package.json of the main tree, never of
37
40
  // the copy, so that an agent never opens a path for its next session; `{ "<VARIABLE>":
38
41
  // "<chemin>" }`, read by scripts/outils-cles.mjs), as Bazel declares what an action sees out of
@@ -122,7 +125,10 @@ import {
122
125
  } from './paquets-du-plan.mjs';
123
126
 
124
127
  export { paquetsDuLangage };
128
+ import { cacheDesOutils, installer, versionDeLOutil } from '../aiguillage.mjs';
125
129
  import { ouvrirBase } from '../mesure/base-de-passe.mjs';
130
+ import { travailleursDe, VARIABLE_TENUE } from '../places-de-la-machine.mjs';
131
+ import { donneesDe } from '../donnees-cles.mjs';
126
132
  import { outilsDe } from '../outils-cles.mjs';
127
133
 
128
134
  // The role that writes the package of the shared test material and the lock files of the versions.
@@ -176,7 +182,9 @@ const MAISON_EN_LECTURE = [
176
182
 
177
183
  // The variables of a login session that the envelope passes on, as sudo's env_reset keeps them,
178
184
  // claude's OAuth credential, the author of the session's comments at the ticket (`BEADS_ACTOR`,
179
- // which the circuit sets to the session's role), and the prefixes of the families it passes on:
185
+ // which the circuit sets to the session's role), the mark of the place the session holds
186
+ // (`GRILLHOUSE_PLACE_TENUE`, scripts/places-de-la-machine.mjs), which covers its commands, and
187
+ // the prefixes of the families it passes on:
180
188
  // the locale, and the configuration and credentials of claude's API. The state of a launching claude session
181
189
  // (`CLAUDE_CODE_SESSION_ID`, its messaging socket and token…) stays out.
182
190
  const ENVIRONNEMENT_DECLARE = [
@@ -192,6 +200,7 @@ const ENVIRONNEMENT_DECLARE = [
192
200
  'COLORTERM',
193
201
  'CLAUDE_CODE_OAUTH_TOKEN',
194
202
  'BEADS_ACTOR',
203
+ VARIABLE_TENUE,
195
204
  ];
196
205
  const FAMILLES_DECLAREES = ['LC_', 'ANTHROPIC_'];
197
206
  // The declared variables that name a path: each enters only when its path is in sight inside the
@@ -233,9 +242,14 @@ export function dossierDeTravail(copie, env = process.env) {
233
242
  // script: a `prepare` that writes under the read-only `.git` would fail `npm install`; the
234
243
  // launcher installs outside the session), `TMPDIR`, `TMP` and `TEMP` set to the session's working
235
244
  // directory <travail>, and `GRILLHOUSE_ENVELOPPE` set to the plan <paquets>; with them, each tool of the
236
- // project <outils> (`grillhouse.outils`), its variable set to its path. Nothing else of <env>
237
- // enters.
238
- export function environnementDeLaSeance(env, { cacheNpm, paquets, travail, outils = {} }) {
245
+ // project <outils> (`grillhouse.outils`), its variable set to its path; and, when <travailleurs>
246
+ // is given, GRILLHOUSE_TRAVAILLEURS set to it: the workers the session's tests play on, which the
247
+ // module of each language passes to its tool (scripts/places-de-la-machine.mjs `travailleursDe`).
248
+ // Nothing else of <env> enters.
249
+ export function environnementDeLaSeance(
250
+ env,
251
+ { cacheNpm, paquets, travail, outils = {}, donnees = {}, travailleurs }
252
+ ) {
239
253
  const declare = nom =>
240
254
  ENVIRONNEMENT_DECLARE.includes(nom) ||
241
255
  VARIABLES_DE_CHEMIN.includes(nom) ||
@@ -244,12 +258,57 @@ export function environnementDeLaSeance(env, { cacheNpm, paquets, travail, outil
244
258
  return {
245
259
  ...Object.fromEntries(garde),
246
260
  ...outils,
261
+ ...donnees,
247
262
  npm_config_cache: cacheNpm,
248
263
  npm_config_ignore_scripts: 'true',
249
264
  TMPDIR: travail,
250
265
  TMP: travail,
251
266
  TEMP: travail,
252
267
  [VARIABLE]: ecrireLaListe(paquets),
268
+ ...(travailleurs === undefined ? {} : { GRILLHOUSE_TRAVAILLEURS: String(travailleurs) }),
269
+ };
270
+ }
271
+
272
+ /**
273
+ * The command <commande> placed under `nice` then `ionice`, so a session of an agent yields the
274
+ * CPU and the disk to the rest of the machine (its command kept whole at the end).
275
+ * @param {string[]} commande
276
+ * @returns {string[]}
277
+ */
278
+ export function sousNiceEtIonice(commande) {
279
+ return ['nice', '-n', '10', 'ionice', '-c', '2', '-n', '7', ...commande];
280
+ }
281
+
282
+ /**
283
+ * What `envelopper` launches for a session: `bwrap` with the arguments <argsBwrap> of the plan, then
284
+ * <commande> under `nice` and `ionice`, behind the test of the variables that name a path; and the
285
+ * environment of the session, GRILLHOUSE_TRAVAILLEURS set to max(1, cores ÷ places) of <env>.
286
+ * @param {{ argsBwrap: string[], commande: string[], env: Record<string, string | undefined>,
287
+ * cacheNpm: string, paquets: string[], travail: string, outils?: Record<string, string>,
288
+ * donnees?: Record<string, string> }} o
289
+ * @returns {{ cmd: string, args: string[], env: Record<string, string> }}
290
+ */
291
+ export function lancementDeLaSeance({
292
+ argsBwrap,
293
+ commande,
294
+ env,
295
+ cacheNpm,
296
+ paquets,
297
+ travail,
298
+ outils,
299
+ donnees,
300
+ }) {
301
+ return {
302
+ cmd: 'bwrap',
303
+ args: [...argsBwrap, ...commandeEprouvee(sousNiceEtIonice(commande))],
304
+ env: environnementDeLaSeance(env, {
305
+ cacheNpm,
306
+ paquets,
307
+ travail,
308
+ outils,
309
+ donnees,
310
+ travailleurs: travailleursDe({ env }),
311
+ }),
253
312
  };
254
313
  }
255
314
 
@@ -273,6 +332,7 @@ export function montagesDeLaSeance({
273
332
  scratchpads,
274
333
  sessions = [],
275
334
  outils = {},
335
+ publie = null,
276
336
  }) {
277
337
  const maison = path.dirname(claude);
278
338
  return [
@@ -284,6 +344,7 @@ export function montagesDeLaSeance({
284
344
  { chemin: projet, ecriture: true },
285
345
  ...MAISON_EN_LECTURE.map(rel => ({ chemin: path.join(maison, rel), ecriture: false })),
286
346
  ...Object.values(outils).map(chemin => ({ chemin, ecriture: false })),
347
+ ...(publie === null ? [] : [{ chemin: publie, ecriture: false }]),
287
348
  ];
288
349
  }
289
350
 
@@ -559,6 +620,34 @@ export function plan(
559
620
 
560
621
  const disque = { existe: existsSync, lien: lienSurDisque };
561
622
 
623
+ // The cache of the published versions to mount when the project of <copie> names its version
624
+ // (`grillhouse.outil`, read in the main tree), after installing the version here, outside the
625
+ // session; null without the key, or when the version cannot be installed (said on the error stream:
626
+ // the lock then falls back on the code of the copy, and refuses when that does not load either).
627
+ function cacheDeLaVersionPubliee(copie) {
628
+ const commun = execFileSync(
629
+ 'git',
630
+ ['-C', copie, 'rev-parse', '--path-format=absolute', '--git-common-dir'],
631
+ { encoding: 'utf8' }
632
+ ).trim();
633
+ let version;
634
+ try {
635
+ version = versionDeLOutil(path.dirname(commun));
636
+ } catch {
637
+ return null;
638
+ }
639
+ if (version === null) return null;
640
+ try {
641
+ installer(version);
642
+ } catch (e) {
643
+ process.stderr.write(
644
+ `⚠️ enveloppe : version publiée ${version} non installable : ${e.message}\n`
645
+ );
646
+ return null;
647
+ }
648
+ return cacheDesOutils();
649
+ }
650
+
562
651
  // The command: the session of <commande> in the envelope of the plan <paquets> in <copie>; its
563
652
  // exit code.
564
653
  function envelopper(argv) {
@@ -593,14 +682,20 @@ function envelopper(argv) {
593
682
  ];
594
683
  // The tools of the project, judged before anything is prepared: none holds a mount.
595
684
  let outils;
685
+ let donnees;
596
686
  try {
597
687
  outils = outilsDe(copie, {
598
688
  montages: [copie, claude, scratchpads, cacheNpm, TEMPORAIRE, ...sessions],
599
689
  });
690
+ donnees = donneesDe(copie);
600
691
  } catch (e) {
601
692
  process.stderr.write(`⛔ ENVELOPPE REFUSÉE — ${e.message}\n`);
602
693
  return CODE_REFUS;
603
694
  }
695
+ // The cache of the published versions (`grillhouse.outil` of the main tree's package.json) comes
696
+ // in read-only, the version installed here, outside the session: the write lock runs on it, and
697
+ // a session cannot install it. A version that cannot be installed is said, nothing mounted.
698
+ const publie = cacheDeLaVersionPubliee(copie);
604
699
  mkdirSync(projet, { recursive: true });
605
700
  // The session's working directory, created here inside the scratchpads that bwrap mounts.
606
701
  mkdirSync(travail, { recursive: true });
@@ -611,7 +706,16 @@ function envelopper(argv) {
611
706
  const etatJetable = path.join(temporaire.dossier, 'claude.json');
612
707
  if (existsSync(`${claude}.json`)) copyFileSync(`${claude}.json`, etatJetable);
613
708
  const montages = avecLiens(
614
- montagesDeLaSeance({ cacheNpm, claude, projet, etatJetable, scratchpads, sessions, outils }),
709
+ montagesDeLaSeance({
710
+ cacheNpm,
711
+ claude,
712
+ projet,
713
+ etatJetable,
714
+ scratchpads,
715
+ sessions,
716
+ outils,
717
+ publie,
718
+ }),
615
719
  lienSurDisque
616
720
  );
617
721
  const langage = langageDe(copie);
@@ -672,10 +776,17 @@ function envelopper(argv) {
672
776
  process.stderr.write(`⛔ ENVELOPPE REFUSÉE — ${refus}\n`);
673
777
  code = CODE_REFUS;
674
778
  } else {
675
- const r = spawnSync('bwrap', [...args, ...commandeEprouvee(commande)], {
676
- stdio: 'inherit',
677
- env: environnementDeLaSeance(process.env, { cacheNpm, paquets, travail, outils }),
779
+ const lancement = lancementDeLaSeance({
780
+ argsBwrap: args,
781
+ commande,
782
+ env: process.env,
783
+ cacheNpm,
784
+ paquets,
785
+ travail,
786
+ outils,
787
+ donnees,
678
788
  });
789
+ const r = spawnSync(lancement.cmd, lancement.args, { stdio: 'inherit', env: lancement.env });
679
790
  if (r.error) process.stderr.write(`⛔ ENVELOPPE IMPOSSIBLE — ${r.error.message}\n`);
680
791
  code = r.error ? CODE_REFUS : (r.status ?? 1);
681
792
  }
@@ -37,17 +37,18 @@
37
37
  # without a copy, it is brought back to the main tree's HEAD and the copy is made on it: the lot
38
38
  # the branch carried ahead of main (a branch the queue sent back) comes back as local work in
39
39
  # the copy, a conflict with main marked in its file; a branch with nothing ahead simply starts
40
- # again from main. A ticket whose branch is still in the integration queue is not launched:
41
- # the refusal goes to the log, which names the queue, CODE_COPIE, before any copy is made.
42
- # Moving forward keeps
40
+ # again from main.
41
+ # The copy, new or existing, then goes through the one preparation of a copy, which the circuit
42
+ # also plays before each pass that judges the lot (scripts/enveloppe/travail-de-la-copie.mjs
43
+ # `preparer`, its output in the log). Moving forward keeps
43
44
  # the work in progress of the copy in the copy, never in git's stash, which every copy of the
44
45
  # repository shares: it is set aside as a lot, the copy fast-forwards, and the lot is applied
45
- # three ways, as the lot of a branch sent back is (scripts/enveloppe/travail-de-la-copie.mjs).
46
+ # three ways, as the lot of a branch sent back is.
46
47
  # A refusal, such as a branch that has left main or conflicts left unresolved, goes to
47
48
  # the log and stops the launch, CODE_COPIE; so does a reapplication that conflicts: the log
48
49
  # names the copy and each file in conflict, the conflicts stay marked in the copy's files and
49
50
  # unmerged in its index, and no agent starts on a half-merged copy. Its
50
- # submodules go through the common preparation (scripts/sous-modules.sh): before moving forward,
51
+ # submodules go through that preparation (scripts/sous-modules.sh): before moving forward,
51
52
  # a submodule carrying local work stops the launch, CODE_COPIE, its log naming it, the work in
52
53
  # place; then every submodule is set at the commit of HEAD, before any installation, except one the
53
54
  # project shares (`grillhouse.partage`), which the copy reads from the main repository. Its
@@ -96,19 +97,20 @@
96
97
  # `--output-format json --json-schema <its schema>` (`npx grillhouse resultats --schema
97
98
  # <rôle>`); --fiche <sorte> names the schema of a sheet that is not its role's (`geste`, the
98
99
  # explorateur's gesture of a mechanical ticket, grillhouse-sos), taking a value as --modele does:
99
- # claude's JSON result, its sheet in `structured_output`, goes to
100
- # .claude/worktrees/<ticket>.resultat.json, which a launch removes first and the circuit reads,
101
- # then to the log; its errors go to the log.
100
+ # claude's JSON result, its sheet in `structured_output`, goes to `resultat.json` in the folder
101
+ # of the session (.claude/worktrees/<ticket>.travail/seances/<id>/, <id> the session's
102
+ # --seance or --reprise, `courante` without one), which a launch removes first and the circuit
103
+ # reads, then to the log; its errors go to the log.
102
104
  # - Its output, and an envelope refusal (CODE_REFUS), are added to .claude/worktrees/<ticket>.log,
103
105
  # the log of the ticket, which keeps every session of the ticket: each launch past the checks of
104
106
  # its call adds a header line, `=== <time> · <rôle> · <composant> ===`, then its preparation and
105
107
  # its session. The agent writes its handover in the ticket. Once the envelope has ended, the
106
- # launcher writes the session's exit code to .claude/worktrees/<ticket>.fin, which a launch
108
+ # launcher writes the session's exit code to `fin` in the folder of the session, which a launch
107
109
  # removes first: a launch that stops before its session leaves none, so the circuit
108
110
  # (scripts/circuit.mjs) tells a code of the session from CODE_USAGE, CODE_REFUS and CODE_COPIE.
109
111
  # A session its lock stopped on a write out of the plan (scripts/verrous/verrou.mjs) left the
110
112
  # reason in its working directory (`hors-plan`, removed before the session): the launcher moves
111
- # it to .claude/worktrees/<ticket>.hors-plan, which a launch removes first and the circuit reads,
113
+ # it to `hors-plan` in the folder of the session, which a launch removes first and the circuit reads,
112
114
  # and adds it to the log. It then writes the session's line to the register
113
115
  # (scripts/registre.mjs --copie), and exits with the envelope's code.
114
116
  # - The exit codes are named in scripts/enveloppe/codes.mjs; a malformed call exits CODE_USAGE.
@@ -174,19 +176,15 @@ grep -qE "TON TICKET : ${motif}([^A-Za-z0-9_.-]|$)" "$consigne" || { echo "⛔ L
174
176
 
175
177
  copie="$racine/.claude/worktrees/$ticket"
176
178
  journal="$copie.log"
177
- fin="$copie.fin"
178
- resultat="$copie.resultat.json"
179
- hors_plan="$copie.hors-plan"
180
- mkdir -p "$(dirname "$copie")"
179
+ # The folder of the session, its id the one it opens or resumes: each session's result apart, so
180
+ # that an attempt played again reads the one its dead attempt left.
181
+ rang="$copie.travail/seances/${seance:-${reprise:-courante}}"
182
+ fin="$rang/fin"
183
+ resultat="$rang/resultat.json"
184
+ hors_plan="$rang/hors-plan"
185
+ mkdir -p "$(dirname "$copie")" "$rang"
181
186
  rm -f "$fin" "$resultat" "$hors_plan"
182
187
  printf '=== %s · %s · %s ===\n' "$(date -Iseconds)" "$role" "$composant" >> "$journal"
183
- # A branch still in the queue is not relaunched: the queue brings it onto main, or sends it back.
184
- if node --input-type=module -e "import { lireEntrees } from '$ici/../integration/file-attente.mjs'; const [r, b, t] = process.argv.slice(1); process.exit(lireEntrees(r).some(e => e.branche === b || e.ticket === t) ? 0 : 1);" "$racine" "agent/$ticket" "$ticket"; then
185
- refus="⛔ La branche agent/$ticket est encore en file d'intégration : la file l'amène sur main ou la renvoie ; le ticket ne se relance pas avant."
186
- echo "$refus" >> "$journal"
187
- echo "$refus" >&2
188
- exit "$CODE_COPIE"
189
- fi
190
188
  # The temporary directory of the ticket (`ouvrirBaseDuTicket`, scripts/mesure/base-de-passe.mjs):
191
189
  # TMPDIR, TMP and TEMP of the rest of the launch and of the session, whose scratchpads and working
192
190
  # directory lie in it. It stays from one session and one resumption of the ticket to the next, and
@@ -199,6 +197,8 @@ export TMPDIR="$temporaire" TMP="$temporaire" TEMP="$temporaire"
199
197
  echec=$(mktemp)
200
198
  (
201
199
  # Each step returns on failure: `set -e` does not act inside a subshell tested by `||`.
200
+ # An existing copy moves forward to main by the preparation (`cible`); a new one is made on it.
201
+ cible=
202
202
  if [ ! -d "$copie" ]; then
203
203
  tete=$(git -C "$racine" rev-parse HEAD) || exit 1
204
204
  branche="agent/$ticket"
@@ -220,21 +220,16 @@ echec=$(mktemp)
220
220
  node "$ici/travail-de-la-copie.mjs" reporter "$copie" "$base" "$pointe" || exit 1
221
221
  fi
222
222
  else
223
- bash "$ici/../sous-modules.sh" garde "$copie" || exit 1
224
- # The work in progress moves with the copy, in the copy: a conflict stops the launch, marked
225
- # in the files, the log naming each one (travail-de-la-copie.mjs).
226
- node "$ici/travail-de-la-copie.mjs" avancer "$copie" "$(git -C "$racine" rev-parse HEAD)" || exit 1
223
+ cible=$(git -C "$racine" rev-parse HEAD) || exit 1
227
224
  fi
225
+ # The one preparation of a copy, which the circuit also plays before each pass that judges the
226
+ # lot (travail-de-la-copie.mjs `preparer`): for an existing copy, the guard of its submodules and
227
+ # its advance to main, its work kept in the copy, a conflict stopping the launch, marked in the
228
+ # files, the log naming each one; then the pose of the submodules, their mount, the installation.
228
229
  # The list the pose fixes is the one every mount gets, whatever the installation rewrites.
229
- partages=$(bash "$ici/../sous-modules.sh" pose "$copie") || exit 1
230
+ partages=$(node "$ici/travail-de-la-copie.mjs" preparer "$copie" ${cible:+"$cible"}) || exit 1
230
231
  monter() { bash "$ici/../sous-modules.sh" monter "$copie" --partages "$partages" "$@"; }
231
- monter true || exit 1
232
232
  if [ -f "$copie/package.json" ]; then
233
- # --no-save leaves the lock file as committed, so a clean copy stays clean.
234
- installe="$copie/node_modules/.package-lock.json"
235
- if [ ! -d "$copie/node_modules" ] || [ "$copie/package-lock.json" -nt "$installe" ]; then
236
- monter npm --prefix "$copie" install --no-save --no-audit --no-fund --silent || exit 1
237
- fi
238
233
  # The build of the copy for the session's plan, by the module of its language (`construire`),
239
234
  # when it describes one: a build that fails writes its first line and its output in $echec,
240
235
  # and the session opens with them; any other failure stops the launch.
@@ -12,8 +12,8 @@ import { paquets } from '../paquets.mjs';
12
12
 
13
13
  export const VARIABLE = 'GRILLHOUSE_ENVELOPPE';
14
14
  // The file the lock of a session leaves in its working directory when it stops the session on a
15
- // write out of the plan (scripts/verrous/verrou.mjs); the launcher hands it to the circuit as
16
- // `<copie>.hors-plan` (scripts/enveloppe/lancer.sh).
15
+ // write out of the plan (scripts/verrous/verrou.mjs); the launcher hands it to the circuit in the
16
+ // session's result folder, `<copie>.travail/seances/<id>/hors-plan` (scripts/enveloppe/lancer.sh).
17
17
  export const MARQUE_HORS_PLAN = 'hors-plan';
18
18
 
19
19
  // The list <paquets> as the variable carries it.
@@ -1,17 +1,29 @@
1
1
  #!/usr/bin/env node
2
- // The local work of an agent's copy carried onto main, for the launcher (./lancer.sh), in the copy
3
- // alone: git's stash (refs/stash) is common to every copy of a repository, so the work never goes
4
- // there; the copy keeps it, as a merge or a rebase in conflict does (its conflicts marked in the
5
- // files, the unmerged entries in its own index).
2
+ // The local work of an agent's copy carried onto main, and the preparation of that copy, for the
3
+ // launcher (./lancer.sh) and for the circuit before each pass that judges the lot
4
+ // (scripts/circuit.mjs, `avantLaPasse`), in the copy alone: git's stash (refs/stash) is common to
5
+ // every copy of a repository, so the work never goes there; the copy keeps it, as a merge or a
6
+ // rebase in conflict does (its conflicts marked in the files, the unmerged entries in its own
7
+ // index).
6
8
  //
7
9
  // node scripts/enveloppe/travail-de-la-copie.mjs reporter <copie> <base> <pointe>
8
- // node scripts/enveloppe/travail-de-la-copie.mjs avancer <copie> <cible>
10
+ // node scripts/enveloppe/travail-de-la-copie.mjs preparer <copie> [<cible>]
9
11
  //
12
+ // - `preparer`: the one preparation of a copy, which the launcher plays before each session and
13
+ // the circuit before each pass that judges the lot. With <cible> (an existing copy), the guard
14
+ // of its submodules (scripts/sous-modules.sh `garde`), then `avancer`; then, for every copy,
15
+ // the pose of its submodules (`pose`, the shared ones linked, the others set at the commit of
16
+ // HEAD), the check that their read-only mount plays (`monter … true`), and, when the copy has a
17
+ // package.json, the installation (`npm install --no-save`, under that mount) when node_modules
18
+ // is missing or the lock file is newer than the installation (`node_modules/.package-lock.json`).
19
+ // It prints on stdout the list its pose fixes, its messages on stderr; exit 1 on the first step
20
+ // that fails, named, its output after (BPScript: the lock file changed 27 times in two weeks,
21
+ // and the submodule vendor/bp3-engine, both stale in a copy moved forward without them).
10
22
  // - `reporter`: the lot from <base> to <pointe> (`git diff --binary`), a branch the queue sent
11
23
  // back, becomes local work of the copy: applied three ways (`git apply --3way`), a conflict
12
24
  // marked in its file, the rest of the lot there; the index is then left as HEAD has it, so that
13
25
  // all of it is local work. Exit 0, the conflicts included: the agent's session resolves them.
14
- // - `avancer`: the copy moves forward to <cible> (the main tree's HEAD) by a fast-forward, its
26
+ // - The advance (`avancer`, a step of `preparer`): the copy moves forward to <cible> (the main tree's HEAD) by a fast-forward, its
15
27
  // local work kept by the same application: the work as a lot (`git diff --binary HEAD`, the
16
28
  // submodules left out, which the launcher sets afterwards; untracked files stay in place), the
17
29
  // copy brought back to HEAD, moved forward, the lot applied three ways. The lot waits in the
@@ -41,10 +53,11 @@
41
53
  // and open-synth-descriptors, each copy moved by hand). A lot in conflict on another file is not
42
54
  // regenerated: its conflicts come first.
43
55
  import { spawnSync } from 'node:child_process';
44
- import { existsSync, rmSync, writeFileSync } from 'node:fs';
56
+ import { existsSync, rmSync, statSync, writeFileSync, writeSync } from 'node:fs';
45
57
  import path from 'node:path';
46
58
  import { pathToFileURL } from 'node:url';
47
59
  import { couvertPar, engendresDe, regenerer, touchesPar } from '../engendres.mjs';
60
+ import { avecLesDonnees, donneesDe } from '../donnees-cles.mjs';
48
61
  import { avecLesOutils, outilsDe } from '../outils-cles.mjs';
49
62
 
50
63
  const LOT = 'grillhouse-travail.patch';
@@ -77,7 +90,10 @@ const fichiersDuLot = (copie, lot) =>
77
90
  */
78
91
  function lesCles(copie) {
79
92
  try {
80
- return { engendres: engendresDe(copie), env: avecLesOutils(outilsDe(copie), process.env) };
93
+ return {
94
+ engendres: engendresDe(copie),
95
+ env: avecLesDonnees(donneesDe(copie), avecLesOutils(outilsDe(copie), process.env)),
96
+ };
81
97
  } catch (e) {
82
98
  return {
83
99
  refus: `⛔ Une clé grillhouse du package.json est refusée :\n${/** @type {Error} */ (e).message}`,
@@ -250,19 +266,90 @@ export function avancer(copie, cible) {
250
266
  return r.status === 0 ? { ok: true, message: '' } : { ok: false, message: texte(r) };
251
267
  }
252
268
 
269
+ const SOUS_MODULES = path.join(import.meta.dirname, '..', 'sous-modules.sh');
270
+
271
+ /**
272
+ * Prepares <copie> for a pass or a session (see the header, `preparer`): with <cible>, the guard of
273
+ * its submodules and its advance to <cible>; then the pose of its submodules, the check of their
274
+ * read-only mount, and the installation when the lock file is newer than it. The output of each
275
+ * command goes to the file descriptor <sortie>; returns `{ ok, message, partages }`.
276
+ * @param {string} copie
277
+ * @param {string | null} cible
278
+ * @param {{ env?: NodeJS.ProcessEnv, sortie?: number }} [o]
279
+ */
280
+ export function preparer(copie, cible, { env = process.env, sortie = 2 } = {}) {
281
+ // A command of the submodules whose error output is read: kept on <sortie> as well when it
282
+ // succeeds, as the launcher's log kept it.
283
+ const bash = (args, stdio) => {
284
+ const r = spawnSync('bash', [SOUS_MODULES, ...args], {
285
+ env,
286
+ stdio,
287
+ maxBuffer: 64 * 1024 * 1024,
288
+ });
289
+ if (r.status === 0 && r.stderr?.length) writeSync(sortie, r.stderr);
290
+ return r;
291
+ };
292
+ const echec = (r, quoi) => ({
293
+ ok: false,
294
+ message: `⛔ ${quoi} de la copie ${copie} échoue (code ${r.status ?? r.signal}).${r.stderr?.length ? `\n${String(r.stderr).trim()}` : ''}`,
295
+ partages: '',
296
+ });
297
+ if (cible !== null) {
298
+ const g = bash(['garde', copie], ['ignore', sortie, 'pipe']);
299
+ if (g.status !== 0) return echec(g, 'La garde des sous-modules');
300
+ const a = avancer(copie, cible);
301
+ if (!a.ok) return { ...a, partages: '' };
302
+ }
303
+ const p = bash(['pose', copie], ['ignore', 'pipe', 'pipe']);
304
+ if (p.status !== 0) return echec(p, 'La pose des sous-modules');
305
+ // As `$(…)` reads it: the final newlines dropped.
306
+ const partages = String(p.stdout).replace(/\n+$/, '');
307
+ const monter = (...commande) =>
308
+ bash(['monter', copie, '--partages', partages, ...commande], ['ignore', sortie, 'pipe']);
309
+ const m = monter('true');
310
+ if (m.status !== 0) return echec(m, 'Le montage des sous-modules partagés');
311
+ if (existsSync(path.join(copie, 'package.json'))) {
312
+ // As `[ lock -nt installed ]`: the lock newer than the installation, or no installation.
313
+ const verrou = path.join(copie, 'package-lock.json');
314
+ const installe = path.join(copie, 'node_modules', '.package-lock.json');
315
+ const plusRecent =
316
+ existsSync(verrou) &&
317
+ (!existsSync(installe) || statSync(verrou).mtimeMs > statSync(installe).mtimeMs);
318
+ if (!existsSync(path.join(copie, 'node_modules')) || plusRecent) {
319
+ // --no-save leaves the lock file as committed, so a clean copy stays clean.
320
+ const i = monter(
321
+ 'npm',
322
+ '--prefix',
323
+ copie,
324
+ 'install',
325
+ '--no-save',
326
+ '--no-audit',
327
+ '--no-fund',
328
+ '--silent'
329
+ );
330
+ if (i.status !== 0) return echec(i, "L'installation");
331
+ }
332
+ }
333
+ return { ok: true, message: '', partages };
334
+ }
335
+
253
336
  if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
254
337
  const [geste, copie, ...reste] = process.argv.slice(2);
255
338
  const r =
256
339
  geste === 'reporter' && reste.length === 2
257
340
  ? reporter(copie, { base: reste[0], pointe: reste[1] })
258
- : geste === 'avancer' && reste.length === 1
259
- ? avancer(copie, reste[0])
341
+ : geste === 'preparer' && reste.length <= 1
342
+ ? preparer(copie, reste[0] ?? null)
260
343
  : {
261
344
  ok: false,
262
345
  message:
263
- 'usage: travail-de-la-copie.mjs reporter <copie> <base> <pointe> | avancer <copie> <cible>',
346
+ 'usage: travail-de-la-copie.mjs reporter <copie> <base> <pointe> | preparer <copie> [<cible>]',
264
347
  };
265
- if (r.message) {
348
+ // `preparer` prints the list its pose fixes on stdout, its messages on stderr.
349
+ if (geste === 'preparer') {
350
+ if (r.message) process.stderr.write(`${r.message}\n`);
351
+ process.stdout.write(r.partages ?? '');
352
+ } else if (r.message) {
266
353
  process.stdout.write(`${r.message}\n`);
267
354
  }
268
355
  process.exitCode = r.ok ? 0 : 1;
@@ -6,7 +6,7 @@
6
6
  // - A step (ETAPES): its number (« 2 », « 4.1 »), its title, who works there (`qui`: the role
7
7
  // agents, or AUTO for a step the circuit leads itself; none for a step that only holds its
8
8
  // sub-steps), its sub-steps (`sous`), and the step of the circuit's state it is (`etat`: the
9
- // `etape` of `.claude/worktrees/<ticket>.circuit.json`, the final pass being the checks once
9
+ // `etape` of the state the circuit writes, which the workflow of its ticket holds, the final pass being the checks once
10
10
  // `finale`). Every step runs once for the whole ticket, as a merge request has one author of
11
11
  // its tests and one of its code, one CI on the whole and one review: one session of the
12
12
  // testwriter (2) and one of the developpeur (3) carry the whole plan.
@@ -30,7 +30,7 @@
30
30
  // with no session.
31
31
  // - The question of each other stop (MONTEES, below): what goes up to the supervisor, and who
32
32
  // must answer it.
33
- import { A_REPASSER } from './mesure/pression.mjs';
33
+ import { A_REPASSER } from './codes-de-sortie.mjs';
34
34
 
35
35
  // Who works at a step the circuit leads itself, with no agent.
36
36
  export const AUTO = 'auto';
@@ -136,6 +136,7 @@ export const ARRETS = {
136
136
  questionnement: 22,
137
137
  references: 23,
138
138
  'hors-plan': 24,
139
+ inattendu: 25,
139
140
  'a-repasser': A_REPASSER,
140
141
  };
141
142
 
@@ -252,7 +253,7 @@ const REPONSES =
252
253
  export const MONTEES = Object.fromEntries(
253
254
  Object.entries({
254
255
  lancement:
255
- 'Le lanceur s’arrête avant la séance : la machine se répare-t-elle, pour reprendre ?',
256
+ 'Le lanceur s’arrête avant la séance, ou la copie n’avance pas sur la pointe de main avant une passe : la machine ou la copie se répare-t-elle, pour reprendre ?',
256
257
  bloqué:
257
258
  'La séance n’a plus bougé, et le circuit l’a arrêtée : reprendre l’étape, ou arrêter le circuit ?',
258
259
  'sans-fiche':
@@ -276,6 +277,8 @@ export const MONTEES = Object.fromEntries(
276
277
  'La régénération des références change un fichier qu’aucune référence n’écrit, ou sa commande échoue (ses écarts ci-dessus) : qui corrige la référence ou le lot ?',
277
278
  'hors-plan':
278
279
  'La séance écrit hors du plan du ticket : le plan s’étend-il à ce paquet (`--etendre`), ou l’écriture est-elle refusée (`--reprendre` avec son contexte) ?',
280
+ inattendu:
281
+ 'Une exception que le circuit ne prévoit pas (une lecture de la copie, une commande, un fichier illisible) l’a arrêté : sa cause se lève-t-elle, pour reprendre (`--reprendre`, qui écrit de nouveau cet arrêt si la cause reste), ou le circuit s’arrête-t-il ?',
279
282
  }).map(([arret, question]) => [arret, { question: `${question} ${REPONSES}`, qui: SUPERVISEUR }])
280
283
  );
281
284