@roomi-fields/grillhouse 0.49.1 → 0.50.1

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 (324) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +24 -0
  3. package/bin/grillhouse.mjs +2 -0
  4. package/cadre/templates/projet/CLAUDE.md +13 -96
  5. package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
  6. package/charte.md +77 -96
  7. package/dist/temporal/acte.js +2 -1
  8. package/dist/temporal/acte.js.map +1 -1
  9. package/dist/temporal/circuit/activites.js +2 -1
  10. package/dist/temporal/circuit/activites.js.map +1 -1
  11. package/dist/temporal/circuit/appel.js +2 -2
  12. package/dist/temporal/circuit/appel.js.map +1 -1
  13. package/dist/temporal/circuit/client.d.ts +2 -4
  14. package/dist/temporal/circuit/client.js +5 -8
  15. package/dist/temporal/circuit/client.js.map +1 -1
  16. package/dist/temporal/circuit/commande.js +5 -4
  17. package/dist/temporal/circuit/commande.js.map +1 -1
  18. package/dist/temporal/circuit/contrat.d.ts +3 -3
  19. package/dist/temporal/circuit/contrat.js +2 -2
  20. package/dist/temporal/circuit/contrat.js.map +1 -1
  21. package/dist/temporal/circuit/deroule.js +4 -4
  22. package/dist/temporal/circuit/deroule.js.map +1 -1
  23. package/dist/temporal/commande.js +1 -1
  24. package/dist/temporal/commande.js.map +1 -1
  25. package/dist/temporal/deroules.js +3 -4
  26. package/dist/temporal/deroules.js.map +1 -1
  27. package/dist/temporal/etat.js +1 -1
  28. package/dist/temporal/etat.js.map +1 -1
  29. package/dist/temporal/file/activites.js +2 -1
  30. package/dist/temporal/file/activites.js.map +1 -1
  31. package/dist/temporal/file/client.js.map +1 -1
  32. package/dist/temporal/file/contrat.js +3 -2
  33. package/dist/temporal/file/contrat.js.map +1 -1
  34. package/dist/temporal/file/deroule.js +2 -1
  35. package/dist/temporal/file/deroule.js.map +1 -1
  36. package/dist/temporal/installation.js +2 -0
  37. package/dist/temporal/installation.js.map +1 -1
  38. package/dist/temporal/nuits/activites.js +4 -3
  39. package/dist/temporal/nuits/activites.js.map +1 -1
  40. package/dist/temporal/nuits/appel.js +2 -1
  41. package/dist/temporal/nuits/appel.js.map +1 -1
  42. package/dist/temporal/nuits/choix.js +2 -1
  43. package/dist/temporal/nuits/choix.js.map +1 -1
  44. package/dist/temporal/nuits/client.js +2 -1
  45. package/dist/temporal/nuits/client.js.map +1 -1
  46. package/dist/temporal/nuits/commande.js +2 -1
  47. package/dist/temporal/nuits/commande.js.map +1 -1
  48. package/dist/temporal/nuits/contrat.js +2 -1
  49. package/dist/temporal/nuits/contrat.js.map +1 -1
  50. package/dist/temporal/nuits/deroule.js +2 -1
  51. package/dist/temporal/nuits/deroule.js.map +1 -1
  52. package/dist/temporal/places/activites.js +2 -1
  53. package/dist/temporal/places/activites.js.map +1 -1
  54. package/dist/temporal/places/client.js +1 -0
  55. package/dist/temporal/places/client.js.map +1 -1
  56. package/dist/temporal/places/deroule.js +4 -5
  57. package/dist/temporal/places/deroule.js.map +1 -1
  58. package/dist/temporal/tickets/activites.js +1 -1
  59. package/dist/temporal/tickets/activites.js.map +1 -1
  60. package/dist/temporal/tickets/deroule.js +4 -4
  61. package/dist/temporal/tickets/deroule.js.map +1 -1
  62. package/docs/ARCHITECTURE.md +3 -3
  63. package/docs/CADRE.md +10 -68
  64. package/docs/INTERFACE.md +59 -179
  65. package/docs/architecture/circuit.md +440 -0
  66. package/docs/architecture/entree.md +281 -0
  67. package/docs/architecture/greffon.md +284 -0
  68. package/docs/architecture/installation.md +306 -0
  69. package/docs/architecture/machine.md +383 -0
  70. package/docs/architecture/tests.md +337 -0
  71. package/hooks/crochet.mjs +3 -1
  72. package/package.json +1 -1
  73. package/scripts/abi-des-dependances.mjs +2 -1
  74. package/scripts/activites.mjs +8 -8
  75. package/scripts/aiguillage.mjs +4 -4
  76. package/scripts/arbitrages.mjs +1 -1
  77. package/scripts/arbres-juges.mjs +2 -1
  78. package/scripts/attente-a-l-arret.mjs +7 -8
  79. package/scripts/attente-au-tour.mjs +2 -2
  80. package/scripts/attente-de-la-machine.mjs +10 -16
  81. package/scripts/avancement.mjs +2 -0
  82. package/scripts/base-des-workflows.mjs +2 -1
  83. package/scripts/bilan.mjs +39 -61
  84. package/scripts/binaires.mjs +2 -1
  85. package/scripts/branche-de-nuit.mjs +2 -1
  86. package/scripts/cadre.mjs +37 -9
  87. package/scripts/ci-de-main.mjs +2 -1
  88. package/scripts/circuit.mjs +101 -618
  89. package/scripts/circuits-cles.mjs +4 -6
  90. package/scripts/circuits-du-serveur.mjs +1 -1
  91. package/scripts/codes-de-sortie.mjs +1 -1
  92. package/scripts/coeurs-dedies.mjs +2 -4
  93. package/scripts/commande-du-langage.mjs +2 -0
  94. package/scripts/commandes-composees.mjs +3 -3
  95. package/scripts/commandes-du-path.mjs +1 -1
  96. package/scripts/composants-affectes.mjs +3 -1
  97. package/scripts/composition-des-langages.mjs +2 -0
  98. package/scripts/conformite.d.ts +2 -1
  99. package/scripts/conformite.mjs +2 -0
  100. package/scripts/consommation-des-passes.mjs +5 -4
  101. package/scripts/consommation.mjs +1 -0
  102. package/scripts/copies-finies.mjs +9 -10
  103. package/scripts/crochet.mjs +1 -0
  104. package/scripts/crochets.mjs +2 -1
  105. package/scripts/depart-du-ticket.mjs +2 -2
  106. package/scripts/dependances-internes.mjs +4 -2
  107. package/scripts/dernier-vert.mjs +3 -3
  108. package/scripts/dette.d.ts +2 -1
  109. package/scripts/dette.mjs +2 -0
  110. package/scripts/direct.mjs +66 -6
  111. package/scripts/disque-des-copies.mjs +1 -1
  112. package/scripts/donnees-cles.mjs +2 -0
  113. package/scripts/droits.mjs +18 -13
  114. package/scripts/echantillonneur-de-la-passe.mjs +1 -1
  115. package/scripts/effets.mjs +3 -3
  116. package/scripts/engendres.mjs +1 -1
  117. package/scripts/enveloppe/codes.mjs +1 -0
  118. package/scripts/enveloppe/enveloppe.mjs +61 -84
  119. package/scripts/enveloppe/lancer.sh +5 -3
  120. package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
  121. package/scripts/enveloppe/travail-de-la-copie.mjs +17 -17
  122. package/scripts/etapes.mjs +10 -9
  123. package/scripts/etat-du-depot.mjs +2 -1
  124. package/scripts/faits-du-circuit.mjs +19 -19
  125. package/scripts/fermeture-de-la-machine.mjs +2 -2
  126. package/scripts/fichier-du-poste.mjs +3 -4
  127. package/scripts/fichiers-nommes.mjs +2 -1
  128. package/scripts/file-des-tickets.mjs +3 -1
  129. package/scripts/flux-de-la-nuit.mjs +2 -1
  130. package/scripts/flux-des-paquets.mjs +2 -1
  131. package/scripts/fusion-du-changelog.mjs +2 -1
  132. package/scripts/garde-de-la-memoire.mjs +1 -1
  133. package/scripts/gardes-du-cadre.mjs +2 -0
  134. package/scripts/greffons.mjs +2 -2
  135. package/scripts/grillhouse-maj.mjs +55 -150
  136. package/scripts/groupe-cles.mjs +2 -1
  137. package/scripts/index-interfaces.mjs +2 -0
  138. package/scripts/init.mjs +2 -1
  139. package/scripts/integration/file.mjs +3 -3
  140. package/scripts/integration/integrer.mjs +5 -6
  141. package/scripts/integration/rejeu.mjs +4 -2
  142. package/scripts/integration/verdict.mjs +2 -1
  143. package/scripts/jointure.d.ts +2 -1
  144. package/scripts/journal-des-etats.mjs +2 -2
  145. package/scripts/langages/cargo/binaires.mjs +3 -2
  146. package/scripts/langages/cargo/clippy.mjs +2 -0
  147. package/scripts/langages/cargo/commandes.mjs +72 -17
  148. package/scripts/langages/cargo/composants.mjs +4 -3
  149. package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
  150. package/scripts/langages/cargo/etiquettes.mjs +87 -0
  151. package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
  152. package/scripts/langages/cargo/exemples.mjs +6 -4
  153. package/scripts/langages/cargo/frontieres.mjs +2 -0
  154. package/scripts/langages/cargo/index-interfaces.mjs +2 -0
  155. package/scripts/langages/cargo/index.mjs +8 -9
  156. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
  157. package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
  158. package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
  159. package/scripts/langages/cargo/sccache.mjs +10 -6
  160. package/scripts/langages/cargo/squelette.mjs +2 -0
  161. package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
  162. package/scripts/langages/cargo/verdict.mjs +8 -6
  163. package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
  164. package/scripts/langages/typescript/code-mort.mjs +2 -1
  165. package/scripts/langages/typescript/composants.mjs +7 -5
  166. package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -1
  167. package/scripts/langages/typescript/consommateurs.d.ts +2 -1
  168. package/scripts/langages/typescript/consommateurs.mjs +5 -7
  169. package/scripts/langages/typescript/construire.mjs +2 -1
  170. package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
  171. package/scripts/langages/typescript/exemples.mjs +2 -1
  172. package/scripts/langages/typescript/frontieres.mjs +3 -2
  173. package/scripts/langages/typescript/index-interfaces.mjs +3 -2
  174. package/scripts/langages/typescript/index.mjs +3 -2
  175. package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
  176. package/scripts/langages/typescript/lecteurs.mjs +2 -1
  177. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
  178. package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
  179. package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
  180. package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
  181. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
  182. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
  183. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
  184. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
  185. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
  186. package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
  187. package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
  188. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
  189. package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
  190. package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
  191. package/scripts/langages/typescript/module-absent.mjs +2 -1
  192. package/scripts/langages/typescript/parcours.mjs +2 -1
  193. package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
  194. package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
  195. package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
  196. package/scripts/langages/typescript/resumes.mjs +2 -1
  197. package/scripts/langages/typescript/squelette.mjs +2 -1
  198. package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
  199. package/scripts/langages/typescript/tests-de-nuit.mjs +5 -4
  200. package/scripts/langages/typescript/tests-du-poste.mjs +2 -1
  201. package/scripts/langages/typescript/tests.mjs +44 -66
  202. package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
  203. package/scripts/langages/typescript/tranches.mjs +2 -1
  204. package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
  205. package/scripts/langages/typescript/verdict.mjs +2 -1
  206. package/scripts/langages/typescript/verifier.mjs +64 -99
  207. package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
  208. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
  209. package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
  210. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
  211. package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
  212. package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
  213. package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
  214. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
  215. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
  216. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
  217. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
  218. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
  219. package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
  220. package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
  221. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
  222. package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
  223. package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
  224. package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
  225. package/scripts/langages-des-paquets.mjs +3 -1
  226. package/scripts/langages.mjs +5 -3
  227. package/scripts/lecture-unique.mjs +2 -1
  228. package/scripts/ligne-etat/defaut.sh +2 -1
  229. package/scripts/ligne-etat/ligne-etat.mjs +1 -0
  230. package/scripts/lint-des-scripts.mjs +1 -0
  231. package/scripts/machine.mjs +4 -4
  232. package/scripts/matiere-de-test.d.ts +2 -1
  233. package/scripts/matieres-lues.mjs +2 -0
  234. package/scripts/messages-non-lus.mjs +2 -4
  235. package/scripts/mesure/avancement.mjs +1 -1
  236. package/scripts/mesure/base-de-passe.mjs +10 -13
  237. package/scripts/mesure/pression.mjs +3 -4
  238. package/scripts/mesure-de-la-machine.mjs +2 -1
  239. package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
  240. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
  241. package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
  242. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
  243. package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
  244. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
  245. package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
  246. package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
  247. package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
  248. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
  249. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
  250. package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
  251. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
  252. package/scripts/migrations/0.33.0-node-26.mjs +5 -8
  253. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
  254. package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
  255. package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
  256. package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
  257. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
  258. package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
  259. package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
  260. package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
  261. package/scripts/migrations-des-gardes.mjs +2 -0
  262. package/scripts/migrations.mjs +4 -0
  263. package/scripts/newday.mjs +2 -2
  264. package/scripts/nuit.sh +7 -5
  265. package/scripts/outil.mjs +2 -1
  266. package/scripts/outils-cles.mjs +6 -6
  267. package/scripts/paquet-npm.mjs +3 -2
  268. package/scripts/paquet.mjs +3 -4
  269. package/scripts/paquets.d.ts +1 -1
  270. package/scripts/paquets.mjs +2 -0
  271. package/scripts/passe-de-la-machine.mjs +9 -12
  272. package/scripts/places-de-la-machine.mjs +36 -53
  273. package/scripts/places-du-serveur.mjs +5 -4
  274. package/scripts/plafond-de-la-machine.mjs +19 -19
  275. package/scripts/poussee-retiree.mjs +2 -1
  276. package/scripts/prefixe-des-tickets.mjs +1 -0
  277. package/scripts/preparation.mjs +2 -1
  278. package/scripts/recommencer.mjs +2 -2
  279. package/scripts/references-changees.mjs +1 -1
  280. package/scripts/registre-des-resultats.mjs +3 -1
  281. package/scripts/registre.mjs +14 -16
  282. package/scripts/regles-des-places.mjs +4 -6
  283. package/scripts/repli-de-la-nuit.mjs +2 -1
  284. package/scripts/reponses-du-circuit.mjs +4 -3
  285. package/scripts/reprise.mjs +3 -2
  286. package/scripts/resultats.mjs +71 -93
  287. package/scripts/retirer-copie.sh +2 -1
  288. package/scripts/retirer-les-copies-finies.mjs +2 -1
  289. package/scripts/seances.mjs +3 -2
  290. package/scripts/services-du-noyau.mjs +2 -0
  291. package/scripts/session-start.sh +33 -52
  292. package/scripts/sigle-du-projet.mjs +1 -2
  293. package/scripts/sortie.mjs +2 -1
  294. package/scripts/sources.mjs +2 -0
  295. package/scripts/sous-commandes.mjs +2 -1
  296. package/scripts/sous-modules.sh +24 -43
  297. package/scripts/structure-guard.sh +2 -1
  298. package/scripts/style-a-l-ecriture.mjs +2 -0
  299. package/scripts/suiveur.mjs +1 -1
  300. package/scripts/superviseur.mjs +36 -55
  301. package/scripts/tableau-des-composants.mjs +5 -7
  302. package/scripts/tableau.mjs +78 -121
  303. package/scripts/taches-du-graphe.mjs +3 -0
  304. package/scripts/ticket-du-circuit.mjs +1 -1
  305. package/scripts/transitions.mjs +15 -15
  306. package/scripts/un-commit-par-ticket.mjs +2 -1
  307. package/scripts/verdict-de-la-nuit.mjs +2 -1
  308. package/scripts/verrou-de-fichier.mjs +1 -0
  309. package/scripts/verrous/commande.mjs +2 -1
  310. package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
  311. package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
  312. package/scripts/verrous/verrou.mjs +3 -3
  313. package/scripts/workflows-du-cadre.mjs +2 -1
  314. package/skills/developpeur/SKILL.md +6 -10
  315. package/skills/explorateur/SKILL.md +1 -1
  316. package/skills/grill/SKILL.md +4 -5
  317. package/skills/grill/references/paquets.md +5 -8
  318. package/skills/pitmaster/SKILL.md +176 -268
  319. package/skills/pitmaster/references/cadre.md +7 -6
  320. package/skills/pitmaster/references/consigne-agent.md +36 -32
  321. package/skills/pitmaster/references/tour.md +2 -2
  322. package/skills/redacteur/references/documents-d-un-composant.md +9 -8
  323. package/skills/testwriter/SKILL.md +8 -11
  324. package/types/index.d.ts +3 -0
