@roomi-fields/grillhouse 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +46 -0
  3. package/cadre/templates/projet/.github/workflows/machine-vierge.yml +101 -0
  4. package/cadre/templates/projet/CLAUDE.md +22 -5
  5. package/charte.md +45 -15
  6. package/dist/temporal/circuit/appel.d.ts +7 -0
  7. package/dist/temporal/circuit/appel.js +17 -0
  8. package/dist/temporal/circuit/appel.js.map +1 -1
  9. package/dist/temporal/circuit/client.d.ts +14 -0
  10. package/dist/temporal/circuit/client.js +17 -4
  11. package/dist/temporal/circuit/client.js.map +1 -1
  12. package/dist/temporal/circuit/commande.js +16 -4
  13. package/dist/temporal/circuit/commande.js.map +1 -1
  14. package/dist/temporal/circuit/contrat.d.ts +22 -2
  15. package/dist/temporal/circuit/contrat.js +76 -0
  16. package/dist/temporal/circuit/contrat.js.map +1 -1
  17. package/dist/temporal/circuit/deroule.js +68 -11
  18. package/dist/temporal/circuit/deroule.js.map +1 -1
  19. package/dist/temporal/commande.js +3 -0
  20. package/dist/temporal/commande.js.map +1 -1
  21. package/dist/temporal/file/contrat.d.ts +2 -0
  22. package/dist/temporal/installation.d.ts +5 -0
  23. package/dist/temporal/installation.js +23 -15
  24. package/dist/temporal/installation.js.map +1 -1
  25. package/dist/temporal/tickets/activites.d.ts +1 -0
  26. package/dist/temporal/tickets/activites.js +37 -2
  27. package/dist/temporal/tickets/activites.js.map +1 -1
  28. package/dist/temporal/tickets/contrat.d.ts +14 -0
  29. package/dist/temporal/tickets/deroule.js +16 -3
  30. package/dist/temporal/tickets/deroule.js.map +1 -1
  31. package/docs/ARCHITECTURE.md +204 -55
  32. package/docs/INTERFACE.md +8 -5
  33. package/hooks/register.tsx +30 -0
  34. package/package.json +1 -1
  35. package/scripts/activites.mjs +64 -15
  36. package/scripts/attente-a-l-arret.mjs +29 -52
  37. package/scripts/attente-au-tour.mjs +8 -26
  38. package/scripts/circuit.mjs +204 -64
  39. package/scripts/circuits-cles.d.mts +9 -0
  40. package/scripts/circuits-cles.mjs +38 -0
  41. package/scripts/coeurs-dedies.mjs +4 -3
  42. package/scripts/dernier-vert.mjs +66 -2
  43. package/scripts/enveloppe/travail-de-la-copie.mjs +5 -2
  44. package/scripts/etapes.mjs +6 -1
  45. package/scripts/faits-du-circuit.mjs +22 -3
  46. package/scripts/fichiers-nommes.mjs +55 -0
  47. package/scripts/file-des-tickets.d.mts +17 -0
  48. package/scripts/file-des-tickets.mjs +39 -0
  49. package/scripts/grillhouse-maj.mjs +20 -1
  50. package/scripts/integration/file.mjs +11 -5
  51. package/scripts/integration/integrer.mjs +4 -2
  52. package/scripts/langages/cargo/clippy.mjs +16 -9
  53. package/scripts/langages/cargo/commandes.mjs +7 -2
  54. package/scripts/langages/cargo/sccache.mjs +19 -6
  55. package/scripts/langages/typescript/tests.mjs +31 -5
  56. package/scripts/langages/typescript/turbo-des-paquets.mjs +51 -3
  57. package/scripts/langages/typescript/vitest-config/changements.mjs +32 -3
  58. package/scripts/langages/typescript/vitest-config/lances.mjs +16 -0
  59. package/scripts/limite-d-usage.mjs +88 -0
  60. package/scripts/outils-cles.d.mts +13 -5
  61. package/scripts/outils-cles.mjs +157 -17
  62. package/scripts/passe-de-la-machine.mjs +26 -2
  63. package/scripts/places-de-la-machine.mjs +52 -6
  64. package/scripts/plafond-de-la-machine.d.mts +10 -2
  65. package/scripts/plafond-de-la-machine.mjs +39 -13
  66. package/scripts/reponses-du-circuit.d.mts +16 -0
  67. package/scripts/reponses-du-circuit.mjs +39 -3
  68. package/scripts/resultats.mjs +32 -11
  69. package/scripts/seances.mjs +211 -59
  70. package/scripts/session-start.sh +2 -2
  71. package/scripts/sous-commandes.mjs +5 -2
  72. package/scripts/superviseur.mjs +178 -226
  73. package/scripts/tableau.mjs +50 -37
  74. package/scripts/transitions.d.mts +22 -1
  75. package/scripts/transitions.mjs +111 -13
  76. package/scripts/workflows-du-cadre.mjs +21 -1
  77. package/skills/explorateur/SKILL.md +34 -13
  78. package/skills/pitmaster/SKILL.md +24 -20
  79. package/skills/relecteur/SKILL.md +6 -0
  80. package/skills/testwriter/SKILL.md +4 -0
@@ -5,5 +5,5 @@
5
5
  "author": {
6
6
  "name": "Romain Peyrichou"
7
7
  },
8
- "version": "0.45.0"
8
+ "version": "0.46.0"
9
9
  }
