@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,122 +1,102 @@
1
- // The formats of the results the circuit decides on, in one module, which the circuit
2
- // (scripts/circuit.mjs), the guards and the tests read; as Bazel's Build Event Protocol and the
3
- // JUnit reports carry the outcome of a build, no reader reads an output meant for the human.
1
+ // The formats of the results the circuit decides on, in one module that the circuit, the guards
2
+ // and the tests read; as Bazel's Build Event Protocol and the JUnit reports carry the outcome of a
3
+ // build, no reader reads an output meant for the human (circuit.md §4.4, the sheet of a role).
4
4
  //
5
5
  // npx grillhouse resultats --schema <rôle> prints the JSON schema of a role's sheet
6
6
  //
7
7
  // - The sheet of the end of a session (« la fiche ») of the explorateur, the questionneur, the
8
- // testwriter, the developpeur and the reviewer: the schema of each role (FICHES), which the session receives
9
- // (`claude -p --output-format json --json-schema <schéma>`) and fills as its last act; claude
10
- // writes it in the field `structured_output` of its result (Claude Code, « headless »). A field
11
- // exists only when a reader reads it:
8
+ // testwriter, the developpeur and the reviewer: the schema of each role (FICHES), which the
9
+ // session receives (`claude -p --output-format json --json-schema <schéma>`) and fills as its
10
+ // last act, in the field `structured_output` of its result. A field exists only when a reader
11
+ // reads it:
12
12
  // - `statut` (FAIT, BLOQUÉ, BESOIN), with `raison` for BLOQUÉ and `question` for BESOIN, each
13
- // with its `piece`: the circuit goes on, or stops at « hors-portee » or « besoin », the piece
14
- // with the stop (testwriter, developpeur, and the explorateur's gesture of a mechanical ticket,
15
- // its own schema, `geste`);
16
- // - `portent_le_travail` (`fichier` from the root, `test` its full name, or none for every test of
17
- // the file): the tests of the lot that carry the ticket's work, which the proof of the red
18
- // requires red (testwriter);
13
+ // with its `piece`: the circuit goes on, or stops at « hors-portee » or « besoin »
14
+ // (testwriter, developpeur, and the explorateur's gesture of a mechanical ticket, its own
15
+ // schema, `geste`);
16
+ // - `portent_le_travail` (`fichier` from the root, `test` its full name, or none for every test
17
+ // of the file): the tests of the lot that the proof of the red requires red (testwriter);
19
18
  // - `renvoi` (`role` testwriter): the circuit relaunches the testwriter, then the proof and the
20
19
  // developpeur (developpeur);
21
20
  // - `hors_plan` (`critere` its number, `paquet` the package out of the plan that would hold it,
22
21
  // `piece`): each criterion the session does not hold for want of a package out of the plan; a
23
- // FAIT that carries one stops at « hors-portee », as a required check keeps a merge from a
24
- // change that does not pass it (BP 320.17: « critère 10 hors plan, non fait », in a handover
25
- // the circuit does not read, fell at the review) (developpeur);
22
+ // FAIT that carries one stops at « hors-portee » (developpeur);
26
23
  // - `reponses` (`titre` of the finding, `etat` levé or contesté, `raison` for a contesté,
27
- // `piece`): as the author answers in each thread of a review on GitHub or Gerrit, a FAIT
28
- // answers each finding of the reviewer open for him, by its title (the number « Constat N — »
29
- // its instruction heads it with recognised, `cleDuConstat`), and the circuit refuses a
30
- // sheet without the answer to one (`reponsesAuxConstats`), save in a run where the supervisor
31
- // gives the task (`--contexte`, the findings open at the run's launch then its context, the
32
- // ones a RENDU states within it still its task: `constatsDeLaSeance` of
33
- // scripts/circuit.mjs), and gives the next review each answer
34
- // under its finding (BP 320.21: the cause of his choice in a handover the circuit does not
35
- // read, three RENDU, then the stop) (developpeur);
24
+ // `piece`): a FAIT answers each finding of the reviewer open for its role, by its title (the
25
+ // number « Constat N — » is recognised, `cleDuConstat`); the circuit refuses a sheet without
26
+ // the answer to one (`reponsesAuxConstats`), save in a run where the supervisor gives the task
27
+ // (`--contexte`: the findings open at the run's launch are then its context, the ones a RENDU
28
+ // states within it still its task, `constatsDeLaSeance` of scripts/circuit.mjs), and gives the
29
+ // next review each answer under its finding (developpeur);
36
30
  // - `ecarts` (`sujet`, `texte`): the body of the commit message, written by the circuit, each
37
31
  // subject once, its value from the last sheet that carries it (developpeur, reviewer);
38
32
  // - `decouvertes` (`sujet`, `corps`): each one a ticket filed closed under the ticket, labelled
39
33
  // `decouverte`, created by the circuit (every role);
40
34
  // - `verdict` (ACCEPTÉ, RENDU), `constats` (`titre`, `corps`, `piece`, `genre` bloquant or
