@roomi-fields/grillhouse 0.34.0 → 0.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +34 -2
  3. package/cadre/templates/projet/_gitignore +1 -0
  4. package/cadre/templates/projet/package.json +2 -2
  5. package/dist/temporal/acte.d.ts +7 -0
  6. package/dist/temporal/acte.js +19 -2
  7. package/dist/temporal/acte.js.map +1 -1
  8. package/dist/temporal/circuit/appel.d.ts +2 -0
  9. package/dist/temporal/circuit/appel.js +12 -0
  10. package/dist/temporal/circuit/appel.js.map +1 -1
  11. package/dist/temporal/circuit/commande.js +10 -1
  12. package/dist/temporal/circuit/commande.js.map +1 -1
  13. package/docs/ARCHITECTURE.md +12 -0
  14. package/package.json +1 -1
  15. package/scripts/adresse-du-registre.mjs +10 -0
  16. package/scripts/attente-a-l-arret.mjs +2 -2
  17. package/scripts/attente-au-tour.mjs +2 -2
  18. package/scripts/bilan.mjs +5 -4
  19. package/scripts/branche-de-nuit.mjs +15 -6
  20. package/scripts/ci-des-branches.mjs +4 -2
  21. package/scripts/etapes.mjs +7 -5
  22. package/scripts/integration/file.mjs +7 -6
  23. package/scripts/jointure.d.ts +10 -3
  24. package/scripts/langages/cargo/commandes.mjs +10 -2
  25. package/scripts/langages/cargo/sccache.mjs +22 -16
  26. package/scripts/langages/python/commandes.mjs +3 -0
  27. package/scripts/langages/typescript/index.mjs +8 -4
  28. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +53 -0
  29. package/scripts/langages/typescript/resume-du-lanceur.mjs +8 -2
  30. package/scripts/langages/typescript/vitest-config/base.mjs +10 -0
  31. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +35 -0
  32. package/scripts/migrations-des-gardes.mjs +15 -4
  33. package/scripts/registre.mjs +3 -3
  34. package/scripts/reponses-du-circuit.mjs +1 -1
  35. package/scripts/superviseur.mjs +24 -11
  36. package/scripts/tableau.mjs +164 -39
  37. package/scripts/taches-du-graphe.mjs +22 -8
@@ -5,5 +5,5 @@
5
5
  "author": {
6
6
  "name": "Romain Peyrichou"
7
7
  },
8
- "version": "0.34.0"
8
+ "version": "0.34.2"
9
9
  }
