@roomi-fields/grillhouse 0.49.1 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +16 -0
  3. package/bin/grillhouse.mjs +2 -0
  4. package/cadre/templates/projet/CLAUDE.md +13 -96
  5. package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
  6. package/charte.md +77 -96
  7. package/dist/temporal/acte.js +2 -1
  8. package/dist/temporal/acte.js.map +1 -1
  9. package/dist/temporal/circuit/activites.js +2 -1
  10. package/dist/temporal/circuit/activites.js.map +1 -1
  11. package/dist/temporal/circuit/appel.js +2 -2
  12. package/dist/temporal/circuit/appel.js.map +1 -1
  13. package/dist/temporal/circuit/client.d.ts +2 -4
  14. package/dist/temporal/circuit/client.js +5 -8
  15. package/dist/temporal/circuit/client.js.map +1 -1
  16. package/dist/temporal/circuit/commande.js +5 -4
  17. package/dist/temporal/circuit/commande.js.map +1 -1
  18. package/dist/temporal/circuit/contrat.d.ts +3 -3
  19. package/dist/temporal/circuit/contrat.js +2 -2
  20. package/dist/temporal/circuit/contrat.js.map +1 -1
  21. package/dist/temporal/circuit/deroule.js +4 -4
  22. package/dist/temporal/circuit/deroule.js.map +1 -1
  23. package/dist/temporal/commande.js +1 -1
  24. package/dist/temporal/commande.js.map +1 -1
  25. package/dist/temporal/deroules.js +3 -4
  26. package/dist/temporal/deroules.js.map +1 -1
  27. package/dist/temporal/etat.js +1 -1
  28. package/dist/temporal/etat.js.map +1 -1
  29. package/dist/temporal/file/activites.js +2 -1
  30. package/dist/temporal/file/activites.js.map +1 -1
  31. package/dist/temporal/file/client.js.map +1 -1
  32. package/dist/temporal/file/contrat.js +3 -2
  33. package/dist/temporal/file/contrat.js.map +1 -1
  34. package/dist/temporal/file/deroule.js +2 -1
  35. package/dist/temporal/file/deroule.js.map +1 -1
  36. package/dist/temporal/installation.js +2 -0
  37. package/dist/temporal/installation.js.map +1 -1
  38. package/dist/temporal/nuits/activites.js +4 -3
  39. package/dist/temporal/nuits/activites.js.map +1 -1
  40. package/dist/temporal/nuits/appel.js +2 -1
  41. package/dist/temporal/nuits/appel.js.map +1 -1
  42. package/dist/temporal/nuits/choix.js +2 -1
  43. package/dist/temporal/nuits/choix.js.map +1 -1
  44. package/dist/temporal/nuits/client.js +2 -1
  45. package/dist/temporal/nuits/client.js.map +1 -1
  46. package/dist/temporal/nuits/commande.js +2 -1
  47. package/dist/temporal/nuits/commande.js.map +1 -1
  48. package/dist/temporal/nuits/contrat.js +2 -1
  49. package/dist/temporal/nuits/contrat.js.map +1 -1
  50. package/dist/temporal/nuits/deroule.js +2 -1
  51. package/dist/temporal/nuits/deroule.js.map +1 -1
  52. package/dist/temporal/places/activites.js +2 -1
  53. package/dist/temporal/places/activites.js.map +1 -1
  54. package/dist/temporal/places/client.js +1 -0
  55. package/dist/temporal/places/client.js.map +1 -1
  56. package/dist/temporal/places/deroule.js +4 -5
  57. package/dist/temporal/places/deroule.js.map +1 -1
  58. package/dist/temporal/tickets/activites.js +1 -1
  59. package/dist/temporal/tickets/activites.js.map +1 -1
  60. package/dist/temporal/tickets/deroule.js +4 -4
  61. package/dist/temporal/tickets/deroule.js.map +1 -1
  62. package/docs/ARCHITECTURE.md +3 -3
  63. package/docs/CADRE.md +10 -68
  64. package/docs/INTERFACE.md +59 -179
  65. package/docs/architecture/circuit.md +440 -0
  66. package/docs/architecture/entree.md +281 -0
  67. package/docs/architecture/greffon.md +284 -0
  68. package/docs/architecture/installation.md +306 -0
  69. package/docs/architecture/machine.md +383 -0
  70. package/docs/architecture/tests.md +337 -0
  71. package/package.json +1 -1
  72. package/scripts/abi-des-dependances.mjs +2 -1
  73. package/scripts/activites.mjs +8 -8
  74. package/scripts/aiguillage.mjs +4 -4
  75. package/scripts/arbitrages.mjs +1 -1
  76. package/scripts/arbres-juges.mjs +2 -1
  77. package/scripts/attente-de-la-machine.mjs +10 -16
  78. package/scripts/avancement.mjs +2 -0
  79. package/scripts/base-des-workflows.mjs +2 -1
  80. package/scripts/binaires.mjs +2 -1
  81. package/scripts/branche-de-nuit.mjs +2 -1
  82. package/scripts/cadre.mjs +12 -3
  83. package/scripts/ci-de-main.mjs +2 -1
  84. package/scripts/circuit.mjs +101 -618
  85. package/scripts/circuits-cles.mjs +4 -6
  86. package/scripts/circuits-du-serveur.mjs +1 -1
  87. package/scripts/codes-de-sortie.mjs +1 -1
  88. package/scripts/coeurs-dedies.mjs +2 -4
  89. package/scripts/commande-du-langage.mjs +2 -0
  90. package/scripts/commandes-composees.mjs +3 -3
  91. package/scripts/commandes-du-path.mjs +1 -1
  92. package/scripts/composants-affectes.mjs +3 -1
  93. package/scripts/composition-des-langages.mjs +2 -0
  94. package/scripts/conformite.d.ts +2 -1
  95. package/scripts/conformite.mjs +2 -0
  96. package/scripts/consommation-des-passes.mjs +5 -4
  97. package/scripts/consommation.mjs +1 -0
  98. package/scripts/copies-finies.mjs +9 -10
  99. package/scripts/crochets.mjs +2 -1
  100. package/scripts/depart-du-ticket.mjs +2 -2
  101. package/scripts/dependances-internes.mjs +4 -2
  102. package/scripts/dernier-vert.mjs +3 -3
  103. package/scripts/dette.d.ts +2 -1
  104. package/scripts/dette.mjs +2 -0
  105. package/scripts/direct.mjs +2 -1
  106. package/scripts/disque-des-copies.mjs +1 -1
  107. package/scripts/donnees-cles.mjs +2 -0
  108. package/scripts/droits.mjs +5 -6
  109. package/scripts/echantillonneur-de-la-passe.mjs +1 -1
  110. package/scripts/effets.mjs +3 -3
  111. package/scripts/engendres.mjs +1 -1
  112. package/scripts/enveloppe/codes.mjs +1 -0
  113. package/scripts/enveloppe/enveloppe.mjs +61 -84
  114. package/scripts/enveloppe/lancer.sh +5 -3
  115. package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
  116. package/scripts/enveloppe/travail-de-la-copie.mjs +11 -16
  117. package/scripts/etapes.mjs +10 -9
  118. package/scripts/etat-du-depot.mjs +2 -1
  119. package/scripts/faits-du-circuit.mjs +19 -19
  120. package/scripts/fermeture-de-la-machine.mjs +2 -2
  121. package/scripts/fichier-du-poste.mjs +3 -4
  122. package/scripts/fichiers-nommes.mjs +2 -1
  123. package/scripts/file-des-tickets.mjs +3 -1
  124. package/scripts/flux-de-la-nuit.mjs +2 -1
  125. package/scripts/flux-des-paquets.mjs +2 -1
  126. package/scripts/fusion-du-changelog.mjs +2 -1
  127. package/scripts/garde-de-la-memoire.mjs +1 -1
  128. package/scripts/gardes-du-cadre.mjs +2 -0
  129. package/scripts/greffons.mjs +2 -2
  130. package/scripts/grillhouse-maj.mjs +55 -150
  131. package/scripts/groupe-cles.mjs +2 -1
  132. package/scripts/index-interfaces.mjs +2 -0
  133. package/scripts/init.mjs +2 -1
  134. package/scripts/integration/file.mjs +3 -3
  135. package/scripts/integration/integrer.mjs +5 -6
  136. package/scripts/integration/rejeu.mjs +4 -2
  137. package/scripts/integration/verdict.mjs +2 -1
  138. package/scripts/jointure.d.ts +2 -1
  139. package/scripts/journal-des-etats.mjs +2 -2
  140. package/scripts/langages/cargo/binaires.mjs +3 -2
  141. package/scripts/langages/cargo/clippy.mjs +2 -0
  142. package/scripts/langages/cargo/commandes.mjs +72 -17
  143. package/scripts/langages/cargo/composants.mjs +4 -3
  144. package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
  145. package/scripts/langages/cargo/etiquettes.mjs +87 -0
  146. package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
  147. package/scripts/langages/cargo/exemples.mjs +6 -4
  148. package/scripts/langages/cargo/frontieres.mjs +2 -0
  149. package/scripts/langages/cargo/index-interfaces.mjs +2 -0
  150. package/scripts/langages/cargo/index.mjs +8 -9
  151. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
  152. package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
  153. package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
  154. package/scripts/langages/cargo/sccache.mjs +10 -6
  155. package/scripts/langages/cargo/squelette.mjs +2 -0
  156. package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
  157. package/scripts/langages/cargo/verdict.mjs +8 -6
  158. package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
  159. package/scripts/langages/typescript/code-mort.mjs +2 -1
  160. package/scripts/langages/typescript/composants.mjs +7 -5
  161. package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -1
  162. package/scripts/langages/typescript/consommateurs.d.ts +2 -1
  163. package/scripts/langages/typescript/consommateurs.mjs +5 -7
  164. package/scripts/langages/typescript/construire.mjs +2 -1
  165. package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
  166. package/scripts/langages/typescript/exemples.mjs +2 -1
  167. package/scripts/langages/typescript/frontieres.mjs +3 -2
  168. package/scripts/langages/typescript/index-interfaces.mjs +3 -2
  169. package/scripts/langages/typescript/index.mjs +3 -2
  170. package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
  171. package/scripts/langages/typescript/lecteurs.mjs +2 -1
  172. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
  173. package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
  174. package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
  175. package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
  176. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
  177. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
  178. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
  179. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
  180. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
  181. package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
  182. package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
  183. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
  184. package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
  185. package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
  186. package/scripts/langages/typescript/module-absent.mjs +2 -1
  187. package/scripts/langages/typescript/parcours.mjs +2 -1
  188. package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
  189. package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
  190. package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
  191. package/scripts/langages/typescript/resumes.mjs +2 -1
  192. package/scripts/langages/typescript/squelette.mjs +2 -1
  193. package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
  194. package/scripts/langages/typescript/tests-de-nuit.mjs +5 -4
  195. package/scripts/langages/typescript/tests-du-poste.mjs +2 -1
  196. package/scripts/langages/typescript/tests.mjs +44 -66
  197. package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
  198. package/scripts/langages/typescript/tranches.mjs +2 -1
  199. package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
  200. package/scripts/langages/typescript/verdict.mjs +2 -1
  201. package/scripts/langages/typescript/verifier.mjs +64 -99
  202. package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
  203. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
  204. package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
  205. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
  206. package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
  207. package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
  208. package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
  209. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
  210. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
  211. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
  212. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
  213. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
  214. package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
  215. package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
  216. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
  217. package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
  218. package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
  219. package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
  220. package/scripts/langages-des-paquets.mjs +3 -1
  221. package/scripts/langages.mjs +5 -3
  222. package/scripts/lecture-unique.mjs +2 -1
  223. package/scripts/lint-des-scripts.mjs +1 -0
  224. package/scripts/machine.mjs +4 -4
  225. package/scripts/matiere-de-test.d.ts +2 -1
  226. package/scripts/matieres-lues.mjs +2 -0
  227. package/scripts/mesure/avancement.mjs +1 -1
  228. package/scripts/mesure/base-de-passe.mjs +10 -13
  229. package/scripts/mesure/pression.mjs +3 -4
  230. package/scripts/mesure-de-la-machine.mjs +2 -1
  231. package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
  232. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
  233. package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
  234. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
  235. package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
  236. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
  237. package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
  238. package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
  239. package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
  240. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
  241. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
  242. package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
  243. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
  244. package/scripts/migrations/0.33.0-node-26.mjs +5 -8
  245. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
  246. package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
  247. package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
  248. package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
  249. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
  250. package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
  251. package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
  252. package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
  253. package/scripts/migrations-des-gardes.mjs +2 -0
  254. package/scripts/migrations.mjs +4 -0
  255. package/scripts/nuit.sh +7 -5
  256. package/scripts/outil.mjs +2 -1
  257. package/scripts/outils-cles.mjs +6 -6
  258. package/scripts/paquet-npm.mjs +3 -2
  259. package/scripts/paquet.mjs +3 -4
  260. package/scripts/paquets.d.ts +1 -1
  261. package/scripts/paquets.mjs +2 -0
  262. package/scripts/passe-de-la-machine.mjs +9 -12
  263. package/scripts/places-de-la-machine.mjs +36 -53
  264. package/scripts/places-du-serveur.mjs +5 -4
  265. package/scripts/plafond-de-la-machine.mjs +19 -19
  266. package/scripts/poussee-retiree.mjs +2 -1
  267. package/scripts/prefixe-des-tickets.mjs +1 -0
  268. package/scripts/preparation.mjs +2 -1
  269. package/scripts/recommencer.mjs +2 -2
  270. package/scripts/references-changees.mjs +1 -1
  271. package/scripts/registre-des-resultats.mjs +3 -1
  272. package/scripts/regles-des-places.mjs +4 -6
  273. package/scripts/repli-de-la-nuit.mjs +2 -1
  274. package/scripts/reponses-du-circuit.mjs +4 -3
  275. package/scripts/reprise.mjs +3 -2
  276. package/scripts/resultats.mjs +71 -93
  277. package/scripts/retirer-copie.sh +2 -1
  278. package/scripts/retirer-les-copies-finies.mjs +2 -1
  279. package/scripts/seances.mjs +3 -2
  280. package/scripts/services-du-noyau.mjs +2 -0
  281. package/scripts/session-start.sh +0 -6
  282. package/scripts/sortie.mjs +2 -1
  283. package/scripts/sources.mjs +2 -0
  284. package/scripts/sous-commandes.mjs +2 -1
  285. package/scripts/sous-modules.sh +24 -43
  286. package/scripts/style-a-l-ecriture.mjs +2 -0
  287. package/scripts/tableau-des-composants.mjs +5 -7
  288. package/scripts/taches-du-graphe.mjs +3 -0
  289. package/scripts/ticket-du-circuit.mjs +1 -1
  290. package/scripts/transitions.mjs +15 -15
  291. package/scripts/un-commit-par-ticket.mjs +2 -1
  292. package/scripts/verdict-de-la-nuit.mjs +2 -1
  293. package/scripts/verrou-de-fichier.mjs +1 -0
  294. package/scripts/verrous/commande.mjs +2 -1
  295. package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
  296. package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
  297. package/scripts/verrous/verrou.mjs +3 -3
  298. package/scripts/workflows-du-cadre.mjs +2 -1
  299. package/skills/developpeur/SKILL.md +6 -10
  300. package/skills/explorateur/SKILL.md +1 -1
  301. package/skills/grill/SKILL.md +4 -5
  302. package/skills/grill/references/paquets.md +5 -8
  303. package/skills/pitmaster/SKILL.md +176 -268
  304. package/skills/pitmaster/references/cadre.md +7 -6
  305. package/skills/pitmaster/references/consigne-agent.md +36 -32
  306. package/skills/pitmaster/references/tour.md +2 -2
  307. package/skills/redacteur/references/documents-d-un-composant.md +9 -8
  308. package/skills/testwriter/SKILL.md +8 -11