@@ -1,70 +1,51 @@
1
1
  #!/usr/bin/env node
2
- // One supervisor per project, as Zuul has one scheduler: a session of supervision holds the lock
3
- // of its repository, and a second one reads it, says so, and launches no circuit. Played by the
4
- // session start (scripts/session-start.sh), which writes what it says to the session.
2
+ // The lock of the supervisor of a project, and the reading of the questions of its circuits.
3
+ // Mechanism: greffon.md, §5.1 and §5.2. Played by the session start (scripts/session-start.sh),
4
+ // which writes what it says to the session.
5
5
  //
6
6
  // npx grillhouse superviseur <racine>
7
7
  //
8
8
  // - Out of a git repository, in an agent's copy (a worktree whose git directory is not the common
9
- // one) and in a session of a role that the circuit launches (BEADS_ACTOR set: the author of its
10
- // comments at the ticket), nothing is taken and nothing is said.
9
+ // one) and in a session of a role that the circuit launches (BEADS_ACTOR set), nothing is taken
10
+ // and nothing is said.
11
11
  // - The lock is `<git common dir>/grillhouse-superviseur.lock`, one for the repository and its
12
12
  // copies, taken through scripts/verrou-de-fichier.mjs for the session's own process: the first
13
- // process above this one named `claude`, whatever stands between them (the hook of the greffon,
14
- // the frame's command, a shell); without one, the first that is not a shell (sh, bash, dash, zsh).
15
- // It holds as long as that process lives: a lock whose process is gone is taken over.
16
- // - Free, or held by a process that is gone: taken, nothing said of it. Held by the session itself
17
- // (a session reopened in the same process, by a compaction or a /clear): kept, nothing said of
18
- // it, circuits included. Held by another live session: the
19
- // lock stays, and the section « ## Un autre superviseur tient ce dépôt » names its process and
20
- // since when it holds the lock, and asks to say so to the owner and to launch no circuit
21
- // (skill pitmaster, « Au lancement de la séance »).
22
- // - The session whose opening takes the lock (not one that keeps it) receives
23
- // (`circuitsALOuverture`) the section « ## Les questions des circuits », which says that the
24
- // greffon of the session pushes the questions into its queue of messages and that the answer
25
- // acknowledges them, then, when the repository has some (read from the Temporal server in one
26
- // call, scripts/circuits-du-serveur.mjs), « ## Les circuits du dépôt »: each circuit that runs,
27
- // named; each circuit stopped on a question, with its question and the command that answers it; each
28
- // circuit ended without its issue, with the command that resumes it (`--reprendre` from its last
29
- // state written, else `--depuis <testwriter|developpeur> --contexte <texte>`), which the
30
- // supervisor launches without waiting for the owner's word; their ticket open, and the stopped
31
- // and the ended ones then gone up; a server that does not answer is said; then « ## La file des
32
- // tickets », the tickets of the queue without their section « ## Architecture », which the
33
- // queue never starts (scripts/file-des-tickets.mjs), for the supervisor to write it. A circuit
34
- // runs on the worker of the project, apart from the sessions, its launch returns at once, and its
35
- // question reaches the supervisor by the push of the greffon (below). The queue of the
36
- // tickets under Temporal (src/temporal/tickets/) launches the tickets `circuit`, not the opening.
13
+ // process above this one named `claude`, whatever stands between them; without one, the first
14
+ // that is not a shell (sh, bash, dash, zsh). It holds as long as that process lives.
15
+ // - Free, or held by a process that is gone: taken, nothing said. Held by the session itself (a
16
+ // compaction or a /clear): kept, nothing said, circuits included. Held by another live session:
17
+ // the section « ## Un autre superviseur tient ce dépôt » names its process and since when, and
18
+ // asks to say so to the owner and to launch no circuit.
19
+ // - The session whose opening takes the lock (`circuitsALOuverture`) receives « ## Les questions
20
+ // des circuits », then, when the repository has circuits (read from the Temporal server in one
21
+ // call, scripts/circuits-du-serveur.mjs), « ## Les circuits du dépôt »: each circuit that runs;
22
+ // each circuit stopped on a question, with the command that answers it; each circuit ended
23
+ // without its issue, with the command that resumes it (`--reprendre` from its last state
24
+ // written, else `--depuis <testwriter|developpeur> --contexte <texte>`); a server that does not
25
+ // answer is said; then « ## La file des tickets », the tickets of the queue without their
26
+ // section « ## Architecture », which the queue never starts (scripts/file-des-tickets.mjs).
37
27
  // Exit 0, whatever it finds.
