@roomi-fields/grillhouse 0.34.2 → 0.35.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 (37) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +21 -13
  3. package/cadre/templates/projet/.claude/settings.json +0 -1
  4. package/charte.md +4 -4
  5. package/docs/ARCHITECTURE.md +10 -4
  6. package/docs/INTERFACE.md +4 -3
  7. package/hooks/crochet.mjs +0 -6
  8. package/package.json +1 -1
  9. package/scripts/activites.mjs +41 -7
  10. package/scripts/circuit.mjs +10 -2
  11. package/scripts/enveloppe/enveloppe.mjs +44 -14
  12. package/scripts/enveloppe/lancer.sh +5 -1
  13. package/scripts/enveloppe/paquets-du-plan.mjs +3 -0
  14. package/scripts/flux-des-paquets.mjs +22 -8
  15. package/scripts/grillhouse-maj.mjs +19 -0
  16. package/scripts/mesure/base-de-passe.mjs +7 -0
  17. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +41 -0
  18. package/scripts/migrations.mjs +2 -0
  19. package/scripts/places-du-serveur.mjs +12 -2
  20. package/scripts/seances.mjs +24 -2
  21. package/scripts/superviseur.mjs +6 -1
  22. package/scripts/tableau.mjs +19 -2
  23. package/scripts/verrous/verrou.mjs +7 -0
  24. package/skills/codebase-design/DEEPENING.md +37 -0
  25. package/skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
  26. package/skills/codebase-design/SKILL.md +114 -0
  27. package/skills/domain-modeling/ADR-FORMAT.md +47 -0
  28. package/skills/domain-modeling/GLOSSARY-FORMAT.md +60 -0
  29. package/skills/domain-modeling/SKILL.md +74 -0
  30. package/skills/grill/SKILL.md +4 -5
  31. package/skills/grilling/SKILL.md +30 -0
  32. package/skills/pitmaster/SKILL.md +4 -3
  33. package/skills/pitmaster/references/cadre.md +1 -1
  34. package/skills/redacteur/SKILL.md +1 -1
  35. package/skills/testwriter/SKILL.md +7 -4
  36. package/skills/writing-for-agents/SKILL-MECHANICS.md +22 -0
  37. package/skills/writing-for-agents/SKILL.md +81 -0
@@ -5,5 +5,5 @@
5
5
  "author": {
6
6
  "name": "Romain Peyrichou"
7
7
  },
8
- "version": "0.34.2"
8
+ "version": "0.35.0"
9
9
  }
package/CHANGELOG.md CHANGED
@@ -6,6 +6,22 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.35.0] - 2026-11-12
10
+
11
+ - **A question deferred goes up again at its hour, not an hour later** (grillhouse-sjj): Beads writes `defer_until` at the local wall time of the machine with a « Z » it does not mean (`--defer 17:30` gives `…T17:30:00Z`), and the wait read it as UTC, one hour late in winter, two in summer. `horsAttente` (scripts/superviseur.mjs) now reads it as Beads writes it. **Action for projects**: none.
12
+
13
+ - **The proof of the red puts aside the tests of the frame's plugin** (grillhouse-1au): the proof refused three times the lot of grillhouse-nglm, `mods/grillhouse/tests/*.test.ts*` « not loading (code 2) »: `npm test` refuses a path out of every package, and `claude plugin test` plays the plugin's tests in the guards with no report test by test. As a night test, a test file of the lot out of every package of the language is put aside, named in the report (« joués par les contrôles »), never counted as not loading (`separerLesFichiersDuJour`, `sectionHorsDesPaquets`, scripts/activites.mjs). **Action for projects**: none.
14
+
15
+ - **The board of several projects gives each project its three lines of states** (grillhouse-cw6): the board of SyntHub's three projects showed neither the queue nor « sans go · à valider · reportés » nor « bloqués », which grillhouse-d7y had given one project's board alone. Each project now has the three lines of one project's board, the first under its label, the two others aligned below it, the third in its tone of alert. **Action for projects**: none.
16
+
17
+ - **The probe of a port no longer takes a connection to itself for a server** (grillhouse-jye.9): the night of 2026-11-12 saw a closed port « listened » in 420 ms, Linux opening a connection to a free local port from that same port (TCP simultaneous open). The probe (`ecoute`, scripts/places-du-serveur.mjs) counts a connection whose local end is its remote end as no server (`connecteeASoi`), as go-redis does; and its test probes the reserved port 1 for a refusal, since the port it has just closed may be taken already by a test running beside it. **Action for projects**: none.
18
+
19
+ - **The envelope opens the own outputs of the language in every package out of the plan** (grillhouse-44b.10.6.1): `npm run verifier -- --gardes` plays every package, and Turborepo writes its journal in `.turbo/` of each, but the envelope gave that only to the root and the test material, so a package out of the plan (`packages/grillhouse-essais`) stayed read-only: « Read-only file system », then « le résumé de la passe ne se lit pas ». As a sandbox of Bazel opens the declared outputs whatever the package, the launcher now creates the missing own outputs (`.turbo`, `node_modules/.vite`) in each package the plan does not name (`preparerLesSorties`) while the copy is writable, and the plan mounts an empty one of each over it; the rest of the package stays read-only, and an output a link carries out of the copy is left out. **Action for projects**: none.
20
+
21
+ - **The four skills of mattpocock the frame calls live in its plugin, and the whole plugin leaves** (grillhouse-8gp): the template and the repository enabled `mattpocock-skills` whole, about 76 skills in the context of every session, while the frame calls four. As a project vendors the small part of a dependency it uses, with its licence and its origin, `grilling`, `writing-for-agents`, `codebase-design` and `domain-modeling` (version 1.3.1, MIT) are now `grillhouse:<name>` under `mods/grillhouse/skills/`, `CREDITS.md` names their origin and carries the licence, and the charter, the grill and the writer call them so. The template no longer enables `mattpocock-skills`, and the grill no longer falls back when it is missing. The migration of `npx grillhouse maj` (0.35.0) removes `mattpocock-skills@claude-plugins-official` from `enabledPlugins` of a project's `.claude/settings.json` and says so once; it cannot tell a project that enabled it for itself, which re-enables it by hand. **Action for projects**: none; a project that calls another skill of `mattpocock-skills` enables the plugin again.
22
+
23
+ - **The update names each flow of the CI without entry in `grillhouse.flux`** (grillhouse-dvu): the guard `flux-des-paquets` refuses a file of `.github/workflows` that `grillhouse.flux` does not declare, but no CHANGELOG had told the projects to declare it (reported by SyntHub at 0.34.0). As the update already says what a project must write, `grillhouse maj` now names each such flow and the command that writes the whole object (`npm pkg set --json grillhouse.flux=…`): the declared entries kept as they are, each missing flow with the list `["<paquet>"]`, a name the graph does not know, so the guard stays red until the project names the package the flow exercises. The guard and the update read the flows without entry through one function (`fluxSansEntree`, scripts/flux-des-paquets.mjs). **Action for projects**: a project whose flows have no entry in `grillhouse.flux` runs the command the update prints, then replaces each `<paquet>` by the name of the package the flow exercises.
24
+
9
25
  ## [0.34.2] - 2026-11-12
10
26
 
11
27
  - **The pre-push hook sees a green CI as soon as its run is green** (grillhouse-do5e): on 2026-11-12, main could not advance on a commit whose ticket branch CI was green, the hook asking GitHub for the runs of the commit filtered by `success`, a filter that lags the runs by minutes. It now lists the runs of the commit and reads each one's conclusion (`jugeeDansLesRuns`, scripts/branche-de-nuit.mjs). **Action for projects**: none.
