@roomi-fields/grillhouse 0.49.1 → 0.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +24 -0
- package/bin/grillhouse.mjs +2 -0
- package/cadre/templates/projet/CLAUDE.md +13 -96
- package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
- package/charte.md +77 -96
- package/dist/temporal/acte.js +2 -1
- package/dist/temporal/acte.js.map +1 -1
- package/dist/temporal/circuit/activites.js +2 -1
- package/dist/temporal/circuit/activites.js.map +1 -1
- package/dist/temporal/circuit/appel.js +2 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +2 -4
- package/dist/temporal/circuit/client.js +5 -8
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +5 -4
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +3 -3
- package/dist/temporal/circuit/contrat.js +2 -2
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +4 -4
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/commande.js +1 -1
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/deroules.js +3 -4
- package/dist/temporal/deroules.js.map +1 -1
- package/dist/temporal/etat.js +1 -1
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +2 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/client.js.map +1 -1
- package/dist/temporal/file/contrat.js +3 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +2 -1
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.js +2 -0
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/activites.js +4 -3
- package/dist/temporal/nuits/activites.js.map +1 -1
- package/dist/temporal/nuits/appel.js +2 -1
- package/dist/temporal/nuits/appel.js.map +1 -1
- package/dist/temporal/nuits/choix.js +2 -1
- package/dist/temporal/nuits/choix.js.map +1 -1
- package/dist/temporal/nuits/client.js +2 -1
- package/dist/temporal/nuits/client.js.map +1 -1
- package/dist/temporal/nuits/commande.js +2 -1
- package/dist/temporal/nuits/commande.js.map +1 -1
- package/dist/temporal/nuits/contrat.js +2 -1
- package/dist/temporal/nuits/contrat.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +2 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/activites.js +2 -1
- package/dist/temporal/places/activites.js.map +1 -1
- package/dist/temporal/places/client.js +1 -0
- package/dist/temporal/places/client.js.map +1 -1
- package/dist/temporal/places/deroule.js +4 -5
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/tickets/activites.js +1 -1
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -4
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/docs/ARCHITECTURE.md +3 -3
- package/docs/CADRE.md +10 -68
- package/docs/INTERFACE.md +59 -179
- package/docs/architecture/circuit.md +440 -0
- package/docs/architecture/entree.md +281 -0
- package/docs/architecture/greffon.md +284 -0
- package/docs/architecture/installation.md +306 -0
- package/docs/architecture/machine.md +383 -0
- package/docs/architecture/tests.md +337 -0
- package/hooks/crochet.mjs +3 -1
- package/package.json +1 -1
- package/scripts/abi-des-dependances.mjs +2 -1
- package/scripts/activites.mjs +8 -8
- package/scripts/aiguillage.mjs +4 -4
- package/scripts/arbitrages.mjs +1 -1
- package/scripts/arbres-juges.mjs +2 -1
- package/scripts/attente-a-l-arret.mjs +7 -8
- package/scripts/attente-au-tour.mjs +2 -2
- package/scripts/attente-de-la-machine.mjs +10 -16
- package/scripts/avancement.mjs +2 -0
- package/scripts/base-des-workflows.mjs +2 -1
- package/scripts/bilan.mjs +39 -61
- package/scripts/binaires.mjs +2 -1
- package/scripts/branche-de-nuit.mjs +2 -1
- package/scripts/cadre.mjs +37 -9
- package/scripts/ci-de-main.mjs +2 -1
- package/scripts/circuit.mjs +101 -618
- package/scripts/circuits-cles.mjs +4 -6
- package/scripts/circuits-du-serveur.mjs +1 -1
- package/scripts/codes-de-sortie.mjs +1 -1
- package/scripts/coeurs-dedies.mjs +2 -4
- package/scripts/commande-du-langage.mjs +2 -0
- package/scripts/commandes-composees.mjs +3 -3
- package/scripts/commandes-du-path.mjs +1 -1
- package/scripts/composants-affectes.mjs +3 -1
- package/scripts/composition-des-langages.mjs +2 -0
- package/scripts/conformite.d.ts +2 -1
- package/scripts/conformite.mjs +2 -0
- package/scripts/consommation-des-passes.mjs +5 -4
- package/scripts/consommation.mjs +1 -0
- package/scripts/copies-finies.mjs +9 -10
- package/scripts/crochet.mjs +1 -0
- package/scripts/crochets.mjs +2 -1
- package/scripts/depart-du-ticket.mjs +2 -2
- package/scripts/dependances-internes.mjs +4 -2
- package/scripts/dernier-vert.mjs +3 -3
- package/scripts/dette.d.ts +2 -1
- package/scripts/dette.mjs +2 -0
- package/scripts/direct.mjs +66 -6
- package/scripts/disque-des-copies.mjs +1 -1
- package/scripts/donnees-cles.mjs +2 -0
- package/scripts/droits.mjs +18 -13
- package/scripts/echantillonneur-de-la-passe.mjs +1 -1
- package/scripts/effets.mjs +3 -3
- package/scripts/engendres.mjs +1 -1
- package/scripts/enveloppe/codes.mjs +1 -0
- package/scripts/enveloppe/enveloppe.mjs +61 -84
- package/scripts/enveloppe/lancer.sh +5 -3
- package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
- package/scripts/enveloppe/travail-de-la-copie.mjs +17 -17
- package/scripts/etapes.mjs +10 -9
- package/scripts/etat-du-depot.mjs +2 -1
- package/scripts/faits-du-circuit.mjs +19 -19
- package/scripts/fermeture-de-la-machine.mjs +2 -2
- package/scripts/fichier-du-poste.mjs +3 -4
- package/scripts/fichiers-nommes.mjs +2 -1
- package/scripts/file-des-tickets.mjs +3 -1
- package/scripts/flux-de-la-nuit.mjs +2 -1
- package/scripts/flux-des-paquets.mjs +2 -1
- package/scripts/fusion-du-changelog.mjs +2 -1
- package/scripts/garde-de-la-memoire.mjs +1 -1
- package/scripts/gardes-du-cadre.mjs +2 -0
- package/scripts/greffons.mjs +2 -2
- package/scripts/grillhouse-maj.mjs +55 -150
- package/scripts/groupe-cles.mjs +2 -1
- package/scripts/index-interfaces.mjs +2 -0
- package/scripts/init.mjs +2 -1
- package/scripts/integration/file.mjs +3 -3
- package/scripts/integration/integrer.mjs +5 -6
- package/scripts/integration/rejeu.mjs +4 -2
- package/scripts/integration/verdict.mjs +2 -1
- package/scripts/jointure.d.ts +2 -1
- package/scripts/journal-des-etats.mjs +2 -2
- package/scripts/langages/cargo/binaires.mjs +3 -2
- package/scripts/langages/cargo/clippy.mjs +2 -0
- package/scripts/langages/cargo/commandes.mjs +72 -17
- package/scripts/langages/cargo/composants.mjs +4 -3
- package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
- package/scripts/langages/cargo/etiquettes.mjs +87 -0
- package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
- package/scripts/langages/cargo/exemples.mjs +6 -4
- package/scripts/langages/cargo/frontieres.mjs +2 -0
- package/scripts/langages/cargo/index-interfaces.mjs +2 -0
- package/scripts/langages/cargo/index.mjs +8 -9
- package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
- package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
- package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +10 -6
- package/scripts/langages/cargo/squelette.mjs +2 -0
- package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
- package/scripts/langages/cargo/verdict.mjs +8 -6
- package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
- package/scripts/langages/typescript/code-mort.mjs +2 -1
- package/scripts/langages/typescript/composants.mjs +7 -5
- package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -1
- package/scripts/langages/typescript/consommateurs.d.ts +2 -1
- package/scripts/langages/typescript/consommateurs.mjs +5 -7
- package/scripts/langages/typescript/construire.mjs +2 -1
- package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
- package/scripts/langages/typescript/exemples.mjs +2 -1
- package/scripts/langages/typescript/frontieres.mjs +3 -2
- package/scripts/langages/typescript/index-interfaces.mjs +3 -2
- package/scripts/langages/typescript/index.mjs +3 -2
- package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
- package/scripts/langages/typescript/lecteurs.mjs +2 -1
- package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
- package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
- package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
- package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
- package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
- package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
- package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
- package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
- package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
- package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
- package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
- package/scripts/langages/typescript/module-absent.mjs +2 -1
- package/scripts/langages/typescript/parcours.mjs +2 -1
- package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
- package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
- package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
- package/scripts/langages/typescript/resumes.mjs +2 -1
- package/scripts/langages/typescript/squelette.mjs +2 -1
- package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
- package/scripts/langages/typescript/tests-de-nuit.mjs +5 -4
- package/scripts/langages/typescript/tests-du-poste.mjs +2 -1
- package/scripts/langages/typescript/tests.mjs +44 -66
- package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
- package/scripts/langages/typescript/tranches.mjs +2 -1
- package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
- package/scripts/langages/typescript/verdict.mjs +2 -1
- package/scripts/langages/typescript/verifier.mjs +64 -99
- package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
- package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
- package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
- package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
- package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
- package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
- package/scripts/langages-des-paquets.mjs +3 -1
- package/scripts/langages.mjs +5 -3
- package/scripts/lecture-unique.mjs +2 -1
- package/scripts/ligne-etat/defaut.sh +2 -1
- package/scripts/ligne-etat/ligne-etat.mjs +1 -0
- package/scripts/lint-des-scripts.mjs +1 -0
- package/scripts/machine.mjs +4 -4
- package/scripts/matiere-de-test.d.ts +2 -1
- package/scripts/matieres-lues.mjs +2 -0
- package/scripts/messages-non-lus.mjs +2 -4
- package/scripts/mesure/avancement.mjs +1 -1
- package/scripts/mesure/base-de-passe.mjs +10 -13
- package/scripts/mesure/pression.mjs +3 -4
- package/scripts/mesure-de-la-machine.mjs +2 -1
- package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
- package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
- package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
- package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
- package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
- package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
- package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
- package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
- package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
- package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
- package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
- package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
- package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
- package/scripts/migrations/0.33.0-node-26.mjs +5 -8
- package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
- package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
- package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
- package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
- package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
- package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
- package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
- package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
- package/scripts/migrations-des-gardes.mjs +2 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/newday.mjs +2 -2
- package/scripts/nuit.sh +7 -5
- package/scripts/outil.mjs +2 -1
- package/scripts/outils-cles.mjs +6 -6
- package/scripts/paquet-npm.mjs +3 -2
- package/scripts/paquet.mjs +3 -4
- package/scripts/paquets.d.ts +1 -1
- package/scripts/paquets.mjs +2 -0
- package/scripts/passe-de-la-machine.mjs +9 -12
- package/scripts/places-de-la-machine.mjs +36 -53
- package/scripts/places-du-serveur.mjs +5 -4
- package/scripts/plafond-de-la-machine.mjs +19 -19
- package/scripts/poussee-retiree.mjs +2 -1
- package/scripts/prefixe-des-tickets.mjs +1 -0
- package/scripts/preparation.mjs +2 -1
- package/scripts/recommencer.mjs +2 -2
- package/scripts/references-changees.mjs +1 -1
- package/scripts/registre-des-resultats.mjs +3 -1
- package/scripts/registre.mjs +14 -16
- package/scripts/regles-des-places.mjs +4 -6
- package/scripts/repli-de-la-nuit.mjs +2 -1
- package/scripts/reponses-du-circuit.mjs +4 -3
- package/scripts/reprise.mjs +3 -2
- package/scripts/resultats.mjs +71 -93
- package/scripts/retirer-copie.sh +2 -1
- package/scripts/retirer-les-copies-finies.mjs +2 -1
- package/scripts/seances.mjs +3 -2
- package/scripts/services-du-noyau.mjs +2 -0
- package/scripts/session-start.sh +33 -52
- package/scripts/sigle-du-projet.mjs +1 -2
- package/scripts/sortie.mjs +2 -1
- package/scripts/sources.mjs +2 -0
- package/scripts/sous-commandes.mjs +2 -1
- package/scripts/sous-modules.sh +24 -43
- package/scripts/structure-guard.sh +2 -1
- package/scripts/style-a-l-ecriture.mjs +2 -0
- package/scripts/suiveur.mjs +1 -1
- package/scripts/superviseur.mjs +36 -55
- package/scripts/tableau-des-composants.mjs +5 -7
- package/scripts/tableau.mjs +78 -121
- package/scripts/taches-du-graphe.mjs +3 -0
- package/scripts/ticket-du-circuit.mjs +1 -1
- package/scripts/transitions.mjs +15 -15
- package/scripts/un-commit-par-ticket.mjs +2 -1
- package/scripts/verdict-de-la-nuit.mjs +2 -1
- package/scripts/verrou-de-fichier.mjs +1 -0
- package/scripts/verrous/commande.mjs +2 -1
- package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
- package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
- package/scripts/verrous/verrou.mjs +3 -3
- package/scripts/workflows-du-cadre.mjs +2 -1
- package/skills/developpeur/SKILL.md +6 -10
- package/skills/explorateur/SKILL.md +1 -1
- package/skills/grill/SKILL.md +4 -5
- package/skills/grill/references/paquets.md +5 -8
- package/skills/pitmaster/SKILL.md +176 -268
- package/skills/pitmaster/references/cadre.md +7 -6
- package/skills/pitmaster/references/consigne-agent.md +36 -32
- package/skills/pitmaster/references/tour.md +2 -2
- package/skills/redacteur/references/documents-d-un-composant.md +9 -8
- package/skills/testwriter/SKILL.md +8 -11
- package/types/index.d.ts +3 -0
package/scripts/superviseur.mjs
CHANGED
|
@@ -1,70 +1,51 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
2
|
+
// The lock of the supervisor of a project, and the reading of the questions of its circuits.
|
|
3
|
+
// Mechanism: greffon.md, §5.1 and §5.2. Played by the session start (scripts/session-start.sh),
|
|
4
|
+
// which writes what it says to the session.
|
|
5
5
|
//
|
|
6
6
|
// npx grillhouse superviseur <racine>
|
|
7
7
|
//
|
|
8
8
|
// - Out of a git repository, in an agent's copy (a worktree whose git directory is not the common
|
|
9
|
-
// one) and in a session of a role that the circuit launches (BEADS_ACTOR set
|
|
10
|
-
//
|
|
9
|
+
// one) and in a session of a role that the circuit launches (BEADS_ACTOR set), nothing is taken
|
|
10
|
+
// and nothing is said.
|
|
11
11
|
// - The lock is `<git common dir>/grillhouse-superviseur.lock`, one for the repository and its
|
|
12
12
|
// copies, taken through scripts/verrou-de-fichier.mjs for the session's own process: the first
|
|
13
|
-
// process above this one named `claude`, whatever stands between them
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
// named; each circuit stopped on a question, with its question and the command that answers it; each
|
|
28
|
-
// circuit ended without its issue, with the command that resumes it (`--reprendre` from its last
|
|
29
|
-
// state written, else `--depuis <testwriter|developpeur> --contexte <texte>`), which the
|
|
30
|
-
// supervisor launches without waiting for the owner's word; their ticket open, and the stopped
|
|
31
|
-
// and the ended ones then gone up; a server that does not answer is said; then « ## La file des
|
|
32
|
-
// tickets », the tickets of the queue without their section « ## Architecture », which the
|
|
33
|
-
// queue never starts (scripts/file-des-tickets.mjs), for the supervisor to write it. A circuit
|
|
34
|
-
// runs on the worker of the project, apart from the sessions, its launch returns at once, and its
|
|
35
|
-
// question reaches the supervisor by the push of the greffon (below). The queue of the
|
|
36
|
-
// tickets under Temporal (src/temporal/tickets/) launches the tickets `circuit`, not the opening.
|
|
13
|
+
// process above this one named `claude`, whatever stands between them; without one, the first
|
|
14
|
+
// that is not a shell (sh, bash, dash, zsh). It holds as long as that process lives.
|
|
15
|
+
// - Free, or held by a process that is gone: taken, nothing said. Held by the session itself (a
|
|
16
|
+
// compaction or a /clear): kept, nothing said, circuits included. Held by another live session:
|
|
17
|
+
// the section « ## Un autre superviseur tient ce dépôt » names its process and since when, and
|
|
18
|
+
// asks to say so to the owner and to launch no circuit.
|
|
19
|
+
// - The session whose opening takes the lock (`circuitsALOuverture`) receives « ## Les questions
|
|
20
|
+
// des circuits », then, when the repository has circuits (read from the Temporal server in one
|
|
21
|
+
// call, scripts/circuits-du-serveur.mjs), « ## Les circuits du dépôt »: each circuit that runs;
|
|
22
|
+
// each circuit stopped on a question, with the command that answers it; each circuit ended
|
|
23
|
+
// without its issue, with the command that resumes it (`--reprendre` from its last state
|
|
24
|
+
// written, else `--depuis <testwriter|developpeur> --contexte <texte>`); a server that does not
|
|
25
|
+
// answer is said; then « ## La file des tickets », the tickets of the queue without their
|
|
26
|
+
// section « ## Architecture », which the queue never starts (scripts/file-des-tickets.mjs).
|
|
37
27
|
// Exit 0, whatever it finds.
|
|
38
28
|
//
|
|
39
29
|
// npx grillhouse superviseur --relever [<dossier>]
|
|
40
30
|
//
|
|
41
|
-
// - One reading of the circuits for the greffon
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
// fault. A reading is one reading: no process waits.
|
|
50
|
-
// - A question has three states the greffon keeps in the file of the stops gone up: sent (put in the
|
|
51
|
-
// message of the session by `relever`), read (a turn of the session started with that message,
|
|
52
|
-
// `superviseur --lue <dossier> <lueA> <envoyeesAvant>`, or the opening listed it), answered (it
|
|
53
|
-
// leaves the file). It comes back only once read, <rappelMs> after its reading, as SQS counts the
|
|
54
|
-
// visibility timeout of a message from its reception: one still in the queue is never sent again.
|
|
55
|
-
// `superviseur --chez-le-responsable <dossier> <ticket>` (the answer `--chez-le-responsable` of
|
|
56
|
-
// the circuit) marks a question carried to the owner: silent until the circuit answers.
|
|
31
|
+
// - One reading of the circuits for the greffon (mods/grillhouse/hooks/register.tsx), which runs
|
|
32
|
+
// it at each period and submits what it writes. It reads and writes nothing unless the session
|
|
33
|
+
// that runs it holds the lock; a lock whose process is gone is taken over by the session that
|
|
34
|
+
// reads. It writes the message (`texteDesQuestions`) when `relever` gives something, nothing
|
|
35
|
+
// otherwise; exit 1 and the fault on the error stream when `grillhouse.rappel` is at fault.
|
|
36
|
+
// - `superviseur --lue <dossier> <lueA> <envoyeesAvant>` marks read the questions sent up to
|
|
37
|
+
// `envoyeesAvant`; `superviseur --chez-le-responsable <dossier> <ticket>` marks a question
|
|
38
|
+
// carried to the owner: silent until the circuit answers.
|
|
57
39
|
// - `relever` is the one function of the reading, of the re-presentation and of the file of the
|
|
58
|
-
// stops gone up:
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
//
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
// cleared at the next green.
|
|
40
|
+
// stops gone up: a question that never went up, or was read <rappelMs> ago (`grillhouse.rappel`
|
|
41
|
+
// minutes, 10 by default, scripts/circuits-cles.mjs), is given once per due time while its
|
|
42
|
+
// circuit stands on the same stop; one answered leaves the file
|
|
43
|
+
// `.claude/worktrees/questions-remontees.json`. A stop is kept there by its ticket, the run of
|
|
44
|
+
// its workflow, the rank of its question in that run and its stop, with the times of the first
|
|
45
|
+
// going up and of the last presentation. The end of a circuit integrated is given once
|
|
46
|
+
// (`integre`), kept in `.claude/worktrees/integrations-rendues.json`, and the alert of the CI of
|
|
47
|
+
// main (a red, or a CI not read, scripts/ci-de-main.mjs) once per passage
|
|
48
|
+
// (`.claude/worktrees/ci-de-main-rendue.json`), cleared at the next green.
|
|
68
49
|
// - The reading covers the project and each other project of its group (`grillhouse.groupe`) that
|
|
69
50
|
// no other live session of supervision holds, each under its name and its folder.
|
|
70
51
|
import { spawnSync } from 'node:child_process';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// The tables of the components of a project, in its docs/ARCHITECTURE.md: where the project
|
|
2
2
|
// declares the language of each package, as the BUILD file of Bazel names the rule of each target.
|
|
3
|
-
// The core reads them (./langages.mjs), the guard of the languages judges the packages against
|
|
4
|
-
// them (./langages-des-paquets.mjs)
|
|
5
|
-
// (./migrations/0.27.0-langages-dans-l-architecture.mjs).
|
|
3
|
+
// The core reads them (./langages.mjs), and the guard of the languages judges the packages against
|
|
4
|
+
// them (./langages-des-paquets.mjs); docs/architecture/tests.md §4.1.
|
|
6
5
|
//
|
|
7
6
|
// - A table of the components is a table of Markdown of docs/ARCHITECTURE.md whose header holds a
|
|
8
|
-
// column « Langage » (COLONNE), or « Language » in a document written in English
|
|
9
|
-
//
|
|
7
|
+
// column « Langage » (COLONNE), or « Language » in a document written in English; each counts, in
|
|
8
|
+
// the order of the document. A row
|
|
10
9
|
// declares a package when its cell of that column is not empty: the language is that cell, its backquotes and its case left out. A row
|
|
11
10
|
// with an empty cell names a part that is no package of the project (a crate of another
|
|
12
11
|
// repository, a folder of data).
|
|
@@ -15,8 +14,7 @@
|
|
|
15
14
|
// - A row names a component when one name of its cell of the names is the component's folder name,
|
|
16
15
|
// its package name or its path from the root (`.` for the root; a trailing `/` and a leading
|
|
17
16
|
// `./` left out). The column of the names of a table is its first column, left to right, where a
|
|
18
|
-
// cell names a component
|
|
19
|
-
// come after the component of SyntHub's.
|
|
17
|
+
// cell names a component.
|
|
20
18
|
// - A cell holds no `|` but in backquotes, as GitHub's tables read it.
|
|
21
19
|
import { existsSync, readFileSync } from 'node:fs';
|
|
22
20
|
import path from 'node:path';
|
package/scripts/tableau.mjs
CHANGED
|
@@ -1,119 +1,77 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// The board of a project
|
|
3
|
-
//
|
|
4
|
-
// The Grillhouse mod shows its lines; `npm run tableau` prints them.
|
|
2
|
+
// The board of a project: a measure of Beads, the register of finished agents, the transcripts of
|
|
3
|
+
// running agents, the circuits' views and the running processes, never of what an agent declares.
|
|
4
|
+
// The Grillhouse mod shows its lines; `npm run tableau` prints them. Mechanism: greffon.md, §5.3.
|
|
5
5
|
//
|
|
6
|
-
// npx grillhouse tableau the board, as JSON (
|
|
6
|
+
// npx grillhouse tableau the board, as JSON (its lines 52 columns wide)
|
|
7
7
|
// npx grillhouse tableau --texte the board, as text
|
|
8
|
-
// npx grillhouse tableau <dossier>…
|
|
9
|
-
//
|
|
8
|
+
// npx grillhouse tableau <dossier>… one board of this project and of the projects in <dossier>…,
|
|
9
|
+
// each ticket prefixed by its project (`ensemble`)
|
|
10
|
+
// npx grillhouse tableau --suivre the follower (`scripts/suiveur.mjs`)
|
|
10
11
|
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
// its
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
// (
|
|
29
|
-
//
|
|
30
|
-
// runs with no question awaited, and stands at the step of its last state, with its attempt,
|
|
31
|
-
// every step one for the whole ticket, a running one with no known state at the step of its
|
|
32
|
-
// stop, else at the plan (1); while the explorateur or the questionneur works on its plan
|
|
33
|
-
// (`questionnement`, of the plan), it stands at the plan (1); waiting for the supervisor
|
|
34
|
-
// (`attendLeSuperviseur`, the one rule the opening and the greffon's reading read too:
|
|
35
|
-
// stopped, « à repasser » included, but by the supervisor's « arrete », or ended without its
|
|
36
|
-
// issue), it stands under the stopped step after a line « ⤷ Question · <qui> », who must answer
|
|
37
|
-
// it, the supervisor or the owner, the supervisor when it names no question; its card opens on
|
|
38
|
-
// that question, or on the stop (its name and code) and the first line of its reason.
|
|
39
|
-
// - Readings: a reading of the circuits or of the tickets that fails (the Temporal server silent
|
|
40
|
-
// or at fault, Beads at fault) gives way to the last one that succeeded, kept in the common git
|
|
41
|
-
// directory (`lectureGardee`, `tableau-lu-<quoi>.json`), its age in the alert that names the
|
|
42
|
-
// fault; a project beside the session's says the faults of its own reading.
|
|
12
|
+
// Lines: the head, AGENTS, CHANTIER, then FAITS AUJOURD'HUI, every line of each list shown; a
|
|
13
|
+
// line folds only lines of another state (« + 2 prêts ») or chantiers not in progress.
|
|
14
|
+
// - Head: the work tickets (a ticket without children; a mother is a grouping) by state; its first
|
|
15
|
+
// line counts the signs AGENTS shows (`etatsDAgents`, « ▶ N · ⏸ N · ⛔ N · N faits »; a ticket
|
|
16
|
+
// closed and not integrated counts under its sign, not as done), one line per project on a board
|
|
17
|
+
// of several; the status line says the same signs in the same words.
|
|
18
|
+
// - AGENTS: the tree of the steps (scripts/etapes.mjs), one block per step and sub-step. A ticket
|
|
19
|
+
// stands at a step only by its circuit or by an agent that runs on it; a ticket in the queue,
|
|
20
|
+
// its circuit not launched, stands at no step. A circuit (scripts/circuit.mjs) launched and not
|
|
21
|
+
// integrated is read from the Temporal server in one call (scripts/circuits-du-serveur.mjs): it
|
|
22
|
+
// stands at the step of its last state, else at the plan (1), also while the explorateur or the
|
|
23
|
+
// questionneur works (`questionnement`). One that waits for the supervisor
|
|
24
|
+
// (`attendLeSuperviseur`, the rule `questionsEnAttente` of scripts/superviseur.mjs reads too)
|
|
25
|
+
// shows « ⤷ Question · <qui> » under its step;
|
|
26
|
+
// its card opens on that question, or on the stop (name, code) and the first line of its
|
|
27
|
+
// reason.
|
|
28
|
+
// - Readings: a reading of the circuits or of the tickets that fails gives way to the last one
|
|
29
|
+
// that succeeded (`lectureGardee`, `tableau-lu-<quoi>.json` in the common git directory), its
|
|
30
|
+
// age in the alert that names the fault; a project beside the session's says its own faults.
|
|
43
31
|
// - Bilans: the card of a ticket whose circuit kept its bilan (scripts/bilan.mjs,
|
|
44
|
-
// `.claude/worktrees/<ticket>.bilan.json`) opens on its key figures
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
//
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
//
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
// the
|
|
66
|
-
//
|
|
67
|
-
//
|
|
68
|
-
// circuit leads itself, with no agent (the proof, the checks, the final pass, the integration,
|
|
69
|
-
// the queue): the register's lines of the role `circuit`, which no block shows and no role of the
|
|
70
|
-
// flow counts as a passage, and the step under way of a running circuit (`mene` in its state) up
|
|
71
|
-
// to now; they count out of the turns of the ticket's agents, so the ticket's time is the union
|
|
72
|
-
// of both, each instant once, and they spend no tokens.
|
|
73
|
-
// - Progress: the line of a ticket whose circuit runs an automatic step gives the progress of
|
|
74
|
-
// its pass, read in the progress directory its state names (scripts/avancement.mjs), in
|
|
75
|
-
// figures, as Bazel's counter of actions: « faits/prévus · <durée> » since the start of the
|
|
76
|
-
// pass, after the counters of its loops, or in their place when room lacks (the subject is cut,
|
|
77
|
-
// never the figures nor the ticket's number); the queue (5.2) shows no wait for a CI. Past FIGEE
|
|
78
|
-
// without a sign, « figée <durée> · faits/prévus », the time since its last sign, signed ⛔ in
|
|
79
|
-
// the tone of an alert.
|
|
80
|
-
// - The parts of the machine (scripts/places-de-la-machine.mjs, read by `lireLaMesure`), as Slurm's
|
|
81
|
-
// `squeue` names who holds what and what a job waits for. A part held or waited for by a circuit
|
|
82
|
-
// AGENTS shows on a line (a circuit, a ticket led in direct, a ticket worked out of a circuit,
|
|
83
|
-
// an agent) stands on that ticket's line, « 🔒 » (it holds a part) or « ⏳ » (it waits for one)
|
|
84
|
-
// after the head, before the subject, never in place of its sign: « · <sorte> · 2 cœurs ·
|
|
85
|
-
// <durée> » since it took its part, with « ⚠ » and what it consumes beyond its part when it
|
|
86
|
-
// does, « · <sorte> figée <durée> » past FIGEE without a sign, « · attend 2 cœurs · 26 réservés
|
|
87
|
-
// sur 28 · <durée> » for a wait, the kind in lower case; a circuit adds faits/prévus, and says
|
|
88
|
-
// it in place of the progress of its pass. The block at the head of AGENTS (`lignesDesParts`)
|
|
32
|
+
// `.claude/worktrees/<ticket>.bilan.json`) opens on its key figures.
|
|
33
|
+
// - CHANTIER: a root epic with work in progress, its tree of mothers with their work tickets done
|
|
34
|
+
// over all; a closed ticket, mother included, counts without a line, and a closed mother's
|
|
35
|
+
// open tickets take her place. The other chantiers, one line each.
|
|
36
|
+
// - Running: a finished agent is measured from the register (scripts/registre.mjs), a running one
|
|
37
|
+
// from its transcript: a role agent launched in a shell while its envelope's process runs, a
|
|
38
|
+
// sub-agent or a session whose transcript moved in the last 2 minutes. With an end in the
|
|
39
|
+
// register, an agent runs again only when an incoming message follows its latest end strictly.
|
|
40
|
+
// A sub-agent also runs while its last tool call awaits its answer, its transcript having
|
|
41
|
+
// moved in the last 30 minutes; the board reads no transcript older than 30 minutes.
|
|
42
|
+
// - Time: a transcript's working time is the union of its turns (`horsDuTour` leaves out what a
|
|
43
|
+
// resumption writes before its incoming message), read where the board stopped, its reading in
|
|
44
|
+
// the cache file. A ticket's time adds the steps its circuit leads itself (the register's lines
|
|
45
|
+
// of the role `circuit`, and the step under way, `mene`, up to now), each instant once, with no
|
|
46
|
+
// tokens.
|
|
47
|
+
// - Progress: the line of a ticket whose circuit runs an automatic step gives « faits/prévus ·
|
|
48
|
+
// <durée> » read in the progress directory its state names (scripts/avancement.mjs), as Bazel's
|
|
49
|
+
// counter of actions; the subject is cut when room lacks, never the figures nor the number.
|
|
50
|
+
// Past FIGEE without a sign: « figée <durée> · faits/prévus », signed ⛔.
|
|
51
|
+
// - Parts (scripts/places-de-la-machine.mjs, read by `lireLaMesure`), as Slurm's `squeue` names
|
|
52
|
+
// who holds what: a part held or waited for stands on the ticket's line, « 🔒 » (holds) or « ⏳ »
|
|
53
|
+
// (waits) after the head, before the subject: « · <sorte> · 2 cœurs · <durée> », with « ⚠ » when
|
|
54
|
+
// it consumes beyond its part, « · <sorte> figée <durée> » past FIGEE, « · attend 2 cœurs · 26
|
|
55
|
+
// réservés sur 28 · <durée> » for a wait. The block at the head of AGENTS (`lignesDesParts`)
|
|
89
56
|
// keeps the budget taken, « Parts · 2 passes · 6 sur 8 cœurs · 11 sur 16 Go », which counts
|
|
90
|
-
// every pass that holds a part,
|
|
91
|
-
//
|
|
92
|
-
//
|
|
93
|
-
//
|
|
94
|
-
//
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
//
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
//
|
|
107
|
-
//
|
|
108
|
-
// its columns (`colonnes`), ⏳ and ⛔ two.
|
|
109
|
-
// - Alerts: one alert per open night ticket (🌙, its subject, then its number), per circuit that
|
|
110
|
-
// waits for the supervisor (⏳, how long), a shell agent silent for 10 minutes, a ticket in
|
|
111
|
-
// progress without anything running for 30 minutes (💤), each with its state (`etat`).
|
|
112
|
-
// - Tones: each state the board shows has one tone, defined once (`TONS`), which every line and
|
|
113
|
-
// every alert takes, whatever its duration or the line that shows it: red for what asks for a
|
|
114
|
-
// correction (frozen, a fault, a question with no live wait, a ceiling refused), yellow for what
|
|
115
|
-
// waits for someone (the supervisor, the owner), grey for what waits for the machine (a place,
|
|
116
|
-
// a part, the disk, the CI), cyan for what runs.
|
|
57
|
+
// every pass that holds a part, a ticket the board does not show included, then the passes with
|
|
58
|
+
// no ticket (« 🔒 <sorte> · <projet> · 4 cœurs · 8 Go »), then each wait in the order of its
|
|
59
|
+
// rank (« ⏳ <sorte> · <projet> · attend <raison> »). Such a line is marked `avancement`, which
|
|
60
|
+
// the pane measures again more often.
|
|
61
|
+
// - Signs: a ticket's line in AGENTS takes one of three, by the tone of its state: ▶ its step
|
|
62
|
+
// works (cyan; ▷ in a short circuit, a ticket led in direct included); ⏸ it waits, the reason on
|
|
63
|
+
// its right (« attend une place », « verrou », « disque », « démarre » in grey, waiting for the
|
|
64
|
+
// machine; « question au superviseur », « question au responsable », « arrêté » in yellow,
|
|
65
|
+
// waiting for someone); ⛔ it stopped on a fault or its pass is frozen (red). At the head of
|
|
66
|
+
// AGENTS, 🔒 and ⏳ for a pass with no ticket, 🌙 the night under way. Alerts: 💤 a ticket
|
|
67
|
+
// claimed with nothing running, 🌙 a red night, ⚠ the others. A sign is followed by a space; the
|
|
68
|
+
// width of a line counts its columns (`colonnes`), ⏳ and ⛔ two.
|
|
69
|
+
// - Alerts: one per open night ticket (🌙), per circuit that waits for the supervisor (⏳, how
|
|
70
|
+
// long), a shell agent silent for 10 minutes, a ticket in progress with nothing running for 30
|
|
71
|
+
// minutes (💤), each with its state (`etat`).
|
|
72
|
+
// - Tones (`TONS`), defined once, taken by every line and alert: red for what asks for a
|
|
73
|
+
// correction, yellow for what waits for someone, grey for what waits for the machine, cyan for
|
|
74
|
+
// what runs.
|
|
117
75
|
import { execFileSync } from 'node:child_process';
|
|
118
76
|
import {
|
|
119
77
|
closeSync,
|
|
@@ -758,8 +716,7 @@ export function lireVivant({ racine, home, prefix, maintenant, ps, cache = {} })
|
|
|
758
716
|
* Whether the circuit <c>, as scripts/circuits-du-serveur.mjs reads it, waits for the supervisor:
|
|
759
717
|
* not running on its own, not integrated, and ended without its issue, on a question, or stopped (any stop but the
|
|
760
718
|
* supervisor's own « arrete », « à repasser » included: the supervisor resumes it once the machine
|
|
761
|
-
* is free). The
|
|
762
|
-
* one rule of the questions that wait for the supervisor (grillhouse-pq6), which the board reads,
|
|
719
|
+
* is free). The one rule of the questions that wait for the supervisor, which the board reads,
|
|
763
720
|
* and `questionsEnAttente` of scripts/superviseur.mjs, the one source of the opening and of the
|
|
764
721
|
* greffon's reading of the questions.
|
|
765
722
|
* @param {{ vivant: boolean, integre?: boolean, interrompu: boolean, question: string | null, arret: string | null }} c
|
|
@@ -1155,7 +1112,7 @@ export function assembler({
|
|
|
1155
1112
|
...(m.tours ? { travail: partDuJour(m.tours) } : {}),
|
|
1156
1113
|
...(m.minutes ? { jetons: jetonsDuJour(m.minutes) } : {}),
|
|
1157
1114
|
}));
|
|
1158
|
-
// The discoveries (label `decouverte
|
|
1115
|
+
// The discoveries (label `decouverte`): each counts in one case, the first that
|
|
1159
1116
|
// applies. « rejetés » and « validés » count only since the day's marker <jour>; « new » and
|
|
1160
1117
|
// « →check », states that await the owner, do not filter by it.
|
|
1161
1118
|
const aLabel = (t, ...ls) => ls.some(l => (t.labels ?? []).includes(l));
|
|
@@ -1289,7 +1246,7 @@ export function assembler({
|
|
|
1289
1246
|
});
|
|
1290
1247
|
}
|
|
1291
1248
|
const debutJour = jour;
|
|
1292
|
-
// The way of a ticket done
|
|
1249
|
+
// The way of a ticket done: `direct` when labelled so; else the way its kept
|
|
1293
1250
|
// results give (`voies`, `voiesDesCircuits`: `court` for the short circuit, else `complet`); else
|
|
1294
1251
|
// `complet` when a circuit led a step of it (the register) or is read for it; else `direct`,
|
|
1295
1252
|
// closed with no circuit.
|
|
@@ -1645,7 +1602,7 @@ function temoinDe(c, maintenant) {
|
|
|
1645
1602
|
}
|
|
1646
1603
|
|
|
1647
1604
|
// A ticket's time and tokens, « 12 min · 310 k »; nothing when both are zero.
|
|
1648
|
-
// The sign of a ticket done by its way
|
|
1605
|
+
// The sign of a ticket done by its way: a full circuit, a short one (its gesture
|
|
1649
1606
|
// played by a command, 1.1, or written by hand), a ticket led directly.
|
|
1650
1607
|
export const SIGNE_DE_LA_VOIE = Object.freeze({ complet: '●', court: '○', direct: '✎' });
|
|
1651
1608
|
|
|
@@ -1968,7 +1925,7 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
1968
1925
|
L(cadre(`${i ? retrait : colonneDe(p.etiquette)}${x.texte}`, '', largeur), x.ton)
|
|
1969
1926
|
);
|
|
1970
1927
|
}
|
|
1971
|
-
// The discoveries of the day, summed across the projects
|
|
1928
|
+
// The discoveries of the day, summed across the projects.
|
|
1972
1929
|
const d96 = t.decouvertes ?? { new: 0, check: 0, rejetes: 0, valides: 0 };
|
|
1973
1930
|
L(
|
|
1974
1931
|
cadre(
|
|
@@ -1997,7 +1954,7 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
1997
1954
|
for (const x of lignesDActeurs(c, comptesDAgents(t).arretes)) {
|
|
1998
1955
|
L(cadre(x.texte, '', largeur), x.ton);
|
|
1999
1956
|
}
|
|
2000
|
-
// The discoveries of the day, one count per case
|
|
1957
|
+
// The discoveries of the day, one count per case: always shown, at 0 when
|
|
2001
1958
|
// nothing counts, like the other head lines.
|
|
2002
1959
|
const d = g.decouvertes ?? { new: 0, check: 0, rejetes: 0, valides: 0 };
|
|
2003
1960
|
L(
|
|
@@ -2191,7 +2148,7 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2191
2148
|
...[...(t.circuits ?? []), ...(t.horsCircuit ?? []), ...montres].map(x => nomme(x).length)
|
|
2192
2149
|
);
|
|
2193
2150
|
// A ticket's line in AGENTS: « <signe> <numéro> <sujet> … <droite> »; on several projects'
|
|
2194
|
-
// board « <[projet]> <id> <sujet> … <signe> <droite>
|
|
2151
|
+
// board « <[projet]> <id> <sujet> … <signe> <droite> ».
|
|
2195
2152
|
// The icon of its pass (🔒 holds a part, ⏳ waits for one) follows the head, before the subject.
|
|
2196
2153
|
const teteDe = (signe, x) =>
|
|
2197
2154
|
`${
|
|
@@ -2794,7 +2751,7 @@ export function dossierCommun(racine) {
|
|
|
2794
2751
|
}
|
|
2795
2752
|
}
|
|
2796
2753
|
|
|
2797
|
-
// The file of the day's marker
|
|
2754
|
+
// The file of the day's marker, beside the board's cache; null without a common
|
|
2798
2755
|
// dir. Unversioned, out of the worktree: the board does not reset at midnight.
|
|
2799
2756
|
const fichierDuRepere = commun => commun && path.join(commun, 'tableau-repere.json');
|
|
2800
2757
|
|
|
@@ -2823,7 +2780,7 @@ export function lireLeRepere(commun, maintenant) {
|
|
|
2823
2780
|
}
|
|
2824
2781
|
|
|
2825
2782
|
// Sets the day's marker of the project at <racine> to <quand> (now by default), purging FAITS
|
|
2826
|
-
// AUJOURD'HUI and the « rejetés » and « validés » cases up to it (
|
|
2783
|
+
// AUJOURD'HUI and the « rejetés » and « validés » cases up to it (`/newday`).
|
|
2827
2784
|
export function poserLeRepere(racine, quand = Date.now()) {
|
|
2828
2785
|
const commun = dossierCommun(racine);
|
|
2829
2786
|
if (!commun) {
|
|
@@ -2957,7 +2914,7 @@ function lireLesPlaces() {
|
|
|
2957
2914
|
}
|
|
2958
2915
|
}
|
|
2959
2916
|
|
|
2960
|
-
// The boards of several projects as one
|
|
2917
|
+
// The boards of several projects as one, as the multi-root explorer of VS Code
|
|
2961
2918
|
// keeps one view and files each root under its name: <lus> holds each project's label
|
|
2962
2919
|
// (`etiquette`, its ticket prefix), the root of its main tree (`racine`, by which the places of
|
|
2963
2920
|
// its circuits are counted) and its board (`t`) or the fault that keeps it out (`erreur`),
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
// wait for, replayed from the cache when nothing moved, side by side within the cores of the part
|
|
44
44
|
// the checks play on (`tachesCoteACote`, `--concurrency`). No guard script, or no task waited for:
|
|
45
45
|
// nothing plays, 0. Its exit code is the runner's, 1 for a plan the runner refuses.
|
|
46
|
+
//
|
|
47
|
+
// The mechanism: docs/architecture/tests.md §3.1 (the launcher of the tasks of the graph), §5.1
|
|
48
|
+
// and §5.4.
|
|
46
49
|
import { spawnSync } from 'node:child_process';
|
|
47
50
|
import { closeSync, openSync, readFileSync, writeFileSync } from 'node:fs';
|
|
48
51
|
import { availableParallelism } from 'node:os';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The ticket of a circuit, read and written as the circuit and its activities share it
|
|
2
|
-
// (scripts/circuit.mjs, scripts/seances.mjs): its comments and its description in Beads, the
|
|
2
|
+
// (scripts/circuit.mjs, scripts/seances.mjs; circuit.md §3.1, « Actes du circuit »): its comments and its description in Beads, the
|
|
3
3
|
// sheets and the results of its sessions (`<ticket>.fiches.jsonl`), its log, the components of its
|
|
4
4
|
// repository, and the stop of the circuit (`Arret`). Every function takes the circuit's context
|
|
5
5
|
// <ctx> (`contexte` of scripts/circuit.mjs: `bd`, `ticket`, `fiches`, `journal`, `copie`,
|
package/scripts/transitions.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// The
|
|
2
|
-
//
|
|
3
|
-
// actions: from the state of the run, the circuit's
|
|
4
|
-
//
|
|
1
|
+
// The decision rule of the circuit of a ticket (scripts/circuit.mjs; circuit.md §2.3, §3.1 « Règle
|
|
2
|
+
// de décision »), with no input nor output, as a workflow of Temporal decides on the results of
|
|
3
|
+
// its activities and a reducer of Redux on its actions: from the state of the run, the circuit's
|
|
4
|
+
// memory and the facts read so far, the step that follows (the steps and their loops: circuit.md
|
|
5
|
+
// §5.1, ./etapes.mjs). The circuit reads the facts and interprets what this module returns; this module
|
|
5
6
|
// reads no file, launches no process and imports no module that does (a guard holds it:
|
|
6
7
|
// tests/unit/transitions.spec.ts).
|
|
7
8
|
//
|
|
@@ -132,9 +133,8 @@ export const etapeApresLePlan = ({ sorte, sansTests, demande = false }) =>
|
|
|
132
133
|
|
|
133
134
|
// The step after a proof that passes: the developpeur on a red (<rouges>), on a finding of the
|
|
134
135
|
// reviewer still open for him (<pourLeDeveloppeur>), or under a plan « comportement
|
|
135
|
-
// tests-adaptés » (<inchange>), whose lot has code to write though nothing turns red, as a
|
|
136
|
-
//
|
|
137
|
-
// no session of the developpeur.
|
|
136
|
+
// tests-adaptés » (<inchange>), whose lot has code to write though nothing turns red, as a
|
|
137
|
+
// reorganisation does; else the checks, a lot of tests alone, with no session of the developpeur.
|
|
138
138
|
export const apresLaPreuve = ({ rouges, pourLeDeveloppeur, inchange }) =>
|
|
139
139
|
rouges > 0 || pourLeDeveloppeur || inchange ? CODE : CONTROLES;
|
|
140
140
|
|
|
@@ -150,8 +150,8 @@ export function suiteDuRougeDeLecture(role, tentative) {
|
|
|
150
150
|
export const ouverts = (constats, role) => (constats ?? []).filter(c => c.role === role);
|
|
151
151
|
|
|
152
152
|
// The stop for the findings open (<constats>) that go to the testwriter when the plan skips him
|
|
153
|
-
// (<sansTests>), or null: no new pass treats them, as a CI fails fast on a step it cannot run
|
|
154
|
-
//
|
|
153
|
+
// (<sansTests>), or null: no new pass treats them, as a CI fails fast on a step it cannot run.
|
|
154
|
+
// A stop `relecture-arret` whose report names each finding, the role skipped
|
|
155
155
|
// and why, then the verdict <texte>; its piece, the findings' pieces; its question, declare the
|
|
156
156
|
// tests of the package or settle the finding.
|
|
157
157
|
export function arretDuTestwriterSaute({ constats, sansTests, paquets }, texte) {
|
|
@@ -208,8 +208,8 @@ class Besoin {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
// The plan of a ticket, its decisions as the circuit and the workflow of a ticket take them
|
|
212
|
-
//
|
|
211
|
+
// The plan of a ticket, its decisions as the circuit and the workflow of a ticket take them:
|
|
212
|
+
// the step of the plan that follows its state <e> (`{ plan, lu, posees,
|
|
213
213
|
// reponse }`, the explorateur's sheet, the questionneur's, the questions put, the explorateur's
|
|
214
214
|
// answer): `explorateur`, `questionneur`, `reponse` (questions were put), then `conclure`.
|
|
215
215
|
export const pasDuPlan = e =>
|
|
@@ -1187,10 +1187,10 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1187
1187
|
`Le ticket est mécanique (${ticket.sorte.raison}) : ni testwriter ni développeur ne lève ce rouge du lot de sa commande. Le superviseur fait corriger le lot (\`--depuis developpeur\`, le rouge en \`--contexte\`), corrige le geste dans la copie puis \`--reprendre\`, ou arrête le circuit (\`--arreter\`).`
|
|
1188
1188
|
);
|
|
1189
1189
|
}
|
|
1190
|
-
// A run
|
|
1191
|
-
//
|
|
1192
|
-
//
|
|
1193
|
-
//
|
|
1190
|
+
// A run without the marker `attribution-avant-sans-livraison` of the workflow of a ticket
|
|
1191
|
+
// (src/temporal/circuit/deroule.ts) keeps the former order: the stop of a developpeur who had
|
|
1192
|
+
// nothing to deliver before any attribution, the fact « portes » not read, as its history
|
|
1193
|
+
// replays.
|
|
1194
1194
|
if (k.rouge && rien && !marqueurs.attributionAvantSansLivraison) {
|
|
1195
1195
|
return arret('sans-livraison', rien, CODE);
|
|
1196
1196
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
2
|
+
// The guard of the one delivery per ticket, on the way of a lot to main (packages/grillhouse/docs/
|
|
3
|
+
// architecture/entree.md §5.1: a lot is one commit, closed on entry): refuses a commit message whose title line names a ticket
|
|
3
4
|
// an earlier commit already delivers, unless that ticket is open in Beads. An open ticket that
|
|
4
5
|
// already has its delivery is a ticket reopened for a fix led by hand: the commit is a correction
|
|
5
6
|
// and passes. The queue of the tickets never starts such a ticket again (its lot is on main,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The durable verdict of a project's night
|
|
1
|
+
// The durable verdict of a project's night (packages/grillhouse/docs/architecture/entree.md §3.1
|
|
2
|
+
// « Verdict de la nuit », §4.1, §5.3), in two parts: the night plays on two machines, the part
|
|
2
3
|
// of PC2 (the tranches of the Nuit flow, which PC3 reads by `gh`) and the part of PC3 (the tests of
|
|
3
4
|
// the poste, scripts/nuit.sh). Each part is noted at its end in `<git common dir>/nuit/verdict` (PC3)
|
|
4
5
|
// and `<git common dir>/nuit/verdict-pc2` (PC2), and the board reads them without a server. A part is
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The lock of a file shared between processes: the file `<verrou>` stands while someone holds it.
|
|
2
2
|
// Taken by the integration (`.git/integration.lock`), by the register (`registre.jsonl.verrou`)
|
|
3
3
|
// and by the creation of a ticket (`.beads/grillhouse-ticket.lock`, scripts/ticket.mjs).
|
|
4
|
+
// Architecture: docs/architecture/machine.md (§4.1).
|
|
4
5
|
//
|
|
5
6
|
// - A lock is created whole and exclusively: its mark (the owner's process number, then a token
|
|
6
7
|
// unique to the taking) is written to a private file that is linked to `<verrou>`; the link
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
// out of the session's temporary directory: an output redirection (`>`, `>>`, `>|`, `&>`, `1>`…)
|
|
6
6
|
// or `tee`. A file of the repository is written by the tools of writing (Write, Edit), which the
|
|
7
7
|
// role's write lock (verrou.mjs) judges; a rule of Claude Code does not see a redirection, and a
|
|
8
|
-
// session in its envelope runs without the check of writes.
|
|
8
|
+
// session in its envelope runs without the check of writes. Architecture:
|
|
9
|
+
// docs/architecture/machine.md (§3.1, §5.5 « Les verrous dans la séance »).
|
|
9
10
|
//
|
|
10
11
|
// - Allowed targets: the null and standard devices (`/dev/null`, `/dev/stdout`, `/dev/stderr`,
|
|
11
12
|
// `/dev/fd/…`), a duplication of a descriptor (`2>&1`, `>&2`), and a path under the temporary
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// its reason on stderr, the write of the code or the tests of a package by a session that is no
|
|
6
6
|
// agent of the frame under its envelope: the supervisor, the person who starts Claude Code by hand,
|
|
7
7
|
// a session that lost its variable of envelope (`GRILLHOUSE_ENVELOPPE`, refusal by default).
|
|
8
|
+
// Architecture: docs/architecture/machine.md (§3.3, §5.5 « Les verrous dans la séance »).
|
|
8
9
|
//
|
|
9
10
|
// - A write of a document (a `.md` file) passes: the documents of a package (CADRE.md,
|
|
10
11
|
// INTERFACE.md, ARCHITECTURE.md, CHANGELOG, the skills and the charter of `mods/grillhouse`) and
|