38
28
  //
39
29
  // npx grillhouse superviseur --relever [<dossier>]
40
30
  //
41
- // - One reading of the circuits for the greffon of the session of supervision (mods/grillhouse/
42
- // hooks/register.tsx), which runs it at each period and submits what it writes to the session,
43
- // in the queue of its messages (`$.prompt.submit`): the questions of a circuit are given as a
44
- // queue gives its messages, and the answer acknowledges them. It reads nothing and writes
45
- // nothing unless the session that runs it holds the lock of the supervisor (the one above); a
46
- // lock whose process is gone is taken over by the session that reads, as the opening does. It
47
- // writes the message of the reading (`texteDesQuestions`) when `relever` gives something,
48
- // nothing otherwise; exit 1 and the fault on the error stream when `grillhouse.rappel` is at
49
- // fault. A reading is one reading: no process waits.
50
- // - A question has three states the greffon keeps in the file of the stops gone up: sent (put in the
51
- // message of the session by `relever`), read (a turn of the session started with that message,
52
- // `superviseur --lue <dossier> <lueA> <envoyeesAvant>`, or the opening listed it), answered (it
53
- // leaves the file). It comes back only once read, <rappelMs> after its reading, as SQS counts the
54
- // visibility timeout of a message from its reception: one still in the queue is never sent again.
55
- // `superviseur --chez-le-responsable <dossier> <ticket>` (the answer `--chez-le-responsable` of
56
- // the circuit) marks a question carried to the owner: silent until the circuit answers.
31
+ // - One reading of the circuits for the greffon (mods/grillhouse/hooks/register.tsx), which runs
32
+ // it at each period and submits what it writes. It reads and writes nothing unless the session
33
+ // that runs it holds the lock; a lock whose process is gone is taken over by the session that
34
+ // reads. It writes the message (`texteDesQuestions`) when `relever` gives something, nothing
35
+ // otherwise; exit 1 and the fault on the error stream when `grillhouse.rappel` is at fault.
36
+ // - `superviseur --lue <dossier> <lueA> <envoyeesAvant>` marks read the questions sent up to
37
+ // `envoyeesAvant`; `superviseur --chez-le-responsable <dossier> <ticket>` marks a question
38
+ // carried to the owner: silent until the circuit answers.
57
39
  // - `relever` is the one function of the reading, of the re-presentation and of the file of the
