@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,110 +1,87 @@
1
1
  #!/usr/bin/env node
2
2
  // The envelope of a role agent: runs a command (the agent's `claude` session) inside a bwrap
3
- // sandbox that shows the agent the whole copy and opens in writing only the packages of its plan,
4
- // as the visibility of Bazel and the module boundaries of Nx refuse a dependency while the code
5
- // stays readable. `npx grillhouse enveloppe <copie> <paquets> <rôle> -- <commande…>`
3
+ // sandbox that shows the agent the whole copy and opens in writing only the packages of its plan.
4
+ // `npx grillhouse enveloppe <copie> <paquets> <rôle> -- <commande…>`: <copie> is the agent's git
5
+ // worktree, <paquets> the plan (the paths it names inside it, in the variable's form,
6
+ // `ecrireLaListe` of paquets-du-plan.mjs), <rôle> the agent's role. Architecture:
7
+ // docs/architecture/machine.md (§2.5, §5.5 « Les montages de l'enveloppe »).
6
8
  //
7
9
  // - The root `/` is read-only, the copy included, its indexes (`.codegraph`, `.rtfm`) and every
8
- // package outside the plan in sight. Only these are written: the packages of the plan, below; a
9
- // `/tmp` empty and proper to the session, where only the scratchpad directory of the copy comes
10
- // back, the session's working directory inside it (`dossierDeTravail`; Claude Code's
11
- // scratchpads root, `CLAUDE_CODE_TMPDIR` else the launch's temporary directory, so that under a
12
- // pass it lies in the base of the pass and goes with it); the npm cache; the Claude session
13
- // state (`~/.claude` and the copy's project directory), whose configuration, skills, plugins and
14
- // other projects stay read-only. `~/.claude.json` is a throwaway copy: the session writes it,
15
- // the real file does not change. The tickets base (the main tree's `.beads/`) is written: the
16
- // agent claims, plans, hands over and files what it finds. Every `.git`, the copy's included,
17
- // stays read-only: the agent reads the git state and delivers a patch (`git diff`, and
18
- // `git diff --no-index /dev/null <file>` for a new file); it never commits.
10
+ // package outside the plan. Written: the packages of the plan; a `/tmp` empty and proper to the
11
+ // session, where only the scratchpad directory of the copy comes back, the session's working
12
+ // directory inside it (`dossierDeTravail`; Claude Code's scratchpads root, `CLAUDE_CODE_TMPDIR`
13
+ // else the launch's temporary directory); the npm cache; the Claude session state (`~/.claude`
14
+ // and the copy's project directory), whose configuration, skills, plugins and other projects
15
+ // stay read-only; the tickets base (the main tree's `.beads/`). `~/.claude.json` is a throwaway
16
+ // copy. Every `.git`, the copy's included, stays read-only: the agent delivers a patch
17
+ // (`git diff`, and `git diff --no-index /dev/null <file>` for a new file); it never commits.
19
18
  // - Where the tools of the project's language write is what its module declares (`sorties`,
20
- // scripts/jointure.d.ts; `sortiesDuLangage`), as a sandbox of Bazel opens in writing what the
21
- // action declares: its stores, in the main tree (`//…`, TypeScript's cache of Turborepo, shared
22
- // by every copy) or in the home (`~/…`, cargo's registry, git dependencies, advisories and the
23
- // lock and cache files at the root of `~/.cargo`), are written, so the agent's runs of `npm
24
- // test` keep their work there, as every copy's runs do; what its tools read (cargo's home,
25
- // `~/.cargo` with its `env`, its configuration and its binaries, and rustup's `~/.rustup`) comes
26
- // back read-only under them, nothing a shell sources written; its outputs in the copy (cargo's
27
- // `target`) come back in writing; and its outputs proper to the session (TypeScript's `.turbo`
28
- // and `.cache-outils`, the cache of Vite included) are below. Each written path is created on disk before the session,
29
- // a directory or, without a trailing `/` in the module's list, an empty file, so that bwrap
30
- // mounts it.
31
- // - The home and the session directories (`$XDG_RUNTIME_DIR`, `/run/user/<uid>`) show only what
32
- // the envelope declares: each starts empty and sealed read-only, and the home gets back
33
- // `~/.claude`, `~/.claude.json`, the npm cache, the paths of `MAISON_EN_LECTURE` (claude, node,
34
- // git and the session's tools) and the repository. No socket of the session comes back. Of
35
- // the machine's credentials, only claude's own are in sight: the file of the remote cache of
36
- // the poste (`~/.config/grillhouse/`, scripts/fichier-du-poste.mjs) stays out, and the
37
- // session's runs keep to the local cache of the main tree that every copy shares.
19
+ // scripts/jointure.d.ts; `sortiesDuLangage`): its stores, in the main tree (`//…`, TypeScript's
20
+ // cache of Turborepo, shared by every copy) or in the home (`~/…`, cargo's registry, git
21
+ // dependencies, advisories and the lock and cache files at the root of `~/.cargo`), are
22
+ // written; what its tools read (`~/.cargo` with its `env`, its configuration and its binaries,
23
+ // and `~/.rustup`) comes back read-only under them; its outputs in the copy (cargo's `target`)
24
+ // come back in writing; its outputs proper to the session (TypeScript's `.turbo` and
25
+ // `.cache-outils`, the cache of Vite) are empty and proper to it. Each written path is created
26
+ // on disk before the session, a directory or, without a trailing `/` in the module's list, an
27
+ // empty file, so that bwrap mounts it.
28
+ // - The home and the session directories (`$XDG_RUNTIME_DIR`, `/run/user/<uid>`) start empty and
29
+ // sealed read-only; the home gets back `~/.claude`, `~/.claude.json`, the npm cache, the paths
30
+ // of `MAISON_EN_LECTURE` (claude, node, git and the session's tools) and the repository. No
31
+ // socket of the session comes back. The file of the remote cache of the poste
32
+ // (`~/.config/grillhouse/`, scripts/fichier-du-poste.mjs) stays out.
38
33
  // - A project that names its published version (`grillhouse.outil`) gets `~/.cache/grillhouse/outil`