package/CHANGELOG.md CHANGED
@@ -6,9 +6,41 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.34.2] - 2026-11-12
10
+
11
+ - **The pre-push hook sees a green CI as soon as its run is green** (grillhouse-do5e): on 2026-11-12, main could not advance on a commit whose ticket branch CI was green, the hook asking GitHub for the runs of the commit filtered by `success`, a filter that lags the runs by minutes. It now lists the runs of the commit and reads each one's conclusion (`jugeeDansLesRuns`, scripts/branche-de-nuit.mjs). **Action for projects**: none.
12
+
13
+ - **A pass of the module cargo never joins the sccache server of another** (grillhouse-67dz): on 2026-11-12, every tranche of SyntHub's CI stopped on « sccache: Failed to create temp dir … No such file or directory » under the temporary directory of an earlier verification. The server was named after the copy and the namespace of processes alone, and a server cargo starts keeps the temporary directory of its run, which goes at the pass's end, while the server outlives it. Its socket now follows the run's temporary directory too (`socketDuServeur`, scripts/langages/cargo/sccache.mjs): each pass has its own server, the disk cache stays common. **Action for projects**: none.
14
+
15
+ - **A question that can only be settled later is deferred to its hour** (grillhouse-68a): on 2026-11-12, the question of a circuit that waited for a night test, which the owner had decided to play in the evening, came back at each relaunch of the wait (« toujours sans réponse »), and the stop hook refused the end of each turn; the only way out was to stop the circuit and take its label off. As a review's snooze hides a request until its hour, the supervisor now answers `npx grillhouse circuit <ticket> --reporter <heure> [--contexte <motif>]`: the ticket is deferred (`bd update --defer`), its circuit left waiting on its question, its state and its freed place kept; the wait, the stop hook and the opening keep its question quiet until the hour (`horsAttente`, scripts/superviseur.mjs, a ticket deferred to a later time counted as a closed one), then it goes up again; any other answer lifts the deferral. **Action for projects**: none.
16
+
17
+ - **FAITS AUJOURD'HUI counts the supervisor's tokens on a direct ticket, and leaves out a ticket closed with no delivery** (grillhouse-lcm1): every direct ticket showed 0 token, the board counting the agents the register ties to a ticket and never the supervisor's session, which leads a direct ticket; and a ticket closed as a duplicate counted as a fact. As the owner asks, the reading of a transcript keeps its tokens by minute, the board reads the supervisor's sessions of the repository touched since the day's marker (`jetonsDuSuperviseur`), and a direct ticket takes, from its claim to its close, each minute's share of the supervisor's tokens, shared among the direct tickets he holds at that minute (an estimate). A ticket closed with a link `duplicates` or `supersedes` (`bd duplicate`, `bd supersede`), or labelled `sans-suite`, has no line among the facts. **Action for projects**: close a ticket with no delivery by `bd duplicate`, `bd supersede`, or the label `sans-suite`.
18
+
19
+ ## [0.34.1] - 2026-11-12
20
+
21
+ - **Pruning the debt no longer empties the debt of the guard of the migrations of the guards** (grillhouse-7jk): `npm run grillhouse:dette:elaguer`, run in a copy whose frame's scripts were another tree's (its `node_modules` linked to the main tree), emptied the whole section `migrations-des-gardes` of `grillhouse-dette.json`: the guard measures nothing outside the frame's own scripts, and pruning read that nothing as every finding corrected; the guard then turned red at the CI. As a baseline (ESLint, Betterer) only moves on what it measured, the guard no longer judges nor prunes its debt where it does not measure. **Action for projects**: none.
22
+
23
+ - **A restart of the worker for an update no longer stops the circuits in flight** (grillhouse-63z): on 2026-11-12, `npx grillhouse temporal installer` (the update to 0.34.0) restarted the workers, and the acts in flight of two circuits failed « acte … annulé » with no attempt again, each circuit raising a question « inattendu » that a mere `--reprendre` lifted. As Temporal advises for the stop of a worker (its activities cancelled with `WORKER_SHUTDOWN`, failed so that the server tries them again at once), an act cancelled by the stop of its worker now fails as one Temporal tries again on the next worker (`echecDeLAnnulation`, src/temporal/acte.ts), its session resumed as after a dead worker; a cancellation by the supervisor or a timeout still fails for good. **Action for projects**: none.
24
+
25
+ - **A stop « à repasser » whose replays are spent goes up with its question** (grillhouse-xxvc): on 2026-11-12, a circuit whose queue could not read the CI stopped « a-repasser », played it again, then, its replays spent, failed to write its stop (« Cannot read properties of null (reading 'question') »): the stop had no question, being a gesture, so the supervisor received a question « inattendu » instead of the real one. As a CI calls a person once its retries are spent, « a-repasser » now carries its question in the list of the questions (`MONTEES`, scripts/etapes.mjs), asked only once the circuit has played it again as often as it may. **Action for projects**: none.
26
+
27
+ - **The verification of a Rust or Python project names each red task** (grillhouse-d1a): `npm run verifier` of a cargo project exited 1 with no line naming the red task, its log ending on cargo deny's « advisories ok » (reported by OSD, 2026-11-12), so a red under load could only be told by replaying each task by hand. As the pass of the module typescript names each red task from Turborepo's summary, the common runner of the graph's tasks (`lancerLesTaches`) now always asks for the summary and names, on a red run, each task whose code is not 0, « ⛔ <tâche> (code N) » (`garderLesResumes` gives each task's verdict); the `verifier` of cargo names its cargo deny when red, and those of cargo and python end on « ⛔ rouge. ». **Action for projects**: none.
28
+
29
+ - **A workflow pushed on main with a filter on paths no longer passes for the CI of the ticket branches** (grillhouse-snn): osc-bridge's `docs.yml` (a push on `[main]` with `paths`) made the frame read the project as already listening to `agent/**`, so the update of 0.33.0 did not add `agent/**` to its `ci.yml`, and the pre-push hook refused main for want of a CI on a ticket branch. As GitHub asks both filters, the reading of a workflow's push (`pousseeSurLaBranche`, scripts/integration/file.mjs) now lets the branch filter decide first: a branch it leaves out never runs, whatever the paths; a filter on the paths still counts a branch it takes in as one that runs. The update no longer adds `agent/**` to a workflow filtered on paths, which is no CI of the lots. **Action for projects**: a project whose `ci.yml` the update left without `agent/**` adds it to `on.push.branches` (the opening of a session says so).
30
+
31
+ - **The line of a ticket in direct no longer says who claimed it** (grillhouse-7td): « ✎ <number> <subject> · en direct · <assignee> » named the account that claimed the ticket, always the same one, since the owner and his agents are the only ones to work. As the owner asks, the line now ends on « · en direct ». **Action for projects**: none.
32
+
33
+ - **The board shows under AGENTS only the tickets at work, and its head counts the queue of the circuit apart from the direct one** (grillhouse-d7y): a ticket labelled `direct` had its line « ✎ … · en direct » as soon as it was open, so three tickets waiting their turn looked worked at once, and « en attente » in the head counted only the circuit's ready tickets without saying so. As the owner asks, a direct ticket now has its line only once claimed (several at once, each its line), and an open one counts in a new state, « en direct — mené hors du circuit, pas encore pris » (`fileDirecte`). The head of one project reads « ▶ <n> en cours · <n> bloqués · <n> faits », then « ⏭ file : <n> en circuit · <n> en direct »; a project's line among several, and the status line, « ▶ <n> en cours · ⏭ <n> · ✎ <n> · <n> faits ». **Action for projects**: none.
34
+
35
+ - **A test never writes into the poste's real register** (grillhouse-44b.16): a night test wrote 44 lines of trial repositories (`grillhouse-essais-lancer-nuit-*`) into `~/.claude/grillhouse/registre.jsonl`, the user's own state, where the report, the board and the planned nights then read them. As git's tests isolate every state of the user (a `HOME` of the trash directory), the base configuration of the tests now sets `GRILLHOUSE_REGISTRE` to a file under the pass's temporary folder, one per test file and removed at its end, only when the launch names none (a register a test or a launch names stays that one). The address of the register is built once, `REGISTRE` of `scripts/adresse-du-registre.mjs`, which reads `GRILLHOUSE_REGISTRE` first: `registre.mjs`, `bilan.mjs` and `tableau.mjs` import it instead of each rebuilding `~/.claude/grillhouse/registre.jsonl`, so the envelope launcher's end-of-session line (`registre.mjs --copie`) goes to the trial register as well. **Action for projects**: none.
36
+
37
+ - **FAITS AUJOURD'HUI says the way of each ticket done, its duration and its tokens** (grillhouse-592): every line of the day's done tickets began with ✓ and showed its time and tokens only when its agents had some, so a ticket led directly looked like a circuit and stood bare. As the owner's maquette asks, the sign now says the way: ● a full circuit, ○ a short one (through 1.1 Geste mécanique, read from the launch of object `geste` in the circuit's kept results, `voiesDesCircuits`), ✎ a direct ticket (labelled `direct`, or closed with no circuit). Every line carries « <duration> · <tokens> »: a circuit's working time, a direct ticket's time from its claim to its close (« — » without a claim), and the tokens of the agents the register ties to the ticket, the supervisor's staying out. The day's total in the title is unchanged. **Action for projects**: none.
38
+
9
39
  ## [0.34.0] - 2026-11-12
10
40
 