@@ -177,23 +193,10 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
177
193
 
178
194
  - **The Temporal tests that mount a server are night tests** (grillhouse-4nr.16): under load, the day's setup of a real Temporal server failed (« Channel has been shut down », « serveur sorti (2) ») and held back the pass of every ticket. Nine files of `tests/temporal/` that start a server are now `*.nuit.spec.ts` (sonde, essai, base-de-reference, file, tickets, passes-de-la-machine, places, circuit, places-de-la-machine), played at night alone; those that mount none (client, commande, etat, installation, acte-mort, tickets-activites) stay of the day. The guard of the sizes (`tailles-des-tests`) classes large a test whose text or test material starts a Temporal development server (`'server', 'start-dev'`), so a day `*.spec.ts` that does is refused. The quarantine of 2026-11-08 is lifted: the tests run at night, without `skip`. **Action for projects**: none.
179
195
 
180
- ### Changed
181
-
182
196
  - **Every role of the circuit names its model, Sonnet but the developpeur's last session, and no session fixes the effort** (grillhouse-3uv.98): the testwriter and the developpeur's first two sessions took the account's default (`~/.claude/settings.json`), so the supervisor's model; they now receive `--modele sonnet`, as the explorateur, the questionneur and the reviewer (now on Sonnet, no longer Opus) do. The developpeur's last session (the third) takes `--modele opus`, the testwriter never; `FORT` no longer carries `--effort high` and no session passes `--effort`, so the effort stays adaptive. The comment the circuit writes after a strong session names opus without an effort. **Action for projects**: none.
183
197
 
184
198
  ## [0.30.0] - 2026-11-07
185
199
 
186
- ### Changed
187
-
188
- - **The circuit runs under Temporal, its command the client of its workflow** (grillhouse-4nr.12): built in the branch `temporal`. `npx grillhouse circuit <ticket>` no longer starts a daemon: it puts the ticket in the queue of the tickets of the project (`ticketsDuProjet`) and gives the hand back at once; `--reprendre`, `--depuis`, `--etendre` and `--arreter` answer the workflow of the ticket on the server (`src/temporal/circuit/commande.ts`, `client.ts`), and `--rattacher` is gone. What a launch reads of its ticket (its title, its plan) is one module, `scripts/depart-du-ticket.mjs` (`ticketAuLancement`, refusal `DepartRefuse`); `--arreter` reads neither the title nor the plan. `--arreter` on a lot integrated says « le lot de <ticket> est intégré » and on a ticket without a circuit that none runs, code 2, nothing signalled. A workflow terminated by force or failed reopens by `--reprendre`, from the state its last memo holds whole (`ecrit`, beside its summary `etat`), or by `--depuis`, `--etendre` and `--arreter` refused there; the answers the client accepts have one rule (`lesReponses` of `scripts/reponses-du-circuit.mjs`, `reponse` of each circuit read), which the opening, the wait and the board propose, nothing else; a server that does not answer within the 5 s of the reading is the board's first alert (« Temporal ne répond pas en 5 s »), its tickets shown without their circuits, and any other fault of the reading is the first alert, as it is (« Circuits illisibles : … »), and the card of a ticket with a circuit ends on the page of its workflow on the web UI of the server; the command of the circuit and `temporal etat`, which read the server within 2 s, say « Temporal ne répond pas en 2 s », one text built by one rule (`sansReponseEn` of `scripts/sans-reponse.mjs`); the replay of a ticket's branch by the queue (the act `avancer`) writes its progress in the ticket's working directory, as every automatic pass does (`avecLAvancementDuTravail`); the supervisor's session goes from `npx grillhouse circuit` to the stop gone up (`EntreeDuCircuit.superviseur`, the signal `seanceDuSuperviseur` of the queue of the tickets, `OuReprendre.superviseur` of the answers), which the bilan reads; the question of a stop « inattendu » whose own act failed names its cause, the first line of the error; each act after the opening of a run builds its context on the plan its workflow holds, reading only the subject of the title, since the integration removes the ticket's copy while the circuit still runs; the working directory of the ticket, which holds the progress of the queue and of the CI, is removed once the queue is done with the ticket closed (`retirerLeTravail` of `scripts/integration/file.mjs`: its CI concluded, or its push not made), no longer at its closure before the push; `scripts/copies-finies.mjs` imports nothing of `dist/`, so that the configurations of the tests load in a project that holds the frame's scripts alone, its command being `scripts/retirer-les-copies-finies.mjs`, which the night runs; a ticket Beads cannot show and a package `--etendre` names that the repository lacks are refused at the door, code 2. The workflow `file:<racine>` is the one register of the queue; the label `en-file` marks a lot already committed. The places of the machine live on the server (`placesDeLaMachine`), each pass takes its own, and a server that does not answer stops the pass, code 1. The memory one act passes to the next keeps the tools, the data, the generated files and the context, no longer the flows of the CI. `TEMPORAL` is no longer a `globalEnv` of Turborepo; it stays in `globalPassThroughEnv`, which the guard of the tools of `grillhouse.outils` requires. `attendreLaSeance` of `scripts/seances.mjs` is removed. The installation of the account's Temporal sets the retention of the namespace `default` to 30 days at each start of the server's unit, once it answers (start-dev gives 24 h); each worker runs the published version of the frame the project names (`grillhouse.outil`), laid down under `~/.cache/grillhouse/outil/<version>/` when absent, a version without a worker refused by its name; each worker's unit names the PATH of the account's tools a circuit runs (node, npm, claude, bd, gh; one not found refused by its name before anything is written) and the project's tools (`grillhouse.outils`); every refusal comes before any writing (the archive, an account's tool, a fault of `grillhouse.outils`, a published version without a worker), but one: the published version is laid down in its cache first, because the refusal of a version without a worker reads it there. `--maison` also holds the cache of the published versions. The search of a command in the PATH is one function of the core, `trouverDansLePath` (`scripts/commandes-du-path.mjs`, given to the modules of language by the join), which the installation, the preparation and the module cargo (sccache) call.
189
- - **A targeted run refuses a night test it names**: on 2026-11-06 an agent replayed the night tests of a branch one by one in the day, eight hours of the machine. As the charter has it, a night test plays at night alone. `npm test -- <chemins>` (and `test:forcer`) now refuses a night test named (`*.nuit.test.*`, `*.nuit.spec.*`, `tests/<nom>_nuit.rs`, `*_nuit_test.py`), by its name, and plays nothing (code 2 for cargo and Python, a red for Vitest); `npx grillhouse nuit` (`tests-de-nuit`) plays it. A time budget bench or a time witness named still plays, under the measure of time. The proof of the red already set night tests aside. **Action for projects**: none; a night test is checked at night.
190
-
191
- ### Changed
192
-
193
- - **A targeted run refuses a night test it names**: on 2026-11-06 an agent replayed the night tests of a branch one by one in the day, eight hours of the machine. As the charter has it, a night test plays at night alone. `npm test -- <chemins>` (and `test:forcer`) now refuses a night test named (`*.nuit.test.*`, `*.nuit.spec.*`, `tests/<nom>_nuit.rs`, `*_nuit_test.py`), by its name, and plays nothing (code 2 for cargo and Python, a red for Vitest); `npx grillhouse nuit` (`tests-de-nuit`) plays it. A time budget bench or a time witness named still plays, under the measure of time. The proof of the red already set night tests aside. **Action for projects**: none; a night test is checked at night.
194
-
195
- - **Each size of test has its delay, the defaults of Bazel** (grillhouse-44b.10.7): as Bazel's test-encyclopedia (small 60 s, medium 300 s, large 900 s), a day test file is killed at the delay of its size, read by the classification of the guard of the sizes (`classer`), a file out of the day that a targeted run names has the large delay, and a night test has 900 s in the night configuration. The three delays are written once, in `vitest-config/bornes.mjs`. `slowTestThreshold` is fixed at 300 ms, and the duration report names the 20 slowest files and their share of the time. The line of a red test for a delay past writes the size and the delay of its file (« petit, 60 s »). There is no debt of the delays. **Action for projects**: none.
196
-
197
200
  ### Added