39
34
  // read-only, the version installed by the envelope before the session starts: the write lock
40
35
  // runs on that version, never on the code of the copy it guards.
41
36
  // - The tools of the project (`grillhouse.outils` of the package.json of the main tree, never of
42
- // the copy, so that an agent never opens a path for its next session; `{ "<VARIABLE>":
43
- // "<chemin>" }`, read by scripts/outils-cles.mjs), as Bazel declares what an action sees out of
44
- // its sandbox and the environment it gets: each path comes back read-only after the declared
45
- // paths of the home, before the copy and the packages of the plan, which come back in writing
46
- // over it, and each variable reaches the session, the path resolved. A tool never covers a mount
47
- // of the envelope: a path is refused when it is `/`, the home or holds it, holds the main tree,
48
- // `/tmp`, the temporary directories, `~/.claude`, the scratchpads, the npm cache or a session
49
- // directory, or lies under a hidden directory of the first level of the home (`~/.ssh`,
50
- // `~/.gnupg`, `~/.aws`, `~/.config`…) but `~/.local` and `~/.cache`, or lies under or holds the
51
- // keyrings `~/.local/share/keyrings`; a link is judged by its target too. A faulty key refuses the
52
- // envelope, by its name, before anything is prepared.
53
- // - The session gets only the environment the envelope declares (`environnementDeLaSeance`), as
54
- // sudo's env_reset and bwrap's --clearenv give it: the base of a login session, claude's own
55
- // configuration and credentials (`ANTHROPIC_*`, `CLAUDE_CODE_OAUTH_TOKEN`), the author of its
56
- // comments at the ticket (`BEADS_ACTOR`, which bd reads), the npm cache it
57
- // mounts, `npm_config_ignore_scripts=true`, and `TMPDIR`, `TMP` and `TEMP`, the session's working
58
- // directory, where `mktemp`, `os.tmpdir()` and Python's `tempfile` write: under a launch, in the
59
- // temporary directory of the ticket (scripts/enveloppe/lancer.sh), which goes with the ticket. With it npm runs no lifecycle script (`npm install` leaves the
60
- // `prepare` that writes under the read-only `.git`; the launcher installs outside the session),
61
- // while `npm test` and `npm run <script>` still run their script, without its `pre` or `post`
62
- // (npm's `ignore-scripts`, docs/content/using-npm/config.md); no script of the frame has one. bwrap
63
- // starts with that environment alone, so no other variable of the machine (`GH_TOKEN`,
64
- // `NPM_TOKEN`…) enters, by name or by argument. The session also gets `GRILLHOUSE_ENVELOPPE`, the
65
- // packages of the plan (`paquets-du-plan.mjs`): the frame's commands build, judge and write those
66
- // packages only, and its lock refuses a write out of them. A declared variable that names a path
67
- // (`VARIABLES_DE_CHEMIN`) enters only when its path is in sight inside the envelope, tested there
68
- // before the command runs. The session has its own process space: it reads the environment of
69
- // no process of the machine.
37
+ // the copy; `{ "<VARIABLE>": "<chemin>" }`, read by scripts/outils-cles.mjs): each path comes
38
+ // back read-only after the declared paths of the home, before the copy and the packages of the
39
+ // plan, which come back in writing over it, and each variable reaches the session, the path
40
+ // resolved. A tool never covers a mount of the envelope: a path is refused when it is `/`, the
41
+ // home or holds it, holds the main tree, `/tmp`, the temporary directories, `~/.claude`, the
42
+ // scratchpads, the npm cache or a session directory, or lies under a hidden directory of the
43
+ // first level of the home (`~/.ssh`, `~/.gnupg`, `~/.aws`, `~/.config`…) but `~/.local` and
44
+ // `~/.cache`, or lies under or holds the keyrings `~/.local/share/keyrings`; a link is judged
45
+ // by its target too. A faulty key refuses the envelope, by its name, before anything is
46
+ // prepared.
47
+ // - The session gets only the environment the envelope declares (`environnementDeLaSeance`): the
48
+ // base of a login session, claude's own configuration and credentials (`ANTHROPIC_*`,
49
+ // `CLAUDE_CODE_OAUTH_TOKEN`), the author of its comments at the ticket (`BEADS_ACTOR`), the npm
50
+ // cache, `npm_config_ignore_scripts=true` (npm runs no lifecycle script; `npm test` and
51
+ // `npm run <script>` still run their script, without its `pre` or `post`), and `TMPDIR`, `TMP`
52
+ // and `TEMP`, the session's working directory (under a launch, the temporary directory of the
53
+ // ticket, scripts/enveloppe/lancer.sh). No other variable of the machine (`GH_TOKEN`,
54
+ // `NPM_TOKEN`…) enters. It also gets `GRILLHOUSE_ENVELOPPE`, the packages of the plan
55
+ // (`paquets-du-plan.mjs`): the frame's commands build, judge and write those packages only, and
56
+ // its lock refuses a write out of them. A declared variable that names a path
57
+ // (`VARIABLES_DE_CHEMIN`) enters only when its path is in sight inside the envelope. The
58
+ // session has its own process space.
70
59
  // - A declared path that is a symbolic link, or that holds one among its components, comes back as