package/CHANGELOG.md CHANGED
@@ -6,6 +6,52 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.46.0] - 2026-11-20
10
+
11
+ - **A reader the plan sets apart stays verified at the checks, and enters the plan if it goes red** : BPScript's plan of bp-mono-vbwf.320.14.3 set apart `060-encoder`, `070-deriver` and `900-driver`, readers of what the ticket changed; the checks of the plan played only the plan's packages, so the final pass went red in them one layer at a time, each red stopping the circuit « hors du plan du ticket » (four stops, four passes of 10 to 13 min, 9.49 $; Grillhouse 3uv.128, decision of the owner, 2026-11-20). As Bazel and Google's TAP play the tests of every reverse dependency of a change, the checks of 3.1 now play, after the plan's packages, `npm test -- <package>` of each component the plan's sheet sets apart (`ecartes`, read from its last sheet) that plays tests, none twice, all in the same pass even when one is red. A red of a set-apart component, at the checks or the final pass, counts as the plan's: the circuit extends the plan to it without a stop, writes the extension at the ticket with its piece (the red and the reason of the setting apart, which it belies), and the red goes to the developpeur; a red in a package neither the plan nor the set-apart ones name still stops the circuit. The charter (« Tout se lit, le plan s'écrit ») and the explorateur's skill say it. **Action for projects**: none.
12
+
13
+ - **The default memory of a part has a floor** : the default memory, the largest measured peak plus a quarter (Grillhouse 3uv.126, unreleased), had no floor; a register of light passes alone (the guards, a pass of 50 ms: a peak of 16 Mo) gave the next pass a hard ceiling of 20 Mo, under which the kernel killed it where it could not swap — three tests of the cargo module red by turns on the CI machine (Grillhouse 3uv.132, 2026-11-20). The peak now raises the memory and never lowers it under a third of the budget, what it was before. **Action for projects**: none.
14
+
15
+ - **The default part of a pass is the budget divided by the places** : on the poste (budget 28 cores, 7 places) the default part was a third of the budget, 10 cores and 9.2 GB, so two passes ran at once for seven circuits, and a pass of 3 min 20 s waited 13 min with 8 cores free (Grillhouse 3uv.126, decision of the owner, 2026-11-20). Without `grillhouse.part`, a pass now takes in cores the budget divided by the places of the machine (`GRILLHOUSE_PLACES`, whole division, 2 at least: 4 on the poste), as the slots of Slurm and HTCondor share cores; its memory is the largest peak of the day passes in the project's register of consumptions plus a quarter (a third of the budget without a measure, the proportion of the cores a part had before the division, never the division), since the memory of a part is a hard ceiling that kills the pass above it, where the Vertical Pod Autoscaler takes a percentile. A part declared with cores only keeps that memory, with memory only the cores of the division. The night keeps the whole budget, and a measure of time without `grillhouse.mesure` asks the same new default cores. **Action for projects**: remove the `grillhouse.part` set for the trial of this change, unless the project means it.
16
+
17
+ - **A comment or a document changed selects no test** : a comment of `packages/000-forms/src/tables.ts` replayed 29 builds of 31 and 30 packages wrote « tous ses tests, le code d'un paquet dont il dépend » (BPScript, bp-mono-vbwf.320.14.2.8.1: 7 min 10 s of pass; Grillhouse 3uv.122). A pass of the day measured against a last green or a base of a lot now classes without effect (`sansEffet`, beside `fichiers` in the file of the changes) a document and a file of code whose isolated transpilation, comments removed, equals the last green's; such a file relates no test through Vitest's graph and plays no package whole, as Gradle's compile avoidance and Bazel's early cutoff replay nothing after an identical output. A file added, removed or whose transpilation fails stays a change; `grillhouse.lit`, `// @lit` and the tests that read the file by its path (out of a targeted pass) keep their rule; the complete pass and the night play everything. **Action for projects**: none.
18
+
19
+ - **A package named whole shares the cache of the complete pass** : `npm test -- packages/x` carried the path in the variable `GRILLHOUSE_TESTS`, so the checks of a circuit and its final pass hashed the same tree differently and replayed a long package twice (BPScript, bp-mono-vbwf.320.14.2.8.1, 900-driver 7 to 12 min; Grillhouse 3uv.125, after 3uv.122). Now the exact folder of a package of the graph (`packages/x`, `packages/x/`, `./packages/x`, its absolute path) plays the same task as the complete pass, the variable unset, as Bazel's `//pkg/...` shares the cache of `//...`; a sub-folder or a file keeps a hash of its own, and a path out of every package stays refused (2). A run that mixes a whole package and files of another plays two runs (the package whole, then the files), the code the first that is not 0. A whole package named with an option or `--force` keeps a hash of its own: the variable carries the options (and the moment for `--force`), never the folder. **Action for projects**: none.
20
+
21
+ - **The question of a ticket the queue reopens says why** : the question gone up to the supervisor read « La file rouvre le ticket. » alone, its reason (a branch that does not replay on main and its files in conflict, or a red CI and its address) left in the ticket's comments; `--reprendre`, answered on it, sent the same branch back to the same refusal (Grillhouse 3uv.130, seen on 3uv.111, 2026-11-20). Its first line now carries the reason, and for a branch that does not replay on main the question names the answer that serves, `--depuis developpeur`. **Action for projects**: none.
22
+
23
+ - **The memo of a circuit no longer keeps the whole written state** : it held the report, the findings and the journals whole (`ecrit`, 16 KB on average, up to 225 KB, 4 MB for the 255 kept circuits), which weighed the list of circuits. It now keeps only what a resumption rereads (step, attempt, stop, loops, rank, packages, the head of the report) and stays under a few KB whatever the ticket; the resumption of an ended run reads it by one path, a memo written before this lot (whole state) included (Grillhouse 3uv.111). The effects' text was never in the memo. **Action for projects**: none.
24
+
25
+ - **A clean machine of GitHub replays main every day and at each release** : the frame poses `.github/workflows/machine-vierge.yml`, which plays on GitHub's `ubuntu-latest` (never the repository's `RUNNER`), Node 26, the installation from scratch (`npm ci`, `grillhouse binaires`) and the complete `npm run verifier`; it catches the faults of installation (an undeclared tool, a setting of the poste supposed, a small machine). It starts on the schedule (once a day, skipped when main is the commit of its last green pass, whatever its event), on a tag `v*` and by hand, on no push, so a red pass blocks no queue and shows in GitHub as the night's does (Grillhouse 3uv.106, decision of the owner, 2026-11-18). `grillhouse maj` poses it in a project that holds a workflow of the frame and declares it in `grillhouse.flux` with every package of the graph, the entries already declared left as they are. **Action for projects**: run `npx grillhouse maj`; a project that wants another system (macOS, ARM) takes the workflow for itself by removing the mark of its first line.
26
+
27
+ - **After `--etendre`, the sessions read the supervisor's answer, not the stop it answers** : the run resumed by `--etendre` gave its sessions the fact and the piece of the stop as their context, a lock's message (« ⛔ hors-plan … ta séance s'arrête là ») with the plan as it was; the reviewer, who reads its context as the supervisor's word, stopped the circuit at 4.3 on a file the plan now held, with a question « au responsable » (OSD-bac.3, SH-2hb.3, Grillhouse 3uv.112 ; Grillhouse 6j3, raised by OSD and osc-bridge under 0.43.0). The context now says the packages the plan gains and the plan as it is. **Action for projects**: none.
28
+
29
+ - **The mechanical questions no longer go up to the supervisor** : on 2026-11-20 most stops were of that kind (Grillhouse 3uv.118). A write out of the plan in a file the ticket's description names (its « Architecture » section or an acceptance criterion, by its path from the root) extends the plan to the file's package without a stop, said at the ticket with its piece; a file the ticket does not name, one of the root, and an `ARCHITECTURE.md`, `CADRE.md` or `INTERFACE.md` still go up. A session the usage limit stops (« limit · resets <time> (<zone>) » in the result of `claude -p` or at the end of its log) is no longer a session without a sheet: the circuit reports itself to the hour the usage returns (an hour later when none reads), says it at the ticket, gives its place back and resumes the step; the limit counts in neither of the two sessions without a sheet, and successive limits have no bound. The board shows « limite d'usage » and the hour for such a circuit. **Action for projects**: none.
30
+
31
+ - **The short circuit is decided by a criterion, and the switch works both ways** : a ticket that changes only code comments left for the full circuit and stopped the testwriter with no way to 1.1 but `--recommencer` (BPScript, bp-mono-vbwf.320.14.2.8.1, 2026-11-20; Grillhouse 3uv.115, decision of the owner). The charter now says it: a ticket takes the short circuit when no honest test can turn red before its lot, the product behaving the same before and after; the old list becomes its examples (plus code comments only, removal of code without a live caller, regenerated files, texts of messages no test or package reads, narrowed typing), each with its condition. Two forms: a gesture a command plays goes through 1.1; a gesture written by hand skips the testwriter and the proof of the red, and a developer session writes it. The testwriter that finds nothing to test stops with the reason `aucun-comportement`, and the supervisor answers `--mecanique [<command>] --contexte <reason>` (with a command to 1.1, without to the developer), the plan kept; the reviewer of a short-circuit lot that sees a behaviour change returns it with the reason `comportement-change`, and the ticket restarts at 2 Tests on the same plan, the switch counting among the `RENDU` (the third stops the circuit). **Action for projects**: none.
32
+
33
+ - **The checks of the plan name to `npm test` no test out of every package** : a lot that added a test of the frame's plugin (`mods/grillhouse/tests/`) had its checks red on `npm test -- <that file>`, which refuses a path out of every package (code 2), and its circuit stopped « sans-livraison » though the guards play that test green (Grillhouse 3uv.127, seen on 3uv.110, 2026-11-20). **Action for projects**: none.
34
+
35
+ - **A time measure of a trial no longer reads the real load of the poste** : since 0.45.0 a measure waits for the rest of its dedicated cores by reading the load of the machine; a day test that plays a bench in a trial project (`tests-cibles.spec.ts`) waited for that rest up to the bound of 60 min on a busy poste, and every pass of the tests of Grillhouse stayed frozen (Grillhouse 3uv.119, seen on the circuit of 3uv.110, 2026-11-20). On the machine a trial fixes (`GRILLHOUSE_MESURE_D_ESSAI`), the dedicated cores are at rest: the measure leaves at once, and the load of the poste while it plays is not judged, its red keeping its code; it is held by the affinity of its launch and moves no program of the poste off its cores, even where the cpuset controller is delegated. **Action for projects**: none.
36
+
37
+ - **The sessions of the circuit's agents spend the API credit while there is some** : with `~/.config/grillhouse/api.env` (`ANTHROPIC_API_KEY=…`), each session of an agent starts with the key; refused for an empty credit or a refused key, it is played again at once on the subscription, once, under the same id, and the month is noted in the file of presence `api-epuise-AAAA-MM` beside `api.env`, the key being taken again the next month (Grillhouse 3uv.114, 2026-11-18). Any other error of the API keeps the key. Without the file, nothing changes. **Action for projects**: none; a poste that wants it writes `api.env`.
38
+
39
+ - **A server of sccache that does not answer is said, with its output, before cargo runs** : on SyntHub (SH-13y.6, 2026-11-18), the guard clippy went red on the tool, « sccache: error: path must be shorter than SUN_LEN », the start of the server having its output thrown away (Grillhouse 3uv.112). `demarrerLeServeur` now interrogates the server (`sccache --show-stats`) under the same environment (the same `SCCACHE_SERVER_UDS`, the short TMPDIR) after `sccache --start-server`, and returns one line that names the start of the sccache server and carries both outputs when it does not answer; null when it answers (just started or already running) or when the project sets its own wrapper. The guard clippy carries the line as a finding refused, never as « cargo clippy rouge », and every command that compiles (`tester`, `verifier`, `typer`, `construire`) fails without running cargo. **Action for projects**: none.
40
+
41
+ - **A tool of the project can enter the cache by its content** (grillhouse-3uv.113, asked by SyntHub, SH-9ha.1.2, accepted by the owner, 2026-11-18): Turborepo's cache did not hash the content of a tool outside the repository that a build links into its product (the Python linked into SyntHub's service binary), so changing the tool without changing the code served the old product. `grillhouse.outils` now accepts `{ "<VARIABLE>": { "chemin": "<path>", "contenu": true } }` beside the short form, which stays valid and unhashed; any other object form is refused by its key. Each pass (circuit, `npm run verifier`, the night, the integration's copy) gets `<VARIABLE>_EMPREINTE` (the SHA-256 of the file, or of the sorted list of the entries of the directory: path, type, executable bit, content; links taken by their target's text, `__pycache__` left out) beside `<VARIABLE>`, and the generator writes it into the root `turbo.json`'s `globalEnv`: a changed tool replays every task of the project (the tool is declared once for the project, not on a package), an unchanged one is read from the cache. A hashed tool that is absent, unreadable or special is refused by its name before any work. The fingerprint is read again at each pass, with no memory between two: measured on SyntHub's Python (151 MB, 19,207 files) it costs 1.2 s cold and 0.19 s warm, and 4 to 7 ms for a one-file tool. **Action for projects**: to hash a tool, write its long form in `grillhouse.outils`, then run `npx grillhouse turbo-des-paquets --ecrire` (the regeneration command the check names); no other project changes.
42
+
43
+ - **A circuit waiting for the supervisor keeps its place in the project's limit** : on SyntHub, 8 tickets were started and stopped on a question besides the 2 at work, because a circuit stopped on a question gave its place back (Grillhouse 3uv.109, decision of the owner, 2026-11-18). The queue now counts, in `grillhouse.circuits`, a circuit stopped on a question to the supervisor (no recipient, or « superviseur ») and a circuit resumed and waiting for its place of the machine, as a Kanban limit of work in progress counts a blocked card; a circuit deferred (`--reporter`), waiting for another project or the night, or stopped on a question to the owner still gives it back. A stopped circuit holds no place of the machine. The board of a project at its limit names the circuits waiting for the supervisor. The count is versioned under `patched('limite-garde-le-superviseur')`, so a queue running from before replays its history; the old path is removed once drained. **Action for projects**: none.
44
+
45
+ - **The questions of the circuits reach the supervisor by a push of the greffon** (grillhouse-3uv.110): on SyntHub, 7 questions stayed without an answer a morning, the wait that the supervisor had to launch again after each batch not having been. The greffon of the session of supervision now reads the circuits of its project at each period (`superviseur --relever`) and submits, in the queue of the messages of the session (`$.prompt.submit`), one message per reading with the questions and the ends of circuits that are due; it arrives at the end of the turn, without interrupting it. A question not answered comes back at the interval of the key `grillhouse.rappel` of the `package.json` (minutes, a number above 0, 5 by default); its answer to the circuit acknowledges it. `superviseur --attendre`, its lock and the order to launch it again are removed, with the « sans-attente » state of the Stop hook and the alert « à corriger » of the board; the Stop hook still refuses to end a turn while a question waits. Without a greffon (another engine) nothing is pushed: the board and the opening list the questions. **Action for projects**: none; a project may set `grillhouse.rappel`.
46
+
47
+ ## [0.45.1] - 2026-11-18
48
+
49
+ - **The first session of the testwriter starts again** : 0.45.0 read the language of the copy before the tests of the lot (grillhouse-nwb), eagerly, and a copy not made yet, at the launch of the first session of the testwriter, threw « docs/ARCHITECTURE.md ne déclare aucun langage » (Grillhouse 3uv.109 and 3uv.110, 2026-11-18): every new circuit stopped at 2 Tests. The language is now read only when the lot has a file to class. **Action for projects**: none.
50
+
51
+ - **The compaction of Temporal's database reads its schema** : on pc3 (2026-11-18), the first application of the server's unit of 0.45.0 failed on « no such column: "$.TemporalKeywordList02" »: Temporal's schema writes its JSON paths between double quotes, which the runtime's SQLite reads as columns, and VACUUM parses the schema again. The compaction now opens the database with double-quoted strings read as strings (`enableDoubleQuotedStringLiterals`, `node:sqlite`). **Action for projects**: none; the next `npx grillhouse temporal installer` applies the server's unit and compacts.
52
+
53
+ - **Under a circuit in flight, the installation defers the server alone** : on pc3 (2026-11-18), `npx grillhouse temporal installer` in Grillhouse refused everything under six circuits of SyntHub in flight, the repointing of Grillhouse's own worker to 0.45.0 included, so the queue of Grillhouse's tickets, failed under 0.44.0, could not start again. Applying a worker's unit stops no server: the installation now defers only the server's unit (its stop, its compaction), names the circuits in flight in its report (« l'unité du serveur attend, le serveur n'étant ni arrêté ni compacté : circuits en vol (…) »), lays the program down (in the directory of its version) and applies the workers' units, which name it; a later run applies the server once no circuit is in flight. **Action for projects**: none.
54
+
9
55
  ## [0.45.0] - 2026-11-18