198
201
 
199
202
  - **The board and the supervisor read the circuits from the Temporal server** (grillhouse-4nr.10): built in the branch `temporal`, which reads only Temporal. The board, the opening of a session of supervision and the wait of the questions read the circuits of a repository in one call to the server (`lireLesCircuits` of `src/temporal/circuit/client.ts`, a list of the workflows, their memo and their status, no worker living, through `scripts/circuits-du-serveur.mjs`), as the UI of Temporal lists its workflows, and no longer read the states `<copie>.circuit.json`: the workflow of a ticket publishes in its memo the summary of the last state it writes (`etat`: step, attempt, stop and first line of its report, object of its questioning, loops, start of its step led) and its question numbered in its run (`numero`); the recorded history `circuit-integre.json` is recorded again for this memo. A circuit runs while its workflow runs without a question awaited, and ends without its issue when it is terminated, failed, timed out or cancelled without a question, its question the command that resumes it. The progress of a pass of the circuit opens in the working directory of its ticket (`<copie>.travail/avancement-*`, one pass at a time), where the board reads it, no longer named in the state. A reading waits 5 s for the server at most: a server down is said at the opening, leaves the board without circuits, and the wait reads again at its next step; a client not built (`dist/` absent) is said for what it is, with the command that builds it. Past its length of history, the workflow of a ticket passes its memo to its next run, which Continue-As-New does not carry by itself. The median of twenty readings of forty circuits stays under 50 ms (a bench of the night; 21 ms measured at rest). The board, its entry and the opening of the supervisor are asynchronous. The wait of the questions reads the circuits every 5 s, without watching a folder; the normal end of a circuit never ends it; a question gone up is kept by its ticket, the run of its workflow, the rank of its question and its stop, and the opening names every question that waits, those gone up included, so that a session closed then opened again finds them all. The bilan receives where its circuit ended from the end of the circuit (the effect `bilan` carries `{ etape, raison, code }`; the command `npx grillhouse bilan` reads it from the workflow's memo), and the removal of the finished copies receives the circuits that run from its caller (the command reads them from the server; the end of a circuit gives none, its line then saying only that the circuit has its working directory): neither reads a state. The former queue of the tickets (`lancerLaFile`, played at the end of a circuit by the effect `file` and at the opening of the supervisor, its section « ## La file des tickets ») is removed: the queue of the tickets under Temporal replaces it, never two engines alive; `scripts/file-des-tickets.mjs` keeps the rule (`ticketsAPartir`) and the reading of Beads. The inscription of a question its caller read (grillhouse-pq6.1, the effect `question-lue`, `inscrireLaQuestionLue`, `sortieLue` of `scripts/demon.mjs`) is removed: its key, the process of the run, matches no key the server gives.
@@ -214,6 +217,11 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
214
217
 
215
218
  ### Changed
216
219
 
220
+ - **The circuit runs under Temporal, its command the client of its workflow** (grillhouse-4nr.12): built in the branch `temporal`. `npx grillhouse circuit <ticket>` no longer starts a daemon: it puts the ticket in the queue of the tickets of the project (`ticketsDuProjet`) and gives the hand back at once; `--reprendre`, `--depuis`, `--etendre` and `--arreter` answer the workflow of the ticket on the server (`src/temporal/circuit/commande.ts`, `client.ts`), and `--rattacher` is gone. What a launch reads of its ticket (its title, its plan) is one module, `scripts/depart-du-ticket.mjs` (`ticketAuLancement`, refusal `DepartRefuse`); `--arreter` reads neither the title nor the plan. `--arreter` on a lot integrated says « le lot de <ticket> est intégré » and on a ticket without a circuit that none runs, code 2, nothing signalled. A workflow terminated by force or failed reopens by `--reprendre`, from the state its last memo holds whole (`ecrit`, beside its summary `etat`), or by `--depuis`, `--etendre` and `--arreter` refused there; the answers the client accepts have one rule (`lesReponses` of `scripts/reponses-du-circuit.mjs`, `reponse` of each circuit read), which the opening, the wait and the board propose, nothing else; a server that does not answer within the 5 s of the reading is the board's first alert (« Temporal ne répond pas en 5 s »), its tickets shown without their circuits, and any other fault of the reading is the first alert, as it is (« Circuits illisibles : … »), and the card of a ticket with a circuit ends on the page of its workflow on the web UI of the server; the command of the circuit and `temporal etat`, which read the server within 2 s, say « Temporal ne répond pas en 2 s », one text built by one rule (`sansReponseEn` of `scripts/sans-reponse.mjs`); the replay of a ticket's branch by the queue (the act `avancer`) writes its progress in the ticket's working directory, as every automatic pass does (`avecLAvancementDuTravail`); the supervisor's session goes from `npx grillhouse circuit` to the stop gone up (`EntreeDuCircuit.superviseur`, the signal `seanceDuSuperviseur` of the queue of the tickets, `OuReprendre.superviseur` of the answers), which the bilan reads; the question of a stop « inattendu » whose own act failed names its cause, the first line of the error; each act after the opening of a run builds its context on the plan its workflow holds, reading only the subject of the title, since the integration removes the ticket's copy while the circuit still runs; the working directory of the ticket, which holds the progress of the queue and of the CI, is removed once the queue is done with the ticket closed (`retirerLeTravail` of `scripts/integration/file.mjs`: its CI concluded, or its push not made), no longer at its closure before the push; `scripts/copies-finies.mjs` imports nothing of `dist/`, so that the configurations of the tests load in a project that holds the frame's scripts alone, its command being `scripts/retirer-les-copies-finies.mjs`, which the night runs; a ticket Beads cannot show and a package `--etendre` names that the repository lacks are refused at the door, code 2. The workflow `file:<racine>` is the one register of the queue; the label `en-file` marks a lot already committed. The places of the machine live on the server (`placesDeLaMachine`), each pass takes its own, and a server that does not answer stops the pass, code 1. The memory one act passes to the next keeps the tools, the data, the generated files and the context, no longer the flows of the CI. `TEMPORAL` is no longer a `globalEnv` of Turborepo; it stays in `globalPassThroughEnv`, which the guard of the tools of `grillhouse.outils` requires. `attendreLaSeance` of `scripts/seances.mjs` is removed. The installation of the account's Temporal sets the retention of the namespace `default` to 30 days at each start of the server's unit, once it answers (start-dev gives 24 h); each worker runs the published version of the frame the project names (`grillhouse.outil`), laid down under `~/.cache/grillhouse/outil/<version>/` when absent, a version without a worker refused by its name; each worker's unit names the PATH of the account's tools a circuit runs (node, npm, claude, bd, gh; one not found refused by its name before anything is written) and the project's tools (`grillhouse.outils`); every refusal comes before any writing (the archive, an account's tool, a fault of `grillhouse.outils`, a published version without a worker), but one: the published version is laid down in its cache first, because the refusal of a version without a worker reads it there. `--maison` also holds the cache of the published versions. The search of a command in the PATH is one function of the core, `trouverDansLePath` (`scripts/commandes-du-path.mjs`, given to the modules of language by the join), which the installation, the preparation and the module cargo (sccache) call.
221
+ - **A targeted run refuses a night test it names**: on 2026-11-06 an agent replayed the night tests of a branch one by one in the day, eight hours of the machine. As the charter has it, a night test plays at night alone. `npm test -- <chemins>` (and `test:forcer`) now refuses a night test named (`*.nuit.test.*`, `*.nuit.spec.*`, `tests/<nom>_nuit.rs`, `*_nuit_test.py`), by its name, and plays nothing (code 2 for cargo and Python, a red for Vitest); `npx grillhouse nuit` (`tests-de-nuit`) plays it. A time budget bench or a time witness named still plays, under the measure of time. The proof of the red already set night tests aside. **Action for projects**: none; a night test is checked at night.
222
+
223
+ - **Each size of test has its delay, the defaults of Bazel** (grillhouse-44b.10.7): as Bazel's test-encyclopedia (small 60 s, medium 300 s, large 900 s), a day test file is killed at the delay of its size, read by the classification of the guard of the sizes (`classer`), a file out of the day that a targeted run names has the large delay, and a night test has 900 s in the night configuration. The three delays are written once, in `vitest-config/bornes.mjs`. `slowTestThreshold` is fixed at 300 ms, and the duration report names the 20 slowest files and their share of the time. The line of a red test for a delay past writes the size and the delay of its file (« petit, 60 s »). There is no debt of the delays. **Action for projects**: none.
224
+
217
225
  - **The passes, the references, the integration, the review and the tri are activities** (grillhouse-4nr.4): `preuve`, `controles`, `regenerer`, `integrer`, `relire`, `trier` and the readings of the copy move from `scripts/circuit.mjs` into `scripts/activites.mjs`, the gesture into `scripts/ticket-du-circuit.mjs`. Each receives its inputs and returns its outcome, none reading nor writing the circuit's memory: the review receives the findings open, the proof its last measure and returns the new one (the same for a lot of files put aside alone, which measures nothing), a session the findings open and the session to resume and returns its findings and names its fresh session, the guard following every module the activities import, the sign of life passes by the port of the circuit, and the files of a session are numbered on those of the working directory, with no shared counter. The regeneration starts by restoring the copy to the lot kept before it, so that an attempt played again after one cut short starts from the same copy; an integration played again on a lot already committed, its branch in the queue, makes no second commit. The circuit's behaviour is otherwise unchanged.