@@ -1,4 +1,5 @@
1
- // The gestures of the queue, which brings the branches `agent/<ticket>` the integration committed
1
+ // The acts of the queue (packages/grillhouse/docs/architecture/entree.md §3.1 « Actes de la file »
2
+ // and « Acte de jugement » (`jugerLeCandidat`), §5.1): the gestures of the queue, which brings the branches `agent/<ticket>` the integration committed
2
3
  // onto main, one at a time, each judged by a final pass on the tree that enters before main moves, as
3
4
  // bors judges the tree that enters, and as Google's TAP plays the touched tests before the submit and
4
5
  // the whole suite after it: the workflow of the queue of a project (`file:<racine>`,
@@ -21,8 +22,7 @@
21
22
  // and installed, the command of each one whose files, or the files it reads, the branch touches
22
23
  // writes it again, with the tools of the project, and what it writes enters the branch's
23
24
  // commit; a command that fails makes the branch leave the queue, the command and its output
24
- // named (OSC Bridge, 2026-10-31: four conflicts in one day on the generated files of synthhub
25
- // and open-synth-descriptors);
25
+ // named;
26
26
  // - a branch with nothing ahead of main does not enter: it leaves the queue, its ticket loses
27
27
  // `en-file` and takes a comment, and stays as it is;