10
56
 
11
57
  - **The reading of the circuits asks for pages of 100** : on pc3 (2026-11-18), every reading of the circuits by the board, the supervisor and the queue of the tickets said « Temporal ne répond pas en 5 s » while the server answered the same list from its own command in 0.15 s. The server pages a list by 1000 by default; a page of the 255 circuits of the machine, each with its memo, weighed 4.4 MB, over the 4 MB a gRPC message of the client takes (« Received message larger than max »), which the client retried until its deadline. Every list of the frame (`lireLesCircuits`, `circuitsVivants`, `circuitsEnPause`) now asks for pages of 100 (`PAGE`). **Action for projects**: none.
@@ -0,0 +1,101 @@
1
+ # Généré par `npx grillhouse maj` depuis le gabarit du cadre ; ne pas éditer : la mise à jour le réécrit. Un workflow sans cette ligne est au projet, et la mise à jour n'y touche pas.
2
+ #
3
+ # The clean machine: a machine GitHub hosts, new at each pass, replays the installation from
4
+ # scratch and the complete verification (`npm run verifier`, no base). A lot is verified before main
5
+ # on the project's own machine (ci.yml, the repository's variable RUNNER), where speed counts; this
6
+ # flow catches what only a clean machine shows: a tool the project does not declare, a setting of
7
+ # the poste that the code supposes, a machine smaller than the poste. Such a fault is the
8
+ # installation's, not the product's.
9
+ #
10
+ # It starts once a day on the default branch, and at each release (a tag v*), by hand too. It starts
11
+ # on no push to main, develop or a branch of a ticket, so a red pass never blocks the queue of the
12
+ # lots: its red shows in GitHub, as the night's (nuit.yml). Nothing in the frame waits for it, not
13
+ # the queue, not the release of the project.
14
+ #
15
+ # « Only if needed » (as the night plays only the project that moved since its last green night):
16
+ # the schedule always starts, and its first job, `decision`, reads the last green pass of this
17
+ # workflow on the repository, whatever its event; when that pass is the commit of the current one,
18
+ # every job of verification is skipped. A search that fails judges nothing, and the pass plays. A red
19
+ # pass leaves no green, so the flow plays again the next day on the same commit. A tag or a manual
20
+ # start reads nothing and always plays.
21
+ #
22
+ # Every job plays on GitHub's ubuntu-latest, never on the repository's variable RUNNER: the point is
23
+ # a machine that is not the project's. Linux and Node 26 alone, as the other workflows of the frame:
24
+ # a project that wants another system (macOS, ARM) takes this workflow for itself, by removing the
25
+ # mark of its first line; the update then leaves it as it is.
26
+ name: Machine vierge
27
+
28
+ on:
29
+ schedule:
30
+ - cron: '0 4 * * *'
31
+ push:
32
+ tags:
33
+ - 'v*'
34
+ workflow_dispatch:
35
+
36
+ jobs:
37
+ decision:
38
+ runs-on: ubuntu-latest
39
+ permissions:
40
+ actions: read
41
+ outputs:
42
+ saute: ${{ steps.lecture.outputs.saute }}
43
+
44
+ steps:
45
+ # The last green pass of this workflow, whatever its event: the same commit skips the pass.
46
+ # The current pass is not green yet, so it never reads itself.
47
+ - name: Last green pass
48
+ id: lecture
49
+ if: github.event_name == 'schedule'
50
+ env:
51
+ GH_TOKEN: ${{ github.token }}
52
+ run: |
53
+ dernier=$(gh run list --repo "$GITHUB_REPOSITORY" --workflow machine-vierge.yml --status success --limit 1 --json headSha --jq '.[0].headSha' || true)
54
+ if [ -n "$dernier" ] && [ "$dernier" = "${{ github.sha }}" ]; then
55
+ echo "saute=true" >> "$GITHUB_OUTPUT"
56
+ else
57
+ echo "saute=false" >> "$GITHUB_OUTPUT"
58
+ fi
59
+
60
+ verification:
61
+ needs: decision
62
+ if: ${{ needs.decision.outputs.saute != 'true' }}
63
+ runs-on: ubuntu-latest
64
+
65
+ strategy:
66
+ fail-fast: false
67
+ matrix:
68
+ node-version: ['26.x']
69
+
70
+ steps:
71
+ - name: Checkout
72
+ uses: actions/checkout@v5
73
+ with:
74
+ fetch-depth: 0
75
+ # The submodules of the project, a private one read by the repository's secret SOUS_MODULES
76
+ # (a token that reads it); without the secret, the workflow's own token.
77
+ submodules: recursive
78
+ token: ${{ secrets.SOUS_MODULES || github.token }}
79
+
80
+ - name: Setup Node.js ${{ matrix.node-version }}
81
+ uses: actions/setup-node@v5
82
+ with:
83
+ node-version: ${{ matrix.node-version }}
84
+ cache: 'npm'
85
+
86
+ # uv, which the frame's module python plays, for a project with packages of Python.
87
+ - name: Install uv
88
+ if: hashFiles('**/pyproject.toml') != ''
89
+ uses: astral-sh/setup-uv@v6
90
+
91
+ - name: Install dependencies
92
+ run: npm ci
93
+
94
+ # The binaries of the project's languages (cargo's sccache, nextest and cargo-deny, python's
95
+ # uv), each at its version; none for TypeScript alone.
96
+ - name: Install the binaries of the languages
97
+ run: npx --no-install grillhouse binaires
98
+
99
+ # The complete verification, with no base: every guard, the typing and every test.
100
+ - name: Verification
101
+ run: npm run verifier
@@ -49,7 +49,11 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
49
49
  par défaut : les heures, à l'heure locale, où l'attente d'une réponse compte au bilan comme nuit,