218
226
  - **The sessions of the agents are activities** (grillhouse-4nr.3): `lancer`, `jusquALaFiche`, `seance`, the watch of a motionless transcript and the wait for a session left running move from `scripts/circuit.mjs` into `scripts/seances.mjs`, which the circuit calls, and the reads and writes of the ticket they share (comments, sheets, log, `Arret`) into `scripts/ticket-du-circuit.mjs`. As an activity of Temporal, each session plays a process group (`jouerLeGroupe`) that sends a sign of life `{ pid, depart, seanceId }` at its launch and at each step of its watch, which the circuit writes in its state; cancelled (an `AbortSignal`), it kills its group and ends on `SeanceAnnulee`; a launch that finds alive the group a launch before left (the second attempt of `jusquALaFiche`, the fresh session after a failed resumption) waits for it, under the same watch, before it takes its place (`lancer`); the id of each session comes from its caller, a session without one being refused before any launch. The circuit's behaviour is otherwise unchanged.
219
227
  - **The decisions of the circuit read nothing of the machine** (grillhouse-4nr.5): the content of the branches of `derouler` (`scripts/circuit.mjs`) moves into `scripts/transitions.mjs`, a module with no input nor output, as a workflow of Temporal decides on the results of its activities: from the state of the step, the circuit's memory and the facts read so far, `transition` gives the next fact to read (a session, a pass, a reading of the copy) or the decision (the next step, its attempt, its report, the flag of the final pass, the memory changed, the effects as data, the stop by its name). The circuit reads the facts and plays the effects, and decides nothing itself; its behaviour is unchanged. `A_REPASSER` (75) leaves `scripts/mesure/pression.mjs` for `scripts/codes-de-sortie.mjs`, which the list of the steps, the circuit, the lock of the machine, its places, the integration and the services of the core import. A guard refuses `node:fs` and `node:child_process` in those modules and what they import, and a table of transitions is tested for each step (`tests/unit/transitions.spec.ts`); the guard of the structured results reads the decisions too. The architecture of the package and STRUCTURE.md say so.
@@ -14,7 +14,6 @@
14
14
  "deny": []
15
15
  },
16
16
  "enabledPlugins": {
17
- "mattpocock-skills@claude-plugins-official": true,
18
17
  "rtfm@roomi-fields": true,
19
18
  "grillhouse@roomi-fields": true
20
19
  },
package/charte.md CHANGED
@@ -27,7 +27,7 @@ professionnel.
27
27
  2. Un défaut remonté est d'abord une question d'architecture : le ticket s'ouvre sur sa section
28
28
  « Architecture » (le modèle mûr nommé, l'adresse dans l'architecture, le mécanisme commun), et
29
29
  le correctif va dans ce mécanisme. Ainsi tout correctif passe par l'architecture.
30
- 3. Une décision reste à prendre : `mattpocock-skills:grilling` avant d'écrire, ses questions dans
30
+ 3. Une décision reste à prendre : `grillhouse:grilling` avant d'écrire, ses questions dans
31
31
  le ticket. Ainsi la décision est prise et écrite avant le code.
32
32
  4. Le plan va dans le ticket : dans le circuit, l'explorateur l'écrit (ses critères, les paquets à
33
33
  toucher, ses questions ouvertes), le questionneur le lit une fois, l'explorateur répond une
@@ -233,7 +233,7 @@ dossier.
233
233
  - **Les tests se lancent par `npm test`** : `npm test -- <chemins>` pour un lancement ciblé,
234
234
  chaque chemin écrit depuis la racine du dépôt ; `npm run test:forcer -- <chemins>` pour rejouer
235
235
  pour de vrai un test soupçonné instable. `npm run verifier` joue les gardes, le typage de chaque
236
- paquet et les tests ; `npm run verifier -- --gardes`, les gardes seules. Aucun agent ne lance
236
+ paquet et les tests ; `npm run verifier -- --gardes`, les gardes, la mise en forme et le lint. Aucun agent ne lance
237
237
  l'outil de test directement. Ainsi chaque test tourne avec ce dont il dépend, et une seule fois
238
238
  tant que rien ne change.
239
239
  - **Les tests ne laissent rien dans le dossier temporaire** : un test crée ses fichiers et
@@ -267,6 +267,6 @@ dossier.
267
267
  et le superviseur étend le plan ou refuse. Ainsi l'agent lit ce dont il a besoin, et les gardes
268
268
  tiennent l'architecture.
269
269
  - Tickets : Beads (`bd`), sous le préfixe du projet, voir `docs/agents/issue-tracker.md`.
270
- - Le greffon `mattpocock-skills` s'appelle avec son préfixe ; un document pour un agent s'écrit
271
- avec `mattpocock-skills:writing-for-agents`.
270
+ - Une compétence du cadre s'appelle avec son préfixe `grillhouse:` ; un document pour un agent
271
+ s'écrit avec `grillhouse:writing-for-agents`.
272
272
  - Réponses en français ; le code et les noms d'API restent en anglais.
@@ -249,8 +249,9 @@ oublié après les rapports d'API, un plafond refusé faute d'être nommé au pl
249
249
  retrouvée en trois commandes). Le circuit ne lit pas