11
- - **The board shows the night under way, the tickets worked in direct, and the memory of the poste** (grillhouse-bf5.9): a night that ran loaded the machine without a line on the board, and a ticket claimed with no circuit stood as a circuit at step 1, « attend une place ». As a dashboard shows every job that holds a machine, AGENTS now shows, under the line of the places, the night under way, « 🌙 nuit · <project> · depuis <duration> », read by the query of the workflow of the nights (`nuitDuServeur`, `scripts/circuits-du-serveur.mjs`; the view `etatDesNuits` gains `depuis`, when the night under way started), a reading that fails showing none; and each ticket claimed with no circuit on the server that holds it, a mother of it or a ticket under it (one that runs or waits for an answer; a circuit the supervisor stopped holds none), and each ticket labelled `direct`, open or claimed, once, out of the steps, « ✎ <number> <subject> · en direct · <assignee> », from its claim to its close (none while the circuits do not read). The line of the places says the available memory of the total, « mémoire 15/30 Go » (`memoireTotaleGo` of `etatDesPlaces`; the trial measure `GRILLHOUSE_MESURE_D_ESSAI` gains `memoireTotale`). Without a marker file, the board's first reading sets the day's marker to midnight and keeps it, so that only `grillhouse newday` moves it; a ticket waiting for a place turns yellow, as the other waits. A ticket led out of the circuit carries the label `direct`: the queue of the tickets never starts it, even labelled `circuit` (a label `bd create --parent` copies from its epic), as the charter's three ways of a ticket say. **Action for projects**: label `direct` a ticket led by hand.
41
+ - **The board shows the night under way, the tickets worked in direct, and the memory of the poste** (grillhouse-bf5.9): a night that ran loaded the machine without a line on the board, and a ticket claimed with no circuit stood as a circuit at step 1, « attend une place ». As a dashboard shows every job that holds a machine, AGENTS now shows, under the line of the places, the night under way, « 🌙 nuit · <project> · depuis <duration> », read by the query of the workflow of the nights (`nuitDuServeur`, `scripts/circuits-du-serveur.mjs`; the view `etatDesNuits` gains `depuis`, when the night under way started), a reading that fails showing none; and each ticket claimed with no circuit on the server that holds it, a mother of it or a ticket under it (one that runs or waits for an answer; a circuit the supervisor stopped holds none), and each ticket labelled `direct`, open or claimed, once, out of the steps, « ✎ <number> <subject> · en direct · <assignee> », from its claim to its close (none while the circuits do not read). The line of the places says the available memory of the total, « mémoire 15/30 Go » (`memoireTotaleGo` of `etatDesPlaces`; the trial measure `GRILLHOUSE_MESURE_D_ESSAI` gains `memoireTotale`). Without a marker file, the board's first reading sets the day's marker to midnight and keeps it, so that only `grillhouse newday` moves it; a ticket waiting for a place turns yellow, as the other waits. A ticket led out of the circuit carries the label `direct`: the queue of the tickets never starts it, even labelled `circuit` (a label `bd create --parent` copies from its epic), as the charter's three ways of a ticket say. **Action for projects**: label `direct` a ticket led by hand.
42
+
43
+ - **The lint and the format check play in a session's envelope** (grillhouse-44b.5.7): `npm run lint` failed with EROFS on `node_modules/.cache/eslint/.eslintcache`, the envelope mounting `/` read-only and the `node_modules` of a copy being a link out of it. As Bazel's sandbox opens for writing what an action declares as output, and a tool's cache is one, the scripts `lint` and `format:check` (of the root and of the project template) now keep the cache of ESLint and Prettier under `.cache-outils/`, which the module typescript declares among its clean outputs (an empty folder proper to each session, a whole reading as without a cache) and keeps out of git (`.gitignore`, `_gitignore`); outside the envelope the cache lasts from one pass to the next. The migration « cache des outils » (0.34.1) rewrites the former path in the two scripts of a project, one line per rewrite. **Action for projects**: none; `grillhouse maj` moves the cache.
12
44
 
13
45
  - **A queue of the tickets started before the journal of states replays again** (grillhouse-jye.5): the journal of states (grillhouse-4nr.20) added the activity `tracerLaFile` to the workflow of the queue of the tickets without Temporal's patching, so a history recorded before it no longer replayed (« Nondeterminism error: Activity machine does not handle this event: TimerStarted », the night of 2026-11-12), and a project's queue still running from before would fail at its next replay. As Temporal's versioning asks of a changed workflow, each line of the journal of the queue (a circuit started, a circuit ended) is now written under `patched('trace-de-la-file')`: a run recorded before the change replays without them, a new run writes them. **Action for projects**: none.
14
46
 
@@ -55,7 +87,7 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
55
87
 
