@roomi-fields/grillhouse 0.51.0 → 0.53.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.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +68 -0
- package/agents/direct.md +1 -1
- package/cadre/templates/projet/vitest.config.cjs +45 -0
- package/charte/plan.md +47 -0
- package/charte/preuve.md +39 -0
- package/charte/superviseur.md +60 -0
- package/charte/tests.md +38 -0
- package/charte.md +23 -178
- package/dist/temporal/circuit/appel.d.ts +2 -0
- package/dist/temporal/circuit/appel.js +24 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +15 -7
- package/dist/temporal/circuit/client.js +42 -11
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +17 -6
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +9 -0
- package/dist/temporal/circuit/contrat.js +6 -0
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +25 -4
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/client.d.ts +35 -1
- package/dist/temporal/client.js +144 -1
- package/dist/temporal/client.js.map +1 -1
- package/dist/temporal/commande.js +31 -13
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/etat.d.ts +3 -1
- package/dist/temporal/etat.js +31 -17
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +1 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +4 -5
- package/dist/temporal/file/contrat.js +2 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +7 -5
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +103 -53
- package/dist/temporal/installation.js +842 -237
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +3 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/deroule.js +2 -1
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/sonde/deroule.js +2 -1
- package/dist/temporal/sonde/deroule.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -3
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/dist/temporal/travailleur.d.ts +7 -1
- package/dist/temporal/travailleur.js +49 -25
- package/dist/temporal/travailleur.js.map +1 -1
- package/docs/INTERFACE.md +20 -14
- package/docs/architecture/circuit.md +19 -16
- package/docs/architecture/entree.md +8 -9
- package/docs/architecture/greffon.md +54 -20
- package/docs/architecture/installation.md +99 -60
- package/docs/architecture/machine.md +31 -4
- package/docs/architecture/tests.md +22 -8
- package/docs/lexique.md +12 -3
- package/hooks/hooks.json +10 -10
- package/hooks/register.tsx +84 -2
- package/package.json +4 -2
- package/scripts/activites.mjs +25 -9
- package/scripts/aiguillage.mjs +1 -1
- package/scripts/attente-au-tour.mjs +2 -3
- package/scripts/bilan.mjs +116 -56
- package/scripts/bilans-gardes.mjs +37 -0
- package/scripts/circuit.mjs +256 -42
- package/scripts/circuits-du-serveur.mjs +3 -2
- package/scripts/circuits-tenus.d.mts +7 -0
- package/scripts/circuits-tenus.mjs +17 -0
- package/scripts/copie-de-montee.mjs +354 -0
- package/scripts/copies-du-depot.d.mts +13 -0
- package/scripts/copies-du-depot.mjs +66 -0
- package/scripts/copies-finies.mjs +6 -40
- package/scripts/crochets.mjs +16 -2
- package/scripts/direct.mjs +2 -2
- package/scripts/droits.mjs +117 -38
- package/scripts/engendres.mjs +5 -3
- package/scripts/entree-de-seance.mjs +35 -0
- package/scripts/enveloppe/enveloppe.mjs +23 -16
- package/scripts/enveloppe/lancer.sh +32 -22
- package/scripts/enveloppe/travail-de-la-copie.mjs +154 -0
- package/scripts/etapes.mjs +11 -3
- package/scripts/faits-du-circuit.mjs +12 -5
- package/scripts/file-des-tickets.d.mts +13 -2
- package/scripts/file-des-tickets.mjs +44 -12
- package/scripts/greffons.mjs +42 -27
- package/scripts/grillhouse-maj.mjs +105 -85
- package/scripts/init.mjs +1 -1
- package/scripts/integration/file.mjs +5 -2
- package/scripts/integration/integrer.mjs +14 -4
- package/scripts/jointure.d.ts +18 -1
- package/scripts/langages/c/commandes.mjs +17 -7
- package/scripts/langages/cargo/commandes.mjs +87 -34
- package/scripts/langages/cargo/index.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +15 -12
- package/scripts/langages/python/commandes.mjs +68 -15
- package/scripts/langages/python/squelette.mjs +4 -3
- package/scripts/langages/typescript/configurations-de-vitest.mjs +118 -0
- package/scripts/langages/typescript/index.mjs +14 -12
- package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +299 -0
- package/scripts/langages/typescript/squelette.mjs +20 -17
- package/scripts/langages/typescript/tests-de-nuit.mjs +3 -3
- package/scripts/langages/typescript/turbo-des-paquets.mjs +76 -39
- package/scripts/langages/typescript/verifier.mjs +27 -2
- package/scripts/langages/typescript/vitest-config/base.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/cibles.mjs +2 -2
- package/scripts/langages/typescript/{vitest.nuit.config.mjs → vitest.nuit.config.cjs} +61 -50
- package/scripts/mesure/pression.mjs +5 -3
- package/scripts/migrations/serveurs-de-l-index.mjs +1 -1
- package/scripts/migrations/suivi-du-superviseur-retire.mjs +56 -0
- package/scripts/migrations.mjs +2 -0
- package/scripts/montee.mjs +524 -0
- package/scripts/nuit.sh +3 -2
- package/scripts/outil.mjs +5 -3
- package/scripts/paquet-npm.mjs +22 -0
- package/scripts/paquet.mjs +5 -5
- package/scripts/pre-compact.mjs +25 -0
- package/scripts/reponses-du-circuit.d.mts +17 -2
- package/scripts/reponses-du-circuit.mjs +78 -20
- package/scripts/resultats.mjs +42 -14
- package/scripts/retirer-les-copies-finies.mjs +4 -7
- package/scripts/seances.mjs +81 -29
- package/scripts/services-du-noyau.mjs +7 -2
- package/scripts/session-start.sh +19 -10
- package/scripts/sortie-de-seance.mjs +70 -0
- package/scripts/sortie.mjs +4 -7
- package/scripts/sous-commandes.mjs +1 -1
- package/scripts/superviseur.mjs +417 -159
- package/scripts/tableau.mjs +249 -152
- package/scripts/ticket-du-circuit.mjs +22 -0
- package/scripts/transitions.d.mts +6 -9
- package/scripts/transitions.mjs +123 -36
- package/scripts/verrou-de-fichier.d.mts +11 -0
- package/skills/direct/SKILL.md +21 -11
- package/skills/explorateur/SKILL.md +8 -3
- package/skills/grill/SKILL.md +11 -8
- package/skills/grill/references/paquets.md +4 -4
- package/skills/pitmaster/SKILL.md +99 -53
- package/skills/pitmaster/references/cadre.md +1 -1
- package/skills/pitmaster/references/consigne-agent.md +1 -1
- package/skills/pitmaster/references/tour.md +6 -5
- package/skills/relecteur/SKILL.md +9 -2
- package/skills/testwriter/SKILL.md +3 -3
- package/cadre/templates/projet/pitmaster/SUIVI.md +0 -22
- package/cadre/templates/projet/vitest.config.ts +0 -44
- package/scripts/attente-a-l-arret.mjs +0 -114
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,74 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.53.0] - 2026-11-30
|
|
10
|
+
|
|
11
|
+
- **A milestone compacts the supervisor's session instead of clearing it, and an idle session is compacted before its cache expires** (grillhouse-3uv.289): decided by the owner (2026-11-29). At a declared milestone the greffon calls the compaction of Claude Code where it ran `/clear`, so the history stays on screen; after 55 minutes without a turn it compacts too, with or without a note (a gap to `idleCompaction`, written in greffon.md, §5.2). A new `PreCompact` hook of the plugin (`grillhouse pre-compact`) gives the note of resumption as instructions of the summary to every compaction of the session that holds the lock, manual and automatic ones included. After a compaction the opening gives that session the circuits, their questions and the note, as after a `/clear`. `superviseur --renouveler` prints the line `{"reprise": <message>}`. The request to write the note after a compaction and `superviseur --relever --compaction` are removed: two milestones remain, a release announced and the end of the day. **Action for projects**: none beyond the update, which moves the tool and the plugin together (`npx grillhouse maj`); reopen the supervisor's session afterwards.
|
|
12
|
+
|
|
13
|
+
- **The configuration of Vitest of every package is CommonJS** (grillhouse-acl.3.4.1): the envelope shows a package out of a plan read-only, and Vite 5 writes `<configuration>.timestamp-*.mjs` beside an ESM configuration to load it, so the tests of such a package failed in EROFS. The guard `turbo-des-paquets` now refuses, at the root and in each package, a `vitest.config.*` other than `.cjs`, a configuration the script `test:unit` names by `--config` or `-c` that is not `.cjs`, and an ESM `vite.config.*` a package plays its tests under without `vitest.config` (it asks for a `vitest.config.cjs` beside it). The template, `grillhouse paquet` and the frame's own configurations write `vitest.config.cjs`, and the night's configuration is `vitest.nuit.config.cjs`. **What a project sees on the update** (`npx grillhouse maj`, migration « configurations en commonjs »): each `vitest.config.*` made of static imports and one `export default`, that no file reads by its name, is replaced by a `vitest.config.cjs` that gives the same options (read its layout, Prettier is not run); every other refused configuration stays, named with its reason, and enters `grillhouse-dette.json`, frozen: a new one is refused. **Action for projects**: none required; to convert one left, write the `vitest.config.cjs` and make its readers name it.
|
|
14
|
+
|
|
15
|
+
- **A stop on the reviewer's question keeps the findings of its verdict** (grillhouse-3uv.278.1): after a `RENDU` that carries a question to the owner (stop `besoin`), the sessions relaunched by `--depuis` read the findings of the verdict before, or none. The state of the circuit now keeps the findings still open of that verdict before the stop, as for `relecture-arret`: each role receives its own, and the findings of a direct lot with the motif `demande-un-plan` all go to the agent direct. The report of the stop names each finding without a valid recipient or putting a criterion in question, with its reason, which no author receives. `--reprendre` replays the review as before. **Action for projects**: none.
|
|
16
|
+
|
|
17
|
+
- **A finished ticket carries its agents' tokens only, and its way and time come from its circuit** (grillhouse-3uv.250.4.1): FAITS AUJOURD'HUI shared the supervisor's tokens among the tickets labelled `direct` and timed them from claim to close, though the engine leads them. Decided: no ticket receives a share of the supervisor's tokens (the day and the cumul still count them). The way of a ticket is the one of its circuit's integrated view, before the label and the kept results. A direct ticket the engine led (kept bilan « intégré », or integrated view) counts the working time of its agents and of its circuit's steps; a direct ticket no circuit led still counts from claim to close. **Action for projects**: none.
|
|
18
|
+
|
|
19
|
+
- **A ticket that only adds data is no longer a direct ticket** (grillhouse-3uv.250.5.7): decided by the owner (2026-11-29). It follows the data path of the project, its validation and its CI, without agents, as the common charter's rule of the supervisor module says. The direct circuit's lists (the rule of the three circuits, the skill `direct`, circuit.md §5.1, the lexicon), the instruction of the reviewer of a direct lot and the skill `pitmaster`, which repeated the rule, no longer name it. **Action for projects**: take `direct` and `circuit` off an open ticket that only adds data, and pass it by the data path.
|
|
20
|
+
|
|
21
|
+
- **The verification of the frame's repository no longer reddens in the envelope for what it does not open** (grillhouse-acl.3.4): in `paquet.spec.ts`, the tests whose subject is not the answer of `uv` or `cargo` play with a fake tool at the head of the PATH, and the tests of the refusals of a name that the real tool judges are skipped, naming it, where it does not run; the envelope is not widened. The Vitest configuration of `grillhouse-essais` is CommonJS (`vitest.config.cjs`), so that Vite writes nothing beside it when the package is read-only; the night awaits a package configuration exported as a promise, as Vite does, so that its options and plugins stay. **Action for projects**: none.
|
|
22
|
+
|
|
23
|
+
- **The drop-ins of a worker's unit follow it to its template** (grillhouse-acl.3.1): a drop-in of `grillhouse-travailleur-<project>.service.d/` or `grillhouse-travailleur-machine.service.d/` did not apply to the instances of the template. `grillhouse temporal installer` now copies each `*.conf` of these folders to the folder of the template (`…@.service.d/`), content unchanged, before any instance starts, while the unit of before the template stands (the machine's for a project that plays it); the pass that retires that unit removes the former files, then their folder once empty. A drop-in whose name the folder of the template already holds with another content is neither overwritten nor removed. The output names both paths of each drop-in copied, moved or in conflict. The prefix folder `grillhouse-travailleur-.service.d/` and the folders of other projects are untouched. **Action for projects**: run `npx grillhouse temporal installer`; a drop-in left in a former folder (a conflict, or a unit of before the template already retired) moves by hand to the folder of the template, then `systemctl --user daemon-reload`, a running instance reading it at its next start.
|
|
24
|
+
|
|
25
|
+
- **A message of repair names the command that repairs where it shows** (grillhouse-acl.4.11): since `npx grillhouse maj` moves the project up, commits, advances main and pushes, the messages that named it for something else name their own gesture. The opening of a session and `npx grillhouse greffons --absents` give `npx grillhouse greffons` for a frame's plugin behind (the line of a failed update of `npx grillhouse greffons` keeps `claude plugin update`). A plugin ahead gives `npx grillhouse maj <its version>` instead of `npm install -D`, and says that the supervisor launches it in the main tree, where it moves the project up, commits, advances main and pushes. A package of c, cargo or python without `package.json` gets the gesture by hand: the file to write, given in full, and the `workspaces` entry when no pattern selects it. A command of `grillhouse paquet` that fails asks to run it again in its folder, and uv absent names `npx grillhouse binaires`. **Action for projects**: none.
|
|
26
|
+
|
|
27
|
+
- **A branch the queue reopens on a conflict follows the gesture of the advance's conflict** (grillhouse-3uv.279.1): decided by the owner (2026-11-29, circuit.md §5.5). At 5.2 the circuit no longer stops at `integration` asking for `--depuis`: it makes the ticket's copy again on `agent/<ticket>` at the base of the lot, the whole lot as local work, and goes back to the pass that judges it (3.1, or 4.1 in a direct circuit), whose preparation relaunches the role that writes each file in conflict, under the same bound (`lancement`). A copy that cannot be made again stops at `lancement`, the branch kept. The queue marks `conflit` only for a rebase that leaves files in conflict. **Action for projects**: none.
|
|
28
|
+
|
|
29
|
+
- **A stop `relecture-arret` keeps the findings of its verdict** (grillhouse-3uv.278): after the stop for a finding without a valid recipient or putting a criterion in question, or at the third review, the sessions relaunched by `--depuis` read « constats ouverts : aucun », or the findings of the verdict before (seen by SH). The state of the circuit now keeps the findings still open of that verdict: each role receives its own (as context with `--contexte`, as its task without), and the next review judges them all. A faulty finding is kept without a recipient, for no author of the lot: the supervisor's context settles it, and the piece of the stop names each one with its reason. circuit.md §4.4 says what a session receives at the launch with and without a context. **Action for projects**: none.
|
|
30
|
+
|
|
31
|
+
- **The wrapper of rustc no longer disappears when sccache prunes its cache** (grillhouse-i9t): it was written in the directory of the cache (`SCCACHE_DIR`), whose oldest files sccache removes past its size, so that cargo could not run it (seen by OSD). It is now `~/.cache/grillhouse/sccache-lanceur/sccache-court-bash` (under `$XDG_CACHE_HOME` when set), which the module `cargo` declares among the directories its envelope opens in writing. **Action for projects**: none.
|
|
32
|
+
|
|
33
|
+
- **A lot that no longer applies on main at the integration follows the gesture of the advance's conflict** (grillhouse-3uv.279): decided by the owner (2026-11-29, circuit.md §5.5). The integration exits 3 when a lot does not apply (the application of the lots, or of the generated files a lot removes from the key). When main moved past the ticket's copy, the circuit no longer stops on « integration »: it goes back to the checks (the final pass in a direct circuit), whose preparation advances the copy and relaunches the role of each file in conflict; a conflict a second session does not lift stops on « lancement », and a refusal on a copy already on the tip of main stops on « integration » as before. A conflict on a test of a mechanical or « comportement inchangé » lot now launches the testwriter, instead of the gesture or the developpeur. **Action for projects**: none.
|
|
34
|
+
|
|
35
|
+
- **A ticket the plan judges a correction triviale switches to the direct circuit** (grillhouse-3uv.250.7): the sheet of the explorateur accepts the sort « correction triviale » (one wrong line, one wrong argument, that the ticket describes entirely), with its reason and its piece, judged as every piece of a sheet; without a piece the sheet is out of conformity, without a reason it is comportement changé. The plan passed (the questionneur has read it, the explorateur has answered, or the supervisor resumed the stop `questionnement`), the circuit switches without a stop: the label `circuit` becomes `direct`, the ticket goes to 3 Code, where the agent direct writes in the packages of the plan, and « ## Sorte » says the sort and its reason. A resumption keeps it direct with its sort, even when the title or the criteria changed. The sort is refused and asked again on a ticket the agent direct has already worked. The skills `explorateur` and `direct` and the instruction of the plan say it. **Action for projects**: none.
|
|
36
|
+
|
|
37
|
+
- **A direct circuit switches to the plan on `--planifier`** (grillhouse-3uv.250.6): decided by the owner (2026-11-25, circuit.md §5.6). The agent direct (`BESOIN` or `BLOQUÉ`, with its reason and piece) or the reviewer (`RENDU`) says the ticket asks for a plan by the motif `demande-un-plan`; the circuit stops on `besoin` or `hors-portee` without relaunching anyone, and the supervisor answers `--planifier --contexte <reason>` (the update `planifier`) or `--reprendre`, which keeps the direct circuit. On `--planifier`, the label `direct` becomes `circuit`, the explorer writes the plan, the copy keeps the work of the agent direct and the plan says what it keeps, a short circuit is refused on a changed copy, and the old judgment, reviews counted included, starts over.
|
|
38
|
+
|
|
39
|
+
- **A direct ticket starts by the queue of the tickets** (grillhouse-3uv.250.5): decided by the owner (2026-11-25). The queue starts an open ticket labelled `direct`, with or without `circuit`, on the same conditions as a `circuit` ticket (its section « ## Architecture » written, its dependencies closed, by priority), and its circuit counts in the project's limit (`grillhouse.circuits`) and under the machine's ceiling. `npx grillhouse circuit <ticket>` puts it in the queue without adding `circuit`; `--arreter` takes `circuit` and `direct` off the ticket; `--reprendre`, `--depuis`, `--etendre` and `--recommencer` put back `direct` for a direct circuit, `circuit` for the others. A `direct` ticket without its section, or whose lot is on main, is named like a `circuit` ticket, at the board and at the opening of the supervisor. The rescue way refusing a ticket whose circuit runs gives the gestures in an order that never leaves the ticket open and labelled for the queue. The common charter, the skills `pitmaster`, `grill` and `direct` and the agent `direct` say the direct circuit led by the engine; the second and third times of a package's birth enter by a direct ticket. **Action for projects**: after the update, the open `direct` tickets of a project start by its queue and count in its limit. For one that must not start, take `direct` off it, and `circuit` if it has it, before the update; raise `grillhouse.circuits` if needed.
|
|
40
|
+
|
|
41
|
+
- **The installation purges the versions of the tool nothing names** (grillhouse-acl.5): decided by the owner (2026-11-28). As its last gesture, `grillhouse temporal installer` removes from `~/.cache/grillhouse/outil/` each version `x.y.z`, with its failure mark, that no project of the machine, no unit of the account, no copy of a circuit not finished, no living process and no Worker Deployment names (installation.md §5.3). Its output names each version removed with the place given back, and each version kept with what names it. When the server, the processes, the copies of a project or a key that counts do not read, no version leaves; a source unread or a removal that fails has its line and the command exits 1. One pass of installation plays at a time on the account. `--programme-seul` removes nothing. **Action for projects**: none.
|
|
42
|
+
|
|
43
|
+
- **The panel shows and pushes a direct circuit from its view** (grillhouse-3uv.250.4): decided by the owner (2026-11-25). An open direct circuit stands on the line of its step like any circuit, ✎ in place of ▶ while it runs, read in its view (`CircuitLu.circuit`) and not in the label; its agent counts at 3 Code, and its question is pushed like any circuit's. The block « Direct » shows only the agents of the rescue command, on a ticket without an open circuit. A `direct` ticket not claimed takes the states of a queued ticket: the separate direct queue and its counts are gone (head « file : ● N · ⧗ N · ⊘ N », status line « ⏭ ● N · ✓ N »), the state « en attente » is named « en file », and each line of that group in a chantier bears the sign of its way.
|
|
44
|
+
|
|
45
|
+
- **One command updates a project** (grillhouse-acl.4): `npx grillhouse maj <x.y.z>`, run in the project's main worktree, replaces the four gestures by hand (the update, `grillhouse outil`, `grillhouse temporal installer`, `claude plugin update`). It works in a copy of its own on the tip of main (branch `montee/<version>`): it installs the package there (the frame's repository writes `grillhouse.outil` instead), brings the project to it, runs `npm install` itself, plays the machine's part (the published tool, the plugins, the binaries, the units and workers, the schedule of the nights), runs the verification of the sort « Montée » on the commit's content alone, commits the files it wrote, keeps the tree as judged, advances main by fast-forward (rebuilt on the new tip if main moved, five passes at most), pushes, installs in the main worktree and removes its copy. A montée that does not enter leaves main untouched and its copy kept, and the same command resumes it; without argument the command keeps the version the tip of main holds. It refuses to run from a copy, and any argument other than one `x.y.z` (exit 2). `temporal installer` takes `--declarations <dir>` and reads the server at `TEMPORAL_ADDRESS`. `grillhouse sortie --etiqueter` names this command alone. **Action for projects**: the first update from a version older than this command runs as `npx -p @roomi-fields/grillhouse@<x.y.z> grillhouse maj <x.y.z>`, without installing by hand in the main worktree; commit or set aside local changes to the files the update writes.
|
|
46
|
+
|
|
47
|
+
- **One unit per living version of the worker** (grillhouse-acl.3): the workers' units are templates, `grillhouse-travailleur-<project>@.service` and `grillhouse-travailleur-machine@.service`, each instance running the published version it names from `~/.cache/grillhouse/outil/<version>/`. `grillhouse temporal installer` starts the instance of the project's version (`grillhouse.outil`, else the installed package) beside the former ones, makes it current, and restarts no running instance; each pass retires the drained or never current instances that hold no activity, and the unit of before the template once it holds none. The worker of the machine rises without a cut. The command no longer restarts nor signals the queue (`file`, `versionDeLaFile`, `versionInstallee` leave its report); `etat` names each instance with its version, and `perime` says stale a project whose instance is not applied. **Action for projects**: run `npx grillhouse temporal installer` after the rise; without `grillhouse.outil`, the installed package must be a published one, its integrity in the lock file (a linked package or a local archive is refused).
|
|
48
|
+
|
|
49
|
+
- **A worker that restarts on the current version does not wait for it** (grillhouse-acl.6): `rendreCourante` returns at once when the first reading the server answers says the version is already current, whatever the state of the routing; before, a routing read as propagating made it fail after 50 s. A version the call itself makes current is still awaited until its routing is no longer propagating. **Action for projects**: none.
|
|
50
|
+
|
|
51
|
+
- **The frame's workers are versioned** (grillhouse-acl.2): the worker registers in a Worker Deployment per task queue, the version of its package as its version, and each workflow it serves declares its behaviour: the circuit of a ticket is pinned, and ends on the version it started on; the queue of the tickets, the queue of integration, the nights, the arbiter of the machine and the sonde auto-upgrade to the current version. One gesture, `rendreCourante` (`src/temporal/client.ts`), makes a version current on a task queue; `grillhouse temporal installer` calls it (grillhouse-acl.3); no version is released before the whole of grillhouse-acl is closed. The `patched` markers stay (their removal: grillhouse-acl.2.1). **Action for projects**: none.
|
|
52
|
+
|
|
53
|
+
- **A question to the supervisor deferred to an hour shows paused, and `--reporter` reads its hour or refuses it** (grillhouse-3uv.287): decided by the owner (2026-11-28), a question to the owner is never hidden. The board showed a deferred question as waiting, and `--reporter` handed bd any form as written (`tomorrow` was written to the ticket, `2026-11-29T09:00` failed). Until its hour, a circuit whose question to the supervisor (or end without its issue) is deferred bears ⏸ and « reporté HH:MM » (« jj/mm HH:MM » another day) on its line, with no question, count nor alert; past the hour, it shows again. A question to the owner keeps its line and count. The limit of circuits (the queue and the board) counts such a circuit again once the hour has passed; a ticket deferred with no hour still releases its place. `--reporter` accepts `H:MM`, `AAAA-MM-JJ`, `AAAA-MM-JJ HH:MM`, `AAAA-MM-JJTHH:MM`, `+<n>h` and `+<n>d`, a time to come, and refuses any other form before writing anything. **Action for projects**: replace `demain` or another free form in a call of `--reporter` by one of these forms.
|
|
54
|
+
|
|
55
|
+
- **The time budget benches of cargo are built and played under the profile `bench`** (grillhouse-510): decided by the owner (2026-11-28), a bound of time measured on unoptimized code with debuginfo means nothing (seen by OSD). The targets `tests/it_budget/` and `tests/<name>_budget.rs` get a build of their own (`cargo test --no-run --profile bench`, log `<crate>-build-bench.log`), then `cargo nextest run --cargo-profile bench`; the day and night tests keep the profile `test`. Before each bench, the module waits for the machine to be at rest, one minute at most, then plays it all the same. The benches take the project's `[profile.bench]`, inherited from `release` (no `debug_assertions` nor overflow checks unless set there); the build apart adds its time (LTO included), its memory and `target/release` on disk. The binary of another package built by its task `build`, and a path `target/debug/<bin>`, stay under the profile `dev`. **Action for projects**: none; a project whose benches rely on `debug_assertions` or overflow checks sets them in `[profile.bench]`.
|
|
56
|
+
|
|
57
|
+
## [0.52.0] - 2026-11-28
|
|
58
|
+
|
|
59
|
+
- **The night reads the fallback statement without crashing** (grillhouse-hzc.1): `repli()` of `scripts/nuit.sh` read the state of the measures, a string, as a list; from 0.49.1 to 0.51.0, it threw a `TypeError`, wrote no line of the statement, named no red tranche and replayed no interrupted one. When the project's flow declares a job that plays the measures of time, the part of PC2 was then left to play again (75), naming the measures; without such a job (the flow of the template), the part of PC2 was reported green, red tranches unreported and interrupted ones never played. It now reads that state as a string, says which tranches played on PC2 and on PC3, names the red ones, replays the interrupted ones on PC3 and says what the part of PC2 is worth. The line of the measures of time is written only when the project's flow declares a job that plays them. **Action for projects**: none.
|
|
60
|
+
- **The greffon wakes the session of supervision for a question that waits for it only** (grillhouse-3uv.282): decided by the owner (2026-11-28), each message opening a turn that reads the whole context again. A reading carries the questions due and the alert of the CI of main: a circuit integrated gives nothing, it is read on the board, and the reading neither asks the server for integrated circuits nor writes `.claude/worktrees/integrations-rendues.json`. A question addressed to the owner from the start is sent once, for the supervisor to carry it to him, and never comes back at the reminder; the opening of a session still lists it. The hook at the end of a turn (`Stop`, subcommand `attente-a-l-arret`) is removed, with its note `.claude/worktrees/signale-a-l-arret.json`; a plugin older than the package that still declares it lets the stop pass. The skill `pitmaster` says that an integration opens no turn: the closing is read at the next round. A file of integrations or a note an earlier version wrote is no longer read. **Action for projects**: none.
|
|
61
|
+
|
|
62
|
+
- **The sessions of the explorer, the questioner, the testwriter and the reviewer keep their prompt cache five minutes** (grillhouse-3uv.275): decided by the owner (2026-11-27, « pas pour tous les agents »). Their settings add `FORCE_PROMPT_CACHING_5M=1` to their env block (`scripts/droits.mjs`): their turns mostly follow each other within five minutes, and a cache write kept five minutes costs 1.25 times an input, against 2 times for one hour. The developer and the direct do not receive it and keep Claude Code's default (one hour on the subscription): they often wait longer (tests, builds) and would lose by it (simulated: developer −3.6 %, direct −11.9 %). It is a trial to be measured (grillhouse-3uv.285): each of the four roles goes back to one hour as soon as its real cost exceeds that of its same traces replayed at one hour. **Action for projects**: none.
|
|
63
|
+
|
|
64
|
+
- **The session of supervision renews itself at a milestone** (grillhouse-3uv.283): decided by the owner (2026-11-28). The session that holds the lock writes its one note of resumption (`<git common dir>/grillhouse-reprise.md`) and declares a milestone by `grillhouse superviseur --jalon <file>`, adds a question for the owner by `--question <file>`; once it stops with no background task, outside a turn, with no draft and no unread question, the greffon runs `/clear` and submits a message of resumption, and the opening that follows gives the note, the circuits and their questions. A message of the owner cancels the milestone. The greffon asks for the note and the milestone after a compaction, and once each night (`grillhouse.plageDeNuit`) when no question of a circuit waits for the supervisor. The pane keeps its added projects after a `/clear`. The note replaces `pitmaster/SUIVI.md`, which the template no longer places and the skills no longer name; the skill `pitmaster` says the three milestones (a release announced, a compaction, the end of the day). **Action for projects**: the update removes a `pitmaster/SUIVI.md` identical to the template; take up the open content of a file the project filled in the note of resumption or in tickets, then remove it (the update names it and exits non-zero until then).
|
|
65
|
+
- **A role session receives the output style of the machine and no line of attribution** (grillhouse-3uv.276.4): decided by the owner (2026-11-28). The settings of every role, the direct included, empty the lines of attribution of commit and pull request (`attribution`), whatever the settings of the project and of the user say: a role commits nothing. They carry the `outputStyle` of `~/.claude/settings.json`, which the sessions did not read, when the user chooses one; a style a settings file of the project chooses (`.claude/settings.json` of the copy, `.claude/settings.local.json` of the main tree or of the copy) prevails. The name of the style alone goes: a style of `~/.claude/output-styles`, or of a plugin the session does not load, does not apply. **Action for projects**: none.
|
|
66
|
+
- **A role session loads only its part of the common charter** (grillhouse-3uv.276.5): decided by the owner (2026-11-28). `charte.md` keeps the core, which every session loads, and imports one module per public, `charte/superviseur.md`, `charte/plan.md`, `charte/preuve.md` and `charte/tests.md`, which the package publishes. The settings of each role exclude the modules it does not apply (`claudeMdExcludes`, `scripts/droits.mjs`): no role receives the supervisor's; the developer receives the core alone, the explorer and the questioner the plan and the proof, the testwriter and the direct the proof and the tests, the reviewer the plan, the proof and the tests. The supervisor, a session started by hand and their sub-agents receive the whole charter, and a project's `CLAUDE.md` does not change. The rule « by day, nobody makes load » is in the core. The document of the machine (§3.2) says which role receives which module. **Action for projects**: none.
|
|
67
|
+
|
|
68
|
+
- **A session of the circuit lists the skills of its role only** (grillhouse-3uv.276.2): decided by the owner (2026-11-28). Each role session, in the envelope or out of it, new, resumed or relaunched after a refusal of the API key, lists and may load by the tool Skill its own skill, `systematic-debugging` for the explorer, the developer and the direct, and those its skill or the common charter ask of it (`mesure` for the explorer and the testwriter; `mesure`, `redacteur` and `writing-for-agents` for the developer and the direct), from one source (`ROLES` of `scripts/droits.mjs`); the first turn loses 1.6 to 2.0 k tokens by role. The sessions speak `stream-json` both ways: the list goes in the `skills` field of the `initialize` request on the standard input, before the instruction (`scripts/entree-de-seance.mjs`, shared by both launchers), which replaces `skillOverrides` in the settings of a role. Of the output stream, `resultat.json` keeps the line `type: result` alone, and the log of the ticket that line, the lines that are no message of the stream, the errors and, without a result, the text of the last assistant message (`scripts/sortie-de-seance.mjs`). **Action for projects**: none.
|
|
69
|
+
- **The bilan of a ticket gives the first turn of each session** (grillhouse-3uv.276.1): `bilan.json` gains `premiersTours`, one entry per session the circuit launched (its id, its role, and the input, cache written and cache read of its first response, read in its transcript; no number for a session without a transcript or a readable usage), and the comment « bilan » gives their means by role. **Action for projects**: none.
|
|
70
|
+
- **The checks and the final pass of a circuit judge the new files of the lot** (grillhouse-3uv.277, seen by SH): a new file git did not track yet escaped a guard that reads the index (`git ls-files`), and a green played without it was read back from the cache, so main would have turned red after the entry. During each command of the checks and of the final pass, the circuit now puts the lot in the index of the copy (`git add -A`, ignored files left out), then puts the index back as it was, after a kill too; when git fails, the command does not play and the circuit stops, naming git. Every verification pass gives `GRILLHOUSE_INDEX_DU_DEPOT`, the fingerprint of the list of the files of the index, which the `env` of the `//#grillhouse:gardes` and `//#gardes` tasks of a repository of packages names, so Turborepo plays the guards again when a file enters the index. **Action for projects**: the update writes the variable in the `turbo.json` of the root; otherwise run `npx grillhouse turbo-des-paquets --ecrire` and commit it.
|
|
71
|
+
- **In the envelope, the Turborepo logs of every package can be written, whatever the project's language** (grillhouse-3uv.274, seen by OSD, a project all in cargo): only the typescript module declared `.turbo` and the cache of Turborepo of the main tree, so `npm test` of a package of the plan failed before its tests on « Cannot write logs: Read-only file system » for a provider out of the plan. The core now declares them once for every language (`sortiesDuLangage`): `<main tree>/.turbo/cache/` written, and `.turbo` proper to the session in each package out of the plan, at the root when the plan leaves it read-only, and in the shared test material for a role that does not write it. The typescript module keeps `.cache-outils` only. **Action for projects**: none.
|
|
72
|
+
- **The document of the installation names only commands that exist to repair a poste** (grillhouse-3uv.272): it prescribed an option of the update that no command offers. A poste is repaired in the main tree by `npx grillhouse greffons` (missing plugins, or the frame's plugin behind), `npx grillhouse binaires`, `npx grillhouse temporal installer` (the units), `npx grillhouse outil` (the frame's repository) and `npx grillhouse nuit --planifier` (the schedule of the nights); `npx grillhouse maj` writes in the project, and what it changes enters main by an update ticket. The document says the gap left: no command plays the whole part of the poste, and the integration queue does not play it when a lot enters. **Action for projects**: none.
|
|
73
|
+
- **The board shows every question that waits for the owner** (grillhouse-3uv.266, seen by OSD, a question silent since 09:48): decided by the owner (2026-11-27). Under its line « toi », the head of the pane bears one line per stopped circuit whose question is the owner's, carried to him (`--chez-le-responsable`) or naming him from the start: « ❓ <number> <subject> · depuis <HH:MM> » (« dd/mm » for another day; the project's label on a board of several), until the circuit has its answer, a deferred or direct ticket included. « N question » counts those questions only: a question to the supervisor, or a stop that names no one, no longer counts. **Action for projects**: none.
|
|
74
|
+
- **The tests of a python package play the pytest of its environment, never the one of the system** (grillhouse-3uv.273, seen by SH in synthub-server, `ModuleNotFoundError` from the system's yaml): after the repository moved, the scripts of `.venv/<package>/bin` kept a shebang to the old folder, `uv sync --locked` did not rewrite them (uv 0.10.4), and `uv run … pytest` fell back without a word to the `pytest` of the PATH. The module python now launches `<root>/.venv/<package>/bin/pytest` by its path (a whole package, a named path, the night tests); a `pytest` absent or broken in the environment is red, and its line names the repair. **Action for projects**: repair a moved environment by `uv sync --locked --group test --reinstall` in the package, on its environment (the red line names the whole command); run `npm run verifier -- --tout` once to play again the packages that were green with the system's pytest.
|
|
75
|
+
- **What the migration of the index servers leaves to a project names a command that exists** (grillhouse-3uv.271, seen by SH in the update of osc-bridge to 0.51.0): once the plugin rtfm is enabled, it asks to run `npx grillhouse greffons` in the main tree; it named an option no command offers.
|
|
76
|
+
|
|
9
77
|
## [0.51.0] - 2026-11-27
|
|
10
78
|
|
|
11
79
|
- **The first update of a project without `jsonc-parser` no longer fails on `ERR_MODULE_NOT_FOUND`** (grillhouse-3uv.269, seen by the canary of 0.51.0 in osc-bridge and OSD): `npx grillhouse maj` declared `jsonc-parser` and ran the generator of the graph, which imports it, before `npm install`. While `node_modules/jsonc-parser/package.json` is absent, the update no longer runs that generator: its line, on the error stream with exit code 1 and the verification not played, asks for `npm install`, then `npx grillhouse turbo-des-paquets --ecrire`. The other generators run as before. **Action for projects**: when the line shows, run those two commands and commit the `turbo.json`.
|
package/agents/direct.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: direct
|
|
3
3
|
model: sonnet
|
|
4
|
-
description: Écrit tests et code d'un ticket
|
|
4
|
+
description: Écrit tests et code d'un ticket du circuit direct, ensemble, dans la copie du ticket. A tous les outils ; un fichier hors du plan se dit par sa fiche BESOIN. La passe finale et un relecteur jugent son lot ; le superviseur n'écrit pas à sa place.
|
|
5
5
|
skills:
|
|
6
6
|
- grillhouse:direct
|
|
7
7
|
---
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// The day's tests of the project: the frame's base configuration (its exclusions of the night
|
|
2
|
+
// tests and the time budget benches, its common environment), by its name, the frame's package's,
|
|
3
|
+
// extended with what is the root's own.
|
|
4
|
+
module.exports = (async () => {
|
|
5
|
+
const { defineConfig, mergeConfig } = await import('vitest/config');
|
|
6
|
+
const { default: base } = await import('@roomi-fields/grillhouse/vitest-config');
|
|
7
|
+
return mergeConfig(
|
|
8
|
+
base,
|
|
9
|
+
defineConfig({
|
|
10
|
+
test: {
|
|
11
|
+
// Global test configuration
|
|
12
|
+
globals: true,
|
|
13
|
+
|
|
14
|
+
// Include patterns
|
|
15
|
+
include: ['src/**/*.{test,spec}.{ts,js,mjs}', 'tests/**/*.{test,spec}.{ts,js,mjs}'],
|
|
16
|
+
|
|
17
|
+
// Coverage configuration
|
|
18
|
+
coverage: {
|
|
19
|
+
provider: 'v8',
|
|
20
|
+
reporter: ['text', 'json', 'html'],
|
|
21
|
+
reportsDirectory: './coverage',
|
|
22
|
+
include: ['src/**/*.{ts,js,mjs}'],
|
|
23
|
+
exclude: ['src/**/*.{test,spec}.{ts,js,mjs}', 'src/**/types.ts', 'src/**/index.{ts,js}'],
|
|
24
|
+
thresholds: {
|
|
25
|
+
lines: 80,
|
|
26
|
+
functions: 80,
|
|
27
|
+
branches: 80,
|
|
28
|
+
statements: 80,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
// Test timeout
|
|
33
|
+
testTimeout: 10000,
|
|
34
|
+
|
|
35
|
+
// Pool options for parallel execution
|
|
36
|
+
pool: 'threads',
|
|
37
|
+
poolOptions: {
|
|
38
|
+
threads: {
|
|
39
|
+
singleThread: false,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
})
|
|
44
|
+
);
|
|
45
|
+
})();
|
package/charte/plan.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# La charte commune : le module du plan
|
|
2
|
+
|
|
3
|
+
Les règles de la charte commune sur le plan d'un ticket : sa voie, ses composants, ce qui monte.
|
|
4
|
+
|
|
5
|
+
**Une tension avec l'architecture monte, elle ne se résout pas dans le ticket** : le créateur du
|
|
6
|
+
ticket, ou l'explorateur au plan, qui ne trouve aucun paragraphe, ou en trouve un que le travail
|
|
7
|
+
contredit, s'arrête et monte au superviseur. Le superviseur charge la compétence `architecte`,
|
|
8
|
+
instruit la décision (l'existant, les options, leurs compromis) et la porte au responsable, qui
|
|
9
|
+
tranche. Ainsi aucun ticket ne décide de l'architecture.
|
|
10
|
+
|
|
11
|
+
**Un ticket de réalisation nomme ses composants** dans son titre (« numéro — sujet — composant,
|
|
12
|
+
composant ») et sa section « Architecture », le fournisseur d'abord ; il fait une seule livraison,
|
|
13
|
+
en un seul commit, et se crée sous sa mère (`docs/agents/issue-tracker.md`). Un objectif dont le
|
|
14
|
+
découpage n'est pas connu commence par une exploration, sans code. Ainsi l'avancement se lit
|
|
15
|
+
ticket par ticket.
|
|
16
|
+
|
|
17
|
+
**Un ticket prend le circuit court quand aucun test honnête ne peut rougir avant son lot**, le
|
|
18
|
+
produit se comportant pareil avant et après : la suite existante, qui reste verte, et la relecture
|
|
19
|
+
font la preuve, comme les grands changements de Google (Rosie, ClangMR), Renovate, `nx migrate`,
|
|
20
|
+
`eslint --fix`, sans test neuf. Un test honnête échoue avant le lot et passe après, sur un
|
|
21
|
+
comportement qu'un test, un autre paquet ou une interface publiée observe. Le doute va au circuit
|
|
22
|
+
complet. L'explorateur juge au plan que le ticket est mécanique, et l'écrit avec sa raison, ce
|
|
23
|
+
qu'il a cherché et sa commande. La liste qui suit donne des exemples du critère, non son
|
|
24
|
+
périmètre : montée du cadre, documents seuls, renommage ou déplacement, montée de dépendance,
|
|
25
|
+
configuration seule (sans garde qui en mesure l'effet), correction de style, seuil relevé,
|
|
26
|
+
commentaires de code seuls, suppression de code sans appelant vivant, fichiers engendrés
|
|
27
|
+
régénérés, textes de messages qu'aucun test ni aucun autre paquet ne lit, typage resserré sans
|
|
28
|
+
changement à l'exécution et dont aucun lecteur du relevé ne casse à la compilation.
|
|
29
|
+
Le circuit court a deux formes : le geste qu'une commande ou un outil joue passe par 1.1 (Geste
|
|
30
|
+
mécanique, l'explorateur joue la commande du plan), sans testwriter ni développeur ; le geste
|
|
31
|
+
écrit à la main (commentaires, code supprimé, texte d'un message, typage resserré) saute le
|
|
32
|
+
testwriter et la preuve du rouge, et une séance du développeur écrit, puis les contrôles et la
|
|
33
|
+
relecture. Reste au circuit complet ce qu'un utilisateur ou un autre paquet observe (une sortie,
|
|
34
|
+
un code de retour, une interface publiée) ; le texte qui accompagne un changement de comportement
|
|
35
|
+
reste dans son lot. Une configuration dont une garde mesure l'effet reste au circuit. Une
|
|
36
|
+
réorganisation qui a du code et dont les tests s'adaptent (« comportement tests-adaptés ») garde le
|
|
37
|
+
circuit complet, la suite existante faisant la preuve. La bascule marche dans les deux sens, sur le
|
|
38
|
+
même plan, ses paquets et ses critères gardés : un lot de tests dont aucun ne peut rougir passe au
|
|
39
|
+
circuit court, un lot du circuit court qui change un comportement repart au circuit complet ; ses
|
|
40
|
+
arrêts, les réponses du superviseur et leur compte parmi les `RENDU` sont au document du circuit
|
|
41
|
+
(§5.6, §5.4). Ainsi chaque séance du circuit a un lot à écrire.
|
|
42
|
+
|
|
43
|
+
- **Une décision de structure passe par le grill** (compétence `grill`) : découpage, paquets,
|
|
44
|
+
modules, interfaces, frontières. Ainsi l'architecture décide de la structure, et le code la suit.
|
|
45
|
+
- **Un geste transverse, un seul ticket** : un même changement sur plusieurs composants se décide
|
|
46
|
+
une fois, en gabarit dans la section « Architecture », et se mène dans une seule copie. Ainsi le
|
|
47
|
+
geste reste le même partout.
|
package/charte/preuve.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# La charte commune : le module de la preuve
|
|
2
|
+
|
|
3
|
+
Les règles de la charte commune sur la preuve d'un ticket : son rouge et la taille de ses tests.
|
|
4
|
+
|
|
5
|
+
**Le rouge prouve le travail du ticket** : un test qui échoue avant le code prouve qu'avant le
|
|
6
|
+
travail le comportement manque, et qu'après il est là ; c'est son seul sens. Seul un test qui
|
|
7
|
+
porte le travail du ticket rougit donc d'abord ; les autres sont verts avant le code, sans
|
|
8
|
+
justification à donner. Chaque sorte de test prouve une chose :
|
|
9
|
+
|
|
10
|
+
| Sorte | Ce qu'elle prouve | Rouge avant le code |
|
|
11
|
+
|---|---|---|
|
|
12
|
+
| Test du comportement développé | Le ticket fait ce que dit son critère | Oui : c'est la preuve du travail |
|
|
13
|
+
| Test d'un défaut corrigé | Le défaut est reproduit, puis corrigé | Oui : il montre le défaut |
|
|
14
|
+
| Test d'un comportement existant | Le lot ne casse rien | Non : vert attendu |
|
|
15
|
+
| Test d'interface | Un paquet tient ce qu'il publie | Oui s'il porte le travail du ticket, sinon non |
|
|
16
|
+
| Banc de temps, témoin de temps | Un temps reste sous sa borne | Non : mesuré la nuit |
|
|
17
|
+
| Test de nuit | Le produit entier, monté dans un projet d'essai | Oui s'il porte le travail du ticket, joué la nuit |
|
|
18
|
+
|
|
19
|
+
Ainsi la preuve du rouge mesure le travail, et aucun test ne rougit pour la forme. La preuve, ce
|
|
20
|
+
qu'elle joue et ce qu'elle refuse : le document des tests (§5.2).
|
|
21
|
+
|
|
22
|
+
**La taille d'un test suit la pyramide** (la pyramide des tests de Google, les tailles de
|
|
23
|
+
Bazel) : un test petit vérifie son module par son interface, sans processus ; un test moyen
|
|
24
|
+
assemble quelques modules sur la machine, avec des processus locaux ; un test grand monte un
|
|
25
|
+
projet d'essai et y lance le produit ou le cadre entier : il est un test de nuit (`*.nuit.test.*`,
|
|
26
|
+
`*_nuit_test.py`, un module de `tests/it_nuit/` en Rust), jamais joué au fil du travail. Chaque
|
|
27
|
+
test prend la plus petite taille qui prouve son critère, dans Grillhouse comme dans chaque projet.
|
|
28
|
+
La garde des tailles (`grillhouse tailles-des-tests`) refuse un grand test de jour, et la dette
|
|
29
|
+
inscrite des grands tests existants ne fait que baisser (les gardes : le document des tests, §3.4). Un
|
|
30
|
+
test de jour valide le code en l'important : lancer la commande grillhouse (son binaire, un
|
|
31
|
+
script du cadre) est réservé aux tests de bout-en-bout, sous un dossier `e2e/`, et la même garde
|
|
32
|
+
refuse les autres. Un test qui a besoin d'un autre paquet construit — le binaire ou la
|
|
33
|
+
bibliothèque d'un composant, dans quelque langage — le déclare en dépendance (ses `dependencies`,
|
|
34
|
+
comme la `data` d'une cible Bazel) : le graphe le construit avant ses tests et le cache le garde,
|
|
35
|
+
si bien qu'un lot qui ne touche pas ses sources le reprend sans le reconstruire. Un tel test reste
|
|
36
|
+
un test de jour ; seul un test qui monte le produit entier dans un projet d'essai est un test de
|
|
37
|
+
nuit. Un test qui lance le binaire d'un paquet sans déclarer qu'il en dépend plante le jour, faute
|
|
38
|
+
de l'avoir construit. Ainsi le jour reste court, le petit CPU ne reconstruit que ce qui a changé,
|
|
39
|
+
et la preuve longue tourne la nuit.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# La charte commune : le module du superviseur
|
|
2
|
+
|
|
3
|
+
Les règles de la charte commune que le superviseur seul applique.
|
|
4
|
+
|
|
5
|
+
**Le greffon pousse les questions des circuits à la séance du superviseur, et la réponse les
|
|
6
|
+
acquitte** : seule la séance qui tient le verrou du superviseur les reçoit, un message par
|
|
7
|
+
relevé, jamais pendant un de ses tours ; une question lue et restée sans réponse revient à
|
|
8
|
+
l'intervalle de rappel du projet. Les états d'une question, le groupe de projets et la réponse
|
|
9
|
+
portée au responsable sont au document du greffon (§5.1). Ainsi une question ne dépend d'aucune
|
|
10
|
+
attente que la séance relance.
|
|
11
|
+
|
|
12
|
+
**Un ticket ouvert naît du mot du responsable**, ou d'un défaut qu'un projet du cadre rencontre.
|
|
13
|
+
Une découverte d'agent se consigne dans un ticket fermé, sous le ticket qui l'a trouvée, étiqueté
|
|
14
|
+
`decouverte`. En fin de ticket, le tri des découvertes lui donne son verdict, avec sa pièce :
|
|
15
|
+
`traitee`, `doublon` ou `sans-suite` la laissent fermée ; `a-porter` (un défaut de l'usage
|
|
16
|
+
actuel) ou `non-confirmee` (sans preuve rejouée) la rouvrent sous `a-valider`, pour le
|
|
17
|
+
responsable. Ainsi chaque découverte est lue, et le backlog reste le plan du responsable.
|
|
18
|
+
|
|
19
|
+
**Un ticket de données suit le chemin de données du projet** : un ticket qui n'ajoute que des
|
|
20
|
+
données (des fichiers qu'un schéma valide, une fiche à un catalogue) ne passe pas par le circuit
|
|
21
|
+
de code ; il passe par la validation du projet et sa CI, comme une formule de Homebrew ou un
|
|
22
|
+
type de DefinitelyTyped. Ainsi le circuit garde les tests et le code pour ce qui en a.
|
|
23
|
+
|
|
24
|
+
**Un ticket prend l'un de trois circuits, tous menés par le moteur** : le circuit complet pour un
|
|
25
|
+
comportement qui change ; le circuit court pour un geste sans comportement neuf, que l'explorateur
|
|
26
|
+
juge au plan par son critère, et que la bascule rend dans les deux sens ; le circuit direct, sans
|
|
27
|
+
plan, où un seul agent écrit tests et code, pour un travail que le ticket décrit en entier : une
|
|
28
|
+
correction triviale repérée en analyse (une ligne fautive, un mauvais argument), le squelette d'un
|
|
29
|
+
paquet, ou une correction du circuit que le circuit complet ou court ne peut pas porter parce qu'il
|
|
30
|
+
est en défaut. Un ticket direct porte l'étiquette `direct`, qui le fait partir par la file des
|
|
31
|
+
tickets, même s'il porte aussi `circuit` ; au plan, l'explorateur y envoie une correction triviale,
|
|
32
|
+
et l'agent direct ou le relecteur rend au plan un ticket qui en demande un (le document du circuit,
|
|
33
|
+
§5.1, §5.6). Les trois circuits comptent dans la limite du projet, répondent aux mêmes commandes et
|
|
34
|
+
entrent sur main par la file, sur leur passe finale. Un changement de comportement que le ticket ne
|
|
35
|
+
décrit pas en entier va au circuit complet, même pressé. Ainsi la voie d'un ticket se lit à la
|
|
36
|
+
charte, et non au choix de la séance.
|
|
37
|
+
|
|
38
|
+
**Le superviseur n'écrit pas le code d'un ticket, même direct** : l'agent direct (le rôle `direct`)
|
|
39
|
+
écrit tests et code ensemble, sous les droits que son rôle donne ; la passe finale juge son lot, le
|
|
40
|
+
relecteur le lit et tient la preuve du rouge (un défaut corrigé porte un test qui le reproduit), et
|
|
41
|
+
le circuit le commite. Quand le moteur lui-même est en panne, la voie de secours
|
|
42
|
+
(`npx grillhouse direct <ticket> --panne <texte>`) lance l'agent direct puis le relecteur hors du
|
|
43
|
+
moteur ; sur le lot accepté, le superviseur vérifie, commite, avance main et pousse, seul cas où il
|
|
44
|
+
le fait, et l'usage de la voie est écrit au ticket (le document du circuit, §5.8). Le verrou du
|
|
45
|
+
cadre refuse à toute séance hors enveloppe qui n'est pas un agent du cadre (le superviseur, une
|
|
46
|
+
séance lancée à la main, une séance qui perd sa variable d'enveloppe) le code et les tests d'un
|
|
47
|
+
paquet ; les documents, ceux d'un paquet comme ceux de la racine, restent écrits par le
|
|
48
|
+
superviseur. Ainsi celui qui relit n'est jamais celui qui a écrit.
|
|
49
|
+
|
|
50
|
+
**Un paquet naît en quatre temps** (un squelette n'a ni comportement ni test), comme les
|
|
51
|
+
générateurs de Nx et `cargo new --lib` : 1, le grill, le superviseur et le responsable (son rôle,
|
|
52
|
+
sa frontière, ses refus, son interface, son langage) ; 2, l'écriture, le superviseur avec la
|
|
53
|
+
compétence `redacteur`, relue par le responsable : sa ligne du tableau des composants de
|
|
54
|
+
`docs/ARCHITECTURE.md`, avec son langage, et ses documents (`<chemin>/docs/CADRE.md`,
|
|
55
|
+
`INTERFACE.md`), portés par la description d'un ticket direct ; 3, la création, par ce ticket :
|
|
56
|
+
l'agent direct écrit les documents tels qu'ils sont relus et joue `npx grillhouse paquet <chemin>`,
|
|
57
|
+
qui lit la ligne et bâtit ce que son langage demande, les outils de ce langage compris pour son
|
|
58
|
+
premier paquet ; 4, le code, un ticket ordinaire du circuit sur un paquet qui existe. Les temps 2
|
|
59
|
+
et 3 entrent dans le même lot, sur sa passe finale. Ainsi main ne voit jamais un paquet déclaré
|
|
60
|
+
sans dossier.
|
package/charte/tests.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# La charte commune : le module des tests
|
|
2
|
+
|
|
3
|
+
Les règles de la charte commune sur le test qu'on écrit : son nom, son moment, son adresse.
|
|
4
|
+
|
|
5
|
+
**Un test porte le nom du comportement qu'il prouve**, jamais le numéro de son ticket, qui va au
|
|
6
|
+
message du commit (Software Engineering at Google, chap. 12 : un test par comportement). Ainsi un
|
|
7
|
+
test vit autant que son comportement, pas que son ticket.
|
|
8
|
+
|
|
9
|
+
**Une mesure de temps joue la nuit** (les tests `manual` de Bazel, les bancs de rustc-perf hors de
|
|
10
|
+
la CI de chaque commit) : le jour sert l'activité, et sa machine est toujours chargée. Un test qui
|
|
11
|
+
mesure un temps (un banc de temps, un témoin de temps) est hors du jour dans chaque langage, comme
|
|
12
|
+
un test de nuit ; la nuit le joue sur des cœurs dédiés que personne d'autre ne touche, et un
|
|
13
|
+
échec sous charge y est « à repasser » (75) (la nuit : le document de l'entrée sur main, §5.3 ;
|
|
14
|
+
les cœurs dédiés : le document de la machine, §5.2). Le jour n'attend aucun repos : un délai de
|
|
15
|
+
test est un garde-fou, pas une mesure ; dépassé, il est rouge, et un délai trop juste s'élargit,
|
|
16
|
+
très au-dessus de la durée normale du test. Ainsi le jour avance, et une mesure se prend au repos.
|
|
17
|
+
|
|
18
|
+
**Un test qui exige de la charge joue la nuit** (les tests de résistance de Chromium et de rustc,
|
|
19
|
+
hors de la passe de chaque changement) : un test qui a besoin d'une machine chargée produit sa
|
|
20
|
+
charge lui-même et est un test de nuit, joué sur des cœurs dédiés (`grillhouse.mesure`), comme
|
|
21
|
+
une mesure de temps. Pendant la nuit d'un projet, les autres projets continuent de travailler :
|
|
22
|
+
seuls une mesure de temps et un test qui exige de la charge prennent des cœurs que personne d'autre
|
|
23
|
+
ne touche (l'étiquette `exclusive` de Bazel, donnée aux seuls tests qui l'exigent, non à la
|
|
24
|
+
suite). Ainsi la charge d'un test reste la sienne, et le jour garde sa machine.
|
|
25
|
+
|
|
26
|
+
**Un test vit dans un fichier à lui**, jamais dans un fichier de code, reconnu au nom ou au
|
|
27
|
+
dossier qu'attend l'outil de son langage : près de son module pour un test unitaire (en Rust, un
|
|
28
|
+
`tests.rs` ou un dossier `tests/` sous `src/`, comme le veut le contrôle tidy de rustc), dans le
|
|
29
|
+
dossier de tests du paquet pour un test par l'interface (en Rust, un module de `tests/it/` du
|
|
30
|
+
crate ; en C, un fichier `tests/test_<nom>.c` du paquet, un exécutable et un test CTest). Les sortes de tests, qui les écrit, qui les lit et qui les joue sont les mêmes dans chaque
|
|
31
|
+
langage ; seule l'adresse d'un fichier de test suit l'outil. Ainsi chaque test a un fichier à lui,
|
|
32
|
+
que le testwriter écrit.
|
|
33
|
+
|
|
34
|
+
**Un crate Rust a un seul exécutable de tests d'intégration par moment** (la suite de tests de
|
|
35
|
+
Cargo, `tests/testsuite/main.rs`) : chaque fichier de tests est un module que déclare
|
|
36
|
+
`tests/it/main.rs` le jour, `tests/it_nuit/main.rs` la nuit, `tests/it_budget/main.rs` pour les
|
|
37
|
+
bancs ; une garde du module cargo refuse un exécutable de plus. Ainsi cargo lie
|
|
38
|
+
les dépendances une fois par moment, et une copie garde la place de son disque.
|