250
250
  le code de sortie d'un générateur du cadre, qui juge aussi les rouges qu'il laisse (`npm run api`
251
251
  refuse à côté d'eux) : il juge la régénération sur ce qu'elle écrit, puis sur la passe restreinte
252
- qui suit, et seule une vraie panne l'arrête (la commande introuvable, ou tuée par un signal). La dette s'abaisse depuis les notes de la passe finale (une note
253
- `a-elaguer` du SARIF d'une garde, chaque clé inscrite au-dessus de ce qu'elle trouve), par
252
+ qui suit, et seule une vraie panne l'arrête (la commande introuvable, ou tuée par un signal). La dette s'abaisse depuis les notes de la passe finale et depuis celles des contrôles du plan
253
+ (3.1), qui lisent leurs notes `a-elaguer` (une note du SARIF d'une garde, chaque clé inscrite
254
+ au-dessus de ce qu'elle trouve) et régénèrent la dette, par
254
255
  `dette.mjs --abaisser`, sans rejouer les gardes. Elle inscrit aussi la dette d'une garde que le lot
255
256
  ajoute, absente des gardes de main (le circuit les nomme à la passe par `GRILLHOUSE_GARDES_DE_LA_BASE`) :
256
257
  chaque fichier et règle de ses constats est une note `a-inscrire`, au compte trouvé, que la
@@ -615,7 +616,12 @@ test son `TEST_TMPDIR` et nettoie ses bacs à sable
615
616
  ce que ses tests y laissent la fait échouer, chaque nom écrit, comme la CI d'osc-bridge
616
617
  (OB-ud1.3), les caches des outils qu'un test lance tolérés par leur nom ; le module de chaque langage nomme son outil et joue cette garde dans son lanceur de
617
618
  tests (typescript : la base de chaque lancement de Vitest, `mkdtempSync` retiré en `afterAll` ;
618
- cargo : `tester` et `verifier`, le crate `tempfile`). Ainsi un essai oublié ne remplit jamais le
619
+ cargo : `tester` et `verifier`, qui donnent à chaque crate un sous-dossier de la base où jouent
620
+ ses tests, la ligne d'un reste nommant le crate qui l'a laissé et le rougissant). Les dossiers
621
+ d'essai sous la maison (`~/.cache/grillhouse-essais-*`, `racineSousLaMaison`) portent leur fichier
622
+ de propriétaire ; l'ouverture d'une base les balaie, depuis l'hôte seul : celui dont la passe est
623
+ morte part, celui sans propriétaire lisible part après 24 h ; un lancement de Vitest compte comme
624
+ un reste, qui le fait échouer, ceux que nomme `essais()` pour sa passe. Ainsi un essai oublié ne remplit jamais le
619
625
  dossier temporaire de la machine, et le test qui l'oublie est nommé.
620
626
 
621
627
  **Un fichier temporaire meurt avec son propriétaire** : une base a pour propriétaire un
@@ -1392,7 +1398,7 @@ enregistrer-la-base-de-reference.mjs`, avec la version épinglée d'alors) quand
1392
1398
  - Une séance d'agent est une activité. Son identifiant porte l'essai de l'activité
1393
1399
  (`<séance>-e<essai>`), si bien que deux essais ne se disputent jamais un `--session-id`.
1394
1400
  lancer.sh range le résultat de chaque séance sous son identifiant
1395
- (`<copie>.travail/seances/<id>/` : `fin`, `resultat.json`, `hors-plan` ; `rangDeLaSeance` de
1401
+ (`<copie>.travail/seances/<id>/` : `fin`, `resultat.json`, `hors-plan`, `hors-plan.json` (`{ chemin, paquet, racine }`, l'écriture refusée) ; `rangDeLaSeance` de
1396
1402
  `scripts/seances.mjs`), une séance hors de l'enveloppe le sien au même lieu. À l'essai 2 et plus, l'activité cherche d'abord l'essai mort par le signe de
1397
1403
  vie de son groupe : un groupe encore vivant s'attend, puis son résultat se lit ; un résultat
1398
1404
  rangé se rend, sans seconde séance, au dernier lancement de l'essai mort quel que soit son
package/docs/INTERFACE.md CHANGED
@@ -187,9 +187,10 @@ noyau, et chaque réponse décrit sans agir, sauf `verifier` d'un fichier engend
187
187
  `ecrites` s'ouvrent en écriture, créées avant la séance, un dossier quand le chemin finit par
188
188
  `/`, sinon un fichier vide : un chemin depuis la racine de la copie, `~/…` depuis la maison,
189
189
  `//…` depuis l'arbre principal, un magasin que toutes les copies partagent. `propres` deviennent
190
- un dossier vide propre à la séance, à la racine de la copie et dans chaque composant de la
191
- matière de test, là où la séance ne les écrit pas, comme Bazel écrit les journaux d'un test hors
192
- de ses sources. `lues`, `~/…` ou `//…`, se montent en lecture seule avant ce qui s'écrit en
190
+ un dossier vide propre à la séance, dans chaque paquet de la copie que le plan ne nomme pas, à
191
+ la racine quand le plan ne l'écrit pas, et dans la matière de test sauf pour le testwriter, qui
192
+ l'écrit ; le lanceur crée ceux qui manquent avant de monter (`preparerLesSorties`), comme Bazel
193
+ écrit les journaux d'un test hors de ses sources. `lues`, `~/…` ou `//…`, se montent en lecture seule avant ce qui s'écrit en
193
194
  elles, quand elles existent. `typescript` : `//.turbo/cache/` écrit, `.turbo` et
194
195
  `node_modules/.vite` propres ; `cargo` : `target/`, et dans `~/.cargo` son registre, ses
195
196
  dépendances git, ses avis de sécurité et les fichiers de ses verrous et du cache de ses paquets
package/hooks/crochet.mjs CHANGED
@@ -51,12 +51,6 @@ if (existsSync(commande)) {
51
51
  }
52
52
  process.exitCode = r.status ?? 1;
53
53
  }