58
- // stops gone up: each question of a circuit that never went up or that was read <rappelMs> ago
59
- // (`grillhouse.rappel` minutes, 10 by default, scripts/circuits-cles.mjs) is given,
60
- // once per due time, while its circuit stands on the same stop; one answered (its
61
- // circuit left the stop) leaves the file `.claude/worktrees/questions-remontees.json` and is not
62
- // given again. The stops are kept there each by its ticket, the run of its workflow, the rank of
63
- // its question in that run and its stop, with the time of the first going up and of the last
64
- // presentation. The end of a circuit integrated is given once (`integre`), kept in
65
- // `.claude/worktrees/integrations-rendues.json`, and the alert of the CI of main (a red, or a CI
66
- // not read, scripts/ci-de-main.mjs) once per passage (`.claude/worktrees/ci-de-main-rendue.json`),
67
- // cleared at the next green.
40
+ // stops gone up: a question that never went up, or was read <rappelMs> ago (`grillhouse.rappel`
41
+ // minutes, 10 by default, scripts/circuits-cles.mjs), is given once per due time while its
42
+ // circuit stands on the same stop; one answered leaves the file
43
+ // `.claude/worktrees/questions-remontees.json`. A stop is kept there by its ticket, the run of
44
+ // its workflow, the rank of its question in that run and its stop, with the times of the first
45
+ // going up and of the last presentation. The end of a circuit integrated is given once
46
+ // (`integre`), kept in `.claude/worktrees/integrations-rendues.json`, and the alert of the CI of
47
+ // main (a red, or a CI not read, scripts/ci-de-main.mjs) once per passage
48
+ // (`.claude/worktrees/ci-de-main-rendue.json`), cleared at the next green.
68
49
  // - The reading covers the project and each other project of its group (`grillhouse.groupe`) that
69
50
  // no other live session of supervision holds, each under its name and its folder.
70
51
  import { spawnSync } from 'node:child_process';
@@ -1,12 +1,11 @@
1
1
  // The tables of the components of a project, in its docs/ARCHITECTURE.md: where the project
2
2
  // declares the language of each package, as the BUILD file of Bazel names the rule of each target.
3
- // The core reads them (./langages.mjs), the guard of the languages judges the packages against
4
- // them (./langages-des-paquets.mjs), and the migration of 0.27.0 writes their column
5
- // (./migrations/0.27.0-langages-dans-l-architecture.mjs).
3
+ // The core reads them (./langages.mjs), and the guard of the languages judges the packages against
4
+ // them (./langages-des-paquets.mjs); docs/architecture/tests.md §4.1.
6
5
  //
7
6
  // - A table of the components is a table of Markdown of docs/ARCHITECTURE.md whose header holds a
8
- // column « Langage » (COLONNE), or « Language » in a document written in English: BPScript's table of the stages, and its section « Les paquets »
9
- // for the packages that table does not name; each counts, in the order of the document. A row
7
+ // column « Langage » (COLONNE), or « Language » in a document written in English; each counts, in
8
+ // the order of the document. A row
10
9
  // declares a package when its cell of that column is not empty: the language is that cell, its backquotes and its case left out. A row
11
10
  // with an empty cell names a part that is no package of the project (a crate of another
12
11
  // repository, a folder of data).
@@ -15,8 +14,7 @@
15
14
  // - A row names a component when one name of its cell of the names is the component's folder name,
16
15
  // its package name or its path from the root (`.` for the root; a trailing `/` and a leading
17
16
  // `./` left out). The column of the names of a table is its first column, left to right, where a
18
- // cell names a component: the phase of BPScript's table comes before its package, the crates a row calls
19
- // come after the component of SyntHub's.
17
+ // cell names a component.
20
18
  // - A cell holds no `|` but in backquotes, as GitHub's tables read it.
21
19
  import { existsSync, readFileSync } from 'node:fs';
22
20
  import path from 'node:path';
@@ -1,119 +1,77 @@
1
1
  #!/usr/bin/env node
2
- // The board of a project, on three levels, measured on Beads, the register of finished agents,
3
- // the transcripts of running ones and the running processes — never on what an agent declares.
4
- // The Grillhouse mod shows its lines; `npm run tableau` prints them.
2
+ // The board of a project: a measure of Beads, the register of finished agents, the transcripts of
3
+ // running agents, the circuits' views and the running processes, never of what an agent declares.
4
+ // The Grillhouse mod shows its lines; `npm run tableau` prints them. Mechanism: greffon.md, §5.3.
5
5
  //
6
- // npx grillhouse tableau the board, as JSON (with its lines, 52 columns wide)
6
+ // npx grillhouse tableau the board, as JSON (its lines 52 columns wide)
7
7
  // npx grillhouse tableau --texte the board, as text
8
- // npx grillhouse tableau <dossier>… the board of this project and of the projects in <dossier>…,
9
- // one board, each ticket prefixed by its project (`ensemble`)
8
+ // npx grillhouse tableau <dossier>… one board of this project and of the projects in <dossier>…,
9
+ // each ticket prefixed by its project (`ensemble`)
10
+ // npx grillhouse tableau --suivre the follower (`scripts/suiveur.mjs`)
10
11
  //
