@roomi-fields/grillhouse 0.49.0 → 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 (315) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +38 -0
  3. package/bin/grillhouse.mjs +2 -0
  4. package/cadre/templates/projet/.github/workflows/ci.yml +5 -0
  5. package/cadre/templates/projet/.github/workflows/nuit.yml +6 -4
  6. package/cadre/templates/projet/CLAUDE.md +13 -96
  7. package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
  8. package/charte.md +88 -96
  9. package/dist/temporal/acte.d.ts +9 -0
  10. package/dist/temporal/acte.js +45 -21
  11. package/dist/temporal/acte.js.map +1 -1
  12. package/dist/temporal/circuit/activites.js +2 -1
  13. package/dist/temporal/circuit/activites.js.map +1 -1
  14. package/dist/temporal/circuit/appel.js +2 -2
  15. package/dist/temporal/circuit/appel.js.map +1 -1
  16. package/dist/temporal/circuit/client.d.ts +2 -4
  17. package/dist/temporal/circuit/client.js +5 -8
  18. package/dist/temporal/circuit/client.js.map +1 -1
  19. package/dist/temporal/circuit/commande.js +5 -4
  20. package/dist/temporal/circuit/commande.js.map +1 -1
  21. package/dist/temporal/circuit/contrat.d.ts +3 -3
  22. package/dist/temporal/circuit/contrat.js +2 -2
  23. package/dist/temporal/circuit/contrat.js.map +1 -1
  24. package/dist/temporal/circuit/deroule.js +4 -4
  25. package/dist/temporal/circuit/deroule.js.map +1 -1
  26. package/dist/temporal/commande.js +1 -1
  27. package/dist/temporal/commande.js.map +1 -1
  28. package/dist/temporal/deroules.js +3 -4
  29. package/dist/temporal/deroules.js.map +1 -1
  30. package/dist/temporal/etat.js +1 -1
  31. package/dist/temporal/etat.js.map +1 -1
  32. package/dist/temporal/file/activites.js +2 -1
  33. package/dist/temporal/file/activites.js.map +1 -1
  34. package/dist/temporal/file/client.js.map +1 -1
  35. package/dist/temporal/file/contrat.js +3 -2
  36. package/dist/temporal/file/contrat.js.map +1 -1
  37. package/dist/temporal/file/deroule.js +2 -1
  38. package/dist/temporal/file/deroule.js.map +1 -1
  39. package/dist/temporal/installation.js +2 -0
  40. package/dist/temporal/installation.js.map +1 -1
  41. package/dist/temporal/nuits/activites.js +4 -3
  42. package/dist/temporal/nuits/activites.js.map +1 -1
  43. package/dist/temporal/nuits/appel.js +2 -1
  44. package/dist/temporal/nuits/appel.js.map +1 -1
  45. package/dist/temporal/nuits/choix.js +2 -1
  46. package/dist/temporal/nuits/choix.js.map +1 -1
  47. package/dist/temporal/nuits/client.js +2 -1
  48. package/dist/temporal/nuits/client.js.map +1 -1
  49. package/dist/temporal/nuits/commande.js +2 -1
  50. package/dist/temporal/nuits/commande.js.map +1 -1
  51. package/dist/temporal/nuits/contrat.js +2 -1
  52. package/dist/temporal/nuits/contrat.js.map +1 -1
  53. package/dist/temporal/nuits/deroule.js +2 -1
  54. package/dist/temporal/nuits/deroule.js.map +1 -1
  55. package/dist/temporal/places/activites.js +2 -1
  56. package/dist/temporal/places/activites.js.map +1 -1
  57. package/dist/temporal/places/client.js +1 -0
  58. package/dist/temporal/places/client.js.map +1 -1
  59. package/dist/temporal/places/deroule.js +4 -5
  60. package/dist/temporal/places/deroule.js.map +1 -1
  61. package/dist/temporal/tickets/activites.js +1 -1
  62. package/dist/temporal/tickets/activites.js.map +1 -1
  63. package/dist/temporal/tickets/deroule.js +4 -4
  64. package/dist/temporal/tickets/deroule.js.map +1 -1
  65. package/docs/ARCHITECTURE.md +35 -13
  66. package/docs/CADRE.md +10 -68
  67. package/docs/INTERFACE.md +59 -179
  68. package/docs/architecture/circuit.md +440 -0
  69. package/docs/architecture/entree.md +281 -0
  70. package/docs/architecture/greffon.md +284 -0
  71. package/docs/architecture/installation.md +306 -0
  72. package/docs/architecture/machine.md +383 -0
  73. package/docs/architecture/tests.md +337 -0
  74. package/package.json +1 -1
  75. package/scripts/abi-des-dependances.mjs +2 -1
  76. package/scripts/activites.mjs +8 -8
  77. package/scripts/aiguillage.mjs +4 -4
  78. package/scripts/arbitrages.mjs +1 -1
  79. package/scripts/arbres-juges.mjs +2 -1
  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/binaires.mjs +2 -1
  84. package/scripts/branche-de-nuit.mjs +2 -1
  85. package/scripts/cadre.mjs +12 -3
  86. package/scripts/ci-de-main.mjs +2 -1
  87. package/scripts/circuit.mjs +101 -618
  88. package/scripts/circuits-cles.mjs +4 -6
  89. package/scripts/circuits-du-serveur.mjs +1 -1
  90. package/scripts/codes-de-sortie.mjs +1 -1
  91. package/scripts/coeurs-dedies.mjs +2 -4
  92. package/scripts/commande-du-langage.mjs +2 -0
  93. package/scripts/commandes-composees.mjs +3 -3
  94. package/scripts/commandes-du-path.mjs +1 -1
  95. package/scripts/composants-affectes.mjs +3 -1
  96. package/scripts/composition-des-langages.mjs +2 -0
  97. package/scripts/conformite.d.ts +2 -1
  98. package/scripts/conformite.mjs +2 -0
  99. package/scripts/consommation-des-passes.mjs +5 -4
  100. package/scripts/consommation.mjs +1 -0
  101. package/scripts/copies-finies.mjs +9 -10
  102. package/scripts/crochets.mjs +2 -1
  103. package/scripts/depart-du-ticket.mjs +2 -2
  104. package/scripts/dependances-internes.mjs +4 -2
  105. package/scripts/dernier-vert.mjs +3 -3
  106. package/scripts/dette.d.ts +2 -1
  107. package/scripts/dette.mjs +2 -0
  108. package/scripts/direct.mjs +2 -1
  109. package/scripts/disque-des-copies.mjs +1 -1
  110. package/scripts/donnees-cles.mjs +2 -0
  111. package/scripts/droits.mjs +12 -10
  112. package/scripts/echantillonneur-de-la-passe.mjs +1 -1
  113. package/scripts/effets.mjs +3 -3
  114. package/scripts/engendres.mjs +1 -1
  115. package/scripts/enveloppe/codes.mjs +1 -0
  116. package/scripts/enveloppe/enveloppe.mjs +113 -89
  117. package/scripts/enveloppe/lancer.sh +5 -3
  118. package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
  119. package/scripts/enveloppe/travail-de-la-copie.mjs +11 -16
  120. package/scripts/etapes.mjs +10 -9
  121. package/scripts/etat-du-depot.mjs +2 -1
  122. package/scripts/faits-du-circuit.mjs +19 -19
  123. package/scripts/fermeture-de-la-machine.mjs +2 -2
  124. package/scripts/fichier-du-poste.mjs +3 -4
  125. package/scripts/fichiers-nommes.mjs +2 -1
  126. package/scripts/file-des-tickets.mjs +3 -1
  127. package/scripts/flux-de-la-nuit.mjs +39 -0
  128. package/scripts/flux-des-paquets.mjs +2 -1
  129. package/scripts/fusion-du-changelog.mjs +2 -1
  130. package/scripts/garde-de-la-memoire.mjs +1 -1
  131. package/scripts/gardes-du-cadre.mjs +2 -0
  132. package/scripts/greffons.mjs +2 -2
  133. package/scripts/grillhouse-maj.mjs +55 -150
  134. package/scripts/groupe-cles.mjs +2 -1
  135. package/scripts/index-interfaces.mjs +2 -0
  136. package/scripts/init.mjs +2 -1
  137. package/scripts/integration/file.mjs +3 -3
  138. package/scripts/integration/integrer.mjs +5 -6
  139. package/scripts/integration/rejeu.mjs +4 -2
  140. package/scripts/integration/verdict.mjs +2 -1
  141. package/scripts/jointure.d.ts +5 -1
  142. package/scripts/journal-des-etats.mjs +2 -2
  143. package/scripts/langages/cargo/binaires.mjs +3 -2
  144. package/scripts/langages/cargo/clippy.mjs +2 -0
  145. package/scripts/langages/cargo/commandes.mjs +72 -17
  146. package/scripts/langages/cargo/composants.mjs +4 -3
  147. package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
  148. package/scripts/langages/cargo/etiquettes.mjs +87 -0
  149. package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
  150. package/scripts/langages/cargo/exemples.mjs +6 -4
  151. package/scripts/langages/cargo/frontieres.mjs +2 -0
  152. package/scripts/langages/cargo/index-interfaces.mjs +2 -0
  153. package/scripts/langages/cargo/index.mjs +8 -9
  154. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
  155. package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
  156. package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
  157. package/scripts/langages/cargo/sccache.mjs +10 -6
  158. package/scripts/langages/cargo/squelette.mjs +2 -0
  159. package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
  160. package/scripts/langages/cargo/verdict.mjs +8 -6
  161. package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
  162. package/scripts/langages/typescript/code-mort.mjs +2 -1
  163. package/scripts/langages/typescript/composants.mjs +7 -5
  164. package/scripts/langages/typescript/consommateurs-arbitres.mjs +17 -4
  165. package/scripts/langages/typescript/consommateurs.d.ts +2 -1
  166. package/scripts/langages/typescript/consommateurs.mjs +5 -7
  167. package/scripts/langages/typescript/construire.mjs +2 -1
  168. package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
  169. package/scripts/langages/typescript/exemples.mjs +2 -1
  170. package/scripts/langages/typescript/frontieres.mjs +3 -2
  171. package/scripts/langages/typescript/index-interfaces.mjs +3 -2
  172. package/scripts/langages/typescript/index.mjs +3 -2
  173. package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
  174. package/scripts/langages/typescript/lecteurs.mjs +2 -1
  175. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
  176. package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
  177. package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
  178. package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
  179. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
  180. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
  181. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
  182. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
  183. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
  184. package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
  185. package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
  186. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
  187. package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
  188. package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
  189. package/scripts/langages/typescript/module-absent.mjs +2 -1
  190. package/scripts/langages/typescript/parcours.mjs +2 -1
  191. package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
  192. package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
  193. package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
  194. package/scripts/langages/typescript/resumes.mjs +2 -1
  195. package/scripts/langages/typescript/squelette.mjs +2 -1
  196. package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
  197. package/scripts/langages/typescript/tests-de-nuit.mjs +12 -5
  198. package/scripts/langages/typescript/tests-du-poste.mjs +60 -21
  199. package/scripts/langages/typescript/tests.mjs +44 -66
  200. package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
  201. package/scripts/langages/typescript/tranches.mjs +2 -1
  202. package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
  203. package/scripts/langages/typescript/verdict.mjs +2 -1
  204. package/scripts/langages/typescript/verifier.mjs +64 -99
  205. package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
  206. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
  207. package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
  208. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
  209. package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
  210. package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
  211. package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
  212. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
  213. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
  214. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
  215. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
  216. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
  217. package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
  218. package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
  219. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
  220. package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
  221. package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
  222. package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
  223. package/scripts/langages-des-paquets.mjs +3 -1
  224. package/scripts/langages.mjs +5 -3
  225. package/scripts/lecture-unique.mjs +2 -1
  226. package/scripts/lint-des-scripts.mjs +1 -0
  227. package/scripts/machine.mjs +4 -4
  228. package/scripts/matiere-de-test.d.ts +2 -1
  229. package/scripts/matieres-lues.mjs +2 -0
  230. package/scripts/mesure/avancement.mjs +1 -1
  231. package/scripts/mesure/base-de-passe.mjs +10 -13
  232. package/scripts/mesure/pression.mjs +3 -4
  233. package/scripts/mesure-de-la-machine.mjs +2 -1
  234. package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
  235. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
  236. package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
  237. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
  238. package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
  239. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
  240. package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
  241. package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
  242. package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
  243. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
  244. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
  245. package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
  246. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
  247. package/scripts/migrations/0.33.0-node-26.mjs +5 -8
  248. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
  249. package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
  250. package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
  251. package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
  252. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
  253. package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
  254. package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
  255. package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
  256. package/scripts/migrations-des-gardes.mjs +2 -0
  257. package/scripts/migrations.mjs +4 -0
  258. package/scripts/nuit.sh +48 -15
  259. package/scripts/outil.mjs +2 -1
  260. package/scripts/outils-cles.mjs +6 -6
  261. package/scripts/paquet-npm.mjs +3 -2
  262. package/scripts/paquet.mjs +3 -4
  263. package/scripts/paquets.d.ts +1 -1
  264. package/scripts/paquets.mjs +2 -0
  265. package/scripts/passe-de-la-machine.mjs +9 -12
  266. package/scripts/places-de-la-machine.mjs +36 -53
  267. package/scripts/places-du-serveur.mjs +5 -4
  268. package/scripts/plafond-de-la-machine.mjs +19 -19
  269. package/scripts/poussee-retiree.mjs +2 -1
  270. package/scripts/prefixe-des-tickets.mjs +1 -0
  271. package/scripts/preparation.mjs +2 -1
  272. package/scripts/recommencer.mjs +2 -2
  273. package/scripts/references-changees.mjs +1 -1
  274. package/scripts/registre-des-resultats.mjs +3 -1
  275. package/scripts/regles-des-places.mjs +4 -6
  276. package/scripts/repli-de-la-nuit.mjs +107 -35
  277. package/scripts/reponses-du-circuit.mjs +4 -3
  278. package/scripts/reprise.mjs +3 -2
  279. package/scripts/resultats.mjs +71 -93
  280. package/scripts/retirer-copie.sh +2 -1
  281. package/scripts/retirer-les-copies-finies.mjs +2 -1
  282. package/scripts/seances.mjs +3 -2
  283. package/scripts/services-du-noyau.mjs +3 -0
  284. package/scripts/session-start.sh +0 -6
  285. package/scripts/sortie.mjs +2 -1
  286. package/scripts/sources.mjs +2 -0
  287. package/scripts/sous-commandes.mjs +2 -1
  288. package/scripts/sous-modules.sh +24 -43
  289. package/scripts/style-a-l-ecriture.mjs +2 -0
  290. package/scripts/tableau-des-composants.mjs +5 -7
  291. package/scripts/tableau.mjs +6 -5
  292. package/scripts/taches-du-graphe.mjs +3 -0
  293. package/scripts/ticket-du-circuit.mjs +1 -1
  294. package/scripts/ticket.mjs +3 -0
  295. package/scripts/transitions.mjs +30 -19
  296. package/scripts/un-commit-par-ticket.mjs +2 -1
  297. package/scripts/verdict-de-la-nuit.mjs +2 -1
  298. package/scripts/verrou-de-fichier.mjs +1 -0
  299. package/scripts/verrous/commande.mjs +2 -1
  300. package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
  301. package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
  302. package/scripts/verrous/verrou.mjs +3 -3
  303. package/scripts/workflows-du-cadre.mjs +2 -1
  304. package/skills/architecte/SKILL.md +203 -0
  305. package/skills/architecte/references/exemple-d-architecture.md +159 -0
  306. package/skills/developpeur/SKILL.md +6 -10
  307. package/skills/explorateur/SKILL.md +1 -1
  308. package/skills/grill/SKILL.md +4 -5
  309. package/skills/grill/references/paquets.md +5 -8
  310. package/skills/pitmaster/SKILL.md +179 -268
  311. package/skills/pitmaster/references/cadre.md +7 -6
  312. package/skills/pitmaster/references/consigne-agent.md +36 -32
  313. package/skills/pitmaster/references/tour.md +2 -2
  314. package/skills/redacteur/references/documents-d-un-composant.md +10 -8
  315. package/skills/testwriter/SKILL.md +8 -11
