@roomi-fields/grillhouse 0.49.1 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +16 -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/package.json +1 -1
  72. package/scripts/abi-des-dependances.mjs +2 -1
  73. package/scripts/activites.mjs +8 -8
  74. package/scripts/aiguillage.mjs +4 -4
  75. package/scripts/arbitrages.mjs +1 -1
  76. package/scripts/arbres-juges.mjs +2 -1
  77. package/scripts/attente-de-la-machine.mjs +10 -16
  78. package/scripts/avancement.mjs +2 -0
  79. package/scripts/base-des-workflows.mjs +2 -1
  80. package/scripts/binaires.mjs +2 -1
  81. package/scripts/branche-de-nuit.mjs +2 -1
  82. package/scripts/cadre.mjs +12 -3
  83. package/scripts/ci-de-main.mjs +2 -1
  84. package/scripts/circuit.mjs +101 -618
  85. package/scripts/circuits-cles.mjs +4 -6
  86. package/scripts/circuits-du-serveur.mjs +1 -1
  87. package/scripts/codes-de-sortie.mjs +1 -1
  88. package/scripts/coeurs-dedies.mjs +2 -4
  89. package/scripts/commande-du-langage.mjs +2 -0
  90. package/scripts/commandes-composees.mjs +3 -3
  91. package/scripts/commandes-du-path.mjs +1 -1
  92. package/scripts/composants-affectes.mjs +3 -1
  93. package/scripts/composition-des-langages.mjs +2 -0
  94. package/scripts/conformite.d.ts +2 -1
  95. package/scripts/conformite.mjs +2 -0
  96. package/scripts/consommation-des-passes.mjs +5 -4
  97. package/scripts/consommation.mjs +1 -0
  98. package/scripts/copies-finies.mjs +9 -10
  99. package/scripts/crochets.mjs +2 -1
  100. package/scripts/depart-du-ticket.mjs +2 -2
  101. package/scripts/dependances-internes.mjs +4 -2
  102. package/scripts/dernier-vert.mjs +3 -3
  103. package/scripts/dette.d.ts +2 -1
  104. package/scripts/dette.mjs +2 -0
  105. package/scripts/direct.mjs +2 -1
  106. package/scripts/disque-des-copies.mjs +1 -1
  107. package/scripts/donnees-cles.mjs +2 -0
  108. package/scripts/droits.mjs +5 -6
  109. package/scripts/echantillonneur-de-la-passe.mjs +1 -1
  110. package/scripts/effets.mjs +3 -3
  111. package/scripts/engendres.mjs +1 -1
  112. package/scripts/enveloppe/codes.mjs +1 -0
  113. package/scripts/enveloppe/enveloppe.mjs +61 -84
  114. package/scripts/enveloppe/lancer.sh +5 -3
  115. package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
  116. package/scripts/enveloppe/travail-de-la-copie.mjs +11 -16
  117. package/scripts/etapes.mjs +10 -9
  118. package/scripts/etat-du-depot.mjs +2 -1
  119. package/scripts/faits-du-circuit.mjs +19 -19
  120. package/scripts/fermeture-de-la-machine.mjs +2 -2
  121. package/scripts/fichier-du-poste.mjs +3 -4
  122. package/scripts/fichiers-nommes.mjs +2 -1
  123. package/scripts/file-des-tickets.mjs +3 -1
  124. package/scripts/flux-de-la-nuit.mjs +2 -1
  125. package/scripts/flux-des-paquets.mjs +2 -1
  126. package/scripts/fusion-du-changelog.mjs +2 -1
  127. package/scripts/garde-de-la-memoire.mjs +1 -1
  128. package/scripts/gardes-du-cadre.mjs +2 -0
  129. package/scripts/greffons.mjs +2 -2
  130. package/scripts/grillhouse-maj.mjs +55 -150
  131. package/scripts/groupe-cles.mjs +2 -1
  132. package/scripts/index-interfaces.mjs +2 -0
  133. package/scripts/init.mjs +2 -1
  134. package/scripts/integration/file.mjs +3 -3
  135. package/scripts/integration/integrer.mjs +5 -6
  136. package/scripts/integration/rejeu.mjs +4 -2
  137. package/scripts/integration/verdict.mjs +2 -1
  138. package/scripts/jointure.d.ts +2 -1
  139. package/scripts/journal-des-etats.mjs +2 -2
  140. package/scripts/langages/cargo/binaires.mjs +3 -2
  141. package/scripts/langages/cargo/clippy.mjs +2 -0
  142. package/scripts/langages/cargo/commandes.mjs +72 -17
  143. package/scripts/langages/cargo/composants.mjs +4 -3
  144. package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
  145. package/scripts/langages/cargo/etiquettes.mjs +87 -0
  146. package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
  147. package/scripts/langages/cargo/exemples.mjs +6 -4
  148. package/scripts/langages/cargo/frontieres.mjs +2 -0
  149. package/scripts/langages/cargo/index-interfaces.mjs +2 -0
  150. package/scripts/langages/cargo/index.mjs +8 -9
  151. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
  152. package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
  153. package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
  154. package/scripts/langages/cargo/sccache.mjs +10 -6
  155. package/scripts/langages/cargo/squelette.mjs +2 -0
  156. package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
  157. package/scripts/langages/cargo/verdict.mjs +8 -6
  158. package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
  159. package/scripts/langages/typescript/code-mort.mjs +2 -1
  160. package/scripts/langages/typescript/composants.mjs +7 -5
  161. package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -1
  162. package/scripts/langages/typescript/consommateurs.d.ts +2 -1
  163. package/scripts/langages/typescript/consommateurs.mjs +5 -7
  164. package/scripts/langages/typescript/construire.mjs +2 -1
  165. package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
  166. package/scripts/langages/typescript/exemples.mjs +2 -1
  167. package/scripts/langages/typescript/frontieres.mjs +3 -2
  168. package/scripts/langages/typescript/index-interfaces.mjs +3 -2
  169. package/scripts/langages/typescript/index.mjs +3 -2
  170. package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
  171. package/scripts/langages/typescript/lecteurs.mjs +2 -1
  172. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
  173. package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
  174. package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
  175. package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
  176. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
  177. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
  178. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
  179. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
  180. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
  181. package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
  182. package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
  183. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
  184. package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
  185. package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
  186. package/scripts/langages/typescript/module-absent.mjs +2 -1
  187. package/scripts/langages/typescript/parcours.mjs +2 -1
  188. package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
  189. package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
  190. package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
  191. package/scripts/langages/typescript/resumes.mjs +2 -1
  192. package/scripts/langages/typescript/squelette.mjs +2 -1
  193. package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
  194. package/scripts/langages/typescript/tests-de-nuit.mjs +5 -4
  195. package/scripts/langages/typescript/tests-du-poste.mjs +2 -1
  196. package/scripts/langages/typescript/tests.mjs +44 -66
  197. package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
  198. package/scripts/langages/typescript/tranches.mjs +2 -1
  199. package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
  200. package/scripts/langages/typescript/verdict.mjs +2 -1
  201. package/scripts/langages/typescript/verifier.mjs +64 -99
  202. package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
  203. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
  204. package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
  205. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
  206. package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
  207. package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
  208. package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
  209. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
  210. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
  211. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
  212. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
  213. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
  214. package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
  215. package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
  216. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
  217. package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
  218. package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
  219. package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
  220. package/scripts/langages-des-paquets.mjs +3 -1
  221. package/scripts/langages.mjs +5 -3
  222. package/scripts/lecture-unique.mjs +2 -1
  223. package/scripts/lint-des-scripts.mjs +1 -0
  224. package/scripts/machine.mjs +4 -4
  225. package/scripts/matiere-de-test.d.ts +2 -1
  226. package/scripts/matieres-lues.mjs +2 -0
  227. package/scripts/mesure/avancement.mjs +1 -1
  228. package/scripts/mesure/base-de-passe.mjs +10 -13
  229. package/scripts/mesure/pression.mjs +3 -4
  230. package/scripts/mesure-de-la-machine.mjs +2 -1
  231. package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
  232. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
  233. package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
  234. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
  235. package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
  236. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
  237. package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
  238. package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
  239. package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
  240. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
  241. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
  242. package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
  243. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
  244. package/scripts/migrations/0.33.0-node-26.mjs +5 -8
  245. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
  246. package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
  247. package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
  248. package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
  249. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
  250. package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
  251. package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
  252. package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
  253. package/scripts/migrations-des-gardes.mjs +2 -0
  254. package/scripts/migrations.mjs +4 -0
  255. package/scripts/nuit.sh +7 -5
  256. package/scripts/outil.mjs +2 -1
  257. package/scripts/outils-cles.mjs +6 -6
  258. package/scripts/paquet-npm.mjs +3 -2
  259. package/scripts/paquet.mjs +3 -4
  260. package/scripts/paquets.d.ts +1 -1
  261. package/scripts/paquets.mjs +2 -0
  262. package/scripts/passe-de-la-machine.mjs +9 -12
  263. package/scripts/places-de-la-machine.mjs +36 -53
  264. package/scripts/places-du-serveur.mjs +5 -4
  265. package/scripts/plafond-de-la-machine.mjs +19 -19
  266. package/scripts/poussee-retiree.mjs +2 -1
  267. package/scripts/prefixe-des-tickets.mjs +1 -0
  268. package/scripts/preparation.mjs +2 -1
  269. package/scripts/recommencer.mjs +2 -2
  270. package/scripts/references-changees.mjs +1 -1
  271. package/scripts/registre-des-resultats.mjs +3 -1
  272. package/scripts/regles-des-places.mjs +4 -6
  273. package/scripts/repli-de-la-nuit.mjs +2 -1
  274. package/scripts/reponses-du-circuit.mjs +4 -3
  275. package/scripts/reprise.mjs +3 -2
  276. package/scripts/resultats.mjs +71 -93
  277. package/scripts/retirer-copie.sh +2 -1
  278. package/scripts/retirer-les-copies-finies.mjs +2 -1
  279. package/scripts/seances.mjs +3 -2
  280. package/scripts/services-du-noyau.mjs +2 -0
  281. package/scripts/session-start.sh +0 -6
  282. package/scripts/sortie.mjs +2 -1
  283. package/scripts/sources.mjs +2 -0
  284. package/scripts/sous-commandes.mjs +2 -1
  285. package/scripts/sous-modules.sh +24 -43
  286. package/scripts/style-a-l-ecriture.mjs +2 -0
  287. package/scripts/tableau-des-composants.mjs +5 -7
  288. package/scripts/taches-du-graphe.mjs +3 -0
  289. package/scripts/ticket-du-circuit.mjs +1 -1
  290. package/scripts/transitions.mjs +15 -15
  291. package/scripts/un-commit-par-ticket.mjs +2 -1
  292. package/scripts/verdict-de-la-nuit.mjs +2 -1
  293. package/scripts/verrou-de-fichier.mjs +1 -0
  294. package/scripts/verrous/commande.mjs +2 -1
  295. package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
  296. package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
  297. package/scripts/verrous/verrou.mjs +3 -3
  298. package/scripts/workflows-du-cadre.mjs +2 -1
  299. package/skills/developpeur/SKILL.md +6 -10
  300. package/skills/explorateur/SKILL.md +1 -1
  301. package/skills/grill/SKILL.md +4 -5
  302. package/skills/grill/references/paquets.md +5 -8
  303. package/skills/pitmaster/SKILL.md +176 -268
  304. package/skills/pitmaster/references/cadre.md +7 -6
  305. package/skills/pitmaster/references/consigne-agent.md +36 -32
  306. package/skills/pitmaster/references/tour.md +2 -2
  307. package/skills/redacteur/references/documents-d-un-composant.md +9 -8
  308. package/skills/testwriter/SKILL.md +8 -11
@@ -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';
@@ -59,12 +59,6 @@ entree=
59
59
  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
60
  role="${role#grillhouse:}"
61
61
  [ -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
62
  # One supervisor per project: the lock of the repository, or the section that says who holds it.
69
63
  superviseur="$(node "$ici/superviseur.mjs" "$root" 2>/dev/null)"
70
64
  [ -z "$superviseur" ] || echo "$superviseur"
@@ -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
@@ -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,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';
@@ -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