41
- // remarque; a
42
- // blocking one with `regle`, the criterion of the plan or the rule of the frame it holds, and
43
- // `role` its recipient, or `critere_en_cause`): as Conventional Comments mark
44
- // a comment blocking or not, the circuit plays the blocking findings alone, each open until a
45
- // review marks it lifted, and writes the verdict at the ticket for the human, the remarks with
46
- // it; a RENDU carries a blocking finding, an ACCEPTÉ none (reviewer);
35
+ // remarque; a blocking one with `regle`, the criterion of the plan or the rule of the frame
36
+ // it holds, and `role` its recipient, or `critere_en_cause`): the circuit plays the blocking
37
+ // findings alone, each open until a review marks it lifted, and writes the verdict at the
38
+ // ticket, the remarks with it; a RENDU carries a blocking finding, an ACCEPTÉ none (reviewer);
47
39
  // - `conformite` (`element`, `conforme` oui or non, `document` CADRE, INTERFACE or
48
- // ARCHITECTURE, `reference`, `piece`; a « non » with `role` its recipient):
49
- // one line per element of the lot (scripts/langages/typescript/elements-du-lot.mjs), its rule cited from a
50
- // document of its package, a new export's the entry of the INTERFACE that names it; a line
51
- // without its reference is refused; a « non » is a blocking finding (`bloquantsDeLaFiche`),
52
- // and the circuit refuses a sheet without a line for each element, or with a line on an
53
- // element out of the list, a file the lot changes named alone or as `<fichier>#<nom>`
54
- // (`conformiteDuLot`) (reviewer);
40
+ // ARCHITECTURE, `reference`, `piece`; a « non » with `role` its recipient): one line per
41
+ // element of the lot (scripts/langages/typescript/elements-du-lot.mjs), a new export's the
42
+ // entry of the INTERFACE that names it; a line without its reference is refused; a « non » is
43
+ // a blocking finding (`bloquantsDeLaFiche`), and the circuit refuses a sheet without a line
44
+ // for each element, or with a line on an element out of the list, a file the lot changes
45
+ // named alone or as `<fichier>#<nom>` (`conformiteDuLot`) (reviewer);
55
46
  // - `suivi` (`titre`, `etat` levé or non levé, `preuve`): each finding still open judged on the
56
- // lot, bounded or whole, by its title (its number « Constat N — » recognised, `cleDuConstat`),
57
- // which the circuit writes at the ticket with the verdict, for the human; the circuit refuses
58
- // a sheet without a line for one, or an ACCEPTÉ that holds one not lifted
47
+ // lot, by its title (`cleDuConstat`), which the circuit writes at the ticket with the verdict;
48
+ // it refuses a sheet without a line for one, or an ACCEPTÉ that holds one not lifted
59
49
  // (`suiviDesConstats`) (reviewer);
60
- // - `question`, with its `piece` (reviewer): what goes up to the owner, a real word of the
61
- // language written in the code; the circuit stops at « besoin » before it commits or
62
- // relaunches anyone;
63
- // - `criteres`, `paquets`, `questions` (each with its `motif` and its `piece`): the plan, which the circuit
64
- // writes at the ticket: the criteria it adds after those the ticket holds, which the circuit
65
- // keeps as they are; the packages in the title as it names its components (a package name or a
66
- // path), the list the envelope of every later session writes; the open questions, a change or
67
- // a removal of a criterion written among them, go up to the supervisor, each naming why: the
68
- // language, the architecture, a gap to the reference, or no answer (BP 328: a question the
69
- // ticket settled stopped the plan) (explorateur);
50
+ // - `question`, with its `piece` (reviewer): what goes up to the owner; the circuit stops at
51
+ // « besoin » before it commits or relaunches anyone;
52
+ // - `criteres`, `paquets`, `questions` (each with its `motif` and its `piece`): the plan, which
53
+ // the circuit writes at the ticket: the criteria it adds after those the ticket holds, the
54
+ // packages in the title as it names its components (a package name or a path), the list the
55
+ // envelope of every later session writes; the open questions, a change or a removal of a
56
+ // criterion written among them, go up to the supervisor, each naming why: the language, the
57
+ // architecture, a gap to the reference, or no answer (explorateur);
70
58
  // - `sorte` (`genre` mécanique or comportement, its `raison`, the `commande` a mechanical ticket
71
- // plays, and, for a comportement, `comportement` changé, tests-adaptés or inchangé): as
72
- // Google's large-scale changes let a tool make a change that a verification and a review
73
- // judge (Rosie, ClangMR), a ticket the plan says mechanical skips the testwriter, the proof
74
- // and the developpeur; under « tests-adaptés » the testwriter writes and every green of the
75
- // proof is expected, then the developpeur writes; under « inchangé » (a gesture written by
76
- // hand) the developpeur alone writes, no testwriter; a sort
77
- // absent, out of its kinds, or without its reason or its command is comportement, the whole
78
- // circuit (`sorteDuPlan`, grillhouse-sos) (explorateur);
59
+ // plays, and, for a comportement, `comportement` changé, tests-adaptés or inchangé): a
60
+ // mechanical ticket skips the testwriter, the proof and the developpeur; under
61
+ // « tests-adaptés » the testwriter writes and every green of the proof is expected, then the
62
+ // developpeur writes; under « inchangé » the developpeur alone writes; a sort absent, out of
63
+ // its kinds, or without its reason or its command is comportement, the whole circuit
64
+ // (`sorteDuPlan`) (explorateur; circuit.md §5.1);
79
65
  // - `ecartes` (`composant`, `raison`): the components of the survey, and those the title of