50
50
  à part de l'attente du superviseur et de celle du responsable).
51
51
  - Les outils du projet : la clé `grillhouse.outils` du `package.json` (`{ "<VARIABLE>": "<chemin>" }`,
52
- un chemin absolu ou sous `~` : un outil hors du dépôt que les tests exigent ; l'enveloppe d'un
52
+ un chemin absolu ou sous `~` : un outil hors du dépôt que les tests exigent ; la forme longue
53
+ `{ "<VARIABLE>": { "chemin": "<chemin>", "contenu": true } }` le hache par son contenu : son
54
+ empreinte SHA-256 (fichier, ou liste triée des entrées d'un dossier) entre dans le hachage des
55
+ tâches par le `globalEnv` du `turbo.json` racine et se donne aux passes en `<VARIABLE>_EMPREINTE`,
56
+ un outil changé rejouant toutes les tâches du projet, et la forme courte reste non hachée ; l'enveloppe d'un
53
57
  agent le monte en lecture seule et lui passe la variable, et le circuit, `npm run verifier` et la
54
58
  nuit jouent avec la même ; lue dans l'arbre principal ; un chemin qui recouvrirait l'enveloppe
55
59
  (`/`, la maison, un dossier caché de la maison hors `~/.local` et `~/.cache`, le trousseau
@@ -64,8 +68,12 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
64
68
  fichiers ou avec un motif hors du dépôt est refusée par son nom avant tout travail).
65
69
  - Le nombre de circuits à la fois : la clé `grillhouse.circuits` du `package.json` (un entier
66
70
  ≥ 1, **1** quand elle est absente : les circuits actifs du projet à la fois, que la file des
67
- tickets tient ; un circuit arrêté sur une question rend sa place, et repris, la redemande avant
68
- de rouvrir ; lue dans l'arbre principal ; toute autre valeur est refusée par son nom avant tout
71
+ tickets tient ; un circuit arrêté sur une question au superviseur, ou repris et en attente de sa
72
+ place de la machine, garde sa place dans la limite, comme une carte bloquée dans la limite d'un
73
+ tableau Kanban : la file ne démarre aucun ticket de plus tant qu'il n'a pas sa réponse ; un
74
+ circuit reporté à une heure, en attente d'un autre projet ou de la nuit, ou arrêté sur une
75
+ question au responsable, rend sa place ; le tableau nomme, pour un projet à sa limite, les
76
+ 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
69
77
  travail). La machine borne aussi : un ticket ne part que s'il a une place de circuit de la
70
78
  machine, commune à ses projets et donnée dans l'ordre d'arrivée (`GRILLHOUSE_PLACES` de
71
79
  `~/.config/grillhouse/machine.env`, 3 par défaut), et la place d'une copie de plus sur le disque
@@ -79,8 +87,11 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
79
87
  `GRILLHOUSE_RESERVE_COEURS` et `GRILLHOUSE_RESERVE_MEMOIRE_GO` de `~/.config/grillhouse/machine.env`,
80
88
  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 à
81
89
  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
82
- refusée par son nom avant tout travail). Absente, la part vaut 4 cœurs au moins, sa mémoire en
83
- proportion ; une part plus grande que le budget vaut le budget, une seule passe jouant alors à la
90
+ refusée par son nom avant tout travail). Absente, la part vaut en cœurs le budget divisé par les
91
+ places de la machine (`GRILLHOUSE_PLACES`, la division entière, 2 au moins), et en mémoire le plus
92
+ grand pic des passes de jour du projet à son registre des consommations, plus un quart, jamais
93
+ 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
94
+ 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
84
95
  fois. La passe n'a que cette part : le système la tient dans un groupe de contrôle de Linux à elle