11
- // npx grillhouse tableau --suivre the follower (`scripts/suiveur.mjs`): measures on events and
12
- // writes the status line (`grillhouse-etat.txt` in the common
13
- // git directory, which `scripts/ligne-etat/` reads) and one
14
- // JSON board per line, from one measure.
15
- //
16
- // - Global: the work tickets of the project (a ticket without children; a mother is a grouping)
17
- // by state, the agents' working time and tokens of the day and in all, the alerts. The head's
18
- // first line counts the signs AGENTS shows (`etatsDAgents`, the one source: « ▶ N · ⏸ N · ⛔ N
19
- // · N faits », a ticket closed and not integrated counted under its sign, not as done), one line
20
- // per project on a board of several; the line of the queues counts the tickets blocked
21
- // by an open ticket; the status line says the same signs in the same words.
22
- // - Agents: the tree of the steps of the process (scripts/etapes.mjs), one block per step and
23
- // sub-step, with who works there, for the whole project. A ticket stands at a step only by its
24
- // circuit (below) or by an agent that runs on it, at that agent's step; a ticket in the queue,
25
- // its circuit not launched, stands at no step.
26
- // - Circuits: one entry per known ticket, open or closed, whose circuit (scripts/circuit.mjs) is
27
- // launched and not integrated, read from the Temporal server in one call
28
- // (scripts/circuits-du-serveur.mjs, the memo of its workflow), so that the ticket stands in
29
- // AGENTS at every instant from the launch of its circuit to its end: it runs while its workflow
30
- // runs with no question awaited, and stands at the step of its last state, with its attempt,
31
- // every step one for the whole ticket, a running one with no known state at the step of its
32
- // stop, else at the plan (1); while the explorateur or the questionneur works on its plan
33
- // (`questionnement`, of the plan), it stands at the plan (1); waiting for the supervisor
34
- // (`attendLeSuperviseur`, the one rule the opening and the greffon's reading read too:
35
- // stopped, « à repasser » included, but by the supervisor's « arrete », or ended without its
36
- // issue), it stands under the stopped step after a line « ⤷ Question · <qui> », who must answer
37
- // it, the supervisor or the owner, the supervisor when it names no question; its card opens on
38
- // that question, or on the stop (its name and code) and the first line of its reason.
39
- // - Readings: a reading of the circuits or of the tickets that fails (the Temporal server silent
40
- // or at fault, Beads at fault) gives way to the last one that succeeded, kept in the common git
41
- // directory (`lectureGardee`, `tableau-lu-<quoi>.json`), its age in the alert that names the
42
- // fault; a project beside the session's says the faults of its own reading.
12
+ // Lines: the head, AGENTS, CHANTIER, then FAITS AUJOURD'HUI, every line of each list shown; a
13
+ // line folds only lines of another state (« + 2 prêts ») or chantiers not in progress.
14
+ // - Head: the work tickets (a ticket without children; a mother is a grouping) by state; its first
15
+ // line counts the signs AGENTS shows (`etatsDAgents`, « ▶ N · ⏸ N · ⛔ N · N faits »; a ticket
16
+ // closed and not integrated counts under its sign, not as done), one line per project on a board
17
+ // of several; the status line says the same signs in the same words.
18
+ // - AGENTS: the tree of the steps (scripts/etapes.mjs), one block per step and sub-step. A ticket
19
+ // stands at a step only by its circuit or by an agent that runs on it; a ticket in the queue,
20
+ // its circuit not launched, stands at no step. A circuit (scripts/circuit.mjs) launched and not
21
+ // integrated is read from the Temporal server in one call (scripts/circuits-du-serveur.mjs): it
22
+ // stands at the step of its last state, else at the plan (1), also while the explorateur or the
23
+ // questionneur works (`questionnement`). One that waits for the supervisor
24
+ // (`attendLeSuperviseur`, the rule `questionsEnAttente` of scripts/superviseur.mjs reads too)
25
+ // shows « ⤷ Question · <qui> » under its step;
26
+ // its card opens on that question, or on the stop (name, code) and the first line of its
27
+ // reason.
28
+ // - Readings: a reading of the circuits or of the tickets that fails gives way to the last one
29
+ // that succeeded (`lectureGardee`, `tableau-lu-<quoi>.json` in the common git directory), its
30
+ // age in the alert that names the fault; a project beside the session's says its own faults.
43
31
  // - Bilans: the card of a ticket whose circuit kept its bilan (scripts/bilan.mjs,
44
- // `.claude/worktrees/<ticket>.bilan.json`) opens on its key figures: wall time, share lost,
45
- // sessions, cost.
46
- // - Chantier: a root epic with work in progress, its tree of mothers, each with its work tickets
47
- // done over all; the tree shows the open work: a closed ticket, mother included, counts without
48
- // a line, and a closed mother's open tickets take her place. The other chantiers, one line each.
49
- // Then the tickets closed today.
50
- // - Lines: the head, AGENTS, CHANTIER, then FAITS AUJOURD'HUI, every line of each list shown; a
51
- // line folds only lines of another state (the tree's « + 2 prêts ») or the chantiers not in
52
- // progress.
53
- // - Measures: a finished agent from the register (`scripts/registre.mjs`), a running one from its
54
- // transcript: a role agent launched in a shell (its envelope's process, which names its copy
55
- // and its role) while that process runs, a sub-agent or a session whose transcript moved in the
56
- // last 2 minutes.
57
- // With an end in the register, it runs only when an incoming message (of the person, another
58
- // agent, a notification) follows its latest end strictly (a reviewer resumed by a message); the
59
- // writings of its last turn after that end leave it finished, measured by that latest end.
60
- // A sub-agent, whatever its role, runs also while its last tool call awaits its answer, its
61
- // transcript having moved in the last 30 minutes; a session keeps the 2-minute rule alone. The
62
- // board reads no transcript older than 30 minutes: a shell agent whose transcript is older shows
63
- // by its process alone.
64
- // - Time: a transcript's working time is the union of its turns, each bounded by the earliest and
65
- // the latest date of its events, whatever their order in the file, but those a resumption writes
66
- // before its incoming message (`horsDuTour`); a transcript is read where the
67
- // board stopped, its reading kept in the cache file. A ticket's working time adds the steps its
68
- // circuit leads itself, with no agent (the proof, the checks, the final pass, the integration,
69
- // the queue): the register's lines of the role `circuit`, which no block shows and no role of the
70
- // flow counts as a passage, and the step under way of a running circuit (`mene` in its state) up
71
- // to now; they count out of the turns of the ticket's agents, so the ticket's time is the union
72
- // of both, each instant once, and they spend no tokens.
73
- // - Progress: the line of a ticket whose circuit runs an automatic step gives the progress of
74
- // its pass, read in the progress directory its state names (scripts/avancement.mjs), in
75
- // figures, as Bazel's counter of actions: « faits/prévus · <durée> » since the start of the
76
- // pass, after the counters of its loops, or in their place when room lacks (the subject is cut,
77
- // never the figures nor the ticket's number); the queue (5.2) shows no wait for a CI. Past FIGEE
78
- // without a sign, « figée <durée> · faits/prévus », the time since its last sign, signed ⛔ in
79
- // the tone of an alert.
80
- // - The parts of the machine (scripts/places-de-la-machine.mjs, read by `lireLaMesure`), as Slurm's
81
- // `squeue` names who holds what and what a job waits for. A part held or waited for by a circuit
82
- // AGENTS shows on a line (a circuit, a ticket led in direct, a ticket worked out of a circuit,
83
- // an agent) stands on that ticket's line, « 🔒 » (it holds a part) or « ⏳ » (it waits for one)
84
- // after the head, before the subject, never in place of its sign: « · <sorte> · 2 cœurs ·
85
- // <durée> » since it took its part, with « ⚠ » and what it consumes beyond its part when it
86
- // does, « · <sorte> figée <durée> » past FIGEE without a sign, « · attend 2 cœurs · 26 réservés
87
- // sur 28 · <durée> » for a wait, the kind in lower case; a circuit adds faits/prévus, and says
88
- // it in place of the progress of its pass. The block at the head of AGENTS (`lignesDesParts`)
32
+ // `.claude/worktrees/<ticket>.bilan.json`) opens on its key figures.
33
+ // - CHANTIER: a root epic with work in progress, its tree of mothers with their work tickets done
34
+ // over all; a closed ticket, mother included, counts without a line, and a closed mother's
35
+ // open tickets take her place. The other chantiers, one line each.
36
+ // - Running: a finished agent is measured from the register (scripts/registre.mjs), a running one
37
+ // from its transcript: a role agent launched in a shell while its envelope's process runs, a
38
+ // sub-agent or a session whose transcript moved in the last 2 minutes. With an end in the
39
+ // register, an agent runs again only when an incoming message follows its latest end strictly.
40
+ // A sub-agent also runs while its last tool call awaits its answer, its transcript having
41
+ // moved in the last 30 minutes; the board reads no transcript older than 30 minutes.
42
+ // - Time: a transcript's working time is the union of its turns (`horsDuTour` leaves out what a
43
+ // resumption writes before its incoming message), read where the board stopped, its reading in
44
+ // the cache file. A ticket's time adds the steps its circuit leads itself (the register's lines
45
+ // of the role `circuit`, and the step under way, `mene`, up to now), each instant once, with no
46
+ // tokens.
47
+ // - Progress: the line of a ticket whose circuit runs an automatic step gives « faits/prévus ·
48
+ // <durée> » read in the progress directory its state names (scripts/avancement.mjs), as Bazel's
49
+ // counter of actions; the subject is cut when room lacks, never the figures nor the number.
50
+ // Past FIGEE without a sign: « figée <durée> · faits/prévus », signed ⛔.
51
+ // - Parts (scripts/places-de-la-machine.mjs, read by `lireLaMesure`), as Slurm's `squeue` names
52
+ // who holds what: a part held or waited for stands on the ticket's line, « 🔒 » (holds) or « ⏳ »
53
+ // (waits) after the head, before the subject: « · <sorte> · 2 cœurs · <durée> », with « ⚠ » when
54
+ // it consumes beyond its part, « · <sorte> figée <durée> » past FIGEE, « · attend 2 cœurs · 26
55
+ // réservés sur 28 · <durée> » for a wait. The block at the head of AGENTS (`lignesDesParts`)
89
56
  // keeps the budget taken, « Parts · 2 passes · 6 sur 8 cœurs · 11 sur 16 Go », which counts
