@roomi-fields/grillhouse 0.48.0 → 0.49.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 +9 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +6 -0
- package/cadre/templates/projet/.github/workflows/nuit.yml +9 -2
- package/cadre/templates/projet/CLAUDE.md +9 -5
- package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
- package/cadre/templates/turbo/paquets.json +3 -1
- package/cadre/templates/turbo/sans-paquets.json +3 -1
- package/charte.md +40 -14
- package/dist/temporal/circuit/appel.d.ts +4 -1
- package/dist/temporal/circuit/appel.js +15 -1
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +7 -1
- package/dist/temporal/circuit/client.js +54 -1
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +30 -57
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +2 -1
- package/dist/temporal/circuit/contrat.js +2 -1
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +9 -2
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +16 -2
- package/dist/temporal/file/contrat.js +27 -3
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +4 -4
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/nuits/activites.d.ts +1 -15
- package/dist/temporal/nuits/activites.js +3 -62
- package/dist/temporal/nuits/activites.js.map +1 -1
- package/dist/temporal/nuits/contrat.d.ts +3 -21
- package/dist/temporal/nuits/deroule.js +38 -74
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/client.d.ts +3 -16
- package/dist/temporal/places/client.js +3 -26
- package/dist/temporal/places/client.js.map +1 -1
- package/dist/temporal/places/contrat.d.ts +15 -51
- package/dist/temporal/places/contrat.js +3 -13
- package/dist/temporal/places/contrat.js.map +1 -1
- package/dist/temporal/places/deroule.js +11 -61
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/tickets/activites.js +4 -2
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/contrat.d.ts +2 -1
- package/docs/ARCHITECTURE.md +310 -115
- package/docs/CADRE.md +16 -13
- package/docs/INTERFACE.md +90 -25
- package/hooks/hooks.json +9 -0
- package/hooks/register.tsx +59 -5
- package/package.json +1 -1
- package/scripts/activites.mjs +271 -42
- package/scripts/aiguillage.mjs +4 -1
- package/scripts/bilan.mjs +125 -2
- package/scripts/circuit.mjs +233 -159
- package/scripts/circuits-cles.d.mts +3 -3
- package/scripts/circuits-cles.mjs +6 -5
- package/scripts/coeurs-dedies.mjs +4 -4
- package/scripts/commandes-composees.mjs +12 -5
- package/scripts/dette.d.ts +2 -1
- package/scripts/dette.mjs +49 -6
- package/scripts/direct.mjs +343 -0
- package/scripts/droits.mjs +19 -0
- package/scripts/effets.mjs +4 -4
- package/scripts/engendres.mjs +2 -1
- package/scripts/enveloppe/enveloppe.mjs +67 -13
- package/scripts/enveloppe/lancer.sh +14 -3
- package/scripts/enveloppe/paquets-du-plan.mjs +9 -0
- package/scripts/enveloppe/travail-de-la-copie.mjs +119 -21
- package/scripts/etapes.mjs +3 -3
- package/scripts/faits-du-circuit.mjs +12 -11
- package/scripts/fermeture-de-la-machine.d.mts +4 -4
- package/scripts/fermeture-de-la-machine.mjs +10 -20
- package/scripts/fichiers-nommes.mjs +27 -1
- package/scripts/file-des-tickets.d.mts +18 -1
- package/scripts/file-des-tickets.mjs +63 -15
- package/scripts/grillhouse-maj.mjs +13 -25
- package/scripts/groupe-cles.d.mts +6 -0
- package/scripts/groupe-cles.mjs +29 -1
- package/scripts/integration/file.mjs +148 -37
- package/scripts/jointure.d.ts +17 -3
- package/scripts/journal-des-etats.d.mts +16 -0
- package/scripts/journal-des-etats.mjs +44 -2
- package/scripts/journal.mjs +3 -0
- package/scripts/langages/c/commandes.mjs +5 -5
- package/scripts/langages/c/composants.mjs +13 -5
- package/scripts/langages/cargo/commandes.mjs +5 -6
- package/scripts/langages/python/commandes.mjs +5 -5
- package/scripts/langages/python/composants.mjs +10 -2
- package/scripts/langages/typescript/composants.mjs +10 -3
- package/scripts/langages/typescript/construire.mjs +2 -0
- package/scripts/langages/typescript/exemples.mjs +33 -1
- package/scripts/langages/typescript/index.mjs +19 -0
- package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +32 -0
- package/scripts/langages/typescript/tests-de-nuit.mjs +152 -32
- package/scripts/langages/typescript/tests-du-poste.mjs +65 -23
- package/scripts/langages/typescript/titres-de-tests.mjs +11 -7
- package/scripts/langages/typescript/turbo-des-paquets.mjs +21 -4
- package/scripts/langages/typescript/verifier.mjs +3 -5
- package/scripts/langages/typescript/verrou-des-dependances.mjs +161 -0
- package/scripts/langages/typescript/vitest-config/cibles.mjs +57 -6
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +11 -5
- package/scripts/langages/typescript/vitest.nuit.config.mjs +53 -5
- package/scripts/machine.mjs +1 -1
- package/scripts/mesure/base-de-passe.mjs +2 -1
- package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +30 -0
- package/scripts/migrations.mjs +2 -0
- package/scripts/nuit.sh +97 -2
- package/scripts/paquet.mjs +16 -5
- package/scripts/paquets.d.ts +4 -0
- package/scripts/paquets.mjs +57 -0
- package/scripts/passe-de-la-machine.mjs +4 -7
- package/scripts/places-de-la-machine.mjs +55 -42
- package/scripts/places-du-serveur.mjs +2 -2
- package/scripts/plafond-de-la-machine.d.mts +7 -13
- package/scripts/plafond-de-la-machine.mjs +19 -35
- package/scripts/prefixe-des-tickets.mjs +1 -1
- package/scripts/references-changees.mjs +159 -0
- package/scripts/regles-des-places.d.mts +8 -31
- package/scripts/regles-des-places.mjs +14 -64
- package/scripts/repli-de-la-nuit.mjs +112 -0
- package/scripts/reponses-du-circuit.d.mts +2 -2
- package/scripts/reponses-du-circuit.mjs +21 -12
- package/scripts/reprise.mjs +27 -8
- package/scripts/resultats.mjs +21 -9
- package/scripts/seances.mjs +258 -40
- package/scripts/services-du-noyau.mjs +3 -0
- package/scripts/sous-commandes.mjs +24 -7
- package/scripts/superviseur.mjs +185 -39
- package/scripts/tableau.mjs +220 -89
- package/scripts/taches-du-graphe.mjs +84 -4
- package/scripts/ticket.mjs +345 -0
- package/scripts/transitions.d.mts +44 -0
- package/scripts/transitions.mjs +173 -13
- package/scripts/un-commit-par-ticket.mjs +4 -3
- package/scripts/verdict-de-la-nuit.mjs +47 -20
- package/scripts/verrou-de-fichier.mjs +2 -2
- package/scripts/verrous/ecriture-hors-enveloppe.mjs +86 -0
- package/scripts/verrous/verrou.mjs +17 -1
- package/skills/developpeur/SKILL.md +1 -1
- package/skills/direct/SKILL.md +57 -0
- package/skills/explorateur/SKILL.md +10 -6
- package/skills/pitmaster/SKILL.md +34 -14
- package/skills/pitmaster/references/consigne-agent.md +7 -1
- package/skills/relecteur/SKILL.md +8 -0
- package/skills/testwriter/SKILL.md +10 -0
- package/scripts/ticket.sh +0 -25
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.49.0] - 2026-11-23
|
|
10
|
+
|
|
11
|
+
- **The group of the project is read in the main tree, and `grillhouse paquet` refuses a faulty key before it writes** (grillhouse-3uv.205): in SyntHub (SH-bxj, 0.48.0, 2026-11-23), `npx grillhouse paquet packages/gardes`, launched in a copy of work (`.claude/worktrees/paquet-gardes`), ended at 1 on « grillhouse.groupe[0] vaut "../osc-bridge", pas un chemin de projet existant » after it had written the skeleton, and a second launch was refused (« le dossier porte déjà son package.json »). The update read the key in the package.json of the directory it was launched in and resolved its relative paths from there (`lireDuGroupe` of `scripts/grillhouse-maj.mjs`): from a copy, `../osc-bridge` led under `.claude/worktrees/`; `grillhouse maj` launched in a copy failed the same way. The other readers of the key (the survey of the supervisor's session, the queue of the tickets) already receive the main tree. And `creerPaquet` wrote the skeleton before the update judged the key. As git reads its configuration in its common directory whatever the worktree, and as a command validates before it writes (`terraform plan` before `apply`, `cargo new`), the new `groupeDe(dir)` of `scripts/groupe-cles.mjs` reads the key in the package.json of the main tree of the repository (`arbrePrincipal`, as `grillhouse.outils`) and resolves its paths from that tree; the update reads the group through it and writes each `external_projects` relative to the main tree, and `grillhouse paquet` judges the key before its first file: a faulty key is a refusal (⛔, exit code 1, no stack trace), nothing written. **Action for projects**: none; a copy left half built by such a refusal under 0.48.0 is removed (or its package folder and the workspace entry reverted) before the command is played again.
|
|
12
|
+
|
|
13
|
+
- **A proof of the red whose pass is « à repasser » no longer relaunches the testwriter** (grillhouse-3uv.203): in BPScript (bp-mono-vbwf.320.6.2.9, 0.48.0, night of 2026-11-23), the pass of the proof waited for its part of the machine up to its bound (60 min, the night holding the machine) and ended at 75 without playing any of its 13 test files; the circuit counted « 13 fichier(s) qui ne se charge(nt) pas », relaunched the testwriter, who declared himself blocked, and the stop went up as « hors-portee » (410 min of which 307 lost, a session of the testwriter with no object). The measure of the proof kept the code of its pass and read nothing of it (`mesureDeLaPreuve` of `scripts/activites.mjs`): a file with no result on a run whose code is not 0 was a file that does not load (`casseDeChargement`), and a refused proof relaunches the testwriter (`scripts/transitions.mjs`), where the checks and the final pass already stop at « a-repasser ». As an inconclusive result is a third outcome, apart from a failure (EX_TEMPFAIL, 75, of sysexits; the « infrastructure failure » of Bazel and of Zuul, played again without blaming the change), a proof whose pass is at 75 now proved nothing: it counts no red and no broken file, keeps no measure (neither written to the working directory of the ticket nor read back as a verdict) and no outcome for the bilan, ends its measure at that pass (the packages after it would wait the same way), and the circuit stops at « a-repasser » at step 2.1, with no testwriter relaunched. Its report names in its first line the command, its code and the wait of the machine (« ⏱ attente de la part bornée à 60 min … : la nuit tient la machine »), which the line of the stop at the ticket and a question gone up carry. A wait of the machine at its bound plays again at once, without limit and without a question, as the checks' does (`attente`); another 75 plays again within the limit of the « a-repasser » (6 times, 10 min apart), then its question goes up. The measure kept made the defect last: in BPScript, the night over, `--depuis preuve` read back three times the measure at 75 kept under the key of the 13 files (`mesure-de-la-preuve.json`) without playing a test, until that file was removed by hand; a kept measure with a run at 75 is now played again. **Action for projects**: none; a circuit stopped this way under 0.48.0 is resumed by `--depuis preuve` once the frame is updated, with no file to remove.
|
|
14
|
+
|
|
15
|
+
- **The reds of the night of 2026-11-23 on PC2, each at its cause** (grillhouse-3uv.204): the first night of Grillhouse on PC2 (run 45121929999, on 7cfd8330) was red in its three tranches. Four defects of the frame, each with the test that shows it. (1) Since grillhouse-3uv.194 a run of the night carries its unit in `GRILLHOUSE_NUIT_PAQUET` (the Vitest configuration of the package it plays), and the variable stayed in the environment: a Vitest that a night test starts itself in another package played under the configuration of the package of its launcher (« Failed to load url …/grillhouse-essais/tests/travailleurs-herites.setup.ts », five files without a test played; « No test files found » in `machine.enveloppe-reelle` and `machine.suite-entiere`). As the plugin of the night already does for its choice and its tranche, `vitest.nuit.config.mjs` now takes the variable out of the environment once read. (2) Since the same lot the night plays a package under its own configuration, the base of the day with it, whose guard of the temporary directory fails a run on what its tests leave: the directory of the parts a test file names (`machine.setup.mjs`) stayed with the part of a pass a test killed. The setup file now removes the directory it named at the end of its file, as the register of the file is. (3) A pass that took its part while another gave its own back failed on « ENVELOPPE REFUSÉE — ENOENT … .admission.… »: `rendreLaPart` removes the directory of the parts once empty, between its making and the admission lock of the other pass; `sousLAdmission` now makes it again and takes the lock. (4) Since grillhouse-3uv.190 a red test of a reader package the plan extended to its tests sent the testwriter back without end. His relaunches come in turn from the final pass, red in that test, and from the checks restricted to the red file, which follow a proof that finds it red; after the second relaunch the proof finds no red and the checks of the whole plan play, its packages and not the reader: green, they reset the count of his relaunches before the next final pass, red again (14 sessions in 280 s in the night test). The count now goes back to 0 on a green final pass alone (`scripts/transitions.mjs:1262`; counted at `:1204`), and the circuit stops at « controles » at the existing bound, three relaunches: final pass red, relaunch 1; restricted checks red, relaunch 2; checks of the plan green, final pass red, relaunch 3; restricted checks red, the stop, at those checks and not at the final pass. The same line rules the relaunches on a test file of the plan, which 0.48.0 already makes: there too the count now runs until a green final pass. The workflow of a ticket replays this decision, and the change carries no `patched` marker: grillhouse-3uv.190 is not published (the workers of the projects run 0.48.0), so no run in flight has relaunched the testwriter on the test of a reader; a run in flight under 0.48.0 diverges only at a fourth relaunch with no green final pass since the first, a circuit already looping. Night tests brought back to the behaviour their lots wanted: the directory of the results of the queue's final pass lives in its base (grillhouse-3uv.176), the guard `verrou-des-dependances` is the seventeenth control (grillhouse-3uv.189), the stand-in reviewer of the trial circuits gives a line of conformity per changed reference file (grillhouse-3uv.188), and the final pass red in the test of a reader extends the plan to it, then the circuit stops at the bound, at the checks restricted to that file, the steps asserted in their order (grillhouse-3uv.190). The trial server of Temporal of the frame's own tests (`tests/temporal/essai.ts`) no longer loses its port to another tranche of the same runner (« listen tcp 127.0.0.1:35599: bind: address already in use », `circuit.nuit.spec.ts`): a free port was read, released, then bound later. A first start whose port is refused takes another free port, five starts in all, so four other ports; a restart on a base the helper already served keeps the port of that base, where its clients are, and tries it again, five starts in all too (`apresUnRefus`, `tests/temporal/port-d-essai.ts`); and the wait for the answer takes a server on the port for its own only once its own, given a fixed time to say its port is refused (500 ms, a limit), still runs and has not said it. The flow of the night lays down clang-format and clang-tidy at the versions the module c pins, by its installer, when the runner lacks them. **Action for projects**: none.
|
|
16
|
+
|
|
17
|
+
- **The bilan of a circuit details its time between two steps by cause, and the journal records each reservation** (grillhouse-3uv.191): in BPScript (2026-11-22, 19 tickets), « entre deux étapes » made 1027 min, 2.8 times the work kept, and the bilan did not say what it held. As Slurm names a pending job's reason and a CI pipeline splits queued, waiting and running, the line now carries sub-lines whose sum is the line to the minute: start of a session (launch of the circuit to the session's first turn), cores or place (a wait of `places` to the next `prise`, a reason that names another circuit included), another circuit or project (a wait of the queue that a line `file` gives `autre`), the queue, and what the journal cannot attribute, « non attribué », never put in a neighbouring cause. Each interval goes to one cause by fixed priority (a session's start, place, another circuit, queue, unattributed); a ticket without those traces (a journal from before the lot) keeps its lines and its total, all its time unattributed save the starts. The detail reads the traces already written, no reservation line. The journal of states writes, at each part taken and given back by a pass, its reservation (`reservation`: cores, memory in GB, who: ticket and sort), `grillhouse journal` shows it, and `reservationsOuvertes` (`scripts/journal-des-etats.mjs`) reads the reservations open at an instant from the journal alone. No time is reduced here. **Action for projects**: none.
|
|
18
|
+
|
|
19
|
+
- **The write lock judges without loading semver** (grillhouse-3uv.197): the CI of main went red on 744e2f1 (run 45072201567, slice 1): five tests of `tests/unit/verrou-publie.spec.ts` answered « Cannot find package 'semver' imported from …/scripts/langages/typescript/verrou-des-dependances.mjs ». Since grillhouse-3uv.189, the module of typescript imports `./verrou-des-dependances.mjs` for the command of the lock, and that module imported `semver` at its top: the write lock of a session, which loads the module of language of the project from a version of the frame, then needed a dependency that none of its verdicts reads. The trial installation of these tests is the package as npm publishes it, without its dependencies; the tests are red on the workstation too when they are played, and the pass of the lot did not play them (they launch the command of a copy, which no graph of Vitest relates to the scripts changed). As a subcommand of npm or git loads what it alone needs when it runs, `semver` is now required when the guard compares (`verifierLesConstats`), as `mise-a-jour.mjs` already does, and the top level of the module uses Node alone. The new `tests/unit/verrou-sans-dependances.spec.ts` imports the scripts of such a copy: each module of language loads, and the lock gives its verdicts, where `semver` does not resolve; it and `verrou-publie.spec.ts` now declare that they read the scripts of the package (`@lit`), so a pass replays them when one of them changes. The guard `verrou-des-dependances` and the regeneration of the lock are unchanged. **Action for projects**: none; an installation by npm brings `semver` with the package, so no project met this failure.
|
|
20
|
+
|
|
21
|
+
- **The plan extends by itself to the tests of a reader package that the lot turns red** (grillhouse-3uv.190): BPScript's survey of 2026-11-22 (19 tickets, 8 stops « hors-plan » or « hors-portee », nearly all the same case: the tests of a reader package, `900-driver`, fail on a type the lot changes; the developpeur sends a test to migrate, the testwriter stops out of its reach, the supervisor extends by hand: 44 sessions of the testwriter for 19 tickets). As Nx's affected targets and `bazel query rdeps` put the readers a change breaks in its scope, when every red of a reader package out of the plan (set apart or out of the title) lies in a test file, the circuit now extends the plan to those test files alone, without a stop (`etendreAuxTests`, `testsEtendus` among its sheets, kept by a plan written again or resumed), and says it at the ticket with the package, the red test files and, for a set-apart one, the reason the red belies. Only the testwriter writes them (his envelope and lock, `GRILLHOUSE_TESTS_ETENDUS`); the developpeur writes nothing there, and a red in the code of a reader still goes up. The testwriter's send-back names every red test file at once, counts in the existing limit of his relaunches, and the testwriter stopped « hors-plan » on a test file of a reader extends the plan the same way. The charter (« Tout se lit, le plan s'écrit ») and the architecture say it. **Action for projects**: none.
|
|
22
|
+
|
|
23
|
+
- **The lock of the dependencies is written again by the frame on the lot, with no key of the project** (grillhouse-3uv.189): in BPScript (bp-mono-vbwf.320.6.2.2, lot ee8ab0893, 2026-11-22), a lot added devDependencies to two package.json; `package-lock.json` is read-only in the envelope, so the lot entered main with a lock 12 lines late, which neither the checks, the final pass nor the reviewer saw (reported by hand, 2dce8d5ac). The integration installed with `npm install --no-save`, which never writes the lock, and the module of typescript declared no lock among the files it generates. As `npm install` after a merge, Renovate and Dependabot write the lockfile on the merged tree, and `npm ci` refuses a lock out of step, the module of typescript now declares the lock a reference the frame writes in full (`fichiersEngendres`, « le verrou des dépendances »: file `package-lock.json`, reads the `package.json` of the root and of the packages, command `npm install --package-lock-only --no-audit --no-fund`, played with the tools of the project): the integration, the queue and the advance of a copy take main's lock and play that command on the lot applied when the lot touches a `package.json`, and the circuit plays it in the copy at 4.2, before the checks and the final pass, never the agent. The new guard `verrou-des-dependances` compares, by day and with no registry, each `package.json` with the entry of its package in the lock (`dependencies`, `devDependencies`, `optionalDependencies`, `peerDependencies`) and refuses, naming the package, the dependency and the command: a dependency absent, one removed but still in the entry, a range that differs, a resolved version that no longer satisfies the range. The rule holds for the module of typescript alone: `Cargo.lock` (module cargo) and `uv.lock` (module python) do not follow it yet. **Action for projects**: none; a project that declares `package-lock.json` under `grillhouse.engendres` keeps its command, the frame's reference is not added and its guard does not play for it.
|
|
24
|
+
|
|
25
|
+
- **The reviewer reads the difference of the reference files the lot changes** (grillhouse-3uv.188): in BPScript (2026-11-22), the reviewer did not see a change of the output reference that the commit did not name (bp-mono-vbwf.320.7.3: six scenes change their dates, the commit names the tree alone; 320.7.4: 318 scenes), the « deviation to name » coming from what the agent declares, not from the difference of the files. As a snapshot review shows the difference of each file (Jest, insta, the goldens of Chromium), the new `scripts/references-changees.mjs` measures it by git between the base of the lot and the lot kept, for each file that `lesReferences` covers (the project's references, its generated files, the frame's): lines added and removed, and for a JSON file, by name of field, its values changed, added, removed (« dates : 6 changées »); any other format keeps its lines. The reviewer's instruction carries it in a new section « LES FICHIERS DE RÉFÉRENCE QUE LE LOT CHANGE » (« aucun » when the lot changes none), its skill says to judge on it, its sheet is out of conformity without a line of `conformite` for each such file (its `element` the path), and the commit message of the circuit carries « Références changées (N) : <fichier> (+a −b), … », none when the lot changes none. **Action for projects**: none.
|
|
26
|
+
|
|
27
|
+
- **The creation of a ticket is played again without a second ticket, and says what it waits for** (grillhouse-3uv.192): in BPScript (2026-11-22, 0.48.0), `npx grillhouse ticket` went past 60 s and, launched again, created the ticket twice (bp-mono-vbwf.320.45 and .46, created 79 s apart: the first launch, its caller's delay of 60 s passed, was still running when the second was launched). Measured there the same day: Beads takes its embedded store under an exclusive lock (`flock` of `.dolt/noms/LOCK`, tried again until it is free), so it serves one process at a time; on that store (1 GB, 2720 tickets), with three or four other `bd` of the project running (the `bd list --all` of the board and of the queue, 14 s each), one `bd show` took 5 to 16 s for 2 to 3 s of processor, the rest being its wait for the lock, against 0.2 s on a new store; the command called Beads three times in a row (creation, title, closure of a discovery), each waiting its turn, in silence. As a creation is made safe to retry by an idempotency key (the `Idempotency-Key` of the payment APIs, « create if not exists »), the command, now `scripts/ticket.mjs` (the shell script `scripts/ticket.sh` is removed, its readers moved: `scripts/effets.mjs` for a discovery, the subcommand `ticket`), reads the children of the mother first (`bd list --parent <mother> --all`): a child that bears the title « <number> — <subject> — <components> » is the ticket, and a child that bears the bare subject and the body of the request is a creation stopped before its title, which the command finishes (the title, the closure of a discovery it labelled); a closed child counts for a discovery alone, created closed, so that a defect that comes back under another label gets a new ticket, and a bare subject with another body is left alone. On such a child the command creates nothing, says « <id> existe déjà sous <mère> avec ce titre, aucun ticket créé » on the error stream and prints that id alone on its output, exit code 0. A reading of the children that fails, or answers no list, creates nothing (exit code 1). The reading and the creation are one step under a lock of the project, in its main tree, whose store the copies share (`.beads/grillhouse-ticket.lock`, the frame's file lock, which Beads' `.gitignore` leaves out of git): a creation launched while another still runs waits for it, then finds its ticket; the lock is judged by its age (5 min, written again after each call of Beads), a process number meaning nothing across envelopes, and the one of a command that was killed is taken over past it; a command its caller cuts (SIGTERM, SIGINT) releases the lock before it ends. Two limits stay, written in `docs/INTERFACE.md` (« La création d'un ticket »): two discoveries of the same subject and components under one ticket are one, and a command killed whose call of Beads survives can still create its ticket after the next one did. Past 5 s on one call of Beads or on that lock, then every 10 s, it says what it waits for and for how long. A failure of Beads is now one line that names the call (« bd create : … »), exit code 1. **Action for projects**: none for the command, whose arguments, output and exit codes are kept; a project that called `bash …/scripts/ticket.sh` by its path calls `npx grillhouse ticket`. `docs/agents/issue-tracker.md` is the project's own: add to its line « Creating one » that the command run again for the same mother and title prints the existing ticket's id.
|
|
28
|
+
|
|
29
|
+
- **The output of the command of a generated file no longer enters the list of the shared submodules** (grillhouse-3uv.193): in BPScript (bp-mono-vbwf.320.6.2.3, 0.48.0, 2026-11-22), one minute after the project declared its lock file a generated file (`grillhouse.engendres.verrou`, « npm install --package-lock-only --ignore-scripts »), the launcher stopped before the developpeur's session on « usage: sous-modules.sh … »; a plain resumption passed. The launcher reads the list of the shared submodules on the standard output of the preparation of the copy (`partages=$(… preparer …)` of `scripts/enveloppe/lancer.sh`), and the advance of the copy played the command again through `regenerer` (`scripts/engendres.mjs`), which writes the output of a command that passes on the standard output by default: the output of npm entered the list, and the mount refused a line that is no absolute path. As the standard output of a command is its data and its messages go to the error output or to a log (`git rev-parse` read by `$(…)`), the advance of a copy and the report of a branch sent back (`avancer`, `reporter` of `scripts/enveloppe/travail-de-la-copie.mjs`) now give the output of a command played again to the channel of their messages (`dire`: the error output, which the launcher sends to the log of the ticket, and the descriptor `sortie` of `preparer`, the log of the preparation for the circuit); a command that says nothing leaves no message. The integration and the queue keep the output where it went. **Action for projects**: none; a launch stopped this way is resumed.
|
|
30
|
+
|
|
31
|
+
- **The migration of the reservation of three cores carries the version that brings it** (grillhouse-3uv.187): the lot of grillhouse-3uv.182 named its migration `0.48.0-reservation-de-trois-coeurs` and exported the version 0.48.0, already released; the update plays the migrations newer than the version the project recorded (`migrationsAJouer` of `scripts/migrations.mjs`), so a project at 0.48.0 would never have played it and its `grillhouse.part.coeurs` would have stayed at 4. As a migration of Rails or of Alembic carries an identifier newer than the last one played, the migration is now `0.49.0-reservation-de-trois-coeurs` and exports 0.49.0, and its test reads the real list: from 0.48.0 it is to play, from 0.49.0 it is not. No project received the former name, which no release carried. The test of the workers of a pass (`tests/unit/langages/typescript/verifier.spec.ts`) still supposed a default part of 4 cores: it now states the reservation of 3 cores, one task of tests at a time, which receives the 3. **Action for projects**: none; the migration runs on the upgrade.
|
|
32
|
+
|
|
33
|
+
- **A circuit starts when its cores are reserved: 3 for an ordinary one, 2 for a direct, within the budget of the machine** (grillhouse-3uv.182): on PC3 (32 cores), 10 places and declared parts of 4 cores made 40 nominal cores for a budget of 28, and the directs, counted nowhere, came on top (load ≈ 38). As Kubernetes adds the requests of its pods against the capacity of a node and Slurm the cores of its jobs, a session of an agent and a pass now reserve their cores for their own phase only (none at the opening of a circuit, none while it is stopped), added against the budget of the machine, in the order of arrival. The reservation of an ordinary pass is `grillhouse.part.coeurs` of the project (3 without a key), a direct's is 2, a measure keeps `grillhouse.mesure` (3 without a key); a reservation larger than the budget is the budget. A direct holds a place of circuit from its agent to its review, counted in the places of the machine (`GRILLHOUSE_PLACES`). The division of the budget by the places and `MIN_COEURS_DE_LA_PART` leave. The board says « attend N cœurs » and shows the cores reserved by circuit. The migration `0.49.0-reservation-de-trois-coeurs` passes `grillhouse.part.coeurs` from 4 to 3. **Action for projects**: none; the migration runs on the upgrade.
|
|
34
|
+
|
|
35
|
+
- **A question comes back from its reading, not from its sending, and the board says where it stands** (grillhouse-3uv.185): a question not answered came back every 5 minutes in the queue of the session of supervision, counted from its sending: one that arrived during a long turn was reminded before it was read, and one the supervisor had carried to the owner came back until it was deferred by hand. As a queue with acknowledgement counts the visibility delay of a message from its reception (SQS), a question now has three states the greffon keeps: sent (put in the message of the session), read (a turn of the session started with that message, `turn.start` and `superviseur --lue`, or the opening of the session listed it) and answered (it leaves the file). It comes back once read, after `grillhouse.rappel` minutes from its reading (10 by default, 5 before), once per delay, never while it is still in the queue; a file of the older format reads as sent. The answer `npx grillhouse circuit <ticket> --chez-le-responsable` carries it to the owner: it is silent until the circuit answers. The reminder line names that answer beside the command of the circuit. The board writes the state at the right of the line « ⤷ Question · <qui> » (« envoyée », « lue il y a N min », « chez lui · N min »), and « toi : … question » counts a question carried to the owner; the alert « attend le superviseur depuis N min » no longer speaks of a question read or carried to the owner. The alert of the CI of main is no circuit's question: unchanged. **Action for projects**: none; a project that sets `grillhouse.rappel` keeps its value, now counted from the reading.
|
|
36
|
+
|
|
37
|
+
- **A session without a conversation is launched afresh, not resumed** (grillhouse-3uv.183): in BPScript (bp-mono-vbwf.320.20.1, 0.48.0, 2026-11-22), the testwriter's session after a sending by the developpeur's sheet ended twice in eleven seconds and the circuit stopped « sans-fiche ». The session was a fresh one, not a session of before resumed: its first launch ended in error before claude opened its conversation (why that launch ended, and its stop « lancement », are grillhouse-3uv.184's), and the one resumption of a session without a sheet asked claude for a conversation that never opened (« No conversation found with session ID »). As a cache missed is built again, a session is now resumed only when claude holds its conversation: before the resumption of a session it launched, `jusquALaFiche` looks for the transcript of that session (`<id>.jsonl` among the transcripts of the copy, or of the main tree for a session out of the envelope before the copy exists; `conversationOuverte` of `scripts/seances.mjs`), and without one launches the session afresh under the same id, once, with the whole instruction of its role, says so at the ticket, and the fresh session keeps its own resumption. The circuit reads no log for it. The resumption of a kept session that ends in error already fell back on a fresh and whole session. **Action for projects**: none.
|
|
38
|
+
|
|
39
|
+
- **The direct is a gesture of the frame: an agent and a reviewer launched by a command, the supervisor does not write** (grillhouse-3uv.173): on 2026-11-22 the supervisors of Grillhouse and of OSC wrote the code of direct tickets themselves (grillhouse-3uv.167, .164, .165), where a direct is written by an agent in a copy and read; nothing held the rule. As the emergency lane of a merge queue (the « tree closer fix » of Chromium, the stage0 of rustc fixed outside bors) stays outside the queue but never without an author other than its reviewer nor without a verification, `npx grillhouse direct <ticket>` (`scripts/direct.mjs`) launches, for a ticket labelled `direct`, the session of the agent `direct` (a role of its own, tests and code together, its rights those of `scripts/droits.mjs`, its lock `verrou direct`) in a copy locked by git, then the reviewer on its lot, and stops: no plan, no proof of the red, no checks, no queue; it gives the verdict and the address of the copy. The packages are the components of the title, completed by each `--paquet`. It starts or resumes by the reviewer's sheets of the copy: a verdict RENDU resumes the agent with the open findings, and the third RENDU in a row stops and goes up to the supervisor; `--deverrouiller` lifts the lock once the lot is on main. The instruction of the reviewer of a direct requires that a defect fixed carries a test that reproduces it. A hook of the frame's plugin (`verrou-hors-enveloppe`, `scripts/verrous/ecriture-hors-enveloppe.mjs`) refuses the code and the tests of a package, and `mods/grillhouse`, to every session out of an envelope that is no role of the frame (the supervisor, a session started by hand, a session that lost its variable of envelope), naming the command; the documents stay written. The board shows an agent of a direct under a block « Direct », at the head of the agents. The charter and the skill of the supervisor say who writes a direct. **Action for projects**: none; a direct ticket is led by the command.
|
|
40
|
+
|
|
41
|
+
- **A copy removed while the envelope mounts no longer kills the launch of a session, and a launch the envelope refuses is known by a state** (grillhouse-3uv.184): in BPScript (bp-mono-vbwf.320.20.1, 2026-11-22), the new session of the testwriter died in the envelope before the agent started, on « bwrap: Can't find source path …/.claude/worktrees/bp-mono-vbwf.320.7.3 »: the copy of another ticket, listed by `git worktree list`, was removed by its circuit before bwrap mounted it. The envelope brings back read-only each worktree an emptied directory (the home, `/tmp`) hides; the copy of another ticket is now an optional mount (`--ro-bind-try`, as the optional mounts of the containers, `plan` of `scripts/enveloppe/enveloppe.mjs`): bwrap skips the one that is gone, and the session leaves without it. The main tree and the copy of the session keep a mount that fails without its source. The stop « lancement » on a refusal of the envelope never took in a real launch: it read a line `bwrap: ` in the error stream of the launcher, while `lancer.sh` sends the envelope's errors to the log of the ticket, and it asked for a ticket without any transcript; the refusal counted as a session in error, resumed then « sans-fiche ». That reading leaves. The command the envelope runs now writes a witness of its start as its first gesture, in the working directory of the session (`TEMOIN_DE_DEMARRAGE`), which the launcher removes before the envelope and ranges with the session's result after (`demarree`, beside `fin`): an envelope that ends on a code other than 0 without the witness is the stop « lancement » (`seanceLancee` of `scripts/seances.mjs`), whatever the reason (a mount bwrap cannot make, a refusal of the envelope itself), whether the ticket already holds transcripts or not, its report citing the end of the log; an attempt Temporal plays again reads the same witness (`resultatRange`). The circuit reads no text of the log for it. **Action for projects**: none.
|
|
42
|
+
|
|
43
|
+
- **The plan keeps the components the title of its ticket names, the root included** (grillhouse-3uv.178): in osc-bridge (0.48.0, six tickets, OB-80g.14 to OB-80g.20, 2026-11-22), the title named « osc-bridge, . », a criterion named `CHANGELOG.md`, the explorateur's sheet named `osc-bridge` alone, and the developpeur stopped « hors-plan » on `CHANGELOG.md`, the supervisor answering `--etendre .` by hand each time. The circuit judged the sheet of the plan against the survey of the components alone, which never names the root, and wrote the sheet's packages over the title. As the declared scope of a change bounds what it writes and a tool does not narrow it without saying so (the OWNERS of Chromium, the affected projects of Nx), the sheet is now judged against the title as well (`fautesDesPaquets` of `scripts/circuit.mjs`, on the components the state of the plan keeps from the title before the plan, `planAuDebut`): a component of the title, the root (« . ») included, is in the sheet's `paquets` or in its `ecartes` with its reason, in the plan as in the answer to the questionneur; a sheet that leaves one out, or that sets a component apart with an empty reason, is out of conformity and asked again once of the same session. A component of the title is not set apart, its reason given or not, while the ticket names a file of it (in its « Architecture » section or a criterion, `fichiersNommesAuTicket` of `scripts/fichiers-nommes.mjs`, a file that exists in the copy; a file of the root is one no component holds): the root whose `CHANGELOG.md` a criterion names stays in the plan, since the extension of the plan on a file the ticket names leaves the root to the supervisor (`seanceLancee` of `scripts/seances.mjs`). An answer to the questionneur that says no `ecartes` is judged on those of the plan it answers, as the circuit keeps them. The instruction and the skill of the explorateur say it. A package an extension gave the plan (`--etendre`) is still kept by the circuit itself. **Action for projects**: none.
|
|
44
|
+
|
|
45
|
+
- **The detour of a session to the other role carries its own instruction, identity and question** (grillhouse-3uv.180): the review of grillhouse-3uv.167 after its entry on main found three faults in the session a refused launch sends to the role that writes the files in conflict (`seance` of `scripts/seances.mjs`), and one in the refusal of the sheet. Its instruction took the option of a resumption on a red, and said what nothing proved (« le reste du lot est vert et ne se touche pas », the files in conflict listed as the tests of the lot): the files are now named in its report, as the relaunch before a pass names them. Its launches carried the identity of the launches of the role asked (`lancement:neuve:<n>`): an attempt Temporal played again after the detour took the sheet the detour ranged for the sheet of the role asked; the detour now launches under an event of its own (« conflit »). Its sheet BLOQUÉ or BESOIN was thrown away, and the role asked launched again: it now goes up with its reason or its question (« hors-portee », « besoin »). And the sheet FAIT of a session that put a file in the index with its marks, after a conflict the launcher's advance posed, was accepted, the index no longer saying it in conflict and no earlier pass naming it: `marquesRestantes` now reads the files the index holds apart from HEAD too, as pre-commit's check-merge-conflict reads the staged files. **Action for projects**: none.
|
|
46
|
+
|
|
47
|
+
- **The debt of a guard only comes down for the packages of the plan** (grillhouse-3uv.116): in BPScript (320.14.2.8.1, 0.45.1, 2026-11-20), the checks of a plan that named `000-forms` alone removed from `grillhouse-dette.json` the debt of six large tests of four other packages (30 lines), and the final pass turned red on them, about 30 min lost. The guard of the sizes of the tests reads the whole repository, so the correction of grillhouse-8if, which bounds the guards that read the components of the plan alone (`mesureDe`), did not cover it; but the copy of a plan holds what its packages need, not what the others do: the shared test material of the other packages was not built there, the guard read their tests as not large (11 large tests for 17 out of the envelope), each one became a note « à élaguer », and the circuit lowered the debt from those notes. As a baseline only comes down by the lot that resorbs it (`eslint --prune-suppressions` prunes the files it linted, Betterer), the known debt is now bounded for every guard at once, in its common mechanism (`mesureDuPlan` of `scripts/dette.mjs`, applied by `trancher` beside what the guard says it read): a run in the envelope of a plan (`GRILLHOUSE_ENVELOPPE`: the checks of the plan, the sessions of its agents) measures the files under the paths the plan names, every file when it names the root; the keys of the other files are neither judged corrected, nor noted, nor pruned, nor written again. The guard of the titles of the tests, which judges a debt above its count by itself, follows the same measure. The final pass, out of any envelope, still measures the whole repository and lowers the rest of what the lot resorbs; a new finding out of the plan is refused as before. **Action for projects**: a `grillhouse-dette.json` a circuit emptied this way is restored from main in the copy.
|
|
48
|
+
|
|
49
|
+
- **At the checks of a plan, a guard never plays before the build of what it reads** (grillhouse-3uv.117): the checks (3.1) played each guard's script alone (`npm run grillhouse:gardes`, `npm run gardes`), out of the graph where its task waits for the build of every package, after `npm test -- <package>`, which builds the plan's package and its providers only; a guard that reads a built product then found no `dist/` of a package out of the plan (BPScript, bp-mono-vbwf.320.14.2.8.1: the plan `packages/000-forms`, the frame's `frontieres` red on 580 imports that did not resolve and the project's guard red « PORTE QUI NE S'OUVRE PAS » on six packages; green once the final pass had built them, which is why it did not show at every pass). Before the guards, the checks now play what the guard tasks wait for in the graph, `npm exec --no -- grillhouse construire --gardes`: the runner's plan of the guard tasks the root holds a script for, then each of its tasks but the guards, replayed from the cache when nothing moved; one implementation for every language, its builds side by side bounded as those of the verification (`--concurrency`, half the cores of the part). A red build of a package of the plan is a red of the checks, given to the developpeur; a red build of a package out of the plan, or one no result situates, is left to the final pass, and the guards then play without that build. The frame's guards and a project's own guards both get it, for whatever built product they read. The red of BPScript's night of 2026-11-20 on `frontieres` is another fault: there the builds had played, and dependency-cruiser failed on a temporary file of Vitest's configuration that vanished under it (`vitest.config.ts.timestamp-….mjs`, ENOENT). **Action for projects**: none; a project's guard that reads a built product needs no build of its own.
|
|
50
|
+
|
|
51
|
+
- **A red final pass of the queue names its reds and keeps its output** (grillhouse-3uv.176): three times in a day the final pass of the queue went red on « service#test:unit … exited (1) », and the comment at the ticket held only the last sixty lines of the output, the tree of cargo-deny and the lines of Turborepo, never the failed test nor its message; the rest of the output was lost, so a test unstable under load could be neither named nor put in quarantine (SyntHub, SH-t8o.1 and SH-ae6.10.40, 2026-11-22). The pass of the queue now names a results directory, in a base of a pass of its own (removed at its end, swept by the next pass when its act was killed), as the passes of the circuit keep theirs in the base of their run, and reports like its checks: the comment of a red lists each red read there (test, file, message; finding of a guard; failed task or build with its log) by the reading of the checks, in every language, up to a bound beyond which it says their count and sends to the journal, which holds them all; the end of the output comes only when that reading names none. The whole output of a pass that is not green (red, or to play again) is added to the journal of the ticket, `.claude/worktrees/<ticket>.log`, under a header line, and the comment names that file; a copy of the queue that does not open plays no verification, and its header says so. **Action for projects**: none.
|
|
52
|
+
|
|
53
|
+
- **A red of the checks that names a test file of the lot goes to the testwriter** (grillhouse-3uv.177): twice on 2026-11-22 (grillhouse-3uv.171.3, grillhouse-3uv.171.4) the guard of the trial directories, a test, failed on a new test file of the lot whose trial root was not removed; the red named the guard alone (« expected [ Array(1) ] to deeply equal [] »), went to a developpeur who writes no test and changed nothing, and the circuit stopped « sans-livraison » until the supervisor answered `--depuis testwriter` by hand. The place of a failed test out of the lot now carries the test files of the lot its message names (`nommes`: a path from the root or from the package of the test, the stack of the error left out; the message of a test of the lot is not read), its line in the report says them (« il nomme … »), and `attribuerLeRouge` gives such a red to the testwriter, as it already gave him a test file a guard or the style refuses. That attribution now comes before the stop « sans-livraison » of a developpeur who had nothing to deliver, which stands only for a red that is his; it reads the fact « portes » one activity earlier, so the workflow of a ticket carries its first marker, `patched('attribution-avant-sans-livraison')`: a circuit in flight recorded before it keeps the former order to its end, and its recorded history replays (`tests/temporal/circuit.rejeu.spec.ts`). A test of the lot that fails and a red in code stay the developpeur's. The guard of the trial directories carries what it finds in its message, and the testwriter's skill states the rule of the trial roots and makes him replay its guard before his sheet. **Action for projects**: none; a guard written as a test goes to the testwriter when its message names the file it refuses (`expect(found, found.join('\n')).toEqual([])`).
|
|
54
|
+
|
|
55
|
+
- **A ticket whose lot is on main never starts again** (grillhouse-3uv.157): OB-80g.4, integrated and announced so, started again by itself half an hour later, and its testwriter stopped on a lot already on main (osc-bridge, 2026-11-21). A dependency set on the ticket during its checks was still open at its entry on main: Beads refused `bd close` (« cannot close …: blocked by open issues »), the queue ignored that answer and gave the circuit the issue « ferme », and the queue of the tickets took the ticket, left open and labelled `circuit`, once the dependency closed. A closure Beads refuses is now a fault named: its comment at the ticket gives Beads' reason, no capability is delivered, main is pushed, and the circuit stops on its question to the supervisor (the issue « echec »); `--reprendre`, once the dependency is lifted, plays the entry again, which closes the ticket. The queue never forces a closure. The queue of the tickets no longer starts a ticket whose lot is on main (`lotSurMain`, the rule the integration already reads), left open or reopened, as a merge queue drops a merged entry whatever the state of its ticket; the board (an alert) and the opening of the supervisor's session name it, « En file, lot déjà sur main : <tickets> ». A lot withdrawn by a revert starts again. **Action for projects**: work to do again on an integrated lot goes to a new ticket, no longer to the ticket reopened; a ticket the board names « lot déjà sur main » is closed by hand.
|
|
56
|
+
|
|
57
|
+
- **The night of Grillhouse and the tests of load play on PC2** (grillhouse-3uv.169): the Nuit flow runs on the executors of PC2 (labels `self-hosted`, `pc2`), 01:15 UTC (inside 01:45 → 03:45 Paris time, summer and winter), and plays the night tests but those tagged `@poste`; it lays down what the tests need when the runner lacks it (the program temporal at its pinned, checked version, the command claude at ci.yml's version, uv: no secret, no administrator right), then plays the measures of time and of load alone in a job of its own, after the tranches. A night test that needs the equipment of a machine (the envelope, a Temporal server, sccache, the binaries of the module cargo) bears a second tag, `// @equipee: <reason>`; `@poste` stays on what needs the user's session, a secret, the real bd, the keyring or systemd, and the guard `tests-du-poste` refuses a night test that shows a mark without the tag of its class (rule `equipee-sans-etiquette`). `grillhouse tests-de-nuit` takes `--hors-du-poste` (all but `@poste`, the equipped runner), `--hors-du-poste --sans-equipement` (all but `@poste` and `@equipee`, the default runner of a project: the template's Nuit flow), `--du-poste` (the tests tagged `@poste` alone: PC3) and `--mesures` (the measures alone). The night of PC3 (`scripts/nuit.sh`) plays the tests tagged `@poste` on its part, then reads the day's Nuit flow by `gh` (`scripts/repli-de-la-nuit.mjs`): a tranche whose job has not started 60 minutes after the flow's hour is cancelled and played on PC3, a tranche started then interrupted plays whole again, a tranche finished on PC2, green or red, is never replayed; the log says which tranches played where. The verdict of the night has two parts (`nuit/verdict` for PC3, `nuit/verdict-pc2`), the night is red when either is, and a red tranche opens or comments its night ticket. `ci.yml` and `nuit.yml`, the repository's and the template's, share the concurrency group `pc2` without cancelling the wait. The root `globalPassThroughEnv` of the generated `turbo.json` names `CARGO_HOME` and `RUSTUP_HOME`, in no hash. The exclusion with the CI of other private repositories on PC2 is the slot (the CI by day, the night by night), not a lock. **Action for projects**: the migration 0.49.0 inscribes the night tests that need equipment without `@equipee` in the debt of `tests-du-poste`; tag them (`// @equipee: <reason>` at the head) and the debt comes down; `npx grillhouse maj` rewrites the root `turbo.json` and the flows.
|
|
58
|
+
|
|
59
|
+
- **`--mecanique` answers the stop of the proof of the red, and the proof lists the greens of the lot's files alone** (grillhouse-3uv.120): a lot of tests none of which can turn red was refused three times by the proof, which stopped the circuit, and no answer turned the sort of the ticket there: `--mecanique` was admitted at the stop of the testwriter alone, and the supervisor who amended « ## Sorte » in the description by hand was not followed, two sessions of the testwriter lost (SyntHub, SH-cgi.17, under 0.45.1). `--mecanique [<commande>] --contexte <raison>` is now admitted at the stop « preuve » too, with the same effect on the same plan, its packages and criteria kept: with its command to 1.1, without it to the developpeur, with no testwriter nor proof; the question of that stop says so. The circuit still reads no free text: a section « ## Sorte » amended by hand changes nothing. The same proof listed as « verts non nommés » the tests of every module a single integration binary plays (Rust `tests/it/main.rs`), those of other tickets already on main included: it now judges the modules the lot changes; the greens of the others are neither listed nor counted, and their reds are existing reds. **Action for projects**: none.
|
|
60
|
+
|
|
61
|
+
- **The advance of a copy no longer merges a reference the frame generates in full** (grillhouse-3uv.165): when a copy moved onto main, `docs/agents/index-des-interfaces.md` was applied three ways as a file written by hand; main and the copy having both changed it, it stayed in conflict, the circuit stopped « lancement », and a developpeur's session then stopped « hors-plan » on a file it had not touched (BPScript, bp-mono-vbwf.320.18 and 320.8.8). The advance now treats the references the frame writes in full (the index of the interfaces, the turbo.json of the packages) as a generated file of `grillhouse.engendres`: main's version, then the frame's generator on the work applied. The reports of API (`INTERFACE.api.md` and the generated part of an `INTERFACE.md`) and the debt of the guards are still merged. A copy whose references the frame cannot read (no language declared) is advanced all the same, its references merged, and the preparation says the fault in its log. **Action for projects**: none.
|
|
62
|
+
|
|
63
|
+
- **A folder git ignores holds no component** (grillhouse-3uv.168): the modules c and python found their components by walking the disk under the root, and the module typescript by listing `packages/` and `src/`, none reading what git ignores; in SyntHub's main tree, `knobkraft/adaptations`, the local clone of another repository under an ignored folder, was taken for a package of C the architecture does not declare, and the guard `langages-des-paquets` stayed red there while the copies of the circuits, which lack the clone, were green (2026-11-22). The three modules now leave out a manifest git ignores (`git check-ignore`, by `ignoresParGit` of the entry `@roomi-fields/grillhouse/paquets`): a manifest git tracks, or does not ignore, is found as before, and a project whose root holds no `.git` is read from its disk alone. The module cargo is unchanged: its components are the members the workspace's manifest declares. **Action for projects**: none.
|
|
64
|
+
|
|
65
|
+
- **The merge of the tranches exists in a project without TypeScript** (grillhouse-3uv.175): the frame's `ci.yml` and `nuit.yml` end on `npx --no-install grillhouse fusion-des-tranches`, which the module typescript alone described; in a project of cargo alone the job « fusion » failed on « sous-commande inconnue : fusion-des-tranches » and the CI of main stayed red (osc-bridge and OSD, 2026-11-22). The merge is now a subcommand of every project: where a module describes it (typescript) it judges as before, each file of Vitest's pass played by one tranche exactly, then the reports merged; where none does (cargo alone, python alone, c alone) the composed command plays no module, says so in one line and is green, since nextest splits by itself (`--partition hash:i/n`) and writes no report to merge, and pytest and CTest play in the first tranche alone, a red of theirs being the red of its tranche's job. The workflows do not change. **Action for projects**: none beyond the update of the frame.
|
|
66
|
+
|
|
67
|
+
- **No message of question piles up behind a turn of the supervisor's session** (grillhouse-3uv.164): the greffon submitted one message per reading while the session worked, and nothing took a queued message back once its question was answered or deferred: a turn of forty minutes ended on a dozen messages, each a turn of its own (Grillhouse and SyntHub, 2026-11-22). While a turn of the main loop runs, the greffon now asks no reading; the first period after its end reads the circuits as they are then and submits one message. **Action for projects**: none.
|
|
68
|
+
|
|
69
|
+
- **The night plays on its project's part and no longer reserves the machine** (grillhouse-3uv.170): the night of Grillhouse lasted 1 h 34 and held the whole budget while using a quarter of it (load 7 to 8 on 32 threads), so the passes and circuits of every project waited. The night (the full pass, then its night tests) now takes the part of its project, inscribed in the table of the parts with the sort `nuit`, gives it back at its end even red, and waits, saying what it waits for (cores, memory, load), when the part is missing; the other projects take their places and parts during it. A time measure, and a test that needs load, still play alone on the dedicated cores of `grillhouse.mesure`. Removed with their readers and guards: the night's jeton, the reservation of the whole machine and its heartbeat, the reason « la nuit tient la machine », the outcome `nuit-tient` of `machine fermer` and `machine rouvrir`, and the board's « nuit : attend la fin des étapes ». The reservation keeps only the supervisor's closure. The charter, `CLAUDE.md` and the project template say the new rule. **Action for projects**: none; the key `grillhouse.part` sets the night's part.
|
|
70
|
+
|
|
71
|
+
- **The texts of the push of the questions say that no reading leaves during a turn** (grillhouse-3uv.179): after grillhouse-3uv.164, the architecture, the charter and the supervisor's skill still said that a message of question waits for the end of the running turn; they now say what the greffon does: no reading while a turn of the session's main loop runs, the first one after its end. The condition that told a subagent's turn apart at `turn.start` leaves with the test of that path: the engine raises no `turn.start` for a subagent's run, and the event carries no `agentId` (TS2339 at the typecheck of the greffon). The behaviour does not change. **Action for projects**: none.
|
|
72
|
+
|
|
73
|
+
- **A question deferred to an hour stays quiet until that hour** (grillhouse-3uv.164): `--reporter 14:00` handed bd the date as `2026-11-22 14:00`, which bd 1.2.2 reads as 11:22 (the month and the day taken for the hour), so the deferral was already past and the reminders went on. The date is now handed as `2026-11-22T14:00:00`, which bd reads as that wall time. **Action for projects**: none.
|
|
74
|
+
|
|
75
|
+
- **A file left with the marks of a conflict never closes a copy** (grillhouse-3uv.167): a developpeur's sheet was accepted with « <<<<<<< ours » left in a file, then the launcher refused the testwriter twice, the file in conflict being the developpeur's, and the stop « lancement » went up until a gesture by hand in the copy (SyntHub, SH-ae6.10.32). The instruction of a testwriter's or developpeur's session now names the files of its role that carry marks, and its sheet FAIT is refused while one of them does, the file named, the session resumed once as for a sheet out of conformity. A launch the launcher refuses while the marked files are the other role's goes to that role first (a fresh session that carries these files alone), then launches again, once; a second refusal goes up as before. **Action for projects**: none.
|
|
76
|
+
|
|
9
77
|
## [0.48.0] - 2026-11-22
|
|
10
78
|
|
|
11
79
|
- **What a test declares it reads enters the cache of its tests** (grillhouse-3uv.166): a test declared the files it reads by `// @lit <motif>`, which only the choice of the tests of a Vitest pass read, while Turborepo's cache of the test task hashed `grillhouse.lit` of the package alone; a package without the key replayed a green of before, and a red test entered main (SyntHub, SH-ae6.10.31, `packages/interface/tests/build.test.ts`). The generator of the packages' turbo.json now writes each `@lit` pattern of the package's test files in the inputs of its test task (`$TURBO_ROOT$/<motif>`, those `grillhouse.lit` covers left out), a package without the key included. In Grillhouse, the tests that read the workflows of `.github/workflows` (the repository's or the template's) and the guard of the trial directories declare what they read: a pass of the circuit left them out, and main went red twice on 2026-11-21. **Action for projects**: none, `npx grillhouse maj` rewrites the turbo.json; a `grillhouse.lit` added only to make the cache follow a `@lit` may go.
|
package/agents/direct.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: direct
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: Écrit tests et code d'un ticket mené hors du circuit (`npx grillhouse direct <ticket>`), dans une copie à lui. Un relecteur juge son lot ; le superviseur n'écrit pas à sa place.
|
|
5
|
+
skills:
|
|
6
|
+
- grillhouse:direct
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Tu es l'agent du direct. Au premier tour, charge ta compétence `direct` (outil Skill), puis suis-la : ta séance ne la reçoit pas chargée.
|
|
@@ -14,6 +14,12 @@ on:
|
|
|
14
14
|
# A release plays the CI on the tagged commit before it publishes.
|
|
15
15
|
workflow_call:
|
|
16
16
|
|
|
17
|
+
# One run at a time on the runner of the project for this repository, the CI of the day and the night
|
|
18
|
+
# (nuit.yml): a run that waits is never cancelled by the next one.
|
|
19
|
+
concurrency:
|
|
20
|
+
group: pc2
|
|
21
|
+
cancel-in-progress: false
|
|
22
|
+
|
|
17
23
|
# The pass of the verification in n + 2 jobs per version of Node, as Vitest shards a run
|
|
18
24
|
# (https://vitest.dev/guide/improving-performance#sharding): `gardes` plays every task but the
|
|
19
25
|
# tests (`npm run verifier -- --sans-tests`), each job of `tranches` the tests of its tranche
|
|
@@ -13,6 +13,12 @@ on:
|
|
|
13
13
|
- cron: '0 3 * * *'
|
|
14
14
|
workflow_dispatch:
|
|
15
15
|
|
|
16
|
+
# One run at a time on the runner of the project for this repository, the CI of the day (ci.yml) and
|
|
17
|
+
# the night: a run that waits is never cancelled by the next one.
|
|
18
|
+
concurrency:
|
|
19
|
+
group: pc2
|
|
20
|
+
cancel-in-progress: false
|
|
21
|
+
|
|
16
22
|
# The night in n + 1 jobs per version of Node, as the CI plays the verification (ci.yml): each job
|
|
17
23
|
# of `tranches` plays its tranche of the night tests out of the poste (`grillhouse tests-de-nuit
|
|
18
24
|
# --hors-du-poste --tranche i/n`), and `fusion` merges the reports of the n tranches, which it
|
|
@@ -73,9 +79,10 @@ jobs:
|
|
|
73
79
|
- name: Build
|
|
74
80
|
run: npx --no-install turbo run build
|
|
75
81
|
|
|
76
|
-
# The night tests of the tranche, but those tagged @poste
|
|
82
|
+
# The night tests of the tranche, but those tagged @poste and @equipee (the equipment of a
|
|
83
|
+
# machine its default runner lacks), without any measure of time.
|
|
77
84
|
- name: Night tests out of the poste, tranche ${{ matrix.tranche }}
|
|
78
|
-
run: npx --no-install grillhouse tests-de-nuit --hors-du-poste ${{ format('--tranche {0}/{1}', matrix.tranche, env.TRANCHES) }}
|
|
85
|
+
run: npx --no-install grillhouse tests-de-nuit --hors-du-poste --sans-equipement ${{ format('--tranche {0}/{1}', matrix.tranche, env.TRANCHES) }}
|
|
79
86
|
|
|
80
87
|
# The reports of the tranche (Vitest's blob and the files of its part), red or green, which
|
|
81
88
|
# the job fusion merges.
|
|
@@ -90,7 +90,8 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
|
|
|
90
90
|
circuits en attente du superviseur ; un circuit arrêté n'occupe aucune place de la machine ; lue dans l'arbre principal ; toute autre valeur est refusée par son nom avant tout
|
|
91
91
|
travail). La machine borne aussi : un ticket ne part que s'il a une place de circuit de la
|
|
92
92
|
machine, commune à ses projets et donnée dans l'ordre d'arrivée (`GRILLHOUSE_PLACES` de
|
|
93
|
-
`~/.config/grillhouse/machine.env`, 3 par défaut
|
|
93
|
+
`~/.config/grillhouse/machine.env`, 3 par défaut ; un direct en tient une aussi, de son
|
|
94
|
+
agent à sa relecture), et la place d'une copie de plus sur le disque
|
|
94
95
|
des copies (la plus grande copie mesurée du projet, sinon 1 Go, 8 Go pour Rust, plus 4 Go) ;
|
|
95
96
|
sinon il reste en file, non démarré, et le panneau dit « attend une place » ou « attend le
|
|
96
97
|
disque » avec les copies en pause qui l'occupent. Une passe (la passe lourde d'un circuit,
|
|
@@ -101,15 +102,18 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
|
|
|
101
102
|
`GRILLHOUSE_RESERVE_COEURS` et `GRILLHOUSE_RESERVE_MEMOIRE_GO` de `~/.config/grillhouse/machine.env`,
|
|
102
103
|
4 Go par défaut, et en cœurs min(4, max(0, cœurs − 4)) : 0 sur 4 cœurs ou moins, 2 sur 6, 4 à
|
|
103
104
|
partir de 8 ; zéro admis, une réserve réglée qui égale les cœurs est refusée ; lue dans l'arbre principal ; toute autre valeur est
|
|
104
|
-
refusée par son nom avant tout travail). Absente, la
|
|
105
|
-
|
|
105
|
+
refusée par son nom avant tout travail). Absente, la réservation vaut 3 cœurs pour un
|
|
106
|
+
circuit ordinaire, 2 pour un direct, et en mémoire le plus
|
|
106
107
|
grand pic des passes de jour du projet à son registre des consommations, plus un quart, jamais
|
|
107
108
|
sous le tiers du budget, qu'elle vaut quand le registre n'a pas de mesure ; une clé qui ne déclare que les cœurs
|
|
108
109
|
ou que la mémoire garde le défaut de l'autre ; une part plus grande que le budget vaut le budget, une seule passe jouant alors à la
|
|
109
|
-
fois.
|
|
110
|
+
fois. Les réservations s'additionnent contre le budget : une séance d'agent et une passe réservent
|
|
111
|
+
leurs cœurs le temps de leur phase, aucune à l'ouverture d'un circuit ni pendant qu'il est arrêté,
|
|
112
|
+
et ce qui ne tient pas attend dans l'ordre d'arrivée, son rang gardé d'une phase à l'autre. La passe n'a que cette part : le système la tient dans un groupe de contrôle de Linux à elle
|
|
110
113
|
(poids de processeur et plafond de mémoire tirés de la part, sans plafond dur de processeur), et
|
|
111
114
|
elle attend, en disant ce qu'elle attend (cœurs, mémoire, charge), quand le budget manque ; la
|
|
112
|
-
nuit
|
|
115
|
+
nuit joue sur la part du projet, comme une passe, sans réserver la machine ; une mesure de temps
|
|
116
|
+
et un test qui exige de la charge jouent sur des cœurs dédiés (la clé `grillhouse.mesure`). Une séance d'agent est
|
|
113
117
|
bornée comme une passe : elle tourne dans un groupe de contrôle à elle, avec un plafond dur de
|
|
114
118
|
processeur égal aux cœurs de la part (les passes qu'elle lance jouent dans ce plafond, sans groupe
|
|
115
119
|
à elles) ; sans gestionnaire de groupes, elle part sans borne et le journal du circuit le dit.
|
|
@@ -18,7 +18,7 @@ Issues for this repo live in Beads, a git-backed tracker: data under `.beads/`,
|
|
|
18
18
|
|
|
19
19
|
- A chantier is an `epic` at the root; under it, every subject has a mother ticket (a `task`), open while work remains under it. Every ticket is created under its mother, so Beads numbers it natively: `320.1`, `320.2`, `320.2.1`.
|
|
20
20
|
- The title reads `<number> — <subject> — <components>`, the number being the id without the whole prefix of the project (`bd config get issue_prefix`, which may hold dashes: `bp-mono-`). The components are the ones the ticket touches, separated by commas, the provider first, then its readers (charte, « Un ticket de réalisation nomme ses composants »): `320.5.2 — Publie l'objet de la scène — 020-loader, 050-emitter`. A mother takes `parent` as its component. The survey of the components (`npx grillhouse composants-affectes --description <file>` on a draft, `npx grillhouse composants-affectes <id>` on a ticket) gives that list from the elements the Architecture section and the criteria name: for each, its provider and its readers (the consumers its INTERFACE.md declares, the packages that import it, the tests of other packages that name it). The title names the readers the ticket changes. In a ticket's circuit, the explorer runs the survey when it writes the plan (1 Plan), and the circuit writes the packages of its plan as the title's components.
|
|
21
|
-
- Creating one: `npx grillhouse ticket <mother> <subject> <components> <body> [label]` prints its id; the label is `a-valider` by default, and `decouverte` creates it closed (« découverte consignée »).
|
|
21
|
+
- Creating one: `npx grillhouse ticket <mother> <subject> <components> <body> [label]` prints its id; the label is `a-valider` by default, and `decouverte` creates it closed (« découverte consignée »). Run again for the same mother and the same title, it creates no second ticket: it prints the id of the existing one and says so (a closed ticket counts for a discovery alone: a defect that comes back gets a new ticket); past 5 s on a call of Beads, it says which one it waits for. One creation runs at a time in a project, its copies included: another launched meanwhile waits for it.
|
|
22
22
|
|
|
23
23
|
- A ticket goes through the tree of its circuit, the « auto » steps included (`packages/grillhouse/scripts/etapes.mjs`, the one list): 1 Plan (`explorateur` writes the plan, `questionneur` reads it once, the explorer answers once); 2 Tests (`testwriter`), 2.1 Preuve du rouge; 3 Code (`developpeur`), 3.1 Contrôles; 4 Passe finale et relecture: 4.1 Passe finale, 4.2 Régénération des références, 4.3 Relecture (`relecteur`); 5 Intégration: 5.1 Commit, 5.2 File : passe finale, main (no branch pushed, no CI of a branch read; the CI of the project plays afterwards on main, by batches, and a red opens a defect ticket under `a-valider`). Every step is one for the whole ticket: one testwriter and one developpeur, each on every package of its plan. The circuit makes its mechanical gestures itself; any other stop goes up to the supervisor, its question in the circuit's state. One says « 320.2.1, step 3 »; the pane shows each ticket at its step.
|
|
24
24
|
|
package/charte.md
CHANGED
|
@@ -63,8 +63,12 @@ revient. Ainsi aucune séance ne juge ce qu'une règle tranche.
|
|
|
63
63
|
acquitte** : le greffon de la séance qui tient le verrou du superviseur met chaque question neuve
|
|
64
64
|
d'un circuit du projet et des projets de son groupe qu'aucune autre séance ne supervise, et chaque
|
|
65
65
|
fin de circuit, dans la file des messages de cette séance, un
|
|
66
|
-
message par
|
|
67
|
-
|
|
66
|
+
message par relevé ; aucun relevé ne part pendant un tour de la séance, le premier part après sa
|
|
67
|
+
fin ; une question a trois états que le greffon tient (envoyée, lue quand un tour de la séance démarre
|
|
68
|
+
avec son message, répondue) et ne revient qu'une fois lue, à l'intervalle de la clé `grillhouse.rappel`
|
|
69
|
+
(10 minutes par défaut) compté depuis sa lecture, jamais tant qu'elle est en file ; sa réponse au
|
|
70
|
+
circuit l'acquitte, et `--chez-le-responsable` la tait jusqu'à cette réponse quand le superviseur l'a
|
|
71
|
+
portée au responsable. Sans séance de superviseur ni
|
|
68
72
|
greffon, rien n'est poussé : le tableau, l'ouverture de séance et le crochet de fin de tour portent
|
|
69
73
|
les questions. Ainsi une question ne dépend d'aucune attente que la séance relance.
|
|
70
74
|
|
|
@@ -138,9 +142,13 @@ le jour avance, et une mesure se prend au repos.
|
|
|
138
142
|
|
|
139
143
|
**Un test qui exige de la charge joue la nuit** (les tests de résistance de Chromium et de rustc,
|
|
140
144
|
hors de la passe de chaque changement) : un test qui a besoin d'une machine chargée produit sa
|
|
141
|
-
charge lui-même et est un test de nuit, joué seul
|
|
142
|
-
|
|
143
|
-
|
|
145
|
+
charge lui-même et est un test de nuit, joué seul, sur des cœurs dédiés (`grillhouse.mesure`),
|
|
146
|
+
comme une mesure de temps. La nuit d'un projet joue sur la part du projet, comme une passe, sans
|
|
147
|
+
réserver la machine (l'étiquette `exclusive` de Bazel est donnée aux seuls tests qui l'exigent,
|
|
148
|
+
non à la suite) : seuls une mesure de temps et un test qui exige de la charge réservent ce qu'ils
|
|
149
|
+
exigent, et les autres projets continuent de travailler. De jour, personne ne fabrique de charge :
|
|
150
|
+
un test soupçonné instable se rejoue par `npm run test:forcer`, sans boucle ni processus lancés
|
|
151
|
+
pour occuper la machine. Ainsi la charge d'un test reste la sienne, et le jour garde sa machine.
|
|
144
152
|
|
|
145
153
|
**Un projet a plusieurs langages, un paquet un seul** : chaque paquet relève du langage de son
|
|
146
154
|
outil, et `npm test`, la vérification et le circuit jouent chaque paquet avec cet outil. Ainsi
|
|
@@ -204,7 +212,8 @@ développeur écrit le code, puis les contrôles et la relecture ; « comporteme
|
|
|
204
212
|
geste écrit à la main, le développeur seul, sans testwriter ni preuve, sauf si le superviseur répond `--depuis testwriter` : sa commande explicite l'emporte sur la sorte du plan, le testwriter joue, la preuve accepte chaque vert, et le circuit reprend aux contrôles. Hors de ce cas, une preuve qui ne trouve aucun rouge passe aux
|
|
205
213
|
contrôles et à la relecture sans séance du développeur.
|
|
206
214
|
La bascule marche dans les deux sens, sur le même plan, ses paquets et ses critères gardés : le
|
|
207
|
-
testwriter qui ne trouve aucun comportement à tester s'arrête (motif `aucun-comportement`),
|
|
215
|
+
testwriter qui ne trouve aucun comportement à tester s'arrête (motif `aucun-comportement`), ou la
|
|
216
|
+
preuve du rouge refuse un lot de tests dont aucun ne peut rougir (arrêt `preuve`), et le
|
|
208
217
|
superviseur répond `--mecanique [<commande>]` (avec sa commande vers 1.1, sans elle vers le
|
|
209
218
|
développeur) ; le relecteur d'un lot du circuit court qui voit un comportement changer le rend
|
|
210
219
|
avec le motif `comportement-change`, et le ticket repart à 2 Tests, sa sorte changée. Cette
|
|
@@ -213,17 +222,31 @@ du circuit a un lot à écrire.
|
|
|
213
222
|
|
|
214
223
|
**Un ticket prend l'une de trois voies** : le circuit complet pour un comportement qui change ;
|
|
215
224
|
le circuit court pour un geste sans comportement neuf, que l'explorateur juge au plan par son critère, et que la bascule rend dans les deux sens ; hors
|
|
216
|
-
du circuit, mené en direct par
|
|
217
|
-
répare pas par lui-même), une correction triviale
|
|
218
|
-
|
|
225
|
+
du circuit, mené en direct par une commande du cadre (`npx grillhouse direct <ticket>`), pour un
|
|
226
|
+
défaut du circuit lui-même (le circuit ne se répare pas par lui-même), une correction triviale
|
|
227
|
+
repérée en analyse (une ligne fautive, un mauvais argument, sans exception), un ticket de données
|
|
228
|
+
ou le squelette d'un paquet ; il porte l'étiquette `direct`, que la file des
|
|
219
229
|
tickets ignore, même s'il porte aussi `circuit`. Un lot hors du circuit entre
|
|
220
230
|
sur main sur sa vérification complète verte. Un changement de comportement du produit va au
|
|
221
231
|
circuit, même pressé. Ainsi la voie d'un ticket se lit à la charte, et non au choix de la séance.
|
|
222
232
|
|
|
233
|
+
**Le superviseur n'écrit pas le code d'un direct** : la commande lance, dans une copie à elle, un
|
|
234
|
+
agent (le rôle `direct`, qui écrit tests et code ensemble, sous les droits que son rôle donne), puis
|
|
235
|
+
le relecteur sur son lot, et s'arrête : ni plan, ni preuve du rouge, ni contrôles, ni file. Un
|
|
236
|
+
défaut corrigé porte un test qui le reproduit, que la relecture exige. Le superviseur reprend la main
|
|
237
|
+
sur un lot relu : il relit, joue la vérification complète, commite, avance main et pousse ; un lot
|
|
238
|
+
`RENDU` repart à l'agent par la même commande, qui s'arrête à la troisième relecture rendue. Le
|
|
239
|
+
verrou du cadre refuse à toute séance hors enveloppe qui n'est pas un agent du cadre (le
|
|
240
|
+
superviseur, une séance lancée à la main, une séance qui perd sa variable d'enveloppe) le code et
|
|
241
|
+
les tests d'un paquet, et nomme la commande ; les documents, ceux d'un paquet comme ceux de la
|
|
242
|
+
racine, restent écrits par le superviseur. Ainsi celui qui relit n'est jamais celui qui a écrit.
|
|
243
|
+
|
|
223
244
|
**La file directe se tient comme la file des tickets** : un ticket direct attend ouvert, et l'en-tête
|
|
224
|
-
du panneau le compte (« ✎ N en direct ») ; le superviseur
|
|
225
|
-
ouvert celui qu'il quitte, et ferme celui dont le lot est sur main (« intégré : <commit> »),
|
|
226
|
-
si une nuit doit encore le confirmer
|
|
245
|
+
du panneau le compte (« ✎ N en direct ») ; le superviseur lance par la commande le seul qu'il mène,
|
|
246
|
+
rend ouvert celui qu'il quitte, et ferme celui dont le lot est sur main (« intégré : <commit> »),
|
|
247
|
+
même si une nuit doit encore le confirmer, après avoir déverrouillé sa copie
|
|
248
|
+
(`npx grillhouse direct <ticket> --deverrouiller`). Le panneau montre l'agent d'un direct en cours
|
|
249
|
+
sous le bloc « Direct », en tête des agents. Ainsi le panneau montre seulement ce qui tourne.
|
|
227
250
|
|
|
228
251
|
**Un paquet naît hors du circuit, en quatre temps** (un squelette n'a ni comportement ni test),
|
|
229
252
|
comme les générateurs de Nx et `cargo new --lib` : 1, le grill, le superviseur et le responsable
|
|
@@ -332,10 +355,13 @@ dossier.
|
|
|
332
355
|
déjà nommé. Ainsi une affirmation sur le code repose sur ce que le code contient.
|
|
333
356
|
- **Tout se lit, le plan s'écrit** : dans son enveloppe, un agent lit tout le dépôt, index compris,
|
|
334
357
|
et n'écrit que les paquets que le plan de son ticket nomme. Une écriture hors du plan l'arrête,
|
|
335
|
-
et le superviseur étend le plan ou refuse.
|
|
358
|
+
et le superviseur étend le plan ou refuse. Trois cas le circuit étend le plan lui-même, sans
|
|
336
359
|
arrêt, sa pièce écrite au ticket : un fichier que la description du ticket nomme, et un
|
|
337
360
|
composant que le relevé nommait et que le plan avait écarté, quand il rougit aux contrôles ou à
|
|
338
|
-
la passe finale (écarter un lecteur est une prévision, que les contrôles vérifient)
|
|
361
|
+
la passe finale (écarter un lecteur est une prévision, que les contrôles vérifient), et les
|
|
362
|
+
tests d'un paquet lecteur que le lot fait rougir, quand chaque lieu rouge du
|
|
363
|
+
paquet est un fichier de test ; le circuit étend alors le plan à ces fichiers de test seuls,
|
|
364
|
+
que le testwriter écrit, le code du lecteur restant hors du plan. Ainsi
|
|
339
365
|
l'agent lit ce dont il a besoin, et les gardes tiennent l'architecture.
|
|
340
366
|
- Tickets : Beads (`bd`), sous le préfixe du projet, voir `docs/agents/issue-tracker.md`.
|
|
341
367
|
- Une compétence du cadre s'appelle avec son préfixe `grillhouse:` ; un document pour un agent
|
|
@@ -12,9 +12,12 @@ export interface Appel {
|
|
|
12
12
|
arreter: boolean;
|
|
13
13
|
/** The hour its question waits for (`bd update --defer`), the circuit left in its wait. */
|
|
14
14
|
reporter: string | null;
|
|
15
|
+
/** The question carried to the owner: silent until the circuit answers (`--chez-le-responsable`). */
|
|
16
|
+
chezLeResponsable: boolean;
|
|
15
17
|
recommencer: boolean;
|
|
16
18
|
/**
|
|
17
|
-
* The answer to a stop of the testwriter that finds no behaviour to test
|
|
19
|
+
* The answer to a stop of the testwriter that finds no behaviour to test, or of the proof of
|
|
20
|
+
* the red that refuses the lot of tests (`--mecanique`): the
|
|
18
21
|
* command a gesture plays (1.1), or none for a gesture written by hand (the developpeur).
|
|
19
22
|
*/
|
|
20
23
|
mecanique: {
|
|
@@ -5,7 +5,7 @@ export const USAGE = 'usage: npx grillhouse circuit <ticket> [--reprendre [--con
|
|
|
5
5
|
'--depuis <testwriter|preuve|developpeur|controles|passe-finale> --contexte <texte> | ' +
|
|
6
6
|
'--mecanique [<commande>] --contexte <raison> | ' +
|
|
7
7
|
'--etendre <paquet>[,<paquet>…] [--contexte <texte>] | --arreter [--contexte <motif>] | ' +
|
|
8
|
-
'--reporter <heure> [--contexte <motif>] | ' +
|
|
8
|
+
'--reporter <heure> [--contexte <motif>] | --chez-le-responsable | ' +
|
|
9
9
|
'--recommencer]\n';
|
|
10
10
|
/** A malformed call, by its reason. */
|
|
11
11
|
export class Usage extends Error {
|
|
@@ -23,6 +23,7 @@ export function lireLAppel(argv) {
|
|
|
23
23
|
etendre: null,
|
|
24
24
|
arreter: false,
|
|
25
25
|
reporter: null,
|
|
26
|
+
chezLeResponsable: false,
|
|
26
27
|
recommencer: false,
|
|
27
28
|
mecanique: null,
|
|
28
29
|
contexte: null,
|
|
@@ -43,6 +44,9 @@ export function lireLAppel(argv) {
|
|
|
43
44
|
o.reporter = suivant;
|
|
44
45
|
i++;
|
|
45
46
|
}
|
|
47
|
+
else if (a === '--chez-le-responsable') {
|
|
48
|
+
o.chezLeResponsable = true;
|
|
49
|
+
}
|
|
46
50
|
else if (a === '--recommencer') {
|
|
47
51
|
o.recommencer = true;
|
|
48
52
|
}
|
|
@@ -96,6 +100,16 @@ export function lireLAppel(argv) {
|
|
|
96
100
|
(o.reprendre || o.depuis || o.etendre || o.arreter || o.recommencer || o.reporter)) {
|
|
97
101
|
throw new Usage('--mecanique va seule, avec son --contexte : le ticket bascule en circuit court sur le même plan.');
|
|
98
102
|
}
|
|
103
|
+
if (o.chezLeResponsable &&
|
|
104
|
+
(o.reprendre ||
|
|
105
|
+
o.depuis ||
|
|
106
|
+
o.etendre ||
|
|
107
|
+
o.arreter ||
|
|
108
|
+
o.recommencer ||
|
|
109
|
+
o.reporter ||
|
|
110
|
+
o.mecanique)) {
|
|
111
|
+
throw new Usage('--chez-le-responsable va seule : la question se tait jusqu’à la réponse du circuit.');
|
|
112
|
+
}
|
|
99
113
|
if (o.mecanique && (o.contexte === null || o.contexte.trim() === '')) {
|
|
100
114
|
throw new Usage('--mecanique attend son --contexte : la raison du circuit court.');
|
|
101
115
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appel.js","sourceRoot":"","sources":["../../../src/temporal/circuit/appel.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,iFAAiF;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAChB,6EAA6E;IAC7E,uFAAuF;IACvF,iDAAiD;IACjD,yFAAyF;IACzF,
|
|
1
|
+
{"version":3,"file":"appel.js","sourceRoot":"","sources":["../../../src/temporal/circuit/appel.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Client, type WorkflowExecutionInfo } from '@temporalio/client';
|
|
2
|
+
import { demarrerLesTickets } from '../tickets/client.js';
|
|
2
3
|
/**
|
|
3
4
|
* The workflows a page of a list of the server gives at first. The server pages by 1000 by default,
|
|
4
5
|
* and a page of circuits, each with its memo, passes the 4 MB a gRPC message of the client takes
|
|
@@ -52,7 +53,8 @@ export declare function reprendreDepuis(client: Client, racine: string, ticket:
|
|
|
52
53
|
/** Extends the plan of the stopped circuit to <paquets>, then resumes it (`--etendre`). */
|
|
53
54
|
export declare function etendreLeCircuit(client: Client, racine: string, ticket: string, paquets: string[], contexte?: string | null, ou?: OuReprendre): Promise<string>;
|
|
54
55
|
/**
|
|
55
|
-
* Turns the circuit of <ticket>, stopped on the testwriter's question or blocked word,
|
|
56
|
+
* Turns the circuit of <ticket>, stopped on the testwriter's question or blocked word, or on the
|
|
57
|
+
* proof of the red, to the
|
|
56
58
|
* short circuit on the same plan, its reason <contexte> (`--mecanique`): with a <commande>, the
|
|
57
59
|
* gesture of 1.1; without, the developpeur writes. Refused out of such a stop, by its name.
|
|
58
60
|
*/
|
|
@@ -115,3 +117,7 @@ export interface CircuitLu {
|
|
|
115
117
|
export declare function lireLesCircuits(client: Client, racine: string, { integres }?: {
|
|
116
118
|
integres?: boolean;
|
|
117
119
|
}): Promise<CircuitLu[]>;
|
|
120
|
+
export declare function bd(racine: string, ...args: string[]): string;
|
|
121
|
+
export declare function aLaPorte<T>(f: () => T): T;
|
|
122
|
+
export declare const seanceDuSuperviseur: () => string | null;
|
|
123
|
+
export declare function mettreEnFile(client: Parameters<typeof demarrerLesTickets>[0], racine: string, ticket: string, recommence?: boolean): Promise<string>;
|
|
@@ -9,10 +9,14 @@
|
|
|
9
9
|
// installation's); past it, the state is gone with it, and only `--depuis` reopens the circuit,
|
|
10
10
|
// from the step of its agent, on the task queue of the project's worker (decision Q2 of
|
|
11
11
|
// grillhouse-4nr.12).
|
|
12
|
+
import { spawnSync } from 'node:child_process';
|
|
13
|
+
import { DepartRefuse, ticketAuLancement } from '../../../scripts/depart-du-ticket.mjs';
|
|
12
14
|
import { lesReponses, SANS_ISSUE } from '../../../scripts/reponses-du-circuit.mjs';
|
|
13
15
|
import { WorkflowNotFoundError, WorkflowUpdateFailedError, } from '@temporalio/client';
|
|
14
16
|
import { ApplicationFailure, defaultPayloadConverter, WorkflowExecutionAlreadyStartedError, } from '@temporalio/common';
|
|
15
17
|
import { fileDuProjet } from '../installation.js';
|
|
18
|
+
import { demarrerLesTickets } from '../tickets/client.js';
|
|
19
|
+
import { refusDuLancementApresArret } from './appel.js';
|
|
16
20
|
/**
|
|
17
21
|
* The workflows a page of a list of the server gives at first. The server pages by 1000 by default,
|
|
18
22
|
* and a page of circuits, each with its memo, passes the 4 MB a gRPC message of the client takes
|
|
@@ -243,7 +247,8 @@ export async function etendreLeCircuit(client, racine, ticket, paquets, contexte
|
|
|
243
247
|
return repondre(client, racine, ticket, { genre: 'etendre', paquets, contexte }, `étendu à ${paquets.join(', ')}`, () => handle(client, racine, ticket).executeUpdate(ETENDRE, { args: [{ paquets, contexte, ...seanceDe(ou) }] }), ou);
|
|
244
248
|
}
|
|
245
249
|
/**
|
|
246
|
-
* Turns the circuit of <ticket>, stopped on the testwriter's question or blocked word,
|
|
250
|
+
* Turns the circuit of <ticket>, stopped on the testwriter's question or blocked word, or on the
|
|
251
|
+
* proof of the red, to the
|
|
247
252
|
* short circuit on the same plan, its reason <contexte> (`--mecanique`): with a <commande>, the
|
|
248
253
|
* gesture of 1.1; without, the developpeur writes. Refused out of such a stop, by its name.
|
|
249
254
|
*/
|
|
@@ -322,4 +327,52 @@ export async function lireLesCircuits(client, racine, { integres = false } = {})
|
|
|
322
327
|
}
|
|
323
328
|
return out.sort((a, b) => a.ticket.localeCompare(b.ticket, 'en'));
|
|
324
329
|
}
|
|
330
|
+
// bd in the repository at <racine>: its output, or the failure of Beads by its reason.
|
|
331
|
+
export function bd(racine, ...args) {
|
|
332
|
+
const r = spawnSync('bd', args, { cwd: racine, encoding: 'utf8' });
|
|
333
|
+
if (r.status !== 0) {
|
|
334
|
+
throw new Error(`bd ${args[0]} échoue : ${(r.stderr || r.error?.message || '').trim()}`);
|
|
335
|
+
}
|
|
336
|
+
return r.stdout;
|
|
337
|
+
}
|
|
338
|
+
// <f>, a reading of the ticket at the door (scripts/depart-du-ticket.mjs), its refusal a refused
|
|
339
|
+
// answer, by its reason.
|
|
340
|
+
export function aLaPorte(f) {
|
|
341
|
+
try {
|
|
342
|
+
return f();
|
|
343
|
+
}
|
|
344
|
+
catch (x) {
|
|
345
|
+
if (x instanceof DepartRefuse) {
|
|
346
|
+
throw new ReponseRefusee(x.message);
|
|
347
|
+
}
|
|
348
|
+
throw x;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
// The supervisor's session that runs the command (Claude Code's `CLAUDE_CODE_SESSION_ID`), which the
|
|
352
|
+
// circuit's stop gone up keeps (`EntreeDuCircuit.superviseur`); null out of a session.
|
|
353
|
+
export const seanceDuSuperviseur = () => process.env.CLAUDE_CODE_SESSION_ID || null;
|
|
354
|
+
// The ticket <ticket> of <racine> put in the queue of the tickets of the project: its line. With
|
|
355
|
+
// <recommence>, its circuit stopped on the supervisor's word was just started over: that stop no
|
|
356
|
+
// longer refuses the launch.
|
|
357
|
+
export async function mettreEnFile(client, racine, ticket, recommence = false) {
|
|
358
|
+
aLaPorte(() => ticketAuLancement(racine, ticket));
|
|
359
|
+
try {
|
|
360
|
+
const d = await client.workflow.getHandle(idDuCircuit(racine, ticket)).describe();
|
|
361
|
+
if (d.status.name === 'RUNNING') {
|
|
362
|
+
throw new ReponseRefusee(`un circuit tourne déjà sur ${ticket} : il mène le ticket à sa fin, \`--arreter\` l'arrête.`);
|
|
363
|
+
}
|
|
364
|
+
const fin = (await client.workflow.getHandle(idDuCircuit(racine, ticket)).result());
|
|
365
|
+
if (fin?.raison === 'arrete' && !recommence) {
|
|
366
|
+
throw new ReponseRefusee(refusDuLancementApresArret(ticket));
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
catch (x) {
|
|
370
|
+
if (!(x instanceof WorkflowNotFoundError)) {
|
|
371
|
+
throw x;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
bd(racine, 'update', ticket, '--add-label', 'circuit');
|
|
375
|
+
await demarrerLesTickets(client, { racine }, fileDuProjet(racine), seanceDuSuperviseur());
|
|
376
|
+
return `▶ ${ticket} est dans la file des tickets du projet : son circuit part dès que ses dépendances sont fermées et qu'une place du réglage est libre ; sa question arrive dans la file de la séance du superviseur (le greffon la pousse), sa fin se lit au panneau.`;
|
|
377
|
+
}
|
|
325
378
|
//# sourceMappingURL=client.js.map
|