71
60
  // that link, and its target with it (`avecLiens`); a store, a read or a written output is mounted
72
- // at its real path, never at a link, by that same mechanism.
61
+ // at its real path, never at a link.
73
62
  // - A worktree of the repository under an emptied directory (the home, `/tmp`) comes back
74
- // read-only, `.git` included; the copy's packages of the plan and the tickets base are then
75
- // written as above. The copy of another ticket is an optional mount (`--ro-bind-try`): its
76
- // circuit removes it at any moment, and the session leaves without it.
63
+ // read-only, `.git` included. The copy of another ticket is an optional mount
64
+ // (`--ro-bind-try`): its circuit removes it at any moment, and the session leaves without it.
77
65
  // - An envelope on the main tree is refused, so is a plan that names no package, and so is a path
78
66
  // of the plan that does not exist; when it is the name of a package of the copy, the refusal
79
67
  // gives its path.
80
- // - <copie> is the agent's git worktree; <paquets> is the plan, the paths it names inside it
81
- // (`packages/a`, or `src/parser` in a one-package project), in the variable's form
82
- // (`ecrireLaListe` of paquets-du-plan.mjs); <rôle> is the agent's role (`testwriter`,
83
- // `developpeur`…).
84
68
  // - The plan writes, for each of its paths, the component of the copy that holds it (`ecritsDuPlan`,
85
69
  // the components of the module of the language, `paquetsDuLangage`: a package of TypeScript, a
86
- // crate of cargo), as a sandbox of Bazel or of Nix opens in writing only
87
- // what the action declares: the rest of the copy is read-only, the folders of its root that no
88
- // package holds (`libraries/`, `spec/`) included, and a write there fails on « Read-only file
89
- // system », which the agent sees. Where the language's tools write at the root of the copy is
90
- // then an empty directory proper to the session, or comes back in writing, as its module
91
- // declares. A component writes itself alone, a crate or a package, `src/parser` of a
92
- // one-package project included (a component of the module typescript), as does a package out of
93
- // the frame (`docs/agents/hors-cadre.txt`). A path that no component holds (a folder of the
94
- // root, `scripts`; `.`) writes the package that holds it, the root: the copy stays written, its
95
- // `.git` read-only.
70
+ // crate of cargo); the rest of the copy is read-only, the folders of its root that no package
71
+ // holds (`libraries/`, `spec/`) included, and a write there fails on « Read-only file system ».
72
+ // A component writes itself alone, `src/parser` of a one-package project included, as does a
73
+ // package out of the frame (`docs/agents/hors-cadre.txt`). A path that no component holds (a
74
+ // folder of the root, `scripts`; `.`) writes the package that holds it, the root: the copy
75
+ // stays written, its `.git` read-only.
96
76
  // - The package of the shared test material is every component of <copie> whose `package.json`
97
77
  // exports `./test-fixtures` (`matieres` of the module of the language). It is mounted after the
98
78
  // packages of the plan: written for the `testwriter`, read-only for every other role, in the
99
79
  // plan or not. For such a role, where a run of its tests writes in it (the module's outputs
100
80
  // proper to the session: Turborepo's task logs, Vite's cache) is an empty directory proper to
101
- // the session, as Bazel writes a test's logs out of its source: what is written there leaves no
102
- // trace. The envelope creates each of them on disk, empty, before the session, so that bwrap
103
- // mounts over it inside the read-only package.
81
+ // the session, created on disk before it, so that bwrap mounts over it.
104
82
  // - The lock files of the versions at the root of the copy (`manifestes.verrous` of the module of