80
- // the ticket names, that the plan does not touch, which the circuit writes at the ticket; each
81
- // other component of the survey the circuit plays, and of the title, is in the packages; a
82
- // component set apart without its reason makes the sheet out of conformity (explorateur);
83
- // - `noms_publies` (`fournisseur`, `consommateur`, `noms`): the names a component publishes to
84
- // another, which the lot adds to the provider's « Consommateurs » lines; as a code owner's
85
- // approval covers what it reviewed, the circuit writes them in the description (« ## Noms
86
- // publiés »), which scripts/langages/typescript/consommateurs-arbitres.mjs reads (BP
87
- // 320.14.2.10: a criterion alone named them, the guard refused the lot) (grillhouse-la3)
66
+ // the ticket names, that the plan does not touch; each other component the circuit plays is in
67
+ // the packages; a component set apart without its reason makes the sheet out of conformity
88
68
  // (explorateur);
69
+ // - `noms_publies` (`fournisseur`, `consommateur`, `noms`): the names a component publishes to
70
+ // another, which the lot adds to the provider's « Consommateurs » lines; the circuit writes
71
+ // them in the description (« ## Noms publiés »), which
72
+ // scripts/langages/typescript/consommateurs-arbitres.mjs reads (explorateur);
89
73
  // - `reponses` (`numero` of the question, `reponse` CHANGE or GARDE, `texte`): the explorateur's
90
- // one answer to the questionneur, which the circuit writes at the ticket; a question without
91
- // an answer stays open (explorateur); an answer may carry a `correction` of a criterion
92
- // (`critere`, `texte`, `piece`, `extrait`), which the circuit accepts when the extract stands
93
- // at the line of the question's piece (`correctionsDuPlan` of scripts/transitions.mjs);
74
+ // one answer to the questionneur; a question without an answer stays open (explorateur); an
75
+ // answer may carry a `correction` of a criterion (`critere`, `texte`, `piece`, `extrait`),
76
+ // which the circuit accepts when the extract stands at the line of the question's piece
77
+ // (`correctionsDuPlan` of scripts/transitions.mjs);
94
78
  // - `issue` (QUESTIONS with its `questions`, each with what it aims at, `vise`, and its
95
- // `piece`; AUCUNE; DÉSACCORD
96
- // with its `desaccord`): the explorateur answers the questions, the disagreement as one, and
97
- // the circuit writes them at the ticket (questionneur);
79
+ // `piece`; AUCUNE; DÉSACCORD with its `desaccord`) (questionneur);
98
80
  // - `verdicts` (`decouverte`, `verdict` among VERDICTS_DU_TRI, `texte`, `piece`): the tri of the
99
81
  // discoveries, the explorateur's sheet after the queue (its own schema, `tri`), one line per
100
82
  // discovery of the ticket, which the circuit writes at the ticket of each and reopens under
101
83
  // `a-valider` for an a-porter or a non-confirmee; the piece of a traitee or an a-porter, a
102
84
  // command played again on main and its output or file:line, is required, and the circuit
103
85
  // refuses a sheet without a line for each discovery, with a line on another, or two on one
104
- // (`conformiteDuTri`) (grillhouse-0yu.5).
86
+ // (`conformiteDuTri`).
105
87
  // `lireFiche` reads a session's output: the sheet and the session's id, or the error that
106
88
  // names what lacks or does not conform (no `structured_output`, a field out of the schema, a
107
89
  // status without its reason, a blocking finding without its criterion or rule, a line of
108
90
  // conformity without its rule or a « non » without its recipient, a plan without packages, a
109
91
  // fact without its piece, a piece in no form, given the copy, a file piece not in it, and, given
110
92
  // the ticket's description, a piece of the ticket whose criterion or section it lacks).
111
- // - The piece of a fact (« la pièce »), one format, as a code review cites the line it judges: a
112
- // finding, a question or a stop carries it, so the agent who takes the fact up re-reads it
113
- // before he builds on it (BP 320.9: a line read wrong, copied by five agents up to the owner).
114
- // Either `<fichier>:<ligne>` or `<fichier>:<ligne>-<fin>`, the file from the root of the copy,
115
- // the line from 1, then, after a space, what it shows (« packages/a/src/x.ts:3 divise par sa valeur. »); or `$ <commande>` on
116
- // its first line and its output on the lines after (after a « \n » written in two characters,
117
- // in a piece written on one line); or, for what the ticket says, `ticket, critère <N>` or
118
- // `ticket, § <section>`, then « : » and what it shows, as a review of a specification cites its
119
- // section (BP 320.17: the questionneur's pieces on the plan it questions, refused). `lirePiece`
93
+ // - The piece of a fact (« la pièce »), one format: a finding, a question or a stop carries it, so
94
+ // the agent who takes the fact up re-reads it before he builds on it. Either
95
+ // `<fichier>:<ligne>` or `<fichier>:<ligne>-<fin>`, the file from the root of the copy, the line
96
+ // from 1, then, after a space, what it shows (« packages/a/src/x.ts:3 divise par sa valeur. »);
97
+ // or `$ <commande>` on its first line and its output on the lines after (after a « \n » written
98
+ // in two characters, in a piece written on one line); or, for what the ticket says,
99
+ // `ticket, critère <N>` or `ticket, § <section>`, then « : » and what it shows. `lirePiece`
120
100
  // reads it; the circuit gives `lireFiche` the copy, where each file piece's file stands and