28
28
  // - a branch that does not replace (the files in conflict) leaves the queue: its ticket loses
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- // The mechanical steps of one integration, run by the circuit of the ticket (scripts/circuit.mjs)
2
+ // The commit of a lot on its ticket's branch (packages/grillhouse/docs/architecture/entree.md §3.1
3
+ // « Actes de la file », §5.1): the mechanical steps of one integration, run by the circuit of the ticket (scripts/circuit.mjs)
3
4
  // once the reviewer has accepted the lot, which the circuit builds from the ticket's copy. It
4
5
  // commits the lot on the branch of the ticket, or refuses it with the full output of the step that
5
6
  // refused. The circuit of the ticket then sends the branch to the queue of the project (the
@@ -60,9 +61,7 @@
60
61
  // writes in full is not applied: main's version stays, and each reference whose files or reads the
61
62
  // lot touches plays in the copy, on main of the moment, after the install and before the commit,
62
63
  // through the mounts, with the tools of the project, and what it writes enters the commit
63
- // (`regenerer` of scripts/engendres.mjs; BPScript 320.30: refused twice for the one conflict on the
64
- // index of the interfaces; OSC Bridge, 2026-10-31: four conflicts in one day on the generated files
65
- // of synthhub and open-synth-descriptors). A command of the project at another code than 0, one of
64
+ // (`regenerer` of scripts/engendres.mjs). A command of the project at another code than 0, one of
66
65
  // the frame on a real failure (126, 127, a signal), or a file it changes that its `fichiers` do not
67
66
  // cover, refuses the lot, the command, its code and its output named. A conflict on any other file
68
67
  // refuses it, as the three-way application says. A generated file of the project the lot removes
@@ -81,7 +80,7 @@
81
80
  // 2 usage.
82
81
  // Called without a lot to apply (neither `--tests` nor `--code`), it does not commit: the lot is
83
82
  // already on main (`lotSurMain`, exit 0, nothing done) or it is refused by the name `lot-absent`
84
- // (exit 1), the same rule the circuit's resumption reads (scripts/activites.mjs, grillhouse-bf5.2).
83
+ // (exit 1), the same rule the circuit's resumption reads (scripts/activites.mjs).
85
84
  import { spawnSync } from 'node:child_process';
86
85
  import { existsSync, readFileSync } from 'node:fs';
87
86
  import path from 'node:path';
@@ -197,7 +196,7 @@ export function refusLots(tests, code, { avant, apres }) {
197
196
  * the tip the delivered commit) and that commit names the ticket as `messageDeCommit` writes it,
198
197
  * `(<ticket>)` — a lot the queue entered by fast-forward; its tip naming the ticket keeps a fresh
199
198
  * branch sitting at a commit of main (lancer.sh creates it there, no lot yet) from being taken
200
- * for a delivered lot (grillhouse-bf5.2.1);
199
+ * for a delivered lot;
201
200
  * (b) a commit of main whose message names the ticket (`commitsDelivering`, the prefix read from `.beads/config.yaml`,
202
201
  * a withdrawn one left out) — a lot the queue rebased or merged in a squash, its branch gone or
203
202
  * left behind.
@@ -1,7 +1,9 @@
1
- // The clean copy a lot is replayed in, shared by the integration (scripts/integration/integrer.mjs,
1
+ // The clean copy a lot is replayed in (packages/grillhouse/docs/architecture/entree.md §3.1
2
+ // « La copie de la file », §4.1, §5.1), shared by the integration (scripts/integration/integrer.mjs,
2
3
  // a lot on the main of the moment) and the queue (scripts/integration/file.mjs, a branch replaced
3
4
  // on the main of the moment): the copy made ready and the project's commands. Neither verifies