105
- // the language: cargo's Cargo.lock), which a run of the tests brings in line with the
106
- // dependencies of the tests the testwriter declares, come back in writing for the `testwriter`
107
- // alone, when the plan leaves the root read-only and the file exists.
83
+ // the language: cargo's Cargo.lock) come back in writing for the `testwriter` alone, when the
84
+ // plan leaves the root read-only and the file exists.
108
85
  // - The exit codes are named in `codes.mjs`.
109
86
  import { execFileSync, spawnSync } from 'node:child_process';
110
87
  import {
@@ -1,7 +1,9 @@
1
1
  #!/usr/bin/env bash
2
2
  # Launches a role agent on one ticket, as its own Claude session inside the envelope of its
3
3
  # plan, the packages it writes (one session of the testwriter or the developpeur for the whole
4
- # ticket, `.` as its component and the plan as `--paquets`, grillhouse-3uv.95.6). The supervisor runs it in the background and is told when the session ends.
4
+ # ticket, `.` as its component and the plan as `--paquets`). The supervisor runs it in the
5
+ # background and is told when the session ends. Architecture: docs/architecture/machine.md (§3.1,
6
+ # §5.5).
5
7
  #
6
8
  # npx grillhouse lancer [--modele <m>] [--effort <e>] [--seance <id> | --reprise <id>] [--paquets <liste>] [--fiche <sorte>] <ticket> <rôle> <composant> <fichier de consigne>
7
9
  #
@@ -74,7 +76,7 @@
74
76
  # input from a temporary file the launcher writes and removes (an argument may not pass the
75
77
  # 128 KiB Linux allows one, MAX_ARG_STRLEN), the instruction file
76
78
  # followed by the section « Ce que les composants d'avant publient », for each package of the
77
- # plan (one part per package when the plan holds several, grillhouse-3uv.95.6): for each
79
+ # plan (one part per package when the plan holds several): for each
78
80
  # component whose `## Consommateurs` section names the package, its line, the names of the
79
81
  # elements declared for the package, and the address of the rubric « Rend » of its frame, the
80
82
  # rest of its elements left to the index of the interfaces (`grillhouse index-interfaces
@@ -96,7 +98,7 @@
96
98
  # - A role that ends on a sheet (scripts/resultats.mjs: the testwriter, the developpeur) runs with
97
99
  # `--output-format json --json-schema <its schema>` (`npx grillhouse resultats --schema
98
100
  # <rôle>`); --fiche <sorte> names the schema of a sheet that is not its role's (`geste`, the
99
- # explorateur's gesture of a mechanical ticket, grillhouse-sos), taking a value as --modele does:
101
+ # explorateur's gesture of a mechanical ticket), taking a value as --modele does:
100
102
  # claude's JSON result, its sheet in `structured_output`, goes to `resultat.json` in the folder
101
103
  # of the session (.claude/worktrees/<ticket>.travail/seances/<id>/, <id> the session's
102
104
  # --seance or --reprise, `courante` without one), which a launch removes first and the circuit
@@ -1,12 +1,10 @@
1
1
  // The packages of the plan of the envelope a command runs in. The envelope names them to every
2
2
  // command of its session, in the variable `GRILLHOUSE_ENVELOPPE`: the list of the paths the plan
3
3
  // names inside the copy (`packages/a`, or `src/parser` in a one-package project), joined by the
4
- // separator of a list of paths (`path.delimiter`, as NODE_PATH and PATH join theirs). As the
5
- // visibility of Bazel and the module boundaries of Nx refuse a dependency while the code stays
6
- // readable, the session reads the whole copy and writes these packages only: a command of the
7
- // frame that reads the list builds, judges and writes them alone.
8
- //
9
- // This module uses Node alone, as the modules of scripts/paquets.mjs.
4
+ // separator of a list of paths (`path.delimiter`). The session reads the whole copy and writes
5
+ // these packages only: a command of the frame that reads the list builds, judges and writes them
6
+ // alone. This module uses Node alone, as the modules of scripts/paquets.mjs. Architecture:
7
+ // docs/architecture/machine.md (§4.1, §5.5).
10
8
  import path from 'node:path';
11
9
  import { paquets } from '../paquets.mjs';
12
10
 
@@ -4,7 +4,8 @@
4
4
  // (scripts/circuit.mjs, `avantLaPasse`), in the copy alone: git's stash (refs/stash) is common to
5
5
  // every copy of a repository, so the work never goes there; the copy keeps it, as a merge or a
6
6
  // rebase in conflict does (its conflicts marked in the files, the unmerged entries in its own
7
- // index).
7
+ // index). Architecture: docs/architecture/machine.md (§5.5), which does not describe the carrying
8
+ // of the work of a copy.
8
9
  //
9
10
  // node scripts/enveloppe/travail-de-la-copie.mjs reporter <copie> <base> <pointe>
10
11
  // node scripts/enveloppe/travail-de-la-copie.mjs preparer <copie> [<cible>]
@@ -17,8 +18,7 @@
17
18
  // package.json, the installation (`npm install --no-save`, under that mount) when node_modules
18
19
  // is missing or the lock file is newer than the installation (`node_modules/.package-lock.json`).
19
20
  // It prints on stdout the list its pose fixes, its messages on stderr; exit 1 on the first step
20
- // that fails, named, its output after (BPScript: the lock file changed 27 times in two weeks,
21
- // and the submodule vendor/bp3-engine, both stale in a copy moved forward without them).
21
+ // that fails, named, its output after.
22
22
  // - `reporter`: the lot from <base> to <pointe> (`git diff --binary`), a branch the queue sent
23
23
  // back, becomes local work of the copy: applied three ways (`git apply --3way`), a conflict
24
24
  // marked in its file, the rest of the lot there; the index is then left as HEAD has it, so that
@@ -67,19 +67,14 @@
67
67
  // again in the copy, the lot applied, with the tools of the project (`grillhouse.outils`), out
68
68
  // of the envelope. The output of a command that passes is a message, never the data of the
69
69
  // preparation: it goes where the faults go (stderr, the log of the preparation for the circuit),
70
- // so the standard output of `preparer` holds the list of its pose alone (BPScript, 2026-11-22:
71
- // the output of « npm install --package-lock-only » read as the list of the shared submodules,
72
- // the mount refused on « usage: sous-modules.sh … »). A command that fails stops, exit 1, the
73
- // command, its code and its output named, the rest of the lot in the copy; a faulty key
74
- // refuses, named, before the copy is
75
- // touched (OSC Bridge, 2026-10-31: four conflicts in one day on the generated files of synthhub
76
- // and open-synth-descriptors, each copy moved by hand). A lot in conflict on another file is not
77
- // regenerated: its conflicts come first. A reference the frame generates itself and writes in
78
- // full (`fichiersEngendres` of the module of the language, its `entiers`: the index of the
79
- // interfaces, the turbo.json of the packages) follows the same rule, with no key of the project:
80
- // main's version, then the frame's generator, whose code is not read, a real failure aside
81
- // (BPScript, 2026-11-22: « UU docs/agents/index-des-interfaces.md » at the advance of two
82
- // copies). The reports of API (INTERFACE.api.md and the generated part of an INTERFACE.md) and
70
+ // so the standard output of `preparer` holds the list of its pose alone. A command that fails
71
+ // stops, exit 1, the command, its code and its output named, the rest of the lot in the copy;
72
+ // a faulty key refuses, named, before the copy is touched. A lot in conflict on another file
73
+ // is not regenerated: its conflicts come first. A reference the frame generates itself and
74
+ // writes in full (`fichiersEngendres` of the module of the language, its `entiers`: the index
75
+ // of the interfaces, the turbo.json of the packages) follows the same rule, with no key of the
76
+ // project: main's version, then the frame's generator, whose code is not read, a real failure
77
+ // aside. The reports of API (INTERFACE.api.md and the generated part of an INTERFACE.md) and
83
78
  // the debt of the guards, which the frame does not give as written in full (no `entiers`), are
84
79
  // still merged. A copy whose references the module of the language does not read (no language
85
80
  // declared) is advanced all the same, its references merged as files written by hand, and the
@@ -340,11 +335,16 @@ export function rolesDuConflit(fichiers, estUnTest) {
340
335
 
341
336
  /**
342
337
  * Whether the role <role> writes a file, as a function of the file: the testwriter those
343
- * <estUnTest> judges, the developpeur the others, any other role none (undefined).
338
+ * <estUnTest> judges, the developpeur the others, the agent of a direct (`direct`) every file, any
339
+ * other role none (undefined).
344
340
  * @param {string} role
345
341
  * @param {(fichier: string) => unknown} estUnTest
346
342
  */
347
343
  export function ecritPar(role, estUnTest) {
344
+ if (role === 'direct') {
345
+ // The agent of a direct writes tests and code together: every file is its own.
346
+ return () => true;
347
+ }
348
348
  if (role === 'testwriter') {
349
349
  return f => Boolean(estUnTest(f));
350
350
  }
@@ -1,7 +1,8 @@
1
- // The steps of a ticket, the tree of its circuit, as a pipeline of GitLab CI shows its stages and
2
- // their jobs and GitHub Actions its jobs and their steps, and the stops of its circuit: the one
3
- // list, which the circuit (scripts/circuit.mjs), the board (scripts/tableau.mjs), the bilan
4
- // (scripts/bilan.mjs) and the texts read.
1
+ // The steps of a ticket, the tree of its circuit, and the stops of its circuit: the one list,
2
+ // which the circuit (scripts/circuit.mjs), the board (scripts/tableau.mjs), the bilan
3
+ // (scripts/bilan.mjs) and the texts read. The list of the steps is told here and at circuit.md
4
+ // §5.1 alone; the gestures and the stops, at §5.4 and §5.5. The code today holds the long and the
5
+ // short circuits; the direct one is a target (circuit.md §9.1).
5
6
  //
6
7
  // - A step (ETAPES): its number (« 2 », « 4.1 »), its title, who works there (`qui`: the role
7
8
  // agents, or AUTO for a step the circuit leads itself; none for a step that only holds its
@@ -15,8 +16,8 @@
15
16
  // The tri of the discoveries (5.3) is the explorateur's too, once the queue has brought the lot
16
17
  // onto main, as Chromium and Mozilla give each new report a verdict before it is filed; so is the
17
18
  // gesture of a mechanical ticket (1.1), the command its plan names played in the copy, as Rosie
18
- // and ClangMR let a tool make a large-scale change at Google (grillhouse-sos); the role's own step
19
- // stays the plan (`etapeDuRole`).
19
+ // and ClangMR let a tool make a large-scale change at Google; the role's own step stays the plan
20
+ // (`etapeDuRole`).
20
21
  // SUITE is the tree in its order, each step before its sub-steps.
21
22
  // - A step carries as many bounded loops as it needs (`boucles`), each spanning the step and its
22
23
  // sub-steps: each its key (`cle`, which keys its count in the state's `boucles`), its label and
@@ -51,7 +52,7 @@ export const ETAPES = [
51
52
  questionnement: 'plan',
52
53
  arrets: ['questionnement'],
53
54
  // The gesture of a mechanical ticket, in the copy, in place of the testwriter and the
54
- // developpeur (grillhouse-sos).
55
+ // developpeur.
55
56
  sous: [{ numero: '1.1', titre: 'Geste mécanique', qui: [EXPLORATEUR], etat: 'geste' }],
56
57
  },
57
58
  {
@@ -101,7 +102,7 @@ export const ETAPES = [
101
102
  sous: [
102
103
  { numero: '5.1', titre: 'Commit', qui: [AUTO], etat: 'integration' },
103
104
  { numero: '5.2', titre: 'File : passe finale, main', qui: [AUTO], etat: 'file' },
104
- // The tri of the discoveries of the ticket, on the lot entered on main (grillhouse-0yu.5).
105
+ // The tri of the discoveries of the ticket, on the lot entered on main.
105
106
  { numero: '5.3', titre: 'Tri des découvertes', qui: [EXPLORATEUR], etat: 'tri' },
106
107
  ],
107
108
  },
@@ -135,7 +136,7 @@ export const ARRETS = {
135
136
  integration: 17,
136
137
  // The resumption of the integration of a lot already on main: a lot neither on main nor in the
137
138
  // copy (`lot-absent`), or a copy that does not get removed (`copie-gardee`); both at the code of
138
- // the integration stop (grillhouse-bf5.2).
139
+ // the integration stop.
139
140
  'lot-absent': 17,
140
141
  'copie-gardee': 17,
141
142
  'hors-portee': 19,
@@ -1,4 +1,5 @@
1
- // The state of a git repository and the place of the per-branch files the frame keeps beside it:
1
+ // The state of a git repository (packages/grillhouse/docs/architecture/entree.md §4.1: the trees
2
+ // judged, the last green and the results are per-repository files) and the place of the per-branch files the frame keeps beside it:
2
3
  // the layer the last green (scripts/dernier-vert.mjs) and the registry of results
3
4
  // (scripts/registre-des-resultats.mjs) share. Each keeps `{ … }` per branch under
4
5
  // `<git common dir>/grillhouse/<sous>/<branche>.json`, and each measures what counts against the
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- // One act of the circuit of a ticket for its workflow under Temporal (src/temporal/circuit/), in a
3
- // process of its own, as Buildkite's agent and GitLab's runner play each job in a child process:
4
- // the circuit's code waits on its passes synchronously, so the worker that awaits this process
5
- // keeps serving, and sends its heartbeats, while the act plays. The worker's activities
6
- // (src/temporal/circuit/activites.ts) start it in the main tree of the repository:
2
+ // One act of the circuit of a ticket for its workflow under Temporal, in a process of its own: the
3
+ // circuit's code waits on its passes synchronously, so the worker that awaits this process keeps
4
+ // serving, and sends its heartbeats, while the act plays (circuit.md §3.1, « Actes du circuit »;
5
+ // §2.3). The worker's activities (src/temporal/circuit/activites.ts) start it in the main tree of
6
+ // the repository:
7
7
  //
8
8
  // node scripts/faits-du-circuit.mjs <acte> (its input in JSON on the standard input)
9
9
  //
@@ -12,19 +12,19 @@
12
12
  // killed (scripts/seances.mjs). The act ends with its worker: once the worker is gone, it exits
13
13
  // at once, the group of its session left running, which the attempt played again waits for.
14
14
  //
15
- // The acts of a ticket write nothing outside themselves (docs/ARCHITECTURE.md, « une activité, un
16
- // effet, une clé »): each gathers the effects the circuit's code emits (scripts/effets.mjs) and
17
- // gives them back with its outcome (`effets`), its own readings seeing those it already emitted;
18
- // the workflow then plays each one in an activity of its own, the act `effet`, under the key of
19
- // that activity (`cle`: its workflow, its run, its activity, the same for each of its attempts).
20
- // A fact (the act `fait`) is read again on an attempt played again: a reading, a measure, a pass
21
- // of the checks, a regeneration and the integration (no second commit for a lot already in the
22
- // queue) replay without harm. Under the opening and a fact, a session draws its id from the key of
23
- // its activity, its event and the attempt of the activity (`idDeSeance` of scripts/seances.mjs,
24
- // `<séance>-e<essai>`), and ranges its result under it (`rangDeLaSeance`). Only an attempt Temporal plays again (its
25
- // attempt 2 or more, `essai`), at the launch the dead attempt made last, takes the result of a
26
- // session the dead attempt launched in its envelope once its group has ended, with no second
27
- // session (scripts/seances.mjs `lancer`); a session out of the envelope (the explorateur's, the
15
+ // The acts of a ticket write nothing outside themselves: each gathers the effects the circuit's
16
+ // code emits (scripts/effets.mjs) and gives them back with its outcome (`effets`), its own
17
+ // readings seeing those it already emitted; the workflow then plays each one in an activity of its
18
+ // own, the act `effet`, under the key of that activity (`cle`: its workflow, its run, its
19
+ // activity, the same for each of its attempts). A fact (the act `fait`) is read again on an
20
+ // attempt played again: a reading, a measure, a pass of the checks, a regeneration and the
21
+ // integration (no second commit for a lot already in the queue) replay without harm. Under the
22
+ // opening and a fact, a session draws its id from the key of its activity, its event and the
23
+ // attempt of the activity (`idDeSeance` of scripts/seances.mjs, `<séance>-e<essai>`), and ranges
24
+ // its result under it (`rangDeLaSeance`). Only an attempt Temporal plays again (its attempt 2 or
25
+ // more, `essai`), at the launch the dead attempt made last, takes the result of a session the
26
+ // dead attempt launched in its envelope once its group has ended, with no second session
27
+ // (scripts/seances.mjs `lancer`); a session out of the envelope (the explorateur's, the
28
28
  // questionneur's, the reviewer's), which writes nothing in the lot, is launched again. The acts of
29
29
  // the queue of a project follow the same model: each of their gestures replays without harm (main
30
30
  // moved onto a lot already on main enters it, a ticket closed stays closed, a commit pushed is
@@ -49,7 +49,7 @@
49
49
  // - `effet`, one effect an act gave back, written under the key of its activity (`ecrireLEffet`):
50
50
  // an effect not written has its outcome, said on the error output or the failure of its
51
51
  // activity;
52
- // - the acts of the queue of a project (scripts/integration/file.mjs, grillhouse-4nr.8): `situer`,
52
+ // - the acts of the queue of a project (scripts/integration/file.mjs): `situer`,
53
53
  // where the lot of a ticket stands (`situerLeLot`); `brancher`, the branch made the candidate the
54
54
  // final pass judges (`preparerLaBranche`); `avancer`,
55
55
  // main moved onto the candidate (`avancerMain`); each of `brancher` and `avancer` telling the
@@ -1,5 +1,5 @@
1
- // The closure of the machine by the supervisor, as `kubectl cordon` and `drain` close a node to new
2
- // work: the decision of each command on the reservation of the machine in place, and the lines it
1
+ // The closure of the machine by the supervisor (docs/architecture/machine.md, §5.7):
2
+ // the decision of each command on the reservation of the machine in place, and the lines it
3
3
  // says, what still runs by project and by ticket (sessions: the places of the workflow of the
4
4
  // machine; passes: their parts), « la machine est vide » when nothing plays, and how long the
5
5
  // closure has lasted. Pure: the workflow of the places (src/temporal/places/deroule.ts) bundles
@@ -1,9 +1,8 @@
1
1
  // The variables of the poste a tool of a language reads: a file of the poste, out of every
2
2
  // repository, under the frame's directory of configuration (`$XDG_CONFIG_HOME/grillhouse/`,
3
- // `~/.config/grillhouse/` without it, as the XDG Base Directory Specification places a user's
4
- // configuration), whose name the module of the language gives (`environnementDuPoste`,
5
- // scripts/jointure.d.ts): the server of a remote cache, its token, which never enter a
6
- // repository.
3
+ // `~/.config/grillhouse/` without it), whose name the module of the language gives
4
+ // (`environnementDuPoste`, scripts/jointure.d.ts): the server of a remote cache, its token, which
5
+ // never enter a repository. Architecture: docs/architecture/machine.md (§4.1).
7
6
  //
8
7
  // - The file holds one `VARIABLE=valeur` per line, as a `.env` of the shell: `export ` before the
9
8
  // name, a value between quotes, a blank line and a line of comment (`#`) are read too; any
@@ -3,7 +3,8 @@
3
3
  // ticket's plan covers by its own word: a write out of the plan in it extends the plan, with the
4
4
  // piece that names it. A parent directory, a base name alone, another section, and the documents
5
5
  // the responsable owns (ARCHITECTURE.md, CADRE.md, INTERFACE.md) are not named. The plan keeps the
6
- // component of the title that holds a file named there (`fichiersNommesAuTicket`).
6
+ // component of the title that holds a file named there (`fichiersNommesAuTicket`;
7
+ // docs/architecture/circuit.md §3.3).
7
8
 
8
9
  const DOCUMENTS_DU_RESPONSABLE = /(^|\/)(ARCHITECTURE|CADRE|INTERFACE)\.md$/;
9
10
 
@@ -1,7 +1,9 @@
1
1
  // The rule of the queue of the tickets of a project: the tickets the owner validated (label
2
2
  // `circuit`) whose dependencies are all closed start by themselves, by Beads priority, as Zuul and
3
3
  // the merge queues start a change once what it depends on has merged. The queue of the tickets
4
- // under Temporal (src/temporal/tickets/) reads the tickets and applies this rule.
4
+ // under Temporal (src/temporal/tickets/) reads the tickets and applies this rule (circuit.md
5
+ // §5.7, « La file des tickets »; the code still asks for the section « ## Architecture » where
6
+ // the target reads « Régi par », circuit.md §9.1).
5
7
  //
6
8
  // - A ticket starts when it is open, labelled `circuit`, with no circuit already on it, its
7
9
  // description holds its section « ## Architecture » (a line that begins so), and every
@@ -1,4 +1,5 @@
1
- // What the Nuit flow of a project plays (`.github/workflows/nuit.yml`), read from the flow's own
1
+ // What the Nuit flow of a project plays (packages/grillhouse/docs/architecture/entree.md §3.1
2
+ // « Repli de la nuit », §5.3 « Les deux parts »; `.github/workflows/nuit.yml`), read from the flow's own
2
3
  // commands and never from a word of it: the night of the poste (scripts/nuit.sh) leaves the flow
3
4
  // what the flow declares it plays, and plays the rest (the frame's charter, « Une mesure de temps
4
5
  // joue la nuit »: the measures of time play on dedicated cores, which a shared flow lacks unless it
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- // The guard of the flows of the CI: each flow declares the packages it exercises, and the reviewer
2
+ // The guard of the flows of the CI (packages/grillhouse/docs/architecture/entree.md §3.1
3
+ // « Flux CI », §5.2): each flow declares the packages it exercises, and the reviewer
3
4
  // reads it when a lot touches one of them, as a CODEOWNERS file names who reads a path.
4
5
  //
5
6
  // npx grillhouse flux-des-paquets (one of the frame's guards, scripts/gardes-du-cadre.mjs)
@@ -1,4 +1,5 @@
1
- // The frame's merge driver of the CHANGELOG, on the model of gnulib's git-merge-changelog: two
1
+ // The frame's merge driver of the CHANGELOG (packages/grillhouse/docs/architecture/entree.md §5.1:
2
+ // a lot enters main by a three-way application that never loses an entry), on the model of gnulib's git-merge-changelog: two
2
3
  // lots that each add an entry under the same heading both keep their entry, wherever git merges
3
4
  // three ways (the integration's `git apply --3way --index`, the relaunch's `git apply --3way`, the
4
5
  // copy's `git merge --ff-only --autostash`, a rebase, a cherry-pick).
@@ -1,5 +1,5 @@
1
1
  // The watch of the memory of a pass: a heavy pass runs its command under it, and is cut before the
2
- // kernel kills, as earlyoom and systemd-oomd end a group before the kernel's own OOM killer does.
2
+ // kernel kills. Architecture: docs/architecture/machine.md (§3.1, §5.3).
3
3
  //
4
4
  // node garde-de-la-memoire.mjs --temoin <file> -- <command> [<argument>…]
5
5
  //
@@ -20,6 +20,8 @@
20
20
  // the debt, `a-elaguer`, is none) has one written for it, without location, its name (its
21
21
  // script's, without extension) and its code: a red no reader can place.
22
22
  // - The build is not among them: Turborepo builds before this task (turbo.json).
23
+ //
24
+ // The list and what each guard refuses: docs/architecture/tests.md §3.1 and §3.4.
23
25
  import { spawnSync } from 'node:child_process';
24
26
  import path from 'node:path';
25
27
  import { pathToFileURL } from 'node:url';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // The frame's plugins, installed for the project by one mechanism: `scripts/preparation.mjs` (the
3
3
  // preparation of `grillhouse init`) and `scripts/grillhouse-maj.mjs` (update, its command line) both
4
- // call it, and the session start
5
- // asks it which are absent.
4
+ // call it, and the session start asks it which are absent. The mechanism is installation.md §5.3
5
+ // (step 2) and §5.6, in packages/grillhouse/docs/architecture/.
6
6
  //
7
7
  // npx grillhouse greffons [<project>] installs the declared plugins (the current directory by default)
8
8
  // npx grillhouse greffons --absents [<project>] prints what the project lacks, one line each (see below)