54
- } else if (sous === 'verrou') {
55
- writeSync(
56
- 2,
57
- `⛔ verrou : le cadre de l'arbre principal est absent (${commande}) ; écriture refusée. La réparation de l'arbre principal revient au superviseur, hors séance d'agent.\n`
58
- );
59
- process.exitCode = 2;
60
54
  } else if (sous === 'session-start') {
61
55
  writeSync(
62
56
  1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomi-fields/grillhouse",
3
- "version": "0.34.2",
3
+ "version": "0.35.0",
4
4
  "description": "Roomi's Grillhouse: the frame's scripts, called by one command, grillhouse <sous-commande>",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -450,7 +450,9 @@ export function gardesDeLaBase(ctx) {
450
450
  } catch {
451
451
  // an unreadable script keeps its script's name alone
452
452
  }
453
- for (const m of source.matchAll(/\bGARDE\s*=\s*'([^']+)'|\btrancher\(\s*racine,\s*'([^']+)'/g)) {
453
+ for (const m of source.matchAll(
454
+ /\bGARDE\s*=\s*'([^']+)'|\btrancher\(\s*racine,\s*'([^']+)'/g
455
+ )) {
454
456
  noms.push(m[1] ?? m[2]);
455
457
  }
456
458
  }
@@ -930,19 +932,44 @@ export function preuveReussie(
930
932
  return rouges > 0;
931
933
  }
932
934
 
933
- // The files <fichiers> of the lot, in the copy, split into the ones the day plays (`jour`) and the
935
+ // The files <fichiers> of the lot, in the copy, split into the ones the day plays (`jour`), the
934
936
  // ones only the night plays (`misDeCote`: a night test, a bench, a time witness), by each module's
935
- // own definition (`horsDuJour` of the join); the order of the lot kept.
937
+ // own definition (`horsDuJour` of the join), and the ones out of every package of the language
938
+ // (`horsDesPaquets`: the tests of the frame's plugin, which `claude plugin test` plays in the
939
+ // guards, with no report test by test); the order of the lot kept.
936
940
  export function separerLesFichiersDuJour(ctx, fichiers) {
937
941
  const langage = langageDe(ctx.copie);
942
+ const paquets = composantsDe(ctx.copie).filter(p => !p.hors);
943
+ // A project without packages is one package: `npm test` plays its every path.
944
+ const dansUnPaquet = f =>
945
+ paquets.length === 0 ||
946
+ paquets.some(({ dossier }) =>
947
+ `${path.resolve(ctx.copie, f)}${path.sep}`.startsWith(path.join(ctx.copie, dossier, path.sep))
948
+ );
938
949
  const jour = [];
939
950
  const misDeCote = [];
951
+ const horsDesPaquets = [];
940
952
  for (const f of fichiers) {
941
- (langage.horsDuJour(f, ctx.copie) ? misDeCote : jour).push(f);
953
+ if (!dansUnPaquet(f)) {
954
+ horsDesPaquets.push(f);
955
+ } else {
956
+ (langage.horsDuJour(f, ctx.copie) ? misDeCote : jour).push(f);
957
+ }
942
958
  }
943
- return { jour, misDeCote };
959
+ return { jour, misDeCote, horsDesPaquets };
944
960
  }
945
961
 
962
+ // The lines of the section of the report of the proof that names the files <fichiers> out of every
963
+ // package, which the checks play; none for none.
964
+ export const sectionHorsDesPaquets = fichiers =>
965
+ fichiers.length
966
+ ? [
967
+ `Mis de côté (hors de tout paquet, joués par les contrôles) (${fichiers.length}) :`,
968
+ ...fichiers.map(f => `- ${f}`),
969
+ '',
970
+ ]
971
+ : [];
972
+
946
973
  // The lines of the section of the report of the proof that names the files <fichiers> put aside;
947
974
  // none for none.
948
975
  export const sectionMisDeCote = fichiers =>
@@ -1750,7 +1777,13 @@ export function preuve(ctx, { mesure: derniere = null, fichiers: seuls = null }
1750
1777
  // Only the files of the day are proved; the ones only the night plays are put aside, named.
1751
1778
  // Resumed at a red (<seuls>, the files it names), the proof plays these files alone and passes
1752
1779
  // when they load: a test fixed is green, not red.
1753
- const { jour: fichiers, misDeCote } = separerLesFichiersDuJour(ctx, seuls ?? testsDuLot(ctx));
1780
+ const {
1781
+ jour: fichiers,
1782
+ misDeCote: deNuit,
1783
+ horsDesPaquets,
1784
+ } = separerLesFichiersDuJour(ctx, seuls ?? testsDuLot(ctx));
1785
+ // Every file the proof cannot measure: the night's, and the ones out of every package.
1786
+ const misDeCote = [...deNuit, ...horsDesPaquets];
1754
1787
  const portent = portentLeTravail(fichesDe(ctx, 'testwriter'));
1755
1788
  // Whether the sheet names the test <a> of the file <f>, by its full name or by its whole file.
1756
1789
  const nomme = (f, a) =>
@@ -1874,7 +1907,8 @@ export function preuve(ctx, { mesure: derniere = null, fichiers: seuls = null }
1874
1907
  ]
1875
1908
  : []),
1876
1909
  ...section('Fichiers qui ne prouvent rien', casses),
1877
- ...sectionMisDeCote(misDeCote),
1910
+ ...sectionMisDeCote(deNuit),
1911
+ ...sectionHorsDesPaquets(horsDesPaquets),
1878
1912
  ]
1879
1913
  .join('\n')
1880
1914
  .trim();
@@ -1543,7 +1543,8 @@ export function arretDe(ctx, a) {
1543
1543
  // rule settles: its question (`{ arret, fait, piece, question, qui }`: the fact, the first line of
1544
1544
  // its motive or its report; its piece, the one it carries, else its reds with their file and line,
1545
1545
  // else the end of the log; the question of its kind, scripts/etapes.mjs MONTEES, after the agent's
1546
- // own; who must answer it) kept in the state, written at the ticket and on the error output. Its
1546
+ // own, or the agent's alone for a hors-plan stop, MONTEES' text its fallback when the stop carries
1547
+ // none; who must answer it) kept in the state, written at the ticket and on the error output. Its
1547
1548
  // exit code.
1548
1549
  export function monter(ctx, a) {
1549
1550
  const m = monteeDe(a.nom);
@@ -1555,7 +1556,14 @@ export function monter(ctx, a) {
1555
1556
  String(a.piece ?? '').trim() ||
1556
1557
  rouges ||
1557
1558
  `Le journal du ticket, ${ctx.journal} (il se cite en pièce, \`${ctx.ticket}.log:<ligne>\`) :\n${fin(lire(ctx.journal), 20)}`;
1558
- const question = a.question ? `${a.question}\n\n${m.question}` : m.question;
1559
+ // A hors-plan stop carries its own question (the exact command for its path, or the refusal
1560
+ // alone for the repository root): the generic one would offer `--etendre` for any path.
1561
+ const question =
1562
+ a.question && a.nom === 'hors-plan'
1563
+ ? a.question
1564
+ : a.question
1565
+ ? `${a.question}\n\n${m.question}`
1566
+ : m.question;
1559
1567
  const qui = a.qui ?? m.qui;
1560
1568
  ecrireEtat(ctx, {
1561
1569
  ...a.etat,
@@ -150,6 +150,33 @@ const sortiesDe = (dir, sorties, lien = () => null) =>
150
150
  });
151
151
  })
152
152
  .map(s => path.join(dir, s));
153
+ // The packages of the copy that the plan <paquets> does not name and that are not the shared test
154
+ // material, relative to the copy: where the envelope opens an empty own output to each run. The
155
+ // root package is the copy's own root, treated apart.
156
+ const paquetsHorsDuPlan = (paquets, paquetsDeLaCopie, matieres) => {
157
+ const ecrits = ecritsDuPlan(paquets, paquetsDeLaCopie);
158
+ return paquetsDeLaCopie
159
+ .map(p => p.dossier)
160
+ .filter(d => d !== '.' && !ecrits.includes(d) && !matieres.includes(d));
161
+ };
162
+ // Creates, in the writable copy and before anything is mounted, the own outputs of the language
163
+ // that are missing: in each package out of the plan, in the shared test material for a role that
164
+ // does not write it, and at the root of the copy when the plan does not write it. An output that a
165
+ // link carries out of the copy is left out. bwrap then has a directory to mount an empty one over.
166
+ export function preparerLesSorties({ copie, paquets, paquetsDeLaCopie, matieres, role, sorties }) {
167
+ const dossiers = paquetsHorsDuPlan(paquets, paquetsDeLaCopie, matieres);
168
+ if (role !== ROLE_MATIERE) {
169
+ dossiers.push(...matieres);
170
+ }
171
+ if (!ecritsDuPlan(paquets, paquetsDeLaCopie).includes('.')) {
172
+ dossiers.push('.');
173
+ }
174
+ for (const d of dossiers) {
175
+ for (const s of sortiesDe(path.join(copie, d), sorties.propres, lienSurDisque)) {
176
+ mkdirSync(s, { recursive: true });
177
+ }
178
+ }
179
+ }
153
180
  // The machine's temporary directory: an empty one, proper to the session, replaces it.
154
181
  const TEMPORAIRE = '/tmp';
155
182
  // What stays read-only inside `~/.claude`: the configuration and what it loads.
@@ -656,6 +683,17 @@ export function plan(
656
683
  }
657
684
  }
658
685
  }