4
- // there: the CI of the ticket's branch judges the lot (scripts/integration/file.mjs).
5
+ // there: the final pass (`jugerLeCandidat`, scripts/integration/file.mjs) judges the lot laid on
6
+ // the tip of main, before main moves forward, not the CI of a branch.
5
7
  //
6
8
  // - `ouvrirCopie` makes the copy <copie> ready on <ref>: detached, every untracked file removed, its
7
9
  // submodules set (`scripts/sous-modules.sh`, a local modification overwritten; a submodule the
@@ -1,4 +1,5 @@
1
- // The reviewer's verdict at a ticket, as the circuit, the integration and the board read it: a
1
+ // The reviewer's verdict at a ticket, as the circuit, the integration (entree.md §5.1, which
2
+ // refuses a lot without `ACCEPTÉ`) and the board read it: a
2
3
  // module of its own, which imports nothing, so the board reads a verdict without the integration.
3
4
 
4
5
  // The first word of a reviewer's verdict: ACCEPTÉ or RENDU.
@@ -1,7 +1,8 @@
1
1
  // The join of the languages: what the core asks of a module of language (docs/INTERFACE.md, « La
2
2
  // jointure des langages »), the types of scripts/services-du-noyau.mjs (the join of scripts/langages.mjs and
3
3
  // the services of the core to a module) and of scripts/conformite.mjs as the entries
4
- // `@roomi-fields/grillhouse/jointure` and `@roomi-fields/grillhouse/conformite` publish them.
4
+ // `@roomi-fields/grillhouse/jointure` and `@roomi-fields/grillhouse/conformite` publish them. What
5
+ // the core asks of a module, by the mechanism that poses it: docs/architecture/tests.md §3.3.
5
6
 
6
7
  /** A component of the project: its folder (absolute), its name (the folder's), its package name. */
7
8
  export interface Composant {
@@ -1,5 +1,5 @@
1
- // The journal of states of a project (grillhouse-4nr.20, docs/ARCHITECTURE.md « Le journal des
2
- // états »): one dated JSONL line per change of state of the circuits, the queue and the places, a
1
+ // The journal of states of a project (docs/ARCHITECTURE.md « Le journal des états »; machine.md
2
+ // §4.2, the trace of a wait): one dated JSONL line per change of state of the circuits, the queue and the places, a
3
3
  // segment per local date under the common git directory (`<git-common-dir>/grillhouse-journal/
4
4
  // <YYYY-MM-DD>.jsonl`, never versioned), read back as a chronology. As the log of a scheduler: a
5
5
  // whole line in one append, no lock, no wait, so that it never delays what it traces.
@@ -12,8 +12,9 @@
12
12
  // error stream, its code this process's; a failure names on the error stream the command to type.
13
13
  // A machine whose cargo lacks binstall (`cargo --list`) first receives cargo-binstall from cargo,
14
14
  // at its exact version (`cargo install --locked cargo-binstall@<BINSTALL>`, the installation the
15
- // README of cargo-binstall gives): the update installs the binaries without a step by hand
16
- // (grillhouse-qmk, OSC Bridge). Its failure names that command, and no binstall runs.
15
+ // README of cargo-binstall gives). Its failure names that command, and no binstall runs.
16
+ //
17
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language).
17
18
  import { spawnSync } from 'node:child_process';
18
19
  import { pathToFileURL } from 'node:url';
19
20
 
@@ -19,6 +19,8 @@
19
19
  // writes them, a lint more refuses, a lint less is pruned), and written in SARIF under the
20
20
  // results directory (../../resultats.mjs). Clippy red without any diagnostic (a manifest cargo
21
21
  // cannot read, a missing tool) refuses, named, never inscribed.
22
+ //
23
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language), §3.4 (the guards).
22
24
  import { spawnSync } from 'node:child_process';
23
25
  import path from 'node:path';
24
26
  import { pathToFileURL } from 'node:url';
@@ -31,14 +31,13 @@
31
31
  // calls (`grillhouse tests-du-paquet <dossier du crate>`, written with the package): it never runs
32
32
  // Turborepo, so `tester` and the task do not loop. For a crate that plays tests
33
33
  // (./composants.mjs, `joueDesTests`): the build of its test targets, `cargo test --no-run -p
34
- // <crate>`, a task `build` of its own, as Turborepo's `test` depends on `build` (grillhouse-egm);
34
+ // <crate>`, a task `build` of its own, as Turborepo's `test` depends on `build`;
35
35
  // then `cargo nextest run -p <crate> --no-fail-fast`, which finds them built. Then `cargo test
36
36
  // --doc -p <crate>` for a crate whose library has doctests, which nextest does not play. Once
37
37
  // the tests and the benches played, the run removes the test executables its builds made, each
38
38
  // one cargo reports in JSON (`--message-format=json-render-diagnostics`, the `executable` of an
39
39
  // artifact of a test profile), as Swatinem/rust-cache keeps the dependencies and drops the
40
- // workspace's own artifacts: they weighed 3.4 of the 4.6 GiB of a copy of SyntHub
41
- // (grillhouse-pkl.8), and cargo builds again an executable it misses. The libraries, the
40
+ // workspace's own artifacts: cargo builds again an executable it misses. The libraries, the
42
41
  // dependencies and the binaries of `cargo build` (`target/debug/<bin>`, a datum another package's
43
42
  // tests run) stay; only the crate's own task runs its test executables. A failed
44
43
  // build leaves the crate's other tasks not played (`code` null): a test that does not compile is
@@ -53,7 +52,7 @@
53
52
  // A path out of every crate, or in a crate without tests, is refused, named, and nothing plays
54
53
  // (code 2). `--force` changes nothing here: cargo keeps no result of a test to replay. Another
55
54
  // option goes to nextest.
56
- // - A test target is named by its file, as `*_nuit_test.py` and `*.budget.test.*` (grillhouse-wbk):
55
+ // - A test target is named by its file, as `*_nuit_test.py` and `*.budget.test.*`:
57
56
  // `tests/<nom>_nuit.rs` (or `tests/<nom>_nuit/main.rs`, the target `<nom>_nuit`) is a night
58
57
  // test, `tests/<nom>_budget.rs` a time budget bench. A crate played whole leaves both out of
59
58
  // nextest, in `tester` as in `verifier`, which then plays its library (`--lib`), its binaries
@@ -81,8 +80,8 @@
81
80
  // project's root scripts `grillhouse:gardes` (the frame's guards) then `gardes` (its own), each
82
81
  // one the package.json holds a task of the root, by npm, without its tests nor cargo deny, and
83
82
  // keeps no last green.
84
- // - `tests-du-paquet`, `verifier` and `tests-de-nuit` play under a temporary directory of their pass, the module's guard of
85
- // the temporary directory, as the CI of osc-bridge (OB-ud1.3): a base (`ouvrirBase` of
83
+ // - `tests-du-paquet`, `verifier` and `tests-de-nuit` play under a temporary directory of their
84
+ // pass, the module's guard of the temporary directory: a base (`ouvrirBase` of
86
85
  // ./jointure, genre `tests` or `verification`) in the temporary directory of the environment,