@@ -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 {
@@ -118,6 +95,7 @@ import {
118
95
  import os from 'node:os';
119
96
  import path from 'node:path';
120
97
  import { pathToFileURL } from 'node:url';
98
+ import { ROLES } from '../droits.mjs';
121
99
  import { langageDeLaCopie } from '../langages.mjs';
122
100
  import { CODE_REFUS, CODE_USAGE } from './codes.mjs';
123
101
  import {
@@ -206,11 +184,13 @@ export function preparerLesSorties({ copie, paquets, paquetsDeLaCopie, matieres,
206
184
  }
207
185
  // The machine's temporary directory: an empty one, proper to the session, replaces it.
208
186
  const TEMPORAIRE = '/tmp';
209
- // What stays read-only inside `~/.claude`: the configuration and what it loads.
187
+ // What stays read-only inside `~/.claude`: the configuration and what it loads. The user's own
188
+ // charter (`CLAUDE.md`) is not among it: it holds rules made for the user's session (commit and
189
+ // push on their own), and a role session never receives it; the settings of the role also exclude
190
+ // it (`claudeMdExcludes`, scripts/droits.mjs), for the sessions out of the envelope.
210
191
  const CLAUDE_EN_LECTURE = [
211
192
  'settings.json',
212
193
  'settings.local.json',
213
- 'CLAUDE.md',
214
194
  'keybindings.json',
215
195
  'agents',
216
196
  'commands',
@@ -221,9 +201,9 @@ const CLAUDE_EN_LECTURE = [
221
201
  ];
222
202
  // What the home shows read-only besides `~/.claude`, as paths relative to it: claude's launcher
223
203
  // and versions, node and its global tools (bd), the state of bd and of its dolt database, and the
224
- // git configuration. The home shows nothing else: neither codegraph nor rtfm, whose servers the
225
- // roles of the envelope do not receive (scripts/droits.mjs); the indexes of the repository are in
226
- // sight with it.
204
+ // git configuration. The home shows nothing else but the programs of the index for a role whose
205
+ // rights hold it (`cheminsDeLIndex`: codegraph); the indexes of the repository are in sight with
206
+ // it.
227
207
  const MAISON_EN_LECTURE = [
228
208
  '.local/bin/claude',
229
209
  '.local/share/claude',
@@ -237,6 +217,39 @@ const MAISON_EN_LECTURE = [
237
217
  '.config/git/attributes',
238
218
  ];
239
219
 
220
+ // The programs of the index, as paths of the home: the program that the `.mcp.json` of the project
221
+ // launches by its name (codegraph, found in `~/.local/bin`) and the home of its versions. rtfm
222
+ // needs none: its server comes with its plugin, which the envelope mounts (`plugins`).
223
+ const INDEX_DE_LA_MAISON = [{ nom: 'codegraph', programme: '.local/bin/codegraph', maison: '.codegraph' }];
224
+
225
+ /**
226
+ * The paths that the envelope of <role> mounts read-only for the index, as a sandbox mounts the
227
+ * tools its configuration gives a process: those of the programs of the index when the rights of
228
+ * the role hold it (`ROLES[role].index`), and the names of the programs the machine lacks, which
229
+ * the journal says. A role without the index gets nothing.
230
+ * @param {{ role?: string, maison: string, existe?: (p: string) => boolean }} o
231
+ * @returns {{ chemins: string[], manquants: string[] }}
232
+ */
233
+ export function cheminsDeLIndex({ role, maison, existe = existsSync }) {
234
+ const r = { chemins: [], manquants: [] };
235
+ if (!role || !ROLES[role]?.index) {
236
+ return r;
237
+ }
238
+ for (const { nom, programme, maison: dossier } of INDEX_DE_LA_MAISON) {
239
+ const prog = path.join(maison, programme);
240
+ if (!existe(prog)) {
241
+ r.manquants.push(nom);
242
+ continue;
243
+ }
244
+ r.chemins.push(prog);
245
+ const home = path.join(maison, dossier);
246
+ if (existe(home)) {
247
+ r.chemins.push(home);
248
+ }
249
+ }
250
+ return r;
251
+ }
252
+
240
253
  // The variables of a login session that the envelope passes on, as sudo's env_reset keeps them,
241
254
  // claude's OAuth credential, the author of the session's comments at the ticket (`BEADS_ACTOR`,
242
255
  // which the circuit sets to the session's role), the mark of the place the session holds
@@ -409,6 +422,7 @@ export function montagesDeLaSeance({
409
422
  scratchpads,
410
423
  sessions = [],
411
424
  outils = {},
425
+ index = [],
412
426
  publie = null,
413
427
  }) {
414
428
  const maison = path.dirname(claude);
@@ -420,6 +434,7 @@ export function montagesDeLaSeance({
420
434
  ...CLAUDE_EN_LECTURE.map(nom => ({ chemin: path.join(claude, nom), ecriture: false })),
421
435
  { chemin: projet, ecriture: true },
422
436
  ...MAISON_EN_LECTURE.map(rel => ({ chemin: path.join(maison, rel), ecriture: false })),
437
+ ...index.map(chemin => ({ chemin, ecriture: false })),
423
438
  ...Object.values(outils).map(chemin => ({ chemin, ecriture: false })),
424
439
  ...(publie === null ? [] : [{ chemin: publie, ecriture: false }]),
425
440
  ];
@@ -905,6 +920,14 @@ function envelopper(argv) {
905
920
  if (existsSync(`${claude}.json`)) {
906
921
  copyFileSync(`${claude}.json`, etatJetable);
907
922
  }
923
+ // The program of the index for a role whose rights hold it; one the machine lacks is named in
924
+ // the journal, the session starting without it.
925
+ const indexDeLaSeance = cheminsDeLIndex({ role, maison: os.homedir() });
926
+ for (const nom of indexDeLaSeance.manquants) {
927
+ process.stderr.write(
928
+ `⚠ la séance part sans ${nom} : les droits du rôle ${role} lui donnent l'index, le programme est introuvable sur le poste\n`
929
+ );
930
+ }
908
931
  const montages = avecLiens(
909
932
  montagesDeLaSeance({
910
933
  cacheNpm,
@@ -914,6 +937,7 @@ function envelopper(argv) {
914
937
  scratchpads,
915
938
  sessions,
916
939
  outils,
940
+ index: indexDeLaSeance.chemins,
917
941
  publie,
918
942
  }),
919
943
  lienSurDisque
@@ -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
@@ -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