90
- // every pass that holds a part, those of a ticket the board does not show included, which
91
- // has no other trace; and the lines of the passes with no ticket (a check launched by hand, the
92
- // night, a measure): « 🔒 <sorte> · <projet> · 4 cœurs · 8 Go », with « ⚠ », then each one that
93
- // waits, in the order of its rank, « ⏳ <sorte> · <projet> · attend <raison> » (cores, memory,
94
- // load, with the figures). Such a line is marked `avancement`, which the pane measures again
95
- // more often.
96
- // - Signs: each sign keeps one sense (the owner's decisions of 2026-11-01 and 2026-11-12). A
97
- // ticket's line in AGENTS takes one of three, by the tone of its state: ▶ its step works (cyan,
98
- // the hollow ▷ in a short circuit, counted with it),
99
- // a ticket led in direct included; ⏸ it waits, under the step about to be launched, the reason
100
- // on its right (« attend une place », « verrou », « disque », « démarre » in grey, the
101
- // circuit waiting for the machine; « question au superviseur », « question au responsable »,
102
- // « arrêté » in yellow, the circuit waiting for someone); ⛔ it stopped on a fault or its pass is
103
- // frozen, to correct (red). On a ticket's line, after its head: 🔒 its pass holds a part, ⏳ it
104
- // waits for one; at the head of AGENTS, the same two for a pass with no ticket, and 🌙 the night
105
- // under way. The alerts: 💤 a ticket
106
- // claimed with nothing running, 🌙 a red night, ⚠ the alerts without a kind of their own. A
107
- // sign two columns wide stands as the others, a sign then a space; the width of a line counts
108
- // its columns (`colonnes`), ⏳ and ⛔ two.
109
- // - Alerts: one alert per open night ticket (🌙, its subject, then its number), per circuit that
110
- // waits for the supervisor (⏳, how long), a shell agent silent for 10 minutes, a ticket in
111
- // progress without anything running for 30 minutes (💤), each with its state (`etat`).
112
- // - Tones: each state the board shows has one tone, defined once (`TONS`), which every line and
113
- // every alert takes, whatever its duration or the line that shows it: red for what asks for a
114
- // correction (frozen, a fault, a question with no live wait, a ceiling refused), yellow for what
115
- // waits for someone (the supervisor, the owner), grey for what waits for the machine (a place,
116
- // a part, the disk, the CI), cyan for what runs.
57
+ // every pass that holds a part, a ticket the board does not show included, then the passes with
58
+ // no ticket (« 🔒 <sorte> · <projet> · 4 cœurs · 8 Go »), then each wait in the order of its
59
+ // rank (« ⏳ <sorte> · <projet> · attend <raison> »). Such a line is marked `avancement`, which
60
+ // the pane measures again more often.
61
+ // - Signs: a ticket's line in AGENTS takes one of three, by the tone of its state: ▶ its step
62
+ // works (cyan; ▷ in a short circuit, a ticket led in direct included); ⏸ it waits, the reason on
63
+ // its right (« attend une place », « verrou », « disque », « démarre » in grey, waiting for the
64
+ // machine; « question au superviseur », « question au responsable », « arrêté » in yellow,
65
+ // waiting for someone); ⛔ it stopped on a fault or its pass is frozen (red). At the head of
66
+ // AGENTS, 🔒 and ⏳ for a pass with no ticket, 🌙 the night under way. Alerts: 💤 a ticket
67
+ // claimed with nothing running, 🌙 a red night, ⚠ the others. A sign is followed by a space; the
68
+ // width of a line counts its columns (`colonnes`), ⏳ and ⛔ two.
69
+ // - Alerts: one per open night ticket (🌙), per circuit that waits for the supervisor (⏳, how
70
+ // long), a shell agent silent for 10 minutes, a ticket in progress with nothing running for 30
71
+ // minutes (💤), each with its state (`etat`).
72
+ // - Tones (`TONS`), defined once, taken by every line and alert: red for what asks for a
73
+ // correction, yellow for what waits for someone, grey for what waits for the machine, cyan for
74
+ // what runs.
117
75
  import { execFileSync } from 'node:child_process';
118
76
  import {
119
77
  closeSync,
@@ -758,8 +716,7 @@ export function lireVivant({ racine, home, prefix, maintenant, ps, cache = {} })
758
716
  * Whether the circuit <c>, as scripts/circuits-du-serveur.mjs reads it, waits for the supervisor:
759
717
  * not running on its own, not integrated, and ended without its issue, on a question, or stopped (any stop but the
760
718
  * supervisor's own « arrete », « à repasser » included: the supervisor resumes it once the machine
761
- * is free). The
762
- * one rule of the questions that wait for the supervisor (grillhouse-pq6), which the board reads,
719
+ * is free). The one rule of the questions that wait for the supervisor, which the board reads,
763
720
  * and `questionsEnAttente` of scripts/superviseur.mjs, the one source of the opening and of the
764
721
  * greffon's reading of the questions.
765
722
  * @param {{ vivant: boolean, integre?: boolean, interrompu: boolean, question: string | null, arret: string | null }} c
@@ -1155,7 +1112,7 @@ export function assembler({
1155
1112
  ...(m.tours ? { travail: partDuJour(m.tours) } : {}),
1156
1113
  ...(m.minutes ? { jetons: jetonsDuJour(m.minutes) } : {}),
1157
1114
  }));
1158
- // The discoveries (label `decouverte`, grillhouse-3uv.96): each counts in one case, the first that
1115
+ // The discoveries (label `decouverte`): each counts in one case, the first that
1159
1116
  // applies. « rejetés » and « validés » count only since the day's marker <jour>; « new » and