87
86
  // named in TMPDIR, TMP and TEMP to cargo, which nextest and the doctests inherit; removed at the
88
87
  // end of the pass, green, red or interrupted (SIGINT, SIGTERM, SIGHUP). What the tests left there
@@ -94,10 +93,10 @@
94
93
  // again at rest after a 75.
95
94
  // - `typer`: `cargo check --all-targets`.
96
95
  // - Cargo runs with rustc wrapped by sccache, its cache common to the copies of the machine
97
- // (./sccache.mjs), in a copy as in an agent's envelope (grillhouse-cyr), its server started
98
- // under the machine's /tmp before each run of cargo that compiles (grillhouse-qmk).
99
- // `tests-du-paquet`, `verifier` and `typer` refuse, before any run of cargo, a PATH without sccache, in one line that names it
100
- // and `npx grillhouse binaires`, which installs it (code 2).
96
+ // (./sccache.mjs), in a copy as in an agent's envelope, its server started under the machine's
97
+ // /tmp before each run of cargo that compiles. `tests-du-paquet`, `verifier` and `typer` refuse,
98
+ // before any run of cargo, a PATH without sccache, in one line that names it and
99
+ // `npx grillhouse binaires`, which installs it (code 2).
101
100
  // - Nextest reads the frame's profile `grillhouse` (./nextest.toml, a tool's configuration under
102
101
  // the project's own, `--tool-config-file`), whose JUnit report lands in nextest's store, at
103
102
  // `<workspace root>/target/nextest/grillhouse/junit.xml` (nextest's default `store.dir`, under
@@ -107,7 +106,7 @@
107
106
  // ran), and the JUnit report of each run of nextest. A task of the workspace is named after its
108
107
  // root, `//`, as Turborepo names the root's tasks.
109
108
  // - `tests-du-paquet` and `verifier` refuse, before any run of cargo, a workspace whose
110
- // Cargo.lock git does not track (grillhouse-rph), in one line that names the file and the
109
+ // Cargo.lock git does not track, in one line that names the file and the
111
110
  // gesture: `git add Cargo.lock`, or `cargo generate-lockfile` first when it is absent. Cargo
112
111
  // recommends committing it for every project, and the verification plays the exact versions of
113
112
  // the repository (`--locked`, as `npm ci` refuses a project without package-lock.json): a lock
@@ -119,6 +118,10 @@
119
118
  // the core's one for every language (`construireDepuisLesArguments` of
120
119
  // scripts/taches-du-graphe.mjs): the plan and its providers by `turbo run build --filter=<paquet>…`.
121
120
  // `construire <chemin>` builds one crate (`cargo build -p`), as the script `build` of its package.
121
+ //
122
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language), §3.4
123
+ // (the guards); `GRILLHOUSE_TESTS` and `GRILLHOUSE_RESULTATS` are data of a pass (tests.md §4.2),
124
+ // and the code applies no key of the project (installation.md §4.2) nor file of the post (§4.3).
122
125
  import { spawnSync } from 'node:child_process';