121
101
  // holds its line, and the ticket's description, which carries each criterion or section cited.
122
102
  // - The findings of a guard, in SARIF 2.1.0 (OASIS), beside its output for the human: one run per
@@ -204,7 +184,7 @@ const DOCUMENTS = ['CADRE', 'INTERFACE', 'ARCHITECTURE'];
204
184
  // gap to the mature reference), or no answer the explorateur holds.
205
185
  const MOTIFS = ['langage', 'architecture', 'écart à la référence', 'sans réponse'];
206
186
 
207
- // The verdicts of the tri of the discoveries (grillhouse-0yu.5), as the triage of a report of
187
+ // The verdicts of the tri of the discoveries, as the triage of a report of
208
188
  // Chromium or Mozilla: the lot or a ticket already holds it, it repeats another, it stays out of
209
189
  // the actual use, it is a defect of the actual use, or no proof could be played again. The
210
190
  // verdicts that reopen their discovery under `a-valider`, for the owner.
@@ -213,7 +193,7 @@ export const VERDICTS_ROUVERTS = ['a-porter', 'non-confirmee'];
213
193
  // The verdicts whose piece is a command played again on main and its output, or file:line.
214
194
  const VERDICTS_PROUVES = ['traitee', 'a-porter'];
215
195
 
216
- // The sorts of a ticket the explorateur judges at the plan (grillhouse-sos): a gesture without new
196
+ // The sorts of a ticket the explorateur judges at the plan: a gesture without new
217
197
  // behaviour, which its command makes, or a change of behaviour, which the circuit of code makes.
218
198
  export const SORTES = ['mécanique', 'comportement'];
219
199
  // The values of the field `comportement` of a plan of sort comportement: changé (the testwriter
@@ -528,7 +508,7 @@ export const schemaDeFiche = role => FICHES[role] ?? null;
528
508
  // 'mécanique', raison, commande }` for a mechanical ticket with its reason and its command; else
529
509
  // `{ genre: 'comportement', raison, comportement }`, `comportement` one of COMPORTEMENTS, changé
530
510
  // when absent, unknown or without its reason. A sort absent, out of its kinds or without what it needs is comportement, the