686
+ // Each package out of the plan has its own outputs as empty directories proper to the session,
687
+ // as a sandbox of Bazel opens the declared outputs whatever the package; the rest stays read-only.
688
+ if (!toute) {
689
+ for (const d of paquetsHorsDuPlan(paquets, paquetsDeLaCopie, matieres)) {
690
+ for (const s of sortiesDe(path.join(copie, d), sorties.propres, fs.lien)) {
691
+ if (fs.existe(s)) {
692
+ args.push('--tmpfs', s);
693
+ }
694
+ }
695
+ }
696
+ }
659
697
  const gitDeLaCopie = path.join(copie, '.git');
660
698
  if (fs.existe(gitDeLaCopie)) {
661
699
  args.push('--ro-bind', gitDeLaCopie, gitDeLaCopie);
@@ -824,22 +862,14 @@ function envelopper(argv) {
824
862
  maison: os.homedir(),
825
863
  principal: path.dirname(commun),
826
864
  });
827
- // For a role that does not write it, the directories where a run of the material's tests writes
828
- // are created here, so that bwrap mounts an empty one over each inside the read-only package.
829
- if (role !== ROLE_MATIERE) {
830
- for (const m of matieres) {
831
- for (const s of sortiesDe(path.join(copie, m), sorties.propres, lienSurDisque)) {
832
- mkdirSync(s, { recursive: true });
833
- }
834
- }
835
- }
836
- // For a plan that leaves the root read-only, where the language's tools write at the root of the
837
- // copy is created here, so that bwrap mounts it, empty or in writing, inside the read-only copy.
865
+ // The own outputs of the language are created here, while the copy is writable, so that bwrap
866
+ // mounts an empty one over each inside the read-only copy: at its root, in the packages out of
867
+ // the plan, and in the material for a role that does not write it.
838
868
  const paquetsDeLaCopie = paquetsDuLangage(langage, copie);