1160
1117
  // « →check », states that await the owner, do not filter by it.
1161
1118
  const aLabel = (t, ...ls) => ls.some(l => (t.labels ?? []).includes(l));
@@ -1289,7 +1246,7 @@ export function assembler({
1289
1246
  });
1290
1247
  }
1291
1248
  const debutJour = jour;
1292
- // The way of a ticket done (grillhouse-592): `direct` when labelled so; else the way its kept
1249
+ // The way of a ticket done: `direct` when labelled so; else the way its kept
1293
1250
  // results give (`voies`, `voiesDesCircuits`: `court` for the short circuit, else `complet`); else
1294
1251
  // `complet` when a circuit led a step of it (the register) or is read for it; else `direct`,
1295
1252
  // closed with no circuit.
@@ -1645,7 +1602,7 @@ function temoinDe(c, maintenant) {
1645
1602
  }
1646
1603
 
1647
1604
  // A ticket's time and tokens, « 12 min · 310 k »; nothing when both are zero.
1648
- // The sign of a ticket done by its way (grillhouse-592): a full circuit, a short one (its gesture
1605
+ // The sign of a ticket done by its way: a full circuit, a short one (its gesture
1649
1606
  // played by a command, 1.1, or written by hand), a ticket led directly.
1650
1607
  export const SIGNE_DE_LA_VOIE = Object.freeze({ complet: '●', court: '○', direct: '✎' });
1651
1608
 
@@ -1968,7 +1925,7 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
1968
1925
  L(cadre(`${i ? retrait : colonneDe(p.etiquette)}${x.texte}`, '', largeur), x.ton)
1969
1926
  );
1970
1927
  }
1971
- // The discoveries of the day, summed across the projects (grillhouse-3uv.96, criterion 14).
1928
+ // The discoveries of the day, summed across the projects.
1972
1929
  const d96 = t.decouvertes ?? { new: 0, check: 0, rejetes: 0, valides: 0 };