531
- // whole circuit, as a doubt goes to the circuit (grillhouse-sos).
511
+ // whole circuit, as a doubt goes to the circuit.
532
512
  export function sorteDuPlan(fiche) {
533
513
  const s = fiche?.sorte;
534
514
  const plein = v => typeof v === 'string' && v.trim() !== '';
@@ -647,8 +627,7 @@ export const bloquantsDeLaFiche = fiche => [
647
627
  // without its line, a line on an element out of the list, a new export whose rule does not name
648
628
  // its entry in the INTERFACE of its package. A line on a changed file, a source or not, names it
649
629
  // alone or one of its parts, `<fichier>#<nom>`, as a review on GitHub or Gerrit accepts a comment
650
- // on any line of any changed file (BP 320.17: lines on an INTERFACE.md, a CADRE.md and a ceiling
651
- // the commit changes, refused); a changed file asks no line, but a reference file the lot changes
630
+ // on any line of any changed file; a changed file asks no line, but a reference file the lot changes
652
631
  // (<references>, their paths, `differencesDesReferences`) asks one, its `element` its path. The
653
632
  // fault, or null.
654
633
  export function conformiteDuLot(fiche, { elements, fichiers, references = [] }) {
@@ -765,11 +744,10 @@ export function conformiteDuTri(fiche, decouvertes) {
765
744
  // fin }` for « <fichier>:<ligne>-<fin> » (as SARIF's region has a start line and an optional end
766
745
  // line), then what it shows after a space, the place in backquotes or followed by punctuation
767
746
  // read the same; `{ commande, sortie }` for « $ <commande> » and its output on the lines after,
768
- // a « \n » written in two characters read as the line break of a piece written on one line (BP
769
- // 320.3.9: a BESOIN refused on it); `{ critere }` for « ticket, critère <N> » and `{ section }`
747
+ // a « \n » written in two characters read as the line break of a piece written on one line;
748
+ // `{ critere }` for « ticket, critère <N> » and `{ section }`
770
749
  // for « ticket, § <section> » (in « » or up to « : »), what the ticket says, as a review of a
771
- // specification cites its section (« RFC 9110 § 15.5 »; BP 320.17: three sheets of the
772
- // questionneur refused for a piece on the plan they question); null for a text in no form.
750
+ // specification cites its section (« RFC 9110 § 15.5 »); null for a text in no form.
773
751
  export function lirePiece(texte) {
774
752
  const t = String(texte ?? '').trim();
775
753
  const ticket = /^ticket\s*,\s*/i.exec(t);
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
- # The removal of a working copy, called by the three places that end one: the agent copy (by
2
+ # The removal of a working copy (packages/grillhouse/docs/architecture/entree.md §5.3, « Après les
3
+ # étapes »; §5.1 for the queue's copy), called by the three places that end one: the agent copy (by
3
4
  # scripts/integration/integrer.mjs once its lot is committed, and by the supervisor for a ticket
4
5
  # closed without integration), the integration copy (by the same script) and the night copy
5
6
  # (scripts/nuit.sh), the last two when their existing copy does not get ready; and by the night
@@ -1,5 +1,6 @@
1
1
  // The command of the removal of the finished copies (./copies-finies.mjs), which the night runs
2
- // once its steps are played (scripts/nuit.sh):
2
+ // once its steps are played (scripts/nuit.sh; packages/grillhouse/docs/architecture/entree.md
3
+ // §5.3, « Après les étapes »):
3
4
  //
4
5
  // node scripts/retirer-les-copies-finies.mjs [<copie finie de jouer>…] from the main tree
5
6
  //
@@ -1,4 +1,5 @@
1
- // The sessions of the agents as activities, as Temporal runs an activity: each session is a
1
+ // The sessions of the agents (circuit.md §3.1, « Actes du circuit »; the sheet they end on, §4.4):
2
+ // each session is a
2
3
  // process group the activity launches (`jouerLeGroupe`), which sends a sign of life
3
4
  // `{ pid, depart, seanceId }` at its launch and at each step of its watch, stops on a motionless
4
5
  // transcript (`IMMOBILE_MS` of scripts/circuit.mjs, `ctx.immobileMs`), and, cancelled, kills its
@@ -8,7 +9,7 @@
8
9
  // each session comes from its caller, which gives a new one to each session it launches. `lancer` launches one session, `jusquALaFiche` until its
9
10
  // sheet, `seance` the testwriter's or the developpeur's on the whole ticket, with the instruction of
10
11
  // the templates (`consigne`) and the findings of the reviewer open for its role
11
- // (`constatsDeLaSeance`). The circuit (scripts/circuit.mjs) calls them (grillhouse-4nr.3).
12
+ // (`constatsDeLaSeance`). The circuit (scripts/circuit.mjs) calls them.
12
13
  import { spawn, spawnSync } from 'node:child_process';
13
14
  import { createHash, randomUUID } from 'node:crypto';
14
15
  import {
@@ -7,6 +7,8 @@
7
7
  // repository).
8
8
  // - The core imports ./langages.mjs, never this entry: the command (bin/grillhouse.mjs) loads it
9
9
  // at each call, and a script of the core it loads before running one would not run again.
10
+ //
11
+ // What the core asks of a module, and the boundary: docs/architecture/tests.md §3.3 and §3.5.
10
12
  import { fileURLToPath } from 'node:url';
11
13
 
12
14
  export * from './langages.mjs';
@@ -1,53 +1,40 @@
1
1
  #!/usr/bin/env bash
2
- # SessionStart hook: tells the session what the project still lacks before work can start.
3
- # Silent once the project is set up and initialised. It changes nothing, save the lock of the
4
- # supervisor below.
2
+ # SessionStart hook (`grillhouse session-start`): tells the session what the project still lacks
3
+ # before work can start. Silent once the project is set up and initialised. It changes nothing,
4
+ # save the lock of the supervisor. Mechanism: greffon.md, §5.2 (the missing and the unfilled:
5
+ # installation.md).
5
6
  #
6
- # The project's own check: `grillhouse.demarrage` in the package.json of the root names an npm
7
- # script (`npm pkg set grillhouse.demarrage=<script>`). The session start plays
8
- # `npm run --silent <script>` at the root; each non-blank line it writes joins the list « Pas encore
9
- # renseignés », as an item to deal with. The script has 10 s: past them its whole process group is
10
- # stopped. A failure (non-zero code) or a stop adds a line that says so, after the lines already
11
- # written; the session start goes on. Without the key (or with null), nothing runs; a value that is
12
- # not a non-blank string runs nothing and adds a line that says so. An agent's copy does not play it.
7
+ # Each check below joins the list « Manque » or « Pas encore renseignés ».
8
+ # - The project's own check: `grillhouse.demarrage` in the root package.json names an npm script;
9
+ # `npm run --silent <script>` runs at the root, 10 s (past them its whole process group is
10
+ # stopped), and each non-blank line it writes joins « Pas encore renseignés ». A failure or a
11
+ # stop adds a line that says so; the session start goes on. Without the key (or with null)
12
+ # nothing runs; a value that is not a non-blank string runs nothing and adds a line that says
13
+ # so. An agent's copy does not play it.
14
+ # - The Node of the dependencies: installed (`npm ci`) under another binary interface of Node than
15
+ # the current one, the project joins « Manque » with `npm ci` (scripts/abi-des-dependances.mjs).
16
+ # - The languages: no language declared in the column « Langage » of the table of the components of
17
+ # docs/ARCHITECTURE.md (scripts/langages.mjs) joins « Manque » as « le langage de chaque
18
+ # paquet », with the grill, or with `npx grillhouse maj` for a declaration of a former version.
19
+ # A document that holds a field <…> of its template stays under « Pas encore renseignés ».
20
+ # - The plugins: scripts/greffons.mjs --absents reads `.claude/settings.json` and
21
+ # `claude plugin list --json` (each call stopped after 5 s). Each declared plugin not installed
22
+ # joins « Manque » as « le greffon <id> », the missing claude command as « la commande claude »
23
+ # (with `npx grillhouse maj`), a failed or stopped reading as « la lecture des greffons … »; the
24
+ # same reading names the mod installed at another version than the package, with the command
25
+ # that aligns it. An agent's copy does not read them.
26
+ # - The worker of Temporal on a former version after a change of `grillhouse.outil` (`grillhouse
27
+ # temporal perime`) joins « Manque » with `npx grillhouse temporal installer`. An agent's copy
28
+ # does not read it.
13
29
  #
14
- # The Node of the dependencies: a project whose dependencies were installed (`npm ci`) under
15
- # another binary interface of Node than the current one joins « Manque », with `npm ci`
16
- # (scripts/abi-des-dependances.mjs).
30
+ # The supervisor (scripts/superviseur.mjs): the session takes the lock of its repository; when its
31
+ # opening takes it (not when it keeps it) it receives « Les questions des circuits » then « Les
32
+ # circuits du dépôt »; a second session while the first lives receives first « Un autre
33
+ # superviseur tient ce dépôt ». An agent's copy takes nothing and receives nothing.
17
34
  #
18
- # The project's languages: a project whose docs/ARCHITECTURE.md declares none (the column
19
- # « Langage » of its table of the components, scripts/langages.mjs) joins « Manque » as « le
20
- # langage de chaque paquet », with the grill, which writes it, or with `npx grillhouse maj` for a
21
- # project that holds the declaration of a former version, which it reports. A document of the project that holds
22
- # a field <…> of its template (the template's docs/ARCHITECTURE.md declares its language, its
23
- # other fields left to the grill) is not yet written: it stays under « Pas encore renseignés », and
24
- # the line of the night waits for it.
25
- #
26
- # The frame's plugins: scripts/greffons.mjs --absents reads `.claude/settings.json` and
27
- # `claude plugin list --json` (each call stopped after 5 s). Each declared plugin not installed for
28
- # the project joins « Manque » as « le greffon <id> », the missing claude command as « la commande
29
- # claude » (the line gives `npx grillhouse maj`, which installs them), and a reading that fails
30
- # or is stopped as « la lecture des greffons … ». The same reading names the frame's mod installed
31
- # for the project at another version than the package @roomi-fields/grillhouse, both released under
32
- # one version, with the command that aligns the one behind. An agent's copy does not read them.
33
- #
34
- # The worker of Temporal on a former version after a rise of `grillhouse.outil` (see below, the
35
- # detection `grillhouse temporal perime`): joins « Manque » with `npx grillhouse temporal installer`.
36
- # An agent's copy does not read it.
37
- #
38
- # One supervisor per project (scripts/superviseur.mjs): the session takes the lock of its
39
- # repository, and, when its opening takes the lock (not when it keeps it, after a compaction or a
40
- # /clear), receives the section « Les questions des circuits » (the greffon pushes the questions, the answer
41
- # acknowledges them; no wait to launch), then « Les circuits du dépôt » when there are some: each circuit that runs, each one stopped on a
42
- # question with its question and the command that answers it, each one whose workflow ended
43
- # without its issue with the command that resumes it; a second session, while the first one lives, receives first the section « Un autre
44
- # superviseur tient ce dépôt », which asks it to say so to the owner and to launch no circuit. An
45
- # agent's copy and a session of a role the circuit launches take nothing and receive nothing.
46
- #
47
- # A session of a role agent of the frame (`claude --agent <rôle>`, the circuit's sessions: the
48
- # hook's input names it, `agent_type`, bare or as `grillhouse:<rôle>`, and the frame's plugin
49
- # defines it, `$CLAUDE_PLUGIN_ROOT/agents/<rôle>.md`, the plugin whose hook runs this script) receives nothing:
50
- # what the project lacks is the supervisor's to deal with.
35
+ # A session of a role of the frame (`claude --agent <rôle>`: the hook's input names it,
36
+ # `agent_type`, bare or `grillhouse:<rôle>`, and the plugin defines it,
37
+ # `$CLAUDE_PLUGIN_ROOT/agents/<rôle>.md`) receives nothing.
51
38
  set -uo pipefail
52
39
 
53
40
  # The project is Claude Code's, else the working directory; the frame's scripts are this one's
@@ -59,12 +46,6 @@ entree=
59
46
  role="$(printf '%s' "$entree" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{const a=JSON.parse(s).agent_type;if(typeof a==="string"&&/^[A-Za-z0-9_:-]+$/.test(a))process.stdout.write(a)}catch{}})' 2>/dev/null)"
60
47
  role="${role#grillhouse:}"
61
48
  [ -n "$role" ] && [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && [ -f "$CLAUDE_PLUGIN_ROOT/agents/$role.md" ] && exit 0
62
- if [ -f "$root/.claude/template" ]; then
63
- echo "## Gabarit Roomi's Grillhouse"
64
- echo "Ce dossier est le gabarit du framework, pas un projet : il ne s'initialise pas. Un projet neuf se crée par \`npx @roomi-fields/grillhouse init <chemin> [préfixe]\` ; sa première séance propose le grill d'initialisation."
65
- exit 0
66
- fi
67
-
68
49
  # One supervisor per project: the lock of the repository, or the section that says who holds it.
69
50
  superviseur="$(node "$ici/superviseur.mjs" "$root" 2>/dev/null)"
70
51
  [ -z "$superviseur" ] || echo "$superviseur"
@@ -1,6 +1,5 @@
1
1
  // The short name of a project on the displays shared between projects (the line of the places, the
2
- // board of several projects): the key `grillhouse.sigle` of its package.json (grillhouse-1lf, the
3
- // owner's word of 2026-11-12), else its ticket prefix (`issue-prefix` of .beads/config.yaml,
2
+ // board of several projects): the key `grillhouse.sigle` of its package.json, else its ticket prefix (`issue-prefix` of .beads/config.yaml,
4
3
  // ./prefixe-des-tickets.mjs). Read like the other keys `grillhouse.*` (./circuits-cles.mjs): as
5
4
  // written, a faulty value is named by its key.
6
5
  import { readFileSync } from 'node:fs';
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- // A release of Grillhouse, its package npm, which carries the frame's plugin: Grillhouse's own
2
+ // The release command (packages/grillhouse/docs/architecture/entree.md §3.1 « Commande de sortie »,
3
+ // §5.4): a release of Grillhouse, its package npm, which carries the frame's plugin: Grillhouse's own
3
4
  // script, which no project runs (`grillhouse init` installs the template of a project alone).
4
5
  //
5
6
  // npx grillhouse sortie <x.y.z> the release's files: the package's package.json, packages/grillhouse/CHANGELOG.md
@@ -9,6 +9,8 @@
9
9
  // leaves out what a `.gitignore` names. A project that declares no language
10
10
  // (the column « Langage » of its docs/ARCHITECTURE.md) leaves out what every language of the
11
11
  // frame writes.
12
+ //
13
+ // What each language writes in the project: docs/architecture/tests.md §3.3.
12
14
  import { readdirSync } from 'node:fs';
13
15
  import path from 'node:path';
14
16
  import { LANGAGES, langage, langageDe, langagesDeclares } from './langages.mjs';
@@ -1,7 +1,8 @@
1
1
  // The table of the frame's subcommands, which `grillhouse <sous-commande>` (bin/grillhouse.mjs)
2
2
  // runs and the migrations read (a former copy of a script becomes its subcommand): one module the
3
3
  // command and the scripts import, so that no script imports the command, which is being evaluated
4
- // when it runs one.
4
+ // when it runs one. The aiguillage of each subcommand is installation.md §5.5 and §3.1
5
+ // (packages/grillhouse/docs/architecture/).
5
6
  //
6
7
  // - A subcommand of the core is named after its script, without directory nor extension
7
8
  // (`circuit`, `tableau`); `maj` runs `grillhouse-maj.mjs`, whose name already says the frame's;
@@ -8,50 +8,31 @@
8
8
  # npx grillhouse sous-modules monter <copie> --partages <liste> <commande…>
9
9
  # plays a command with the shared submodules read-only
10
10
  #
11
- # - `grillhouse.partage` in the package.json of the copy lists the paths of the submodules the
12
- # project shares (`npm pkg set 'grillhouse.partage[0]=vendor/natif'`). A shared submodule is not
13
- # set in a copy: the copy reads the one of the main repository at its usual path, through a
14
- # symbolic link marked « ignored in the copy » (`git update-index --skip-worktree`), so that
15
- # `git status` of the copy does not report it. The copy therefore reads the shared submodule at
16
- # the commit checked out in the main repository, not at the commit its own HEAD references, and
17
- # with the files the main repository holds there, untracked ones included. No repository holds
18
- # one more copy of it. Without the key, or with an empty list, nothing is shared.
11
+ # The mechanism is installation.md §4.2 (the key `partage`), under
12
+ # packages/grillhouse/docs/architecture/.
13
+ #
14
+ # - `grillhouse.partage` in the package.json of the copy lists the submodules the project shares.
15
+ # A shared submodule is not set in a copy: the copy reads the one of the main repository, at the
16
+ # commit checked out there, through a symbolic link marked `git update-index --skip-worktree`.
17
+ # Without the key, or with an empty list, nothing is shared.
19
18
  # - `pose` reads the declaration first and refuses before setting anything (exit 1, its first line
20
- # on stderr citing `grillhouse.partage` and the faulty value, or naming the shared submodule):
21
- # a value that is not a list, an element that is not a non-empty relative path inside the
22
- # repository, a path that is not a submodule of .gitmodules, a shared submodule absent or not
23
- # initialized in the main repository (never set in the copy instead). Then it puts the link of
24
- # each shared submodule back (git replaces it by an empty folder when moving a copy forward
25
- # changes the submodule's commit), sets each other submodule, one by one, at the commit of HEAD,
26
- # nested ones included (`submodule update --init --recursive --force`), and removes their
27
- # untracked files: a local modification is overwritten. A submodule that was shared and no longer
28
- # is gets its own again. A submodule that cannot be set stops it, exit 1, its first line on
29
- # stderr naming the submodule and its commit, git's output after. A submodule whose address is
30
- # local (a path or a file:// URL) is set too: the command alone carries
31
- # `-c protocol.file.allow=always`, the authorization of the file transport; no repository or
32
- # machine configuration holds it.
33
- # - The address a submodule is set from is the one the main repository uses: its
34
- # `submodule.<name>.url` (git's own rule: the local configuration wins), else the url of
35
- # .gitmodules. A copy shares the configuration of the main repository, so the pose reads it
36
- # there. The command carries that address (`-c submodule.<name>.url=…`) and, in a copy whose
37
- # submodule was already set, the `origin` remote of that submodule is moved to it first (git
38
- # fetches through `origin`, fixed at the first clone). The pose never writes the main
39
- # repository's configuration. A url relative to the superproject (`./`, `../`), in the
40
- # configuration or in .gitmodules, is resolved as `git submodule init` resolves it for the main
41
- # repository (relative_url and chop_last_dir of git), against the url of the remote the current
42
- # branch of the main repository follows (`branch.<b>.remote`), else its `origin`, else its working
43
- # tree folder. A remote url that is a local path not absolute is relative to the main repository.
44
- # Each `../` removes the last component of that url, at its last slash, else at its colon:
45
- # `host:repo.git` with `../natif.git` gives `host:natif.git`, `git@github.com:org/repo.git` with
46
- # `../../x.git` gives `git@github.com:x.git`, `upstream.git` with `../natif.git` gives `natif.git`.
47
- # One final « / » of the url goes. A local path not absolute that results is taken from the main
48
- # repository's folder, which need not exist (`../up/repo.git` with `../../natif.git` gives
49
- # `<main repository>/../up/natif.git`). A url git refuses for the main repository stops the pose
50
- # before the submodule is set — a `../` that finds neither slash nor colon left in a relative
51
- # remote url (`upstream.git` with `../../natif.git`), or in the `.` an absolute one becomes once
52
- # emptied of its components: exit 1, its first line on stderr naming the submodule, and the
53
- # main repository's configuration stays as it is. The resolved address is the one the command
54
- # carries, so a copy under .claude/worktrees/ never resolves it from its own folder.
19
+ # on stderr citing `grillhouse.partage` and the faulty value): a value that is not a list, an
20
+ # element that is not a non-empty relative path inside the repository, a path that is not a
21
+ # submodule of .gitmodules, a shared submodule absent or not initialized in the main repository.
22
+ # Then it puts the link of each shared submodule back, sets each other submodule at the commit of
23
+ # HEAD (`submodule update --init --recursive --force`) and removes their untracked files: a local
24
+ # modification is overwritten. A submodule that cannot be set stops it, exit 1, its first line
25
+ # naming the submodule and its commit. The command alone carries `-c protocol.file.allow=always`.
26
+ # - The address a submodule is set from is the main repository's: its `submodule.<name>.url`, else
27
+ # the url of .gitmodules. The command carries it (`-c submodule.<name>.url=…`) and moves the
28
+ # `origin` remote of an already set submodule to it; the main repository's configuration is
29
+ # never written. A url relative to the superproject (`./`, `../`) is resolved as
30
+ # `git submodule init` does (relative_url and chop_last_dir of git), against the url of the
31
+ # remote the current branch follows (`branch.<b>.remote`), else `origin`, else the working tree
32
+ # folder: each `../` removes the last component at its last slash, else at its colon
33
+ # (`git@github.com:org/repo.git` with `../../x.git` gives `git@github.com:x.git`). A url git
34
+ # refuses (a `../` finding neither slash nor colon left) stops the pose, exit 1, naming the
35
+ # submodule.
55
36
  # - `pose` never enters a shared submodule, nor a submodule nested in it: they belong to the main
56
37
  # repository, which neither sets nor cleans them.
57
38
  # - `garde` reads the copy as it stands: a submodule modified in `git status` (an edited or
@@ -4,7 +4,8 @@
4
4
  # the grill. Read-only; silent on every other message, including one that merely mentions structure,
5
5
  # and to a session of a role agent of the frame (`claude --agent <rôle>`: the input names it,
6
6
  # `agent_type`, bare or as `grillhouse:<rôle>`, and the frame's plugin defines it,
7
- # `$CLAUDE_PLUGIN_ROOT/agents/<rôle>.md`), whose instruction is a ticket's.
7
+ # `$CLAUDE_PLUGIN_ROOT/agents/<rôle>.md`), whose instruction is a ticket's. Mechanism: greffon.md,
8
+ # §3.2.
8
9
  entree="$(cat)"
9
10
  role="$(printf '%s' "$entree" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{const a=JSON.parse(s).agent_type;if(typeof a==="string"&&/^[A-Za-z0-9_:-]+$/.test(a))process.stdout.write(a)}catch{}})')"
10
11
  racine="${CLAUDE_PROJECT_DIR:-$PWD}"
@@ -18,6 +18,8 @@
18
18
  // stands, and nothing blocks.
19
19
  // - It never fails on the tool: without Prettier or ESLint installed in the project, an input that
20
20
  // is no JSON, a file absent or out of the project, it exits 0 and writes nothing.
21
+ //
22
+ // The hook: docs/architecture/greffon.md §3.2.
21
23
  import { existsSync, readFileSync, realpathSync, writeFileSync } from 'node:fs';
22
24
  import { createRequire } from 'node:module';
23
25
  import path from 'node:path';
@@ -1,7 +1,7 @@
1
1
  // The follower of the board (`grillhouse tableau --suivre`): one producer that follows the events
2
2
  // and, at each measure, writes the status line's text (`grillhouse-etat.txt`) and the pane's line
3
3
  // (`grillhouse-tableau.ligne`) from that one measure, in the common git directory. The status line
4
- // and the pane are readers; as watchman or `tsc --watch` keep one watch and one state.
4
+ // and the pane are readers. Mechanism: greffon.md, §5.3.
5
5
  //
6
6
  // - A measure follows an event: a change under `.beads/`, a change of the git state (HEAD, the
7
7
  // references), a change of the set of circuits (a light poll of Temporal), the end of a bd or git