56
88
  - **The queue judges a commit on every workflow that runs on its branch, not on the first run** (grillhouse-bf5): a merge queue (GitHub's, bors) judges a commit on all its checks, but the queue read only the first run `gh run list --commit` gave, so a red second workflow reopened and told no one (SyntHub, SH-13y.6.8.3). `ciDuCommit` now reads, at each reading, the runs of every expected workflow (`fluxDuCommit` gives each its path and its name, the `name` key or the path, as GitHub names it), joined by `workflowName`: green when all are green, red as soon as one is (its run, address, log and rerun command in the comment), not read naming the workflow with no run or no end. It is under `patched('ci-tous-les-flux')`: the histories recorded before replay on the old loop. Workflows that run only on main after the entry are not read (grillhouse-bf5.7).
57
89
 
58
- - **The lock of the machine stands on the line of its circuit, and a pass out of a ticket is named by its copy** (grillhouse-bf5.5.1): AGENTS showed the final pass of a circuit twice, on a line « 🔒 Passe finale · <projet> · <ticket> » cut by the width and on the circuit's own line with its progress, and a verification without a ticket by its repository alone, « ⏳ Vérification · roomis-grillhouse », whichever copy played it. A holder or a wait of a circuit AGENTS shows now stands on that circuit's line, in place of the progress of its pass: « ▶ 5hn Le journal… · 🔒 passe finale 54/311 · 2 min », « · ⏳ contrôles · 1 min », one line per ticket. Any other keeps its line at the head of AGENTS, named by its ticket, else by the folder of its copy: the identity of the lock now keeps the root of the working tree the measure plays in (`copie`, `racineDeLaCopie` of `scripts/verrou-de-machine.mjs`), « ⏳ Vérification · direct-panneau-file · 1 min ». The project is named only for another project than the board's (the lock holds for the whole machine). The width cuts the subject first, then the project, then leaves out « attend », then cuts the copy; never the kind, the figures nor the time. **Action for projects**: none.
90
+ - **The lock of the machine stands on the line of its circuit, and a pass out of a ticket is named by its copy** (grillhouse-bf5.5.1): AGENTS showed the final pass of a circuit twice, on a line « 🔒 Passe finale · <projet> · <ticket> » cut by the width and on the circuit's own line with its progress, and a verification without a ticket by its repository alone, « ⏳ Vérification · roomis-grillhouse », whichever copy played it. A holder or a wait of a circuit AGENTS shows now stands on that circuit's line, in place of the progress of its pass: « ▶ 5hn Le journal… · 🔒 passe finale 54/311 · 2 min », « · ⏳ contrôles · 1 min », one line per ticket. Any other keeps its line at the head of AGENTS, named by its ticket, else by the folder of its copy: the identity of the lock now keeps the root of the working tree the measure plays in (`copie`, `racineDeLaCopie` of `scripts/verrou-de-machine.mjs`), « ⏳ Vérification · direct-panneau-file · 1 min ». The project is named only for another project than the board's (the lock holds for the whole machine). The width cuts the subject first, then the project, then leaves out « attend », then cuts the copy; never the kind, the figures nor the time. **Action for projects**: none.
59
91
 
60
92
  - **A ticket in the queue stands at no step of AGENTS** (grillhouse-bf5.5): once the queue launched, every ticket labelled `circuit` without a circuit yet showed at « 2 Tests », waiting for the testwriter, as the board deduced the step of a ticket from the roles that had run on it and the reviewer's last verdict, a reading of the time before the circuit under Temporal. A ticket now stands at a step only by its circuit, running or stopped, or by an agent that runs on it; the others stand in CHANTIER alone. Removed with their tests: the deduction (`etape`, `verdict` of `scripts/tableau.mjs`), the reading of the reviewer's comments by the board, and the waits of the blocks (`attend`). The counters of the head and the states' view are unchanged. **Action for projects**: none.
61
93
 
@@ -40,6 +40,7 @@ coverage/
40
40
 
41
41
  # Cache
42
42
  .cache/
43
+ .cache-outils/
43
44
  .eslintcache
44
45
  .prettiercache
45
46
 
@@ -19,10 +19,10 @@
19
19
  "test": "grillhouse tests",
20
20
  "test:watch": "vitest",
21
21
  "test:coverage": "vitest run --coverage",
22
- "lint": "eslint src tests --cache --cache-location node_modules/.cache/eslint/.eslintcache --ext .ts,.js,.mjs",
22
+ "lint": "eslint src tests --cache --cache-location .cache-outils/eslint/.eslintcache --ext .ts,.js,.mjs",
23
23
  "lint:fix": "eslint src tests --ext .ts,.js,.mjs --fix",
24
24
  "format": "prettier --write \"src/**/*.{ts,js,mjs}\" \"tests/**/*.{ts,js,mjs}\"",
25
- "format:check": "prettier --check --cache --cache-location node_modules/.cache/prettier/.prettiercache \"src/**/*.{ts,js,mjs}\" \"tests/**/*.{ts,js,mjs}\"",
25
+ "format:check": "prettier --check --cache --cache-location .cache-outils/prettier/.prettiercache \"src/**/*.{ts,js,mjs}\" \"tests/**/*.{ts,js,mjs}\"",
26
26
  "prepare": "grillhouse hooks && npm run build",
27
27
  "prepublishOnly": "npm run lint && npm run typecheck && npm run verifier && npm run build",
28
28
  "daemon:start": "pm2 start ecosystem.config.cjs",
@@ -1,3 +1,4 @@
1
+ import { ApplicationFailure } from '@temporalio/common';
1
2
  /**
2
3
  * The group of the process <mort> of a dead attempt ended (SIGKILL) before the attempt played
3
4
  * again plays, its leader gone or not (`groupeVivant`: a command of the dead act still running in
@@ -7,6 +8,12 @@ export declare function finirLaTentativeMorte(mort: {
7
8
  pid: number;
8
9
  depart: string | null;
9
10
  } | null | undefined): void;
11
+ /**
12
+ * The failure of the act <acte> cancelled for <raison> (the reason of its cancellation signal): one
13
+ * Temporal tries again when its worker stops, the act played anew on the next one; else one it
14
+ * tries no more (the supervisor's `--arreter`, a timeout).
15
+ */
16
+ export declare function echecDeLAnnulation(acte: string, raison: unknown): ApplicationFailure;
10
17
  /**
11
18
  * The key of the activity whose information is <info>: its workflow, its run and its activity id,
12
19
  * the same for each of its attempts, as Temporal recommends an idempotency key (the run, because
@@ -13,7 +13,10 @@
13
13
  // the commands it runs (a rebase, a verification), as a session does (scripts/seances.mjs
14
14
  // `jouerLeGroupe`). A cancellation (the supervisor's `--arreter`, a timeout of the activity) sends
15
15
  // SIGTERM to its group, which ends its session, its group killed, then SIGKILL 10 s later; the
16
- // activity fails once the whole group is gone, so that no command of the act outlives it. An act
16
+ // activity fails once the whole group is gone, so that no command of the act outlives it. The stop
17
+ // of its worker (a restart for a new version, `WORKER_SHUTDOWN`) cancels it the same way, and its
18
+ // failure is tried again on the next worker, as Temporal advises (`echecDeLAnnulation`): an
19
+ // update of the frame stays transparent to the circuits in flight. An act
17
20
  // that fails is an error of the activity that is not tried again (`ApplicationFailure`, its
18
21
  // message and its stack).
19
22
  import { spawn } from 'node:child_process';
@@ -39,6 +42,20 @@ export function finirLaTentativeMorte(mort) {
39
42
  signalerGroupe(mort.pid, 'SIGKILL');
40
43
  }
41
44
  }
45
+ /** The reason Temporal gives the cancellation of an activity whose worker stops. */
46
+ const ARRET_DU_TRAVAILLEUR = 'WORKER_SHUTDOWN';
47
+ /**
48
+ * The failure of the act <acte> cancelled for <raison> (the reason of its cancellation signal): one
49
+ * Temporal tries again when its worker stops, the act played anew on the next one; else one it
50
+ * tries no more (the supervisor's `--arreter`, a timeout).
51
+ */
52
+ export function echecDeLAnnulation(acte, raison) {
53
+ const message = raison?.message ?? raison;
54
+ if (message === ARRET_DU_TRAVAILLEUR) {
55
+ return ApplicationFailure.retryable(`acte ${acte} interrompu par l'arrêt de son travailleur`, 'ArretDuTravailleur');
56
+ }
57
+ return ApplicationFailure.nonRetryable(`acte ${acte} annulé`, 'Annule');
58
+ }
42
59
  /**
43
60
  * The key of the activity whose information is <info>: its workflow, its run and its activity id,
44
61
  * the same for each of its attempts, as Temporal recommends an idempotency key (the run, because
@@ -113,7 +130,7 @@ export async function jouer(acte, entree, racine) {
113
130
  while (signalerGroupe(moi.pid, 0)) {
114
131
  await new Promise(ok => setTimeout(ok, 200));
115
132
  }
116
- throw ApplicationFailure.nonRetryable(`acte ${acte} annulé`, 'Annule');
133
+ throw echecDeLAnnulation(acte, contexte.cancellationSignal.reason);
117
134
  }
118
135
  if (r?.genre === 'resultat') {
119
136
  return r.valeur;
@@ -1 +1 @@
1
- {"version":3,"file":"acte.js","sourceRoot":"","sources":["../../src/temporal/acte.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,iGAAiG;AACjG,6DAA6D;AAC7D,2FAA2F;AAC3F,kGAAkG;AAClG,+FAA+F;AAC/F,iGAAiG;AACjG,mGAAmG;AACnG,gGAAgG;AAChG,4FAA4F;AAC5F,gGAAgG;AAChG,0GAA0G;AAC1G,0FAA0F;AAC1F,mGAAmG;AACnG,+FAA+F;AAC/F,iGAAiG;AACjG,4FAA4F;AAC5F,0BAA0B;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAEhG,gGAAgG;AAChG,MAAM,IAAI,GACR,O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AC,CAAC,OAAO,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI,EAAE,CACrD,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,IAAI,IAAI,EAAE,CAAC;YACT,YAAY,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,aAAa,CAAC,MAAM,CAAC,CAAC;QACtB,QAAQ,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;AACH,CAAC"}
@@ -10,6 +10,8 @@ export interface Appel {
10
10
  depuis: (typeof ETAPES_DE_REPRISE)[number] | null;
11
11
  etendre: string[] | null;
12
12
  arreter: boolean;
13
+ /** The hour its question waits for (`bd update --defer`), the circuit left in its wait. */
14
+ reporter: string | null;
13
15
  recommencer: boolean;
14
16
  contexte: string | null;
15
17
  }