123
126
  import {
124
127
  closeSync,
@@ -165,6 +168,7 @@ import {
165
168
  joueDesTests,
166
169
  metadonnees,
167
170
  } from './composants.mjs';
171
+ import { ecartsDeLaCible } from './etiquettes.mjs';
168
172
  import { avecSccache, demarrerLeServeur, sccacheAbsent } from './sccache.mjs';
169
173
  import { JUNIT, TACHES } from './verdict.mjs';
170
174
 
@@ -465,7 +469,7 @@ function jouerLesTests(racine, p, choix, options, temporaire = () => ({}), tranc
465
469
  const bancs = [];
466
470
  // The test executables the builds of the run report, removed once its tests played.
467
471
  const executables = [];
468
- for (const { c, cibles: nommees, jour, modules = new Map() } of choix) {
472
+ for (const { c, cibles: nommees, jour, modules = new Map(), sauf = new Map() } of choix) {
469
473
  // Targets named beside the day of the crate (`jour`, a unit test of `src/` named): the day
470
474
  // builds whole, and plays besides the targets named.
471
475
  const cibles = jour && nommees.length === 0 ? [] : nommees;
@@ -504,7 +508,15 @@ function jouerLesTests(racine, p, choix, options, temporaire = () => ({}), tranc
504
508
  // The day of a whole crate with no test at all is green (a crate born of its skeleton,
505
509
  // its target of tests empty); a target or a module named that plays none stays an error.
506
510
  const sansTest = cibles.length === 0 && !tranche ? ['--no-tests=pass'] : [];
507
- const args = [...nextest, '-p', nom, ...selection, ...options, ...sansTest];
511
+ const args = [
512
+ ...nextest,
513
+ '-p',
514
+ nom,
515
+ ...selection,
516
+ ...filtreDesEcarts(nom, sauf),
517
+ ...options,
518
+ ...sansTest,
519
+ ];
508
520
  prevues.push([
509
521
  p.prevoir(nom, d, 'nextest', true, args),
510
522
  { junit, temporaire: temporaire(nom) },
@@ -619,6 +631,21 @@ function filtreDesModules(nom, noms, modules) {
619
631
  return ['-E', parCible.join(' | ')];
620
632
  }
621
633
 
634
+ // The filterset of nextest that leaves out, in the crate <nom>, the modules <sauf> holds (`Map`
635
+ // target → its modules): `not (binary_id(<crate>::<cible>) & (test(/^<module>::/) | …))`; none
636
+ // when nothing is left out.
637
+ function filtreDesEcarts(nom, sauf) {
638
+ if (sauf.size === 0) {
639
+ return [];
640
+ }
641
+ const echapper = s => s.replace(/[.*+?^${}()|[\]\\/]/g, '\\$&');
642
+ const exclus = [...sauf].map(([cible, modules]) => {
643
+ const tests = modules.map(m => `test(/^${echapper(m)}::/)`).join(' | ');
644
+ return `not (binary_id(${nom}::${cible}) & (${tests}))`;
645
+ });
646
+ return ['-E', exclus.join(' & ')];
647
+ }
648
+
622
649
  // The crates the paths <chemins> choose in <racine>: `{ choix }`, or `{ refus }` naming each path
623
650
  // refused.
624
651
  function choisir(racine, tous, chemins) {
@@ -819,7 +846,7 @@ export function verrouNonVersionne(racine) {
819
846
  return `⛔ ${VERROU} absent : cargo generate-lockfile, puis git add ${VERROU}`;
820
847
  }
821
848
  // A tree with no `.git` carries HEAD's Cargo.lock, versioned by construction: nothing is
822
- // unversioned. The check runs git only in <racine> when it is a real git tree (grillhouse-uja).
849
+ // unversioned. The check runs git only in <racine> when it is a real git tree.
823
850
  if (!existsSync(path.join(racine, '.git'))) {
824
851
  return null;
825
852
  }
@@ -904,7 +931,7 @@ export function lancer(nom, args, { racine = process.cwd(), env = process.env }
904
931
  );
905
932
  }
906
933
  if (nom === 'tests-de-nuit') {
907
- return sousLaBase('tests', env, (envBase, pp) => testsDeNuit(racine, tous, envBase, pp));
934
+ return sousLaBase('tests', env, (envBase, pp) => testsDeNuit(racine, tous, envBase, pp, args));
908
935
  }
909
936
  process.stderr.write(`⛔ commande inconnue du module cargo : ${nom} (${NOMS.join(', ')})\n`);
910
937
  return 2;
@@ -1004,11 +1031,39 @@ function restesParPaquet(p, choix, parPaquet) {
1004
1031
 
1005
1032
  // The pass of `tests-de-nuit` in <racine>, the crates <tous>, under <env>: the night tests and the
1006
1033
  // benches of each crate that holds some, each named.
1007
- function testsDeNuit(racine, tous, env, parPaquet) {
1034
+ function testsDeNuit(racine, tous, env, parPaquet, args = []) {
1008
1035
  const p = passe(racine, env);
1036
+ const nuit = {
1037
+ horsDuPoste: args.includes('--hors-du-poste'),
1038
+ sansEquipement: args.includes('--sans-equipement'),
1039
+ mesures: args.includes('--mesures'),
1040
+ };
1009
1041
  const choix = tous
1010
1042
  .filter(c => joueDesTests(racine, c.composant))
1011
- .map(c => ({ c, cibles: c.cibles.filter(horsDuJour).map(t => t.name) }))
1043
+ .map(c => {
1044
+ // The night tests tagged `@poste` (and `@equipee`) that the night of a shared machine leaves
1045
+ // out: a target whose root file bears the tag, a module of a target in a folder (`sauf`).
1046
+ const sauf = new Map();
1047
+ const cibles = c.cibles
1048
+ .filter(horsDuJour)
1049
+ .filter(t => {
1050
+ if (horsDuJour(t) !== 'nuit') {
1051
+ // A shared machine measures no time: the benches play with the measures alone
1052
+ // (`--mesures`), as in the module typescript.
1053
+ return !nuit.horsDuPoste;
1054
+ }
1055
+ if (nuit.mesures) {
1056
+ return false;
1057
+ }
1058
+ const ecarts = ecartsDeLaCible(t.src, nuit);
1059
+ if (ecarts?.length) {
1060
+ sauf.set(t.name, ecarts);
1061
+ }
1062
+ return ecarts !== null;
1063
+ })
1064
+ .map(t => t.name);
1065
+ return { c, cibles, sauf };
1066
+ })
1012
1067
  .filter(x => x.cibles.length);
1013
1068
  if (choix.length) {
1014
1069
  jouerLesTests(racine, p, choix, [], parPaquet.temporaire)();
@@ -13,8 +13,7 @@
13
13
  // ./touches.mjs reads as the whole workspace.
14
14
  // - The shared test material: the crates whose manifest says `[package.metadata.grillhouse]
15
15
  // matiere = true`.
16
- // - A test lives in a file of its own, never in a file of code (decision 5 of the epic
17
- // grillhouse-pkl, amended by grillhouse-agr): the tests by the interface under `tests/` of each
16
+ // - A test lives in a file of its own, never in a file of code: the tests by the interface under `tests/` of each
18
17
  // crate, where cargo finds its integration tests; the unit tests near their module, under
19
18
  // `src/`, in a file `tests.rs` or a folder `tests/`, as rustc's tidy check wants them
20
19
  // (src/tools/tidy/src/unit_tests.rs), declared in the module by `#[cfg(test)] mod tests;`, a line
@@ -35,12 +34,14 @@
35
34
  // declares the deps of its target; and Cargo.lock at the root, which cargo brings in line with
36
35
  // them. A change of any other table is named by it; the Cargo.toml of a virtual workspace is
37
36
  // no crate's. Of a file of code of `src/` of a crate, the testwriter writes its test module
38
- // alone (grillhouse-agr): the declaration `#[cfg(test)] mod tests;` added or removed, without
37
+ // alone: the declaration `#[cfg(test)] mod tests;` added or removed, without
39
38
  // which a new tests.rs is never compiled, and an inline `#[cfg(test)] mod tests { … }` removed,
40
39
  // which he moves into tests.rs; any other change is named by its first line. The manifests are
41
40
  // read with smol-toml, a tool of this module (`outils`), an optional peer of the package loaded
42
41
  // when a manifest is judged, so that a project of another language, which loads this module
43
42
  // without it, never needs it.
43
+ //
44
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language).
44
45
  import { spawnSync } from 'node:child_process';
45
46
  import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';
46
47
  import { createRequire } from 'node:module';
@@ -12,6 +12,8 @@
12
12
  // - The module reads no element of a Rust source: each `.rs` the lot changes is named in
13
13
  // `horsDuService`, and the reviewer surveys its items himself (`service` says why).
14
14
  // - Every file the lot changes is named in `fichiers`.
15
+ //
16
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language).
15
17
  import { spawnSync } from 'node:child_process';
16
18
  import path from 'node:path';
17
19
 
@@ -0,0 +1,87 @@
1
+ // The tags of the night tests of a crate, read as the module typescript reads them
2
+ // (the one rule of every language, ../typescript/vitest-config/cibles.mjs): `// @poste: <reason>`
3
+ // and `// @equipee: <reason>` in the comment at the head of a test file. In a crate, a night test
4
+ // is the target `tests/<nom>_nuit.rs` (the tag is read in that file) or a module of the target
5
+ // `tests/<nom>_nuit/main.rs` (the tag is read in the module's file, `tests/<nom>_nuit/<module>.rs`).
6
+ // `tests-de-nuit --hors-du-poste` leaves out the tagged `@poste`, with `--sans-equipement` the
7
+ // tagged `@equipee` too (./commandes.mjs).
8
+ import { readdirSync, readFileSync } from 'node:fs';
9
+ import path from 'node:path';
10
+
11
+ // Whether the text <texte> bears the line `// <etiquette>` in the comment at its head, before its
12
+ // first line of code (the rule of ../typescript/vitest-config/cibles.mjs, which a module of
13
+ // language cannot import).
14
+ function porteLEtiquette(texte, etiquette) {
15
+ const re = new RegExp(`^//\\s*${etiquette}\\b`);
16
+ for (const ligne of texte.split('\n')) {
17
+ const l = ligne.trim();
18
+ if (re.test(l)) {
19
+ return true;
20
+ }
21
+ if (l !== '' && !l.startsWith('//')) {
22
+ return false;
23
+ }
24
+ }
25
+ return false;
26
+ }
27
+
28
+ /**
29
+ * Whether the text <texte> of a test file bears a tag the night <nuit> leaves out:
30
+ * `{ horsDuPoste, sansEquipement }`.
31
+ * @param {string} texte
32
+ * @param {{ horsDuPoste?: boolean, sansEquipement?: boolean }} [nuit]
33
+ */
34
+ export function ecarteeDeLaNuit(texte, { horsDuPoste = false, sansEquipement = false } = {}) {
35
+ return (
36
+ (horsDuPoste && porteLEtiquette(texte, '@poste')) ||
37
+ (horsDuPoste && sansEquipement && porteLEtiquette(texte, '@equipee'))
38
+ );
39
+ }
40
+
41
+ // The `.rs` files under <dossier>, absolute, in order.
42
+ function fichiersRs(dossier) {
43
+ return readdirSync(dossier, { withFileTypes: true })
44
+ .sort((a, b) => a.name.localeCompare(b.name))
45
+ .flatMap(e => {
46
+ const f = path.join(dossier, e.name);
47
+ if (e.isDirectory()) {
48
+ return fichiersRs(f);
49
+ }
50
+ return e.isFile() && e.name.endsWith('.rs') ? [f] : [];
51
+ });
52
+ }
53
+
54
+ /**
55
+ * What the night <nuit> leaves out of the test target at <src> (the file of its root): `null`
56
+ * when the whole target is left out (its root file bears the tag), else the module paths of its
57
+ * executable that are (`tests/it_nuit/foo.rs` → `foo`, `foo/mod.rs` → `foo`,
58
+ * `foo/sous.rs` → `foo::sous`), empty when none.
59
+ * @param {string} src
60
+ * @param {{ horsDuPoste?: boolean, sansEquipement?: boolean }} nuit
61
+ * @returns {string[] | null}
62
+ */
63
+ export function ecartsDeLaCible(src, nuit) {
64
+ const ecartee = f => ecarteeDeLaNuit(readFileSync(f, 'utf8'), nuit);
65
+ if (ecartee(src)) {
66
+ return null;
67
+ }
68
+ if (path.basename(src) !== 'main.rs' || path.basename(path.dirname(src)) === 'tests') {
69
+ return [];
70
+ }
71
+ const dossier = path.dirname(src);
72
+ const modules = [];
73
+ for (const f of fichiersRs(dossier)) {
74
+ if (f === src || !ecartee(f)) {
75
+ continue;
76
+ }
77
+ const parts = path.relative(dossier, f).split(path.sep);
78
+ parts[parts.length - 1] = parts[parts.length - 1].replace(/\.rs$/, '');
79
+ if (parts.at(-1) === 'mod') {
80
+ parts.pop();
81
+ }
82
+ if (parts.length) {
83
+ modules.push(parts.join('::'));
84
+ }
85
+ }
86
+ return modules;
87
+ }
@@ -2,7 +2,7 @@
2
2
  // One executable of integration tests per crate and per moment, on the model of Cargo's own
3
3
  // testsuite (`tests/testsuite/main.rs`, each test file a module) and of matklad's « Delete Cargo
4
4
  // Integration Tests »: each file of `tests/` is an executable cargo links apart, with every
5
- // dependency (62 of about 90 MB in a copy of SyntHub, grillhouse-pkl.9); one entry point links one.
5
+ // dependency; one entry point links one.
6
6
  //
7
7
  // npx grillhouse executables-de-tests run from the repository root (a guard of grillhouse:gardes)
8
8
  //
@@ -21,6 +21,8 @@
21
21
  // (./migrations/0.34.0-executables-de-tests.mjs), the count never rises, and a new one is
22
22
  // refused.
23
23
  // - The guard writes on its error stream the count of the crates and of their executables.
24
+ //
25
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language), §3.4 (the guards).
24
26
  import path from 'node:path';
25
27
  import { pathToFileURL } from 'node:url';
26
28
  import { MODE, trancher } from '../../dette.mjs';
@@ -8,17 +8,19 @@
8
8
  // `ws-outil`, which depends on `ws-app` for its tests (`dev`) and on `ws-core` for its build
9
9
  // script (`build`); `ws-matiere`, the shared test material (`[package.metadata.grillhouse]
10
10
  // matiere = true`); the interfaces of `ws-core`, of `ws-app` and of the root, and the index of the
11
- // interfaces they give, up to date (grillhouse-pkl.6). Committed: `espace`; the same with a second commit
11
+ // interfaces they give, up to date. Committed: `espace`; the same with a second commit
12
12
  // that changes `ws-core`, adds the crate `ws-neuf` and removes `ws-outil`: `lot`; the same, the
13
13
  // interface of `ws-core` then changed, its index late: `enRetard`.
14
- // - Each workspace commits its Cargo.lock, the one cargo writes (grillhouse-rph): the commands
14
+ // - Each workspace commits its Cargo.lock, the one cargo writes: the commands
15
15
  // tester, verifier and tests-de-nuit refuse a workspace whose Cargo.lock git does not track.
16
- // - A crate at the root, its workspace `members = ["."]`, with its tests, as OSC Bridge: `seul`;
16
+ // - A crate at the root, its workspace `members = ["."]`, with its tests: `seul`;
17
17
  // a crate at the root holding a second crate, `crates/aide`, none with tests: `imbrique`.
18
18
  // - A directory without Cargo.toml: `vide`.
19
19
  // - Two results directories of a run: every task and test green (`vert`); `ws-core` at 75,
20
20
  // `ws-app` red with a test of `integ` failed, `ws-outil` not played (`defaut`).
21
21
  // - `depots`: the repositories, for the tests of the module beside the suite.
22
+ //
23
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language).
22
24
  import { execFileSync } from 'node:child_process';
23
25
  import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
24
26
  import path from 'node:path';
@@ -85,7 +87,7 @@ export const INDEX = [
85
87
 
86
88
  // The Cargo.lock that cargo writes for the crates <paquets> (`[nom, [dépendance…]]`), each at
87
89
  // 0.1.0, sorted by name, as `cargo generate-lockfile` writes it: every trial commits its own, as
88
- // Cargo recommends for every project (grillhouse-rph).
90
+ // Cargo recommends for every project.
89
91
  const verrou = paquets =>
90
92
  [
91
93
  '# This file is automatically @generated by Cargo.',
@@ -16,6 +16,8 @@
16
16
  // the rule `dependance-non-permise`, a message naming both crates and the kind. The findings are
17
17
  // judged by the debt (../../dette.mjs) and written in SARIF (../../resultats.mjs); cargo unable
18
18
  // to answer refuses, named, never inscribed.
19
+ //
20
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language), §3.4 (the guards).
19
21
  import path from 'node:path';
20
22
  import { pathToFileURL } from 'node:url';
21
23
  import { MODE, trancher } from '../../dette.mjs';
@@ -19,6 +19,8 @@
19
19
  // root, as OSC Bridge), else `(racine) — <title>`.
20
20
  // - No line per element: a crate's interface has no part generated from its code, which the
21
21
  // index of the module typescript reads its elements from.
22
+ //
23
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language).
22
24
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
23
25
  import path from 'node:path';
24
26
  import { fileURLToPath, pathToFileURL } from 'node:url';
@@ -30,12 +30,13 @@
30
30
  // (./frontieres.mjs), the index of the interfaces up to date, each a command by its name too
31
31
  // (./commandes.mjs), which the line of a red guard names; the entries of the index of each
32
32
  // interface (`entreesDeLIndex`), which the core assembles in a project of several languages.
33
- // - Its migrations (./migrations/): 0.28.4, the large tests of the day a project holds inscribed
34
- // in its debt when the guard of the sizes arrives; 0.34.0, the executables of tests too many
35
- // inscribed when the guard of the executables arrives.
33
+ // - Its migrations (./migrations/): the large tests of the day, then the executables of tests too
34
+ // many, a project holds are inscribed in its debt when the guard of each arrives.
36
35
  // - Its share of the update (./mise-a-jour.mjs, `miseAJour`): the template of a project of cargo
37
36
  // (`templates/cargo/`) and its test scripts.
38
37
  // - The skeleton of a new crate (./squelette.mjs, `squelette`), which `grillhouse paquet` writes.
38
+ //
39
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language).
39
40
  import { readFileSync } from 'node:fs';
40
41
  import path from 'node:path';
41
42
  import { fileURLToPath } from 'node:url';
@@ -67,7 +68,7 @@ const ici = nom => path.join(path.dirname(fileURLToPath(import.meta.url)), nom);
67
68
 
68
69
  export default {
69
70
  nom: 'cargo',
70
- // The expected size of a copy before any is measured: its target/, 2 to 7.6 GB (2026-11-11).
71
+ // The expected size of a copy before any is measured: its target/.
71
72
  tailleDUneCopie: 8 * 1024 ** 3,
72
73
  manifeste: 'Cargo.toml',
73
74
  nomDuManifeste,
@@ -82,9 +83,8 @@ export default {
82
83
  // The programs the installer of Temporal requires in the PATH of the workers: cargo's folder is
83
84
  // also rustc's, nextest's and sccache's (rustup, `cargo install`).
84
85
  executables: ['cargo'],
85
- // The binaries the module runs, each at an exact version: nextest and cargo-deny at the ones the
86
- // probe of grillhouse-pkl.1 measured; sccache, the cache of compilation common to the copies
87
- // (./sccache.mjs), at the last release of mozilla/sccache, v0.19.0 (2026-10-24).
86
+ // The binaries the module runs, each at an exact version (nextest, cargo-deny, sccache, the
87
+ // cache of compilation common to the copies, ./sccache.mjs).
88
88
  binaires: JSON.parse(readFileSync(ici('binaires.json'), 'utf8')),
89
89
  // What cargo writes in a project: its target directory.
90
90
  ignorer: ['target'],
@@ -95,8 +95,7 @@ export default {
95
95
  // (./sccache.mjs), where a server of sccache the session starts writes; the targets of the
96
96
  // workspaces rooted in the temporary directory, `~/.cache/grillhouse/cargo/` (./sccache.mjs). What it reads, read-only: its home, `~/.cargo`
97
97
  // (its binaries, its `env`, which the shells source, and its configuration stay unwritten), and
98
- // rustup's toolchains, `~/.rustup`. Measured on 2026-10-30: `cargo fetch --locked` of
99
- // osc-bridge in bwrap with these mounts alone, green, the cache of its packages written.
98
+ // rustup's toolchains, `~/.rustup`.
100
99
  sorties: {
101
100
  ecrites: [
102
101
  'target/',
@@ -1,11 +1,9 @@
1
- // From 0.28.4 the guard of the sizes of the tests in Rust (scripts/langages/cargo/tailles-des-tests.mjs)
2
- // refuses a large test of the day, one that mounts a trial repository and starts the product
3
- // there, as the module typescript's guard does since 0.25.0. A project of cargo that updates may
4
- // hold such tests already (SyntHub, OSC Bridge), and its main would turn red at its next pass. As
5
- // the module typescript's migration (../../typescript/migrations/0.25.0-tailles-des-tests.mjs) and
6
- // ESLint's `--suppress-all` do once at the passage of a rule, the update inscribes them as the
7
- // project's known debt (scripts/dette.mjs), frozen: the count never rises, a new large test of the
8
- // day is refused, and its verification does not change that day.
1
+ // The migration of the guard of the sizes of the tests in Rust (../tailles-des-tests.mjs): the
2
+ // large tests of the day a project of cargo holds when the guard arrives are inscribed as the
3
+ // project's known debt (scripts/dette.mjs), frozen, as ESLint's `--suppress-all` does at the
4
+ // passage of a rule and as the module typescript's migration does
5
+ // (../../typescript/migrations/0.25.0-tailles-des-tests.mjs): the count never rises, a new large
6
+ // test of the day is refused.
9
7
  //
10
8
  // - The migration writes the section of the guard in `grillhouse-dette.json` when the guard finds a
11
9
  // large test of the day and the file holds no section of it yet; the rest of the debt stays.
@@ -13,6 +11,8 @@
13
11
  // (a module of `tests/it_nuit/`) or reduces it, and the debt comes down with it.
14
12
  // - Replayable without effect: once the section is written, nothing (a debt lowered since never
15
13
  // rises again).
14
+ //
15
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language), §3.4 (the guards).
16
16
  import { FICHIER, lire, trancher } from '../../../dette.mjs';
17
17
  import { GARDE, verifier } from '../tailles-des-tests.mjs';
18
18
 
@@ -1,11 +1,8 @@
1
- // From 0.34.0 the guard of the executables of tests in Rust (../executables-de-tests.mjs) refuses a
2
- // crate with more than one executable of integration tests of a moment (the day, the night, the
3
- // benches). A project of cargo that updates holds such crates already (SyntHub, OSC Bridge, one
4
- // executable per file of `tests/`), and its main would turn red at its next pass. As the migration
5
- // of the sizes (./0.28.4-tailles-des-tests.mjs) and ESLint's `--suppress-all` do once at the
6
- // passage of a rule, the update inscribes them as the project's known debt (scripts/dette.mjs),
7
- // frozen: the count never rises, a new executable is refused, and its verification does not change
8
- // that day.
1
+ // The migration of the guard of the executables of tests in Rust (../executables-de-tests.mjs):
2
+ // the crates with more than one executable of integration tests of a moment (the day, the night,
3
+ // the benches) a project of cargo holds when the guard arrives are inscribed as the project's
4
+ // known debt (scripts/dette.mjs), frozen, as the migration of the sizes
5
+ // (./0.28.4-tailles-des-tests.mjs) does: the count never rises, a new executable is refused.
9
6
  //
10
7
  // - The migration writes the section of the guard in `grillhouse-dette.json` when the guard finds
11
8
  // an executable too many and the file holds no section of it yet; the rest of the debt stays.
@@ -13,6 +10,8 @@
13
10
  // (`tests/it_nuit/`, `tests/it_budget/`), and the debt comes down with it.
14
11
  // - Replayable without effect: once the section is written, nothing (a debt lowered since never
15
12
  // rises again).
13
+ //
14
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md §3.3 (the modules of language), §3.4 (the guards).
16
15
  import { FICHIER, lire, trancher } from '../../../dette.mjs';
17
16
  import { GARDE, verifier } from '../executables-de-tests.mjs';
18
17