85
96
  (poids de processeur et plafond de mémoire tirés de la part, sans plafond dur de processeur), et
86
97
  elle attend, en disant ce qu'elle attend (cœurs, mémoire, charge), quand le budget manque ; la
@@ -90,3 +101,9 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
90
101
  nomme qui tient chaque place, et le panneau de plusieurs projets ; absente, le préfixe de tickets
91
102
  de `.beads/config.yaml` sert ; une autre valeur est une faute que le panneau dit en alerte, le
92
103
  préfixe restant le sigle).
104
+ - La machine vierge : le flux `.github/workflows/machine-vierge.yml` que le cadre pose rejoue, sur un
105
+ exécuteur `ubuntu-latest` de GitHub neuf (jamais la variable `RUNNER`), l'installation à neuf puis
106
+ `npm run verifier` complet ; il part au plus une fois par jour sur main, et saute le jour où main est
107
+ le commit de son dernier passage vert, et à chaque étiquette `v*`. Il ne part sur aucune poussée : son
108
+ rouge ne bloque aucune file, il se voit dans GitHub. Un projet qui veut un autre système (macOS, ARM)
109
+ reprend le flux à lui en ôtant la ligne de marque de sa première ligne.
package/charte.md CHANGED
@@ -58,6 +58,14 @@ mécaniques que la liste des étapes écrit (rejouer, régénérer, juger un lot
58
58
  tout autre arrêt monte au superviseur avec sa pièce, et il monte au responsable ce qui lui
59
59
  revient. Ainsi aucune séance ne juge ce qu'une règle tranche.
60
60
 
61
+ **Le greffon pousse les questions dans la file de la séance du superviseur, la réponse les
62
+ acquitte** : le greffon de la séance qui tient le verrou du superviseur met chaque question neuve
63
+ d'un circuit du projet, et chaque fin de circuit, dans la file des messages de cette séance, un
64
+ message par relevé, à la fin du tour en cours ; une question sans réponse revient à l'intervalle
65
+ de la clé `grillhouse.rappel`, et sa réponse au circuit l'acquitte. Sans séance de superviseur ni
66
+ greffon, rien n'est poussé : le tableau, l'ouverture de séance et le crochet de fin de tour portent
67
+ les questions. Ainsi une question ne dépend d'aucune attente que la séance relance.
68
+
61
69
  **Un agent qui a la réponse l'applique** : une décision qu'il sait trancher et qu'il recommande
62
70
  (un nom, une signature, un paquet à retirer de son plan), il la prend et l'écrit dans sa fiche,
63
71
  sans s'arrêter ; seule monte une question qui revient au responsable (le langage, l'architecture,
@@ -163,21 +171,40 @@ données (des fichiers qu'un schéma valide, une fiche à un catalogue) ne passe
163
171
  de code ; il passe par la validation du projet et sa CI, comme une formule de Homebrew ou un
164
172
  type de DefinitelyTyped. Ainsi le circuit garde les tests et le code pour ce qui en a.
165
173
 
166
- **Un geste sans comportement neuf sort du circuit de code** (montée du cadre, documents seuls,
167
- renommage ou déplacement, montée de dépendance, configuration seule, correction de style, seuil
168
- relevé), comme les grands changements de Google (Rosie, ClangMR), Renovate, `nx migrate`,
169
- `eslint --fix` : il passe par sa commande ou son outil, puis la vérification et la relecture du
170
- relecteur, sans testwriter ni développeur. L'explorateur juge au plan que le ticket est mécanique,
171
- et l'écrit avec sa raison et sa commande ; un doute va au circuit. Le texte qui accompagne un
172
- changement de comportement reste dans son lot. Une configuration dont une garde mesure l'effet
173
- reste au circuit. Sous un plan qui dit « comportement inchangé », la suite existante fait la
174
- preuve : elle accepte chaque vert, et le développeur écrit le code (une réorganisation a du code),
175
- puis les contrôles et la relecture. Hors de ce cas, une preuve qui ne trouve aucun rouge passe aux
176
- contrôles et à la relecture sans séance du développeur. Ainsi chaque séance du circuit a un lot à
177
- écrire.
174
+ **Un ticket prend le circuit court quand aucun test honnête ne peut rougir avant son lot**, le
175
+ produit se comportant pareil avant et après : la suite existante, qui reste verte, et la relecture
176
+ font la preuve, comme les grands changements de Google (Rosie, ClangMR), Renovate, `nx migrate`,
177
+ `eslint --fix`, sans test neuf. Un test honnête échoue avant le lot et passe après, sur un
178
+ comportement qu'un test, un autre paquet ou une interface publiée observe. Le doute va au circuit
179
+ complet. L'explorateur juge au plan que le ticket est mécanique, et l'écrit avec sa raison, ce
180
+ qu'il a cherché et sa commande. La liste qui suit donne des exemples du critère, non son
181
+ périmètre : montée du cadre, documents seuls, renommage ou déplacement, montée de dépendance,
182
+ configuration seule (sans garde qui en mesure l'effet), correction de style, seuil relevé,
183
+ commentaires de code seuls, suppression de code sans appelant vivant, fichiers engendrés
184
+ régénérés, textes de messages qu'aucun test ni aucun autre paquet ne lit, typage resserré sans
185
+ changement à l'exécution et dont aucun lecteur du relevé ne casse à la compilation.
186
+ Le circuit court a deux formes : le geste qu'une commande ou un outil joue passe par 1.1 (Geste
187
+ mécanique, l'explorateur joue la commande du plan), sans testwriter ni développeur ; le geste
188
+ écrit à la main (commentaires, code supprimé, texte d'un message, typage resserré) saute le
189
+ testwriter et la preuve du rouge, et une séance du développeur écrit, puis les contrôles et la
190
+ relecture. Reste au circuit complet ce qu'un utilisateur ou un autre paquet observe (une sortie,
191
+ un code de retour, une interface publiée) ; le texte qui accompagne un changement de comportement
192
+ reste dans son lot. Une configuration dont une garde mesure l'effet reste au circuit. Une
193
+ réorganisation qui a du code garde sa règle : sous un plan qui dit « comportement tests-adaptés », la
194
+ suite existante fait la preuve : elle accepte chaque vert, le testwriter garde ses tests, et le
195
+ développeur écrit le code, puis les contrôles et la relecture ; « comportement inchangé » est le
196
+ geste écrit à la main, le développeur seul, sans testwriter ni preuve. Hors de ce cas, une preuve qui ne trouve aucun rouge passe aux
197
+ contrôles et à la relecture sans séance du développeur.
198
+ La bascule marche dans les deux sens, sur le même plan, ses paquets et ses critères gardés : le
199
+ testwriter qui ne trouve aucun comportement à tester s'arrête (motif `aucun-comportement`), et le
200
+ superviseur répond `--mecanique [<commande>]` (avec sa commande vers 1.1, sans elle vers le
201
+ développeur) ; le relecteur d'un lot du circuit court qui voit un comportement changer le rend
202
+ avec le motif `comportement-change`, et le ticket repart à 2 Tests, sa sorte changée. Cette
203
+ bascule compte parmi les `RENDU` : le troisième arrête toujours le circuit. Ainsi chaque séance
204
+ du circuit a un lot à écrire.
178
205
 
179
206
  **Un ticket prend l'une de trois voies** : le circuit complet pour un comportement qui change ;
180
- le circuit court (1.1) pour un geste sans comportement neuf, que l'explorateur juge au plan ; hors
207
+ 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
181
208
  du circuit, mené en direct par le superviseur, pour un défaut du circuit lui-même (le circuit ne se
182
209
  répare pas par lui-même), une correction triviale repérée en analyse (une ligne fautive, un
183
210
  mauvais argument), un ticket de données ou le squelette d'un paquet ; il porte l'étiquette `direct`, que la file des
@@ -290,8 +317,11 @@ dossier.
290
317
  déjà nommé. Ainsi une affirmation sur le code repose sur ce que le code contient.
291
318
  - **Tout se lit, le plan s'écrit** : dans son enveloppe, un agent lit tout le dépôt, index compris,
292
319
  et n'écrit que les paquets que le plan de son ticket nomme. Une écriture hors du plan l'arrête,
293
- et le superviseur étend le plan ou refuse. Ainsi l'agent lit ce dont il a besoin, et les gardes
294
- tiennent l'architecture.
320
+ et le superviseur étend le plan ou refuse. Deux cas le circuit étend le plan lui-même, sans
321
+ arrêt, sa pièce écrite au ticket : un fichier que la description du ticket nomme, et un
322
+ composant que le relevé nommait et que le plan avait écarté, quand il rougit aux contrôles ou à
323
+ la passe finale (écarter un lecteur est une prévision, que les contrôles vérifient). Ainsi
324
+ l'agent lit ce dont il a besoin, et les gardes tiennent l'architecture.
295
325
  - Tickets : Beads (`bd`), sous le préfixe du projet, voir `docs/agents/issue-tracker.md`.
296
326
  - Une compétence du cadre s'appelle avec son préfixe `grillhouse:` ; un document pour un agent
297
327
  s'écrit avec `grillhouse:writing-for-agents`.
@@ -13,6 +13,13 @@ export interface Appel {
13
13
  /** The hour its question waits for (`bd update --defer`), the circuit left in its wait. */
14
14
  reporter: string | null;
15
15
  recommencer: boolean;
16
+ /**
17
+ * The answer to a stop of the testwriter that finds no behaviour to test (`--mecanique`): the
18
+ * command a gesture plays (1.1), or none for a gesture written by hand (the developpeur).
19
+ */
20
+ mecanique: {
21
+ commande: string | null;
22
+ } | null;
16
23
  contexte: string | null;
17
24
  }
18
25
  /** The refusal of a fresh launch of <ticket> whose circuit was stopped on the supervisor's word. */
@@ -3,6 +3,7 @@
3
3
  import { ETAPES_DE_REPRISE } from './contrat.js';
4
4
  export const USAGE = 'usage: npx grillhouse circuit <ticket> [--reprendre [--contexte <texte>] | ' +
5
5
  '--depuis <testwriter|preuve|developpeur|controles|passe-finale> --contexte <texte> | ' +
6
+ '--mecanique [<commande>] --contexte <raison> | ' +
6
7
  '--etendre <paquet>[,<paquet>…] [--contexte <texte>] | --arreter [--contexte <motif>] | ' +
7
8
  '--reporter <heure> [--contexte <motif>] | ' +
8
9
  '--recommencer]\n';
@@ -23,6 +24,7 @@ export function lireLAppel(argv) {
23
24
  arreter: false,
24
25
  reporter: null,
25
26
  recommencer: false,
27
+ mecanique: null,
26
28
  contexte: null,
27
29
  };
28
30
  for (let i = 0; i < argv.length; i++) {
@@ -44,6 +46,14 @@ export function lireLAppel(argv) {
44
46
  else if (a === '--recommencer') {
45
47
  o.recommencer = true;
46
48
  }
49
+ else if (a === '--mecanique') {
50
+ // Its command is optional: the next word, unless it is an option.
51
+ const commande = suivant !== undefined && !suivant.startsWith('-') ? suivant : null;
52
+ o.mecanique = { commande };
53
+ if (commande !== null) {
54
+ i++;
55
+ }
56
+ }
47
57
  else if (a === '--etendre') {
48
58
  const liste = String(suivant ?? '')
49
59
  .split(',')
@@ -82,6 +92,13 @@ export function lireLAppel(argv) {
82
92
  if (!ticket) {
83
93
  throw new Usage('le ticket manque.');
84
94
  }
95
+ if (o.mecanique &&
96
+ (o.reprendre || o.depuis || o.etendre || o.arreter || o.recommencer || o.reporter)) {
97
+ throw new Usage('--mecanique va seule, avec son --contexte : le ticket bascule en circuit court sur le même plan.');
98
+ }
99
+ if (o.mecanique && (o.contexte === null || o.contexte.trim() === '')) {
100
+ throw new Usage('--mecanique attend son --contexte : la raison du circuit court.');
101
+ }
85
102
  if (o.reporter && (o.reprendre || o.depuis || o.etendre || o.arreter || o.recommencer)) {
86
103
  throw new Usage('--reporter va seule, son motif en --contexte : le circuit reste en attente.');
87
104
  }
@@ -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,yFAAyF;IACzF,4CAA4C;IAC5C,kBAAkB,CAAC;AAErB,uCAAuC;AACvC,MAAM,OAAO,KAAM,SAAQ,KAAK;CAAG;AAenC,oGAAoG;AACpG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,MAAc,EAAU,EAAE,CACnE,iBAAiB,MAAM,2DAA2D;IAClF,gGAAgG;IAChG,kCAAkC,CAAC;AAErC,+EAA+E;AAC/E,MAAM,UAAU,UAAU,CAAC,IAAc;IACvC,IAAI,MAAM,GAAkB,IAAI,CAAC;IACjC,MAAM,CAAC,GAA0B;QAC/B,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,KAAK;QAClB,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAE,CAAC;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5B,IAAI,CAAC,KAAK,aAAa,EAAE,CAAC;YACxB,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QACrB,CAAC;aAAM,IAAI,CAAC,KAAK,WAAW,EAAE,CAAC;YAC7B,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC;QACnB,CAAC;aAAM,IAAI,CAAC,KAAK,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K,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;IACD,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3C,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;AAC1B,CAAC"}
@@ -42,6 +42,12 @@ export declare function arreterLeCircuit(client: Client, racine: string, ticket:
42
42
  export declare function reprendreDepuis(client: Client, racine: string, ticket: string, role: (typeof ETAPES_DE_REPRISE)[number], contexte?: string | null, ou?: OuReprendre): Promise<string>;
43
43
  /** Extends the plan of the stopped circuit to <paquets>, then resumes it (`--etendre`). */
44
44
  export declare function etendreLeCircuit(client: Client, racine: string, ticket: string, paquets: string[], contexte?: string | null, ou?: OuReprendre): Promise<string>;
45
+ /**
46
+ * Turns the circuit of <ticket>, stopped on the testwriter's question or blocked word, to the
47
+ * short circuit on the same plan, its reason <contexte> (`--mecanique`): with a <commande>, the
48
+ * gesture of 1.1; without, the developpeur writes. Refused out of such a stop, by its name.
49
+ */
50
+ export declare function basculerEnMecanique(client: Client, racine: string, ticket: string, commande: string | null, contexte: string | null, ou?: OuReprendre): Promise<string>;
45
51
  /** The circuit as it stands: its step, whether it waits, its question. */
46
52
  export declare function lireLeCircuit(client: Client, racine: string, ticket: string): Promise<VueDuCircuit>;
47
53
  /** The end of the circuit: integrated, or stopped on the supervisor's word. */
@@ -82,6 +88,14 @@ export interface CircuitLu {
82
88
  integre: boolean;
83
89
  /** The time its workflow ended (ms), null while it runs. */
84
90
  fin: number | null;
91
+ /**
92
+ * The report the circuit keeps while it waits for the usage limit to lift (`raison`
93
+ * « limite-d-usage », `reprise` the hour the usage returns, in ms), null otherwise.
94
+ */
95
+ report: {
96
+ raison: string;
97
+ reprise: number;
98
+ } | null;
85
99
  }
86
100
  /**
87
101
  * The circuits of the repository at <racine>, read in one call to the server (a `workflow.list`,
@@ -20,7 +20,7 @@ import { fileDuProjet } from '../installation.js';
20
20
  * « Temporal ne répond pas en 5 s »): every list of the frame asks for pages of PAGE.
21
21
  */
22
22
  export const PAGE = 100;
23
- import { ARRETER, CIRCUIT, DEPUIS, ETENDRE, idDuCircuit, L_ETAT, REFUS_DU_VALIDATEUR, REPRENDRE, } from './contrat.js';
23
+ import { ARRETER, CIRCUIT, DEPUIS, ETENDRE, etatDeLaReprise, idDuCircuit, L_ETAT, MECANIQUE, REFUS_DU_VALIDATEUR, REPRENDRE, } from './contrat.js';
24
24
  /** Starts the circuit of <entree> on the task queue <file>, or leaves the one that runs: its id. */
25
25
  export async function demarrerLeCircuit(client, entree, file) {
26
26
  const id = idDuCircuit(entree.racine, entree.ticket);
@@ -64,6 +64,9 @@ function refuserApresLaFin(genre, raison, ticket) {
64
64
  if (genre === 'etendre' && raison === 'integre') {
65
65
  throw new ReponseRefusee(`--etendre : le lot de ${ticket} est intégré.`);
66
66
  }
67
+ if (genre === 'mecanique' && raison === 'integre') {
68
+ throw new ReponseRefusee(`--mecanique : le lot de ${ticket} est intégré.`);
69
+ }
67
70
  }
68
71
  // The update <envoyer> to a workflow that runs: a refusal of its validator (out of a wait, a
69
72
  // question already answered, an answer out of its values: REFUS_DU_VALIDATEUR) is a refusal by
@@ -109,9 +112,10 @@ async function repondre(client, racine, ticket, reponse, dit, envoyer, ou) {
109
112
  etatDArret = fin.raison === 'arrete' ? (fin.etat ?? null) : null;
110
113
  }
111
114
  else {
112
- // Ended without its issue: the state its last memo holds whole, which --reprendre reopens from.
113
- etatDArret = d.memo?.ecrit ?? null;
114
- if (reponse.genre === 'etendre' || (reponse.genre === 'reprendre' && !etatDArret)) {
115
+ // Ended without its issue: the state its last memo holds, which --reprendre reopens from.
116
+ etatDArret = etatDeLaReprise(d.memo);
117
+ if (reponse.genre === 'etendre' ||
118
+ ((reponse.genre === 'reprendre' || reponse.genre === 'mecanique') && !etatDArret)) {
115
119
  throw new ReponseRefusee(`le déroulé de ${ticket} a fini sans son issue (${d.status.name})${etatDArret ? '' : ', aucun état écrit'} : \`${lesReponses(ticket, d.status.name, Boolean(etatDArret))}\` le rouvre.`);
116
120
  }
117
121
  }
@@ -205,6 +209,14 @@ export async function reprendreDepuis(client, racine, ticket, role, contexte = n
205
209
  export async function etendreLeCircuit(client, racine, ticket, paquets, contexte = null, ou = {}) {
206
210
  return repondre(client, racine, ticket, { genre: 'etendre', paquets, contexte }, `étendu à ${paquets.join(', ')}`, () => handle(client, racine, ticket).executeUpdate(ETENDRE, { args: [{ paquets, contexte, ...seanceDe(ou) }] }), ou);
207
211
  }
212
+ /**
213
+ * Turns the circuit of <ticket>, stopped on the testwriter's question or blocked word, to the
214
+ * short circuit on the same plan, its reason <contexte> (`--mecanique`): with a <commande>, the
215
+ * gesture of 1.1; without, the developpeur writes. Refused out of such a stop, by its name.
216
+ */
217
+ export async function basculerEnMecanique(client, racine, ticket, commande, contexte, ou = {}) {
218
+ return repondre(client, racine, ticket, { genre: 'mecanique', commande, contexte }, commande === null ? 'basculé : le développeur écrit' : 'basculé : 1.1 Geste mécanique', () => handle(client, racine, ticket).executeUpdate(MECANIQUE, { args: [{ commande, contexte, ...seanceDe(ou) }] }), ou);
219
+ }
208
220
  /** The circuit as it stands: its step, whether it waits, its question. */
209
221
  export async function lireLeCircuit(client, racine, ticket) {
210
222
  return handle(client, racine, ticket).query(L_ETAT);
@@ -275,6 +287,7 @@ export async function lireLesCircuits(client, racine, { integres = false } = {})
275
287
  numero: memo.numero ?? 0,
276
288
  integre,
277
289
  fin: w.closeTime ? w.closeTime.getTime() : null,
290
+ report: memo.report ?? null,
278
291
  });
279
292
  }
280
293
  return out.sort((a, b) => a.ticket.localeCompare(b.ticket, 'en'));
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/temporal/circuit/client.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,gGAAgG;AAChG,mGAAmG;AACnG,8FAA8F;AAC9F,kGAAkG;AAClG,kGAAkG;AAClG,+FAA+F;AAC/F,4FAA4F;AAC5F,gGAAgG;AAChG,wFAAwF;AACxF,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAe,MAAM,oBAAoB,CAAC;AACnG,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,oCAAoC,GACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAC;AACxB,OAAO,EACL,OAAO,EACP,OAAO,EACP,MAAM,EACN,OAAO,EACP,WAAW,EACX,MAAM,EACN,mBAAmB,EACnB,SAAS,GAQV,MAAM,cAAc,CAAC;AAEtB,oGAAoG;AACpG,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,MAAuB,EACvB,IAAY;IAEZ,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE;QACnC,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,wBAAwB,EAAE,cAAc;KACzC,CAAC,CAAC;IACH,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,MAAM,GAAG,CAAC,MAAc,EAAE,MAAc,EAAE,MAAc,EAAE,EAAE,CAChE,MA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AI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;YACvF,MAAM,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC;YAClC,UAAU;YACV,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC;YACjC,OAAO;YACP,GAAG,EAAE,CAAC,CAAC,KAAK;YACZ,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC;YACxB,OAAO;YACP,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI;SAChD,CAAC,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACpE,CAAC"}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/temporal/circuit/client.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,gGAAgG;AAChG,mGAAmG;AACnG,8FAA8F;AAC9F,kGAAkG;AAClG,kGAAkG;AAClG,+FAA+F;AAC/F,4FAA4F;AAC5F,gGAAgG;AAChG,wFAAwF;AACxF,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAe,MAAM,oBAAoB,CAAC;AACnG,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,oCAAoC,GACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAC;AACxB,OAAO,EACL,OAAO,EACP,OAAO,EACP,MAAM,EACN,OAAO,EACP,eAAe,EACf,WAAW,EACX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