869
+ preparerLesSorties({ copie, paquets, paquetsDeLaCopie, matieres, role, sorties });
870
+ // For a plan that leaves the root read-only, where the language's tools write at the root of the
871
+ // copy is created here, so that bwrap mounts it in writing, inside the read-only copy.
839
872
  if (!ecritsDuPlan(paquets, paquetsDeLaCopie).includes('.')) {
840
- for (const s of sortiesDe(copie, sorties.propres, lienSurDisque)) {
841
- mkdirSync(s, { recursive: true });
842
- }
843
873
  for (const s of sortiesDe(copie, sorties.ecrites, lienSurDisque)) {
844
874
  creer(s, fichiers.includes(path.relative(copie, s)));
845
875
  }
@@ -182,8 +182,9 @@ rang="$copie.travail/seances/${seance:-${reprise:-courante}}"
182
182
  fin="$rang/fin"
183
183
  resultat="$rang/resultat.json"
184
184
  hors_plan="$rang/hors-plan"
185
+ hors_plan_fait="$rang/hors-plan.json"
185
186
  mkdir -p "$(dirname "$copie")" "$rang"
186
- rm -f "$fin" "$resultat" "$hors_plan"
187
+ rm -f "$fin" "$resultat" "$hors_plan" "$hors_plan_fait"
187
188
  printf '=== %s · %s · %s ===\n' "$(date -Iseconds)" "$role" "$composant" >> "$journal"
188
189
  # The temporary directory of the ticket (`ouvrirBaseDuTicket`, scripts/mesure/base-de-passe.mjs):
189
190
  # TMPDIR, TMP and TEMP of the rest of the launch and of the session, whose scratchpads and working
@@ -293,6 +294,9 @@ if [ -f "$travail/hors-plan" ]; then
293
294
  mv "$travail/hors-plan" "$hors_plan"
294
295
  { cat "$hors_plan"; echo; } >> "$journal"
295
296
  fi
297
+ if [ -f "$travail/hors-plan.json" ]; then
298
+ mv "$travail/hors-plan.json" "$hors_plan_fait"
299
+ fi
296
300
  echo "$code" > "$fin"
297
301
  # The envelope ended: the session's line goes to the register from outside it, whatever its end hook did.
298
302
  node "$ici/../registre.mjs" --copie "$copie" >> "$journal" 2>&1 || true
@@ -15,6 +15,9 @@ export const VARIABLE = 'GRILLHOUSE_ENVELOPPE';
15
15
  // write out of the plan (scripts/verrous/verrou.mjs); the launcher hands it to the circuit in the
16
16
  // session's result folder, `<copie>.travail/seances/<id>/hors-plan` (scripts/enveloppe/lancer.sh).
17
17
  export const MARQUE_HORS_PLAN = 'hors-plan';
18
+ // Its structured twin, `{ chemin, paquet, racine }` in JSON: the path written, the package that
19
+ // holds it (`.` for the repository root), whether the root holds it. The circuit reads it, not the text.
20
+ export const MARQUE_HORS_PLAN_FAIT = 'hors-plan.json';
18
21
 
19
22
  // The list <paquets> as the variable carries it.
20
23
  export const ecrireLaListe = paquets => paquets.join(path.delimiter);
@@ -110,6 +110,23 @@ function fichiersDeFlux(racine) {
110
110
  .sort();
111
111
  }
112
112
 
113
+ /**
114
+ * The workflow files of the project at <racine> (.yml, .yaml under .github/workflows) that
115
+ * `grillhouse.flux` of its package.json does not declare, sorted; nothing else (not a declared
116
+ * file that is absent, not an unknown package), and none when the key is faulty. The guard and the
117
+ * update (`grillhouse maj`) read the flows without entry through it.
118
+ * @param {string} racine the root of the project
119
+ * @returns {string[]}
120
+ */
121
+ export function fluxSansEntree(racine) {
122
+ const { flux, fautes } = lireFlux(lireJson(path.join(racine, 'package.json')));
123
+ if (fautes.length) {
124
+ return [];
125
+ }
126
+ const declares = new Set(flux.map(f => f.fichier));
127
+ return fichiersDeFlux(racine).filter(f => !declares.has(f));
128
+ }
129
+
113
130
  /**
114
131
  * The findings of the guard on the project at <racine>: `{ fichier, message }`, none when each
115
132
  * workflow is declared with packages the graph carries.
@@ -123,14 +140,11 @@ export function constats(racine) {
123
140
  return out;
124
141
  }
125
142
  const connus = new Set(paquets(racine).map(p => p.pkg.name));
126
- const declares = new Set(flux.map(f => f.fichier));
127
- for (const f of fichiersDeFlux(racine)) {
128
- if (!declares.has(f)) {
129
- out.push({
130
- fichier: f,
131
- message: `${f} : flux de la CI sans entrée dans ${CLE} du package.json ; chaque flux déclare les paquets qu'il exerce, le relecteur le lit.`,
132
- });
133
- }
143
+ for (const f of fluxSansEntree(racine)) {
144
+ out.push({
145
+ fichier: f,
146
+ message: `${f} : flux de la CI sans entrée dans ${CLE} du package.json ; chaque flux déclare les paquets qu'il exerce, le relecteur le lit.`,
147
+ });
134
148
  }
135
149
  for (const { fichier, paquets: noms } of flux) {
136
150
  if (!existsSync(path.join(racine, fichier))) {
@@ -151,6 +151,7 @@ import { pathToFileURL } from 'node:url';
151
151
  import { CADRE, VERSION } from './cadre.mjs';
152
152
  import { poserCrochets } from './crochets.mjs';
153
153
  import { ATTRIBUT } from './fusion-du-changelog.mjs';
154
+ import { fluxSansEntree } from './flux-des-paquets.mjs';
154
155
  import { installerGreffons } from './greffons.mjs';
155
156
  import { migrer, restesAuProjet } from './migrations.mjs';
156
157
  import { langageDe, langagesDe } from './langages.mjs';
@@ -329,6 +330,8 @@ export function mettreAJour(projet, source, { inscrite = VERSION } = {}) {
329
330
  ligneEtat: false,
330
331
  greffon: false,
331
332
  workflows: [],
333
+ fluxSansEntree: [],
334
+ fluxDeclares: {},
332
335
  duLangage: { lignes: [], aFaire: [], installer: false, sansVerifier: null },
333
336
  };
334
337
  const pkg = path.join(projet, 'package.json');
@@ -433,6 +436,10 @@ export function mettreAJour(projet, source, { inscrite = VERSION } = {}) {
433
436
  };
434
437
  }
435
438
  writeFileSync(pkg, `${JSON.stringify(p, null, 2)}\n`);
439
+ // The flows of the CI without entry in `grillhouse.flux` (the guard's read), with the entries
440
+ // already declared, which the command of the report keeps.
441
+ bilan.fluxSansEntree = fluxSansEntree(projet);
442
+ bilan.fluxDeclares = bilan.fluxSansEntree.length > 0 ? (p.grillhouse?.flux ?? {}) : {};
436
443
  ignorer(projet);
437
444
  }
438
445
  bilan.ligneEtat = reglerLigneEtat(projet);
@@ -558,6 +565,18 @@ export function rapport(b) {
558
565
  `Workflows du cadre : ${b.workflows.join(', ')} écrit(s) depuis le gabarit ; leur machine est la variable RUNNER du dépôt sur GitHub (ubuntu-latest sans elle), que la mise à jour ne touche pas.`
559
566
  );
560
567
  }
568
+ if (b.fluxSansEntree?.length > 0) {
569
+ // The whole object: the declared entries as they are, each missing flow with a name the graph
570
+ // does not know, so the guard stays red until the project names the package the flow exercises.
571
+ const objet = { ...b.fluxDeclares };
572
+ for (const f of b.fluxSansEntree) {
573
+ objet[f] = ['<paquet>'];
574
+ }
575
+ const json = JSON.stringify(objet).replaceAll("'", "'\\''");
576
+ lignes.push(
577
+ `Flux de la CI sans entrée dans grillhouse.flux : ${b.fluxSansEntree.join(', ')}. Déclare les paquets que chacun exerce : \`npm pkg set --json grillhouse.flux='${json}'\`, puis remplace chaque <paquet> par le nom du paquet que le flux exerce (la garde flux-des-paquets reste rouge d'ici là).`
578
+ );
579
+ }
561
580
  if (b.gardes?.deplace) {
562
581
  lignes.push(
563
582
  `Gardes du projet : le script integration:gardes devient gardes, que \`npm run verifier\` joue à côté des tests.`
@@ -46,6 +46,13 @@
46
46
  // namespace of the sweeper (an envelope has its own, bwrap --unshare-pid, where a number means
47
47
  // nothing outside): a base of another namespace, a base without a readable owner (one being
48
48
  // created) and a base whose owner lives are never touched.
49
+ // - The trial directories under the home, `~/.cache/grillhouse-essais-*` (`racineSousLaMaison`,
50
+ // grillhouse-matiere), are not in the base: each holds its owner file (`.grillhouse-base`, the
51
+ // pass that made it). Opening a base sweeps them too (`balayerLesEssais`), from the host alone
52
+ // (the home is read-only in an envelope): one whose pass is gone (`passeMorte`) is removed, and
53
+ // one without a readable owner file, after 24 hours. `essais()` of a base names those of its own
54
+ // pass, which a run of Vitest counts as a leftover that fails it (the base configuration of the
55
+ // module typescript, vitest-config/base.mjs).
49
56
  import { createHash } from 'node:crypto';
50
57
  import {
51
58
  existsSync,
@@ -0,0 +1,41 @@
1
+ // From 0.35.0 the four skills of the plugin of mattpocock that the frame calls live in the frame's
2
+ // plugin (`grillhouse:grilling`, `grillhouse:writing-for-agents`, `grillhouse:codebase-design`,
3
+ // `grillhouse:domain-modeling`), and the template no longer enables the whole plugin
4
+ // (grillhouse-8gp).
5
+ //
6
+ // - A project's .claude/settings.json that enables `mattpocock-skills@claude-plugins-official` in
7
+ // `enabledPlugins` loses that key, whatever its value; the other plugins and keys keep their
8
+ // place. The update cannot tell a project that enabled it for itself from one that took it from
9
+ // the template: it removes it and says so once.
10
+ // - A project without .claude/settings.json, without `enabledPlugins` or without that plugin is
11
+ // not written: a second pass changes nothing and returns no line.
12
+ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
13
+ import path from 'node:path';
14
+
15
+ export const version = '0.35.0';
16
+ export const nom = 'greffon mattpocock retiré';
17
+
18
+ const GREFFON = 'mattpocock-skills@claude-plugins-official';
19
+
20
+ /** Removes the whole plugin of mattpocock from the plugins a project enables. */
21
+ export function migrer(projet) {
22
+ const f = path.join(projet, '.claude', 'settings.json');
23
+ if (!existsSync(f)) {
24
+ return [];
25
+ }
26
+ const texte = readFileSync(f, 'utf8');
27
+ const reglages = JSON.parse(texte);
28
+ const plugins = reglages.enabledPlugins;
29
+ if (!plugins || typeof plugins !== 'object' || !(GREFFON in plugins)) {
30
+ return [];
31
+ }
32
+ delete plugins[GREFFON];
33
+ const fin = texte.endsWith('\n') ? '\n' : '';
34
+ writeFileSync(f, JSON.stringify(reglages, null, 2) + fin);
35
+ return [
36
+ `.claude/settings.json : le greffon ${GREFFON} n'est plus activé (les quatre compétences ` +
37
+ `que le cadre appelle vivent dans son greffon : grillhouse:grilling, ` +
38
+ `grillhouse:writing-for-agents, grillhouse:codebase-design, grillhouse:domain-modeling) ; ` +
39
+ `pour le réactiver à la main, remettre « ${GREFFON} »: true dans enabledPlugins`,
40
+ ];
41
+ }
@@ -39,6 +39,7 @@ import * as ciDesBranchesDeTicket from './migrations/0.33.0-ci-des-branches-de-t
39
39
  import * as node26 from './migrations/0.33.0-node-26.mjs';
40
40
  import * as ciDuCadre from './migrations/0.33.0-ci-du-cadre.mjs';
41
41
  import * as cacheDistant from './migrations/0.33.0-cache-distant.mjs';
42
+ import * as greffonMattpocockRetire from './migrations/0.35.0-greffon-mattpocock-retire.mjs';
42
43
 
43
44
  /** The migrations of the core. */
44
45
  export const MIGRATIONS = [
@@ -57,6 +58,7 @@ export const MIGRATIONS = [
57
58
  node26,
58
59
  ciDuCadre,
59
60
  cacheDistant,
61
+ greffonMattpocockRetire,
60
62
  ];
61
63
 
62
64
  /**