1973
1930
  L(
1974
1931
  cadre(
@@ -1997,7 +1954,7 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
1997
1954
  for (const x of lignesDActeurs(c, comptesDAgents(t).arretes)) {
1998
1955
  L(cadre(x.texte, '', largeur), x.ton);
1999
1956
  }
2000
- // The discoveries of the day, one count per case (grillhouse-3uv.96): always shown, at 0 when
1957
+ // The discoveries of the day, one count per case: always shown, at 0 when
2001
1958
  // nothing counts, like the other head lines.
2002
1959
  const d = g.decouvertes ?? { new: 0, check: 0, rejetes: 0, valides: 0 };
2003
1960
  L(
@@ -2191,7 +2148,7 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
2191
2148
  ...[...(t.circuits ?? []), ...(t.horsCircuit ?? []), ...montres].map(x => nomme(x).length)
2192
2149
  );
2193
2150
  // A ticket's line in AGENTS: « <signe> <numéro> <sujet> … <droite> »; on several projects'
2194
- // board « <[projet]> <id> <sujet> … <signe> <droite> », the owner's maquette (grillhouse-erp.1).
2151
+ // board « <[projet]> <id> <sujet> … <signe> <droite> ».
2195
2152
  // The icon of its pass (🔒 holds a part, ⏳ waits for one) follows the head, before the subject.
2196
2153
  const teteDe = (signe, x) =>
2197
2154
  `${
@@ -2794,7 +2751,7 @@ export function dossierCommun(racine) {
2794
2751
  }
2795
2752
  }
2796
2753
 
2797
- // The file of the day's marker (grillhouse-3uv.96), beside the board's cache; null without a common
2754
+ // The file of the day's marker, beside the board's cache; null without a common
2798
2755
  // dir. Unversioned, out of the worktree: the board does not reset at midnight.
2799
2756
  const fichierDuRepere = commun => commun && path.join(commun, 'tableau-repere.json');
2800
2757
 
@@ -2823,7 +2780,7 @@ export function lireLeRepere(commun, maintenant) {
2823
2780
  }
2824
2781
 
2825
2782
  // Sets the day's marker of the project at <racine> to <quand> (now by default), purging FAITS
2826
- // AUJOURD'HUI and the « rejetés » and « validés » cases up to it (grillhouse-3uv.96, /newday).
2783
+ // AUJOURD'HUI and the « rejetés » and « validés » cases up to it (`/newday`).
2827
2784
  export function poserLeRepere(racine, quand = Date.now()) {
2828
2785
  const commun = dossierCommun(racine);
2829
2786
  if (!commun) {
@@ -2957,7 +2914,7 @@ function lireLesPlaces() {
2957
2914
  }
2958
2915
  }
2959
2916
 
2960
- // The boards of several projects as one (grillhouse-erp.1), as the multi-root explorer of VS Code
2917
+ // The boards of several projects as one, as the multi-root explorer of VS Code
2961
2918
  // keeps one view and files each root under its name: <lus> holds each project's label
2962
2919
  // (`etiquette`, its ticket prefix), the root of its main tree (`racine`, by which the places of
2963
2920
  // its circuits are counted) and its board (`t`) or the fault that keeps it out (`erreur`),
@@ -43,6 +43,9 @@
43
43
  // wait for, replayed from the cache when nothing moved, side by side within the cores of the part
44
44
  // the checks play on (`tachesCoteACote`, `--concurrency`). No guard script, or no task waited for:
45
45
  // nothing plays, 0. Its exit code is the runner's, 1 for a plan the runner refuses.
46
+ //
47
+ // The mechanism: docs/architecture/tests.md §3.1 (the launcher of the tasks of the graph), §5.1
48
+ // and §5.4.
46
49
  import { spawnSync } from 'node:child_process';
47
50
  import { closeSync, openSync, readFileSync, writeFileSync } from 'node:fs';
48
51
  import { availableParallelism } from 'node:os';
@@ -1,5 +1,5 @@
1
1
  // The ticket of a circuit, read and written as the circuit and its activities share it
2
- // (scripts/circuit.mjs, scripts/seances.mjs): its comments and its description in Beads, the
2
+ // (scripts/circuit.mjs, scripts/seances.mjs; circuit.md §3.1, « Actes du circuit »): its comments and its description in Beads, the
3
3
  // sheets and the results of its sessions (`<ticket>.fiches.jsonl`), its log, the components of its
4
4
  // repository, and the stop of the circuit (`Arret`). Every function takes the circuit's context
5
5
  // <ctx> (`contexte` of scripts/circuit.mjs: `bd`, `ticket`, `fiches`, `journal`, `copie`,
@@ -1,7 +1,8 @@
1
- // The decisions of the circuit of a ticket (scripts/circuit.mjs), with no input nor output, as a
2
- // workflow of Temporal decides on the results of its activities and a reducer of Redux on its
3
- // actions: from the state of the run, the circuit's memory and the facts read so far, the step
4
- // that follows. The circuit reads the facts and interprets what this module returns; this module
1
+ // The decision rule of the circuit of a ticket (scripts/circuit.mjs; circuit.md §2.3, §3.1 « Règle
2
+ // de décision »), with no input nor output, as a workflow of Temporal decides on the results of
3
+ // its activities and a reducer of Redux on its actions: from the state of the run, the circuit's
4
+ // memory and the facts read so far, the step that follows (the steps and their loops: circuit.md
5
+ // §5.1, ./etapes.mjs). The circuit reads the facts and interprets what this module returns; this module
5
6
  // reads no file, launches no process and imports no module that does (a guard holds it:
6
7
  // tests/unit/transitions.spec.ts).
7
8
  //
@@ -132,9 +133,8 @@ export const etapeApresLePlan = ({ sorte, sansTests, demande = false }) =>
132
133
 
133
134
  // The step after a proof that passes: the developpeur on a red (<rouges>), on a finding of the
134
135
  // reviewer still open for him (<pourLeDeveloppeur>), or under a plan « comportement
135
- // tests-adaptés » (<inchange>), whose lot has code to write though nothing turns red, as a reorganisation does
136
- // (decision 3, amended by the owner on 2026-11-01); else the checks, a lot of tests alone, with
137
- // no session of the developpeur.
136
+ // tests-adaptés » (<inchange>), whose lot has code to write though nothing turns red, as a
137
+ // reorganisation does; else the checks, a lot of tests alone, with no session of the developpeur.
138
138
  export const apresLaPreuve = ({ rouges, pourLeDeveloppeur, inchange }) =>
139
139
  rouges > 0 || pourLeDeveloppeur || inchange ? CODE : CONTROLES;
140
140
 
@@ -150,8 +150,8 @@ export function suiteDuRougeDeLecture(role, tentative) {
150
150
  export const ouverts = (constats, role) => (constats ?? []).filter(c => c.role === role);
151
151
 
152
152
  // The stop for the findings open (<constats>) that go to the testwriter when the plan skips him
153
- // (<sansTests>), or null: no new pass treats them, as a CI fails fast on a step it cannot run
154
- // (grillhouse-26x). A stop `relecture-arret` whose report names each finding, the role skipped
153
+ // (<sansTests>), or null: no new pass treats them, as a CI fails fast on a step it cannot run.
154
+ // A stop `relecture-arret` whose report names each finding, the role skipped
155
155
  // and why, then the verdict <texte>; its piece, the findings' pieces; its question, declare the
156
156
  // tests of the package or settle the finding.
157
157
  export function arretDuTestwriterSaute({ constats, sansTests, paquets }, texte) {
@@ -208,8 +208,8 @@ class Besoin {
208
208
  }
209
209
  }
210
210
 
211
- // The plan of a ticket, its decisions as the circuit and the workflow of a ticket take them
212
- // (grillhouse-4nr.6.3): the step of the plan that follows its state <e> (`{ plan, lu, posees,
211
+ // The plan of a ticket, its decisions as the circuit and the workflow of a ticket take them:
212
+ // the step of the plan that follows its state <e> (`{ plan, lu, posees,
213
213
  // reponse }`, the explorateur's sheet, the questionneur's, the questions put, the explorateur's
214
214
  // answer): `explorateur`, `questionneur`, `reponse` (questions were put), then `conclure`.
215
215
  export const pasDuPlan = e =>
@@ -1187,10 +1187,10 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
1187
1187
  `Le ticket est mécanique (${ticket.sorte.raison}) : ni testwriter ni développeur ne lève ce rouge du lot de sa commande. Le superviseur fait corriger le lot (\`--depuis developpeur\`, le rouge en \`--contexte\`), corrige le geste dans la copie puis \`--reprendre\`, ou arrête le circuit (\`--arreter\`).`
1188
1188
  );
1189
1189
  }
1190
- // A run recorded before the marker `attribution-avant-sans-livraison` of the workflow of a
1191
- // ticket (src/temporal/circuit/deroule.ts) keeps the former order: the stop of a developpeur
1192
- // who had nothing to deliver before any attribution, the fact « portes » not read, as its
1193
- // history replays. This path leaves once those runs have ended (grillhouse-3uv.177).
1190
+ // A run without the marker `attribution-avant-sans-livraison` of the workflow of a ticket
1191
+ // (src/temporal/circuit/deroule.ts) keeps the former order: the stop of a developpeur who had
1192
+ // nothing to deliver before any attribution, the fact « portes » not read, as its history
1193
+ // replays.
1194
1194
  if (k.rouge && rien && !marqueurs.attributionAvantSansLivraison) {
1195
1195
  return arret('sans-livraison', rien, CODE);
1196
1196
  }
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- // A closed ticket keeps its one delivery: refuses a commit message whose title line names a ticket
2
+ // The guard of the one delivery per ticket, on the way of a lot to main (packages/grillhouse/docs/
3
+ // architecture/entree.md §5.1: a lot is one commit, closed on entry): refuses a commit message whose title line names a ticket
3
4
  // an earlier commit already delivers, unless that ticket is open in Beads. An open ticket that
4
5
  // already has its delivery is a ticket reopened for a fix led by hand: the commit is a correction
5
6
  // and passes. The queue of the tickets never starts such a ticket again (its lot is on main,
@@ -1,4 +1,5 @@
1
- // The durable verdict of a project's night, in two parts: the night plays on two machines, the part
1
+ // The durable verdict of a project's night (packages/grillhouse/docs/architecture/entree.md §3.1
2
+ // « Verdict de la nuit », §4.1, §5.3), in two parts: the night plays on two machines, the part
2
3
  // of PC2 (the tranches of the Nuit flow, which PC3 reads by `gh`) and the part of PC3 (the tests of
3
4
  // the poste, scripts/nuit.sh). Each part is noted at its end in `<git common dir>/nuit/verdict` (PC3)
4
5
  // and `<git common dir>/nuit/verdict-pc2` (PC2), and the board reads them without a server. A part is
@@ -1,6 +1,7 @@
1
1
  // The lock of a file shared between processes: the file `<verrou>` stands while someone holds it.
2
2
  // Taken by the integration (`.git/integration.lock`), by the register (`registre.jsonl.verrou`)
3
3
  // and by the creation of a ticket (`.beads/grillhouse-ticket.lock`, scripts/ticket.mjs).
4
+ // Architecture: docs/architecture/machine.md (§4.1).
4
5
  //
5
6
  // - A lock is created whole and exclusively: its mark (the owner's process number, then a token
6
7
  // unique to the taking) is written to a private file that is linked to `<verrou>`; the link
@@ -5,7 +5,8 @@
5
5
  // out of the session's temporary directory: an output redirection (`>`, `>>`, `>|`, `&>`, `1>`…)
6
6
  // or `tee`. A file of the repository is written by the tools of writing (Write, Edit), which the
7
7
  // role's write lock (verrou.mjs) judges; a rule of Claude Code does not see a redirection, and a
8
- // session in its envelope runs without the check of writes.
8
+ // session in its envelope runs without the check of writes. Architecture:
9
+ // docs/architecture/machine.md (§3.1, §5.5 « Les verrous dans la séance »).
9
10
  //
10
11
  // - Allowed targets: the null and standard devices (`/dev/null`, `/dev/stdout`, `/dev/stderr`,
11
12
  // `/dev/fd/…`), a duplication of a descriptor (`2>&1`, `>&2`), and a path under the temporary
@@ -5,6 +5,7 @@
5
5
  // its reason on stderr, the write of the code or the tests of a package by a session that is no
6
6
  // agent of the frame under its envelope: the supervisor, the person who starts Claude Code by hand,
7
7
  // a session that lost its variable of envelope (`GRILLHOUSE_ENVELOPPE`, refusal by default).
8
+ // Architecture: docs/architecture/machine.md (§3.3, §5.5 « Les verrous dans la séance »).
8
9
  //
9
10
  // - A write of a document (a `.md` file) passes: the documents of a package (CADRE.md,
10
11
  // INTERFACE.md, ARCHITECTURE.md, CHANGELOG, the skills and the charter of `mods/grillhouse`) and