@@ -4,6 +4,7 @@ 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
6
  '--etendre <paquet>[,<paquet>…] [--contexte <texte>] | --arreter [--contexte <motif>] | ' +
7
+ '--reporter <heure> [--contexte <motif>] | ' +
7
8
  '--recommencer]\n';
8
9
  /** A malformed call, by its reason. */
9
10
  export class Usage extends Error {
@@ -20,6 +21,7 @@ export function lireLAppel(argv) {
20
21
  depuis: null,
21
22
  etendre: null,
22
23
  arreter: false,
24
+ reporter: null,
23
25
  recommencer: false,
24
26
  contexte: null,
25
27
  };
@@ -32,6 +34,13 @@ export function lireLAppel(argv) {
32
34
  else if (a === '--arreter') {
33
35
  o.arreter = true;
34
36
  }
37
+ else if (a === '--reporter') {
38
+ if (suivant === undefined || suivant.startsWith('-')) {
39
+ throw new Usage('--reporter attend son heure (+6h, demain, 2026-11-13 08:00).');
40
+ }
41
+ o.reporter = suivant;
42
+ i++;
43
+ }
35
44
  else if (a === '--recommencer') {
36
45
  o.recommencer = true;
37
46
  }
@@ -73,6 +82,9 @@ export function lireLAppel(argv) {
73
82
  if (!ticket) {
74
83
  throw new Usage('le ticket manque.');
75
84
  }
85
+ if (o.reporter && (o.reprendre || o.depuis || o.etendre || o.arreter || o.recommencer)) {
86
+ throw new Usage('--reporter va seule, son motif en --contexte : le circuit reste en attente.');
87
+ }
76
88
  if (o.recommencer && (o.reprendre || o.depuis || o.etendre || o.arreter)) {
77
89
  throw new Usage('--recommencer va seule : le circuit repart à neuf, sans réponse ni contexte.');
78
90
  }
@@ -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,kBAAkB,CAAC;AAErB,uCAAuC;AACvC,MAAM,OAAO,KAAM,SAAQ,KAAK;CAAG;AAanC,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,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,CA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AS,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,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"}
@@ -102,6 +102,13 @@ async function mettreEnFile(client, racine, ticket, recommence = false) {
102
102
  // The answer <appel> to the circuit of its ticket in <racine>: its line.
103
103
  async function repondre(client, racine, appel) {
104
104
  const { ticket, contexte } = appel;
105
+ if (appel.reporter) {
106
+ // The ticket deferred, its circuit left waiting on its question: the wait, the stop and the
107
+ // opening keep it quiet until the hour (scripts/superviseur.mjs `horsAttente`).
108
+ bd(racine, 'update', ticket, '--defer', appel.reporter);
109
+ bd(racine, 'comments', 'add', ticket, `Question reportée au ${appel.reporter}${contexte ? ` : ${contexte}` : ''} ; le circuit reste en attente, sa question remonte à l'heure.`);
110
+ return `▶ Circuit de ${ticket} : sa question est reportée au ${appel.reporter} ; le circuit reste en attente, sa question remonte à l'heure.`;
111
+ }
105
112
  if (appel.arreter) {
106
113
  await arreterLeCircuit(client, racine, ticket, contexte);
107
114
  return `▶ Circuit de ${ticket} : l'arrêt est demandé ; il s'arrête, sa séance avec lui.`;
@@ -112,6 +119,8 @@ async function repondre(client, racine, appel) {
112
119
  const { resoudre } = aLaPorte(() => ticketAuLancement(racine, ticket, { arreter: true }));
113
120
  aLaPorte(() => appel.etendre.forEach(resoudre));
114
121
  }
122
+ // An answer lifts a deferral of the question.
123
+ bd(racine, 'update', ticket, '--defer', '');
115
124
  const ou = { superviseur: seanceDuSuperviseur() };
116
125
  const dit = appel.depuis
117
126
  ? await reprendreDepuis(client, racine, ticket, appel.depuis, contexte, ou)
@@ -140,7 +149,7 @@ async function principal(argv) {
140
149
  const racine = arbrePrincipal();
141
150
  const c = ouvrirLeClient();
142
151
  try {
143
- const repond = appel.reprendre || appel.depuis || appel.etendre || appel.arreter;
152
+ const repond = appel.reprendre || appel.depuis || appel.etendre || appel.arreter || appel.reporter;
144
153
  let ligne;
145
154
  if (appel.recommencer) {
146
155
  const retiree = await recommencerLeCircuit(c.client, racine, appel.ticket, retirerLaCopieDuTicket);
@@ -1 +1 @@
1
- {"version":3,"file":"commande.js","sourceRoot":"","sources":["../../../src/temporal/circuit/commande.ts"],"names":[],"mappings":";AACA,gGAAgG;AAChG,2CAA2C;AAC3C,EAAE;AACF,8FAA8F;AAC9F,iEAAiE;AACjE,qFAAqF;AACrF,oFAAoF;AACpF,+DAA+D;AAC/D,8CAA8C;AAC9C,EAAE;AACF,8FAA8F;AAC9F,qFAAqF;AACrF,kGAAkG;AAClG,+FAA+F;AAC/F,mGAAmG;AACnG,qGAAqG;AACrG,+FAA+F;AAC/F,kGAAkG;AAClG,gGAAgG;AAChG,iBAAiB;AACjB,iGAAiG;AACjG,iGAAiG;AACjG,iLAAiL;AACjL,mGAAmG;AACnG,mGAAmG;AACnG,oGAAoG;AACpG,gEAAgE;AAChE,8FAA8F;AAC9F,8FAA8F;AAC9F,2FAA2F;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAA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AO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACnC,IAAI,CAAC,EAAE;IACL,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC1B,CAAC,EACD,CAAC,CAAU,EAAE,EAAE;IACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC/D,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CACF,CAAC"}
@@ -1012,6 +1012,18 @@ alerte, en cours dans les agents ; ⚠ les alertes sans sorte à elles (une pass
1012
1012
  projet illisible, un agent silencieux). Un signe large se cale comme les autres, un signe puis une
1013
1013
  espace, et la largeur d'une ligne compte ses colonnes. Ainsi chaque signe garde un seul sens.
1014
1014
 
1015
+ **FAITS AUJOURD'HUI dit la voie de chaque ticket fini** (maquette du responsable, 2026-11-12,
1016
+ grillhouse-592) : son signe est ● pour un circuit complet, ○ pour un circuit court (passé par 1.1
1017
+ Geste mécanique), ✎ pour un ticket direct (étiqueté `direct`, ou fermé sans aucun circuit). Le
1018
+ circuit court se lit dans les résultats que le circuit garde dans l'arbre principal
1019
+ (`.claude/worktrees/<ticket>.fiches.jsonl`, `voiesDesCircuits`) : le lancement de la séance du geste
1020
+ porte l'objet `geste` ; un circuit dont il reste des résultats, une étape au registre ou une lecture
1021
+ sur le serveur est complet. Chaque ligne porte « <durée> · <jetons> » : pour un circuit, le temps
1022
+ de travail de ses agents et de ses étapes ; pour un ticket direct, de sa prise à sa fermeture,
1023
+ « — » sans prise ; les jetons des agents que le registre rattache au ticket, ceux du superviseur
1024
+ restant hors du ticket. Le total de l'en-tête reste le temps de travail et les jetons des agents.
1025
+ Ainsi la journée se lit par voie, chaque ticket avec ce qu'il a coûté.
1026
+
1015
1027
  **Une passe automatique montre son avancement** : chaque passe automatique écrit ses fichiers
1016
1028
  de tests faits sur prévus (la file, les étapes de sa CI), dans le dossier de travail de son
1017
1029
  ticket pour une passe du circuit, que le panneau affiche avec le temps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomi-fields/grillhouse",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "description": "Roomi's Grillhouse: the frame's scripts, called by one command, grillhouse <sous-commande>",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -0,0 +1,10 @@
1
+ // The one address of the register of finished agents: GRILLHOUSE_REGISTRE first, else the
2
+ // workstation's `~/.claude/grillhouse/registre.jsonl`. A module of its own, imported by every
3
+ // reader and writer of the register (scripts/registre.mjs re-exports it), so that bilan.mjs and
4
+ // tableau.mjs read it without a cycle through registre.mjs.
5
+ import os from 'node:os';
6
+ import path from 'node:path';
7
+
8
+ export const REGISTRE =
9
+ process.env.GRILLHOUSE_REGISTRE ??
10
+ path.join(os.homedir(), '.claude', 'grillhouse', 'registre.jsonl');
@@ -29,7 +29,7 @@ import path from 'node:path';
29
29
  import { pathToFileURL } from 'node:url';
30
30
  import { racineDeLaSupervision } from './attente-au-tour.mjs';
31
31
  import { circuitsDuServeur } from './circuits-du-serveur.mjs';
32
- import { questionsEnAttente, ticketsFermes } from './superviseur.mjs';
32
+ import { questionsEnAttente, ticketsHorsAttente } from './superviseur.mjs';
33
33
  import { attenteVivante } from './tableau.mjs';
34
34
 
35
35
  // The note of what blocked the stop in the repository at <racine>.
@@ -62,7 +62,7 @@ export async function attenteALArret(
62
62
  dossier,
63
63
  {
64
64
  env = process.env,
65
- fermes = ticketsFermes,
65
+ fermes = ticketsHorsAttente,
66
66
  circuitsDe = circuitsDuServeur,
67
67
  attenteVit = attenteVivante,
68
68
  } = {}
@@ -20,7 +20,7 @@ import path from 'node:path';
20
20
  import { pathToFileURL } from 'node:url';
21
21
  import { circuitsDuServeur } from './circuits-du-serveur.mjs';
22
22
  import { vivant } from './mesure/base-de-passe.mjs';
23
- import { questionsEnAttente, ticketsFermes, verrouDeLAttente } from './superviseur.mjs';
23
+ import { questionsEnAttente, ticketsHorsAttente, verrouDeLAttente } from './superviseur.mjs';
24
24
 
25
25
  // The process that the lock of the wait of the repository at <racine> names; null without a lock.
26
26
  function tenant(racine) {
@@ -71,7 +71,7 @@ export function racineDeLaSupervision(dossier, env = process.env) {
71
71
  */
72
72
  export async function attenteAuTour(
73
73
  dossier,
74
- { env = process.env, fermes = ticketsFermes, circuitsDe = circuitsDuServeur } = {}
74
+ { env = process.env, fermes = ticketsHorsAttente, circuitsDe = circuitsDuServeur } = {}
75
75
  ) {
76
76
  const racine = racineDeLaSupervision(dossier, env);
77
77
  if (!racine) {
package/scripts/bilan.mjs CHANGED
@@ -96,6 +96,7 @@ import {
96
96
  import os from 'node:os';
97
97
  import path from 'node:path';
98
98
  import { StringDecoder } from 'node:string_decoder';
99
+ import { REGISTRE } from './adresse-du-registre.mjs';
99
100
  import { pathToFileURL } from 'node:url';
100
101
  import {
101
102
  AGENTS_DU_LOT,
@@ -706,10 +707,10 @@ function messagesDeLaSeance(seance) {
706
707
  // circuit kept, where its circuit ended (<fin>, `{ etape, raison, code }`, null while it runs), and
707
708
  // the owner's messages in the supervisor's sessions its stops name unless <responsable> is false.
708
709
  function calculer(racine, ticket, fin, { responsable = true } = {}) {
709
- const registre =
710
- process.env.GRILLHOUSE_REGISTRE ??
711
- path.join(os.homedir(), '.claude', 'grillhouse', 'registre.jsonl');
712
- const lignes = lignesDuProjet(existsSync(registre) ? readFileSync(registre, 'utf8') : '', racine);
710
+ const lignes = lignesDuProjet(
711
+ existsSync(REGISTRE) ? readFileSync(REGISTRE, 'utf8') : '',
712
+ racine
713
+ );
713
714
  const fiches = path.join(dossier(racine), `${ticket}.fiches.jsonl`);
714
715
  const entrees = (existsSync(fiches) ? readFileSync(fiches, 'utf8') : '')
715
716
  .split('\n')
@@ -52,19 +52,28 @@ export function refusSurMain(remote, refs, { principale, ecoute, jugee }) {
52
52
  );
53
53
  }
54
54
 
55
+ /**
56
+ * Whether one of the runs <runs> of a commit (`gh run list --json headBranch,conclusion`)
57
+ * concluded green on a ticket branch. The conclusion is read run by run: the status filter of
58
+ * GitHub's API lags its runs by minutes (grillhouse-do5e).
59
+ * @param {{ headBranch?: string, conclusion?: string }[]} runs
60
+ */
61
+ export const jugeeDansLesRuns = runs =>
62
+ runs.some(x => x.conclusion === 'success' && String(x.headBranch).startsWith('agent/'));
63
+
55
64
  // Whether a run of the CI concluded green on the commit <sha> on a ticket branch, read by gh in
56
65
  // <racine>; true when gh does not answer (the server's ruleset judges then).
57
66
  function jugeeParGh(racine, sha) {
58
- const r = spawnSync(
59
- 'gh',
60
- ['run', 'list', '--commit', sha, '--status', 'success', '--json', 'headBranch'],
61
- { cwd: racine, encoding: 'utf8', timeout: 30_000 }
62
- );
67
+ const r = spawnSync('gh', ['run', 'list', '--commit', sha, '--json', 'headBranch,conclusion'], {
68
+ cwd: racine,
69
+ encoding: 'utf8',
70
+ timeout: 30_000,
71
+ });
63
72
  if (r.status !== 0) {
64
73
  return true;
65
74
  }
66
75
  try {
67
- return JSON.parse(r.stdout || '[]').some(x => String(x.headBranch).startsWith('agent/'));
76
+ return jugeeDansLesRuns(JSON.parse(r.stdout || '[]'));
68
77
  } catch {
69
78
  return true;
70
79
  }
@@ -58,7 +58,8 @@ function principale(racine) {
58
58
  /**
59
59
  * `agent/**` added to the push of the CI of the lots of the project at <racine>: the workflows
60
60
  * written, none when the project already listens or has no workflow that runs on a push to main
61
- * with a list of branches to add it to.
61
+ * with a list of branches to add it to. A workflow filtered on paths (a documentation published
62
+ * when its sources change) is no CI of the lots, and is left.
62
63
  */
63
64
  export function ajouterLesBranchesDeTicket(racine) {
64
65
  const flux = lesFlux(racine);
@@ -70,7 +71,8 @@ export function ajouterLesBranchesDeTicket(racine) {
70
71
  for (const { chemin, texte } of flux.filter(f => surMain.has(f.chemin))) {
71
72
  const doc = parseDocument(texte);
72
73
  const branches = doc.getIn(['on', 'push', 'branches'], true);
73
- if (!branches || typeof branches.add !== 'function') {
74
+ const chemins = ['paths', 'paths-ignore'].some(c => doc.hasIn(['on', 'push', c]));
75
+ if (chemins || !branches || typeof branches.add !== 'function') {
74
76
  continue;
75
77
  }
76
78
  branches.add(doc.createNode(BRANCHES_DE_TICKET));
@@ -201,8 +201,7 @@ export const GESTES = [
201
201
  {
202
202
  genre: 'rejeu',
203
203
  geste: 'la commande joue une seconde fois',
204
- regle:
205
- 'une commande des contrôles hors de la passe finale à 75 rejoue une fois avant l’arrêt',
204
+ regle: 'une commande des contrôles hors de la passe finale à 75 rejoue une fois avant l’arrêt',
206
205
  cas: 'A12 : un contrôle à 75, rejoué avant de conclure à la charge',
207
206
  },
208
207
  {
@@ -255,16 +254,19 @@ export const RESPONSABLE = 'responsable';
255
254
  // The commands by which the supervisor answers a question (scripts/circuit.mjs): resume, extend
256
255
  // the plan, stop.
257
256
  const REPONSES =
258
- 'Le superviseur répond par une commande du circuit : `--reprendre` (avec `--contexte`) ou `--depuis <testwriter|developpeur>` (avec `--contexte`), `--etendre <paquet>` (le plan gagne ce paquet, puis l’étape en cours reprend), ou `--arreter`.';
257
+ 'Le superviseur répond par une commande du circuit : `--reprendre` (avec `--contexte`) ou `--depuis <testwriter|developpeur>` (avec `--contexte`), `--etendre <paquet>` (le plan gagne ce paquet, puis l’étape en cours reprend), `--reporter <heure>` (la question se tait jusqu’à l’heure, le circuit en attente), ou `--arreter`.';
259
258
 
260
259
  // The question of each stop no gesture settles, as a CI calls a person only for what no rule
261
- // settles (the approval of a review): every stop of ARRETS but « a-repasser », a gesture. The
260
+ // settles (the approval of a review): every stop of ARRETS, « a-repasser » once the circuit has
261
+ // played it again as often as it may (a gesture until then). The
262
262
  // circuit ends on the stop, its state carrying the question (`question`: `{ arret, fait, piece,
263
263
  // question, qui }`: the fact, its piece, file:line or command and output, the question and who must
264
264
  // answer it), for the supervisor, who answers by a command of the circuit and carries to the owner
265
265
  // what is his (`qui` responsable: the reviewer's question on a real word of the language).
266
266
  export const MONTEES = Object.fromEntries(
267
267
  Object.entries({
268
+ 'a-repasser':
269
+ 'L’étape à repasser (une passe sous charge, une CI non lue, une file qui n’avance pas) a été rejouée autant de fois que le circuit le fait, sans aboutir : sa cause se lève-t-elle, pour reprendre, ou le circuit s’arrête-t-il ?',
268
270
  lancement:
269
271
  'Le lanceur s’arrête avant la séance, ou la copie n’avance pas sur la pointe de main avant une passe : la machine ou la copie se répare-t-elle, pour reprendre ?',
270
272
  bloqué:
@@ -299,5 +301,5 @@ export const MONTEES = Object.fromEntries(
299
301
  }).map(([arret, question]) => [arret, { question: `${question} ${REPONSES}`, qui: SUPERVISEUR }])
300
302
  );
301
303
 
302
- // The question of the stop <arret>, `{ question, qui }`, or null for a gesture.
304
+ // The question of the stop <arret>, `{ question, qui }`, or null for a stop of no circuit.
303
305
  export const monteeDe = arret => MONTEES[arret] ?? null;
@@ -153,8 +153,9 @@ function motifDeGitHub(motif) {
153
153
  // Whether the `on.push` of a workflow <push> runs on a push to <branche>, as GitHub reads its
154
154
  // filters: none runs on every branch; `branches` in its order, a `!` pattern taking out what the
155
155
  // ones before took in, the last match deciding; `branches-ignore` takes out what it matches;
156
- // `tags` or `tags-ignore` alone run on no branch. A filter on the paths, or a form the queue does
157
- // not judge, counts as one that runs.
156
+ // `tags` or `tags-ignore` alone run on no branch. GitHub asks both filters: a branch the branch
157
+ // filter leaves out never runs, whatever the paths; a filter on the paths leaves a branch it takes
158
+ // in counted as one that runs, as does a form the queue does not judge.
158
159
  function pousseeSurLaBranche(push, branche) {
159
160
  if (push === null || push === undefined) {
160
161
  return true;
@@ -162,9 +163,6 @@ function pousseeSurLaBranche(push, branche) {
162
163
  if (typeof push !== 'object' || Array.isArray(push)) {
163
164
  return true;
164
165
  }
165
- if (push.paths || push['paths-ignore']) {
166
- return true;
167
- }
168
166
  const { branches, 'branches-ignore': ignorees } = push;
169
167
  if (branches && ignorees) {
170
168
  return true;
@@ -417,7 +415,10 @@ export function relireLesLecturesDues(o, { maintenant, ci }) {
417
415
  nonJuge(f.nom, v.raison);
418
416
  } else if (!v.fini) {
419
417
  if (ecoule > ci.attenteMs) {
420
- nonJuge(f.nom, `le passage ${id} n'est pas fini après ${Math.round(ci.attenteMs / 60_000)} min.`);
418
+ nonJuge(
419
+ f.nom,
420
+ `le passage ${id} n'est pas fini après ${Math.round(ci.attenteMs / 60_000)} min.`
421
+ );
421
422
  } else {
422
423
  encore.push(f);
423
424
  }
@@ -260,8 +260,13 @@ export interface Composition {
260
260
  * the others: the names of the summaries of a run present in `racine` before a run. */
261
261
  resumesDuLancement?(racine: string): Set<string>;
262
262
  /** Optional, typescript's alone: moves the summaries a run in `racine` wrote (absent from
263
- * `avant`) into the results directory `env` names, or removes them without one. */
264
- garderLesResumes?(racine: string, avant: Set<string>, env?: NodeJS.ProcessEnv): void;
263
+ * `avant`) into the results directory `env` names, or removes them without one; gives each
264
+ * task of those summaries with its exit code, null for a task that did not run. */
265
+ garderLesResumes?(
266
+ racine: string,
267
+ avant: Set<string>,
268
+ env?: NodeJS.ProcessEnv
269
+ ): { tache: string; code: number | null }[];
265
270
  /** Optional, typescript's alone: the tasks of the summaries under the results directory
266
271
  * `dossier`, in their order, each with its cache status; `code` null for a task that did not run. */
267
272
  lireLesResumes?(dossier: string): TacheDuResume[];
@@ -503,7 +508,8 @@ export const TRACE: string;
503
508
  export function nomDuPaquet(racine: string, dossier: string): string | null;
504
509
  /** Runs the tasks `taches` of the packages `noms` (all when empty) with the task runner `outil`,
505
510
  * each task whose dependencies succeed played to its end: the runner's exit code. `tests` is the
506
- * content of the variable `TESTS_CIBLES` of the run; the variable of `env` never passes on. */
511
+ * content of the variable `TESTS_CIBLES` of the run; the variable of `env` never passes on. A
512
+ * red run names, through `dire`, each task whose code is not 0. */
507
513
  export function lancerLesTaches(o: {
508
514
  outil: string;
509
515
  racine: string;
@@ -511,6 +517,7 @@ export function lancerLesTaches(o: {
511
517
  noms?: Iterable<string>;
512
518
  tests?: { arguments: string[]; rejouer?: string };
513
519
  env?: NodeJS.ProcessEnv;
520
+ dire?: (ligne: string) => void;
514
521
  }): number;
515
522
  /** A task of the summary of the task runner, or one a module wrote: `code` null for a task that did not run. */
516
523
  export interface TacheDuResume {