@roomi-fields/grillhouse 0.49.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +38 -0
- package/bin/grillhouse.mjs +2 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +5 -0
- package/cadre/templates/projet/.github/workflows/nuit.yml +6 -4
- package/cadre/templates/projet/CLAUDE.md +13 -96
- package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
- package/charte.md +88 -96
- package/dist/temporal/acte.d.ts +9 -0
- package/dist/temporal/acte.js +45 -21
- 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 +35 -13
- 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/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-de-la-machine.mjs +10 -16
- package/scripts/avancement.mjs +2 -0
- package/scripts/base-des-workflows.mjs +2 -1
- package/scripts/binaires.mjs +2 -1
- package/scripts/branche-de-nuit.mjs +2 -1
- package/scripts/cadre.mjs +12 -3
- 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/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 +2 -1
- package/scripts/disque-des-copies.mjs +1 -1
- package/scripts/donnees-cles.mjs +2 -0
- package/scripts/droits.mjs +12 -10
- 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 +113 -89
- package/scripts/enveloppe/lancer.sh +5 -3
- package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
- package/scripts/enveloppe/travail-de-la-copie.mjs +11 -16
- 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 +39 -0
- 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 +5 -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 +17 -4
- 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 +12 -5
- package/scripts/langages/typescript/tests-du-poste.mjs +60 -21
- 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/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/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/nuit.sh +48 -15
- 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/regles-des-places.mjs +4 -6
- package/scripts/repli-de-la-nuit.mjs +107 -35
- 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 +3 -0
- package/scripts/session-start.sh +0 -6
- 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/style-a-l-ecriture.mjs +2 -0
- package/scripts/tableau-des-composants.mjs +5 -7
- package/scripts/tableau.mjs +6 -5
- package/scripts/taches-du-graphe.mjs +3 -0
- package/scripts/ticket-du-circuit.mjs +1 -1
- package/scripts/ticket.mjs +3 -0
- package/scripts/transitions.mjs +30 -19
- 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/architecte/SKILL.md +203 -0
- package/skills/architecte/references/exemple-d-architecture.md +159 -0
- 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 +179 -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 +10 -8
- package/skills/testwriter/SKILL.md +8 -11
|
@@ -1,110 +1,87 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The envelope of a role agent: runs a command (the agent's `claude` session) inside a bwrap
|
|
3
|
-
// sandbox that shows the agent the whole copy and opens in writing only the packages of its plan
|
|
4
|
-
//
|
|
5
|
-
//
|
|
3
|
+
// sandbox that shows the agent the whole copy and opens in writing only the packages of its plan.
|
|
4
|
+
// `npx grillhouse enveloppe <copie> <paquets> <rôle> -- <commande…>`: <copie> is the agent's git
|
|
5
|
+
// worktree, <paquets> the plan (the paths it names inside it, in the variable's form,
|
|
6
|
+
// `ecrireLaListe` of paquets-du-plan.mjs), <rôle> the agent's role. Architecture:
|
|
7
|
+
// docs/architecture/machine.md (§2.5, §5.5 « Les montages de l'enveloppe »).
|
|
6
8
|
//
|
|
7
9
|
// - The root `/` is read-only, the copy included, its indexes (`.codegraph`, `.rtfm`) and every
|
|
8
|
-
// package outside the plan
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
// agent claims, plans, hands over and files what it finds. Every `.git`, the copy's included,
|
|
17
|
-
// stays read-only: the agent reads the git state and delivers a patch (`git diff`, and
|
|
18
|
-
// `git diff --no-index /dev/null <file>` for a new file); it never commits.
|
|
10
|
+
// package outside the plan. Written: the packages of the plan; a `/tmp` empty and proper to the
|
|
11
|
+
// session, where only the scratchpad directory of the copy comes back, the session's working
|
|
12
|
+
// directory inside it (`dossierDeTravail`; Claude Code's scratchpads root, `CLAUDE_CODE_TMPDIR`
|
|
13
|
+
// else the launch's temporary directory); the npm cache; the Claude session state (`~/.claude`
|
|
14
|
+
// and the copy's project directory), whose configuration, skills, plugins and other projects
|
|
15
|
+
// stay read-only; the tickets base (the main tree's `.beads/`). `~/.claude.json` is a throwaway
|
|
16
|
+
// copy. Every `.git`, the copy's included, stays read-only: the agent delivers a patch
|
|
17
|
+
// (`git diff`, and `git diff --no-index /dev/null <file>` for a new file); it never commits.
|
|
19
18
|
// - Where the tools of the project's language write is what its module declares (`sorties`,
|
|
20
|
-
// scripts/jointure.d.ts; `sortiesDuLangage`)
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
//
|
|
32
|
-
// the
|
|
33
|
-
// `~/.
|
|
34
|
-
// git and the session's tools) and the repository. No socket of the session comes back. Of
|
|
35
|
-
// the machine's credentials, only claude's own are in sight: the file of the remote cache of
|
|
36
|
-
// the poste (`~/.config/grillhouse/`, scripts/fichier-du-poste.mjs) stays out, and the
|
|
37
|
-
// session's runs keep to the local cache of the main tree that every copy shares.
|
|
19
|
+
// scripts/jointure.d.ts; `sortiesDuLangage`): its stores, in the main tree (`//…`, TypeScript's
|
|
20
|
+
// cache of Turborepo, shared by every copy) or in the home (`~/…`, cargo's registry, git
|
|
21
|
+
// dependencies, advisories and the lock and cache files at the root of `~/.cargo`), are
|
|
22
|
+
// written; what its tools read (`~/.cargo` with its `env`, its configuration and its binaries,
|
|
23
|
+
// and `~/.rustup`) comes back read-only under them; its outputs in the copy (cargo's `target`)
|
|
24
|
+
// come back in writing; its outputs proper to the session (TypeScript's `.turbo` and
|
|
25
|
+
// `.cache-outils`, the cache of Vite) are empty and proper to it. Each written path is created
|
|
26
|
+
// on disk before the session, a directory or, without a trailing `/` in the module's list, an
|
|
27
|
+
// empty file, so that bwrap mounts it.
|
|
28
|
+
// - The home and the session directories (`$XDG_RUNTIME_DIR`, `/run/user/<uid>`) start empty and
|
|
29
|
+
// sealed read-only; the home gets back `~/.claude`, `~/.claude.json`, the npm cache, the paths
|
|
30
|
+
// of `MAISON_EN_LECTURE` (claude, node, git and the session's tools) and the repository. No
|
|
31
|
+
// socket of the session comes back. The file of the remote cache of the poste
|
|
32
|
+
// (`~/.config/grillhouse/`, scripts/fichier-du-poste.mjs) stays out.
|
|
38
33
|
// - A project that names its published version (`grillhouse.outil`) gets `~/.cache/grillhouse/outil`
|
|
39
34
|
// read-only, the version installed by the envelope before the session starts: the write lock
|
|
40
35
|
// runs on that version, never on the code of the copy it guards.
|
|
41
36
|
// - The tools of the project (`grillhouse.outils` of the package.json of the main tree, never of
|
|
42
|
-
// the copy
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
//
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
// `
|
|
61
|
-
//
|
|
62
|
-
// (
|
|
63
|
-
//
|
|
64
|
-
// `NPM_TOKEN`…) enters, by name or by argument. The session also gets `GRILLHOUSE_ENVELOPPE`, the
|
|
65
|
-
// packages of the plan (`paquets-du-plan.mjs`): the frame's commands build, judge and write those
|
|
66
|
-
// packages only, and its lock refuses a write out of them. A declared variable that names a path
|
|
67
|
-
// (`VARIABLES_DE_CHEMIN`) enters only when its path is in sight inside the envelope, tested there
|
|
68
|
-
// before the command runs. The session has its own process space: it reads the environment of
|
|
69
|
-
// no process of the machine.
|
|
37
|
+
// the copy; `{ "<VARIABLE>": "<chemin>" }`, read by scripts/outils-cles.mjs): each path comes
|
|
38
|
+
// back read-only after the declared paths of the home, before the copy and the packages of the
|
|
39
|
+
// plan, which come back in writing over it, and each variable reaches the session, the path
|
|
40
|
+
// resolved. A tool never covers a mount of the envelope: a path is refused when it is `/`, the
|
|
41
|
+
// home or holds it, holds the main tree, `/tmp`, the temporary directories, `~/.claude`, the
|
|
42
|
+
// scratchpads, the npm cache or a session directory, or lies under a hidden directory of the
|
|
43
|
+
// first level of the home (`~/.ssh`, `~/.gnupg`, `~/.aws`, `~/.config`…) but `~/.local` and
|
|
44
|
+
// `~/.cache`, or lies under or holds the keyrings `~/.local/share/keyrings`; a link is judged
|
|
45
|
+
// by its target too. A faulty key refuses the envelope, by its name, before anything is
|
|
46
|
+
// prepared.
|
|
47
|
+
// - The session gets only the environment the envelope declares (`environnementDeLaSeance`): the
|
|
48
|
+
// base of a login session, claude's own configuration and credentials (`ANTHROPIC_*`,
|
|
49
|
+
// `CLAUDE_CODE_OAUTH_TOKEN`), the author of its comments at the ticket (`BEADS_ACTOR`), the npm
|
|
50
|
+
// cache, `npm_config_ignore_scripts=true` (npm runs no lifecycle script; `npm test` and
|
|
51
|
+
// `npm run <script>` still run their script, without its `pre` or `post`), and `TMPDIR`, `TMP`
|
|
52
|
+
// and `TEMP`, the session's working directory (under a launch, the temporary directory of the
|
|
53
|
+
// ticket, scripts/enveloppe/lancer.sh). No other variable of the machine (`GH_TOKEN`,
|
|
54
|
+
// `NPM_TOKEN`…) enters. It also gets `GRILLHOUSE_ENVELOPPE`, the packages of the plan
|
|
55
|
+
// (`paquets-du-plan.mjs`): the frame's commands build, judge and write those packages only, and
|
|
56
|
+
// its lock refuses a write out of them. A declared variable that names a path
|
|
57
|
+
// (`VARIABLES_DE_CHEMIN`) enters only when its path is in sight inside the envelope. The
|
|
58
|
+
// session has its own process space.
|
|
70
59
|
// - A declared path that is a symbolic link, or that holds one among its components, comes back as
|
|
71
60
|
// that link, and its target with it (`avecLiens`); a store, a read or a written output is mounted
|
|
72
|
-
// at its real path, never at a link
|
|
61
|
+
// at its real path, never at a link.
|
|
73
62
|
// - A worktree of the repository under an emptied directory (the home, `/tmp`) comes back
|
|
74
|
-
// read-only, `.git` included
|
|
75
|
-
//
|
|
76
|
-
// circuit removes it at any moment, and the session leaves without it.
|
|
63
|
+
// read-only, `.git` included. The copy of another ticket is an optional mount
|
|
64
|
+
// (`--ro-bind-try`): its circuit removes it at any moment, and the session leaves without it.
|
|
77
65
|
// - An envelope on the main tree is refused, so is a plan that names no package, and so is a path
|
|
78
66
|
// of the plan that does not exist; when it is the name of a package of the copy, the refusal
|
|
79
67
|
// gives its path.
|
|
80
|
-
// - <copie> is the agent's git worktree; <paquets> is the plan, the paths it names inside it
|
|
81
|
-
// (`packages/a`, or `src/parser` in a one-package project), in the variable's form
|
|
82
|
-
// (`ecrireLaListe` of paquets-du-plan.mjs); <rôle> is the agent's role (`testwriter`,
|
|
83
|
-
// `developpeur`…).
|
|
84
68
|
// - The plan writes, for each of its paths, the component of the copy that holds it (`ecritsDuPlan`,
|
|
85
69
|
// the components of the module of the language, `paquetsDuLangage`: a package of TypeScript, a
|
|
86
|
-
// crate of cargo)
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
// one-package project included (a component of the module typescript), as does a package out of
|
|
93
|
-
// the frame (`docs/agents/hors-cadre.txt`). A path that no component holds (a folder of the
|
|
94
|
-
// root, `scripts`; `.`) writes the package that holds it, the root: the copy stays written, its
|
|
95
|
-
// `.git` read-only.
|
|
70
|
+
// crate of cargo); the rest of the copy is read-only, the folders of its root that no package
|
|
71
|
+
// holds (`libraries/`, `spec/`) included, and a write there fails on « Read-only file system ».
|
|
72
|
+
// A component writes itself alone, `src/parser` of a one-package project included, as does a
|
|
73
|
+
// package out of the frame (`docs/agents/hors-cadre.txt`). A path that no component holds (a
|
|
74
|
+
// folder of the root, `scripts`; `.`) writes the package that holds it, the root: the copy
|
|
75
|
+
// stays written, its `.git` read-only.
|
|
96
76
|
// - The package of the shared test material is every component of <copie> whose `package.json`
|
|
97
77
|
// exports `./test-fixtures` (`matieres` of the module of the language). It is mounted after the
|
|
98
78
|
// packages of the plan: written for the `testwriter`, read-only for every other role, in the
|
|
99
79
|
// plan or not. For such a role, where a run of its tests writes in it (the module's outputs
|
|
100
80
|
// proper to the session: Turborepo's task logs, Vite's cache) is an empty directory proper to
|
|
101
|
-
// the session,
|
|
102
|
-
// trace. The envelope creates each of them on disk, empty, before the session, so that bwrap
|
|
103
|
-
// mounts over it inside the read-only package.
|
|
81
|
+
// the session, created on disk before it, so that bwrap mounts over it.
|
|
104
82
|
// - The lock files of the versions at the root of the copy (`manifestes.verrous` of the module of
|
|
105
|
-
// the language: cargo's Cargo.lock)
|
|
106
|
-
//
|
|
107
|
-
// alone, when the plan leaves the root read-only and the file exists.
|
|
83
|
+
// the language: cargo's Cargo.lock) come back in writing for the `testwriter` alone, when the
|
|
84
|
+
// plan leaves the root read-only and the file exists.
|
|
108
85
|
// - The exit codes are named in `codes.mjs`.
|
|
109
86
|
import { execFileSync, spawnSync } from 'node:child_process';
|
|
110
87
|
import {
|
|
@@ -118,6 +95,7 @@ import {
|
|
|
118
95
|
import os from 'node:os';
|
|
119
96
|
import path from 'node:path';
|
|
120
97
|
import { pathToFileURL } from 'node:url';
|
|
98
|
+
import { ROLES } from '../droits.mjs';
|
|
121
99
|
import { langageDeLaCopie } from '../langages.mjs';
|
|
122
100
|
import { CODE_REFUS, CODE_USAGE } from './codes.mjs';
|
|
123
101
|
import {
|
|
@@ -206,11 +184,13 @@ export function preparerLesSorties({ copie, paquets, paquetsDeLaCopie, matieres,
|
|
|
206
184
|
}
|
|
207
185
|
// The machine's temporary directory: an empty one, proper to the session, replaces it.
|
|
208
186
|
const TEMPORAIRE = '/tmp';
|
|
209
|
-
// What stays read-only inside `~/.claude`: the configuration and what it loads.
|
|
187
|
+
// What stays read-only inside `~/.claude`: the configuration and what it loads. The user's own
|
|
188
|
+
// charter (`CLAUDE.md`) is not among it: it holds rules made for the user's session (commit and
|
|
189
|
+
// push on their own), and a role session never receives it; the settings of the role also exclude
|
|
190
|
+
// it (`claudeMdExcludes`, scripts/droits.mjs), for the sessions out of the envelope.
|
|
210
191
|
const CLAUDE_EN_LECTURE = [
|
|
211
192
|
'settings.json',
|
|
212
193
|
'settings.local.json',
|
|
213
|
-
'CLAUDE.md',
|
|
214
194
|
'keybindings.json',
|
|
215
195
|
'agents',
|
|
216
196
|
'commands',
|
|
@@ -221,9 +201,9 @@ const CLAUDE_EN_LECTURE = [
|
|
|
221
201
|
];
|
|
222
202
|
// What the home shows read-only besides `~/.claude`, as paths relative to it: claude's launcher
|
|
223
203
|
// and versions, node and its global tools (bd), the state of bd and of its dolt database, and the
|
|
224
|
-
// git configuration. The home shows nothing else
|
|
225
|
-
//
|
|
226
|
-
//
|
|
204
|
+
// git configuration. The home shows nothing else but the programs of the index for a role whose
|
|
205
|
+
// rights hold it (`cheminsDeLIndex`: codegraph); the indexes of the repository are in sight with
|
|
206
|
+
// it.
|
|
227
207
|
const MAISON_EN_LECTURE = [
|
|
228
208
|
'.local/bin/claude',
|
|
229
209
|
'.local/share/claude',
|
|
@@ -237,6 +217,39 @@ const MAISON_EN_LECTURE = [
|
|
|
237
217
|
'.config/git/attributes',
|
|
238
218
|
];
|
|
239
219
|
|
|
220
|
+
// The programs of the index, as paths of the home: the program that the `.mcp.json` of the project
|
|
221
|
+
// launches by its name (codegraph, found in `~/.local/bin`) and the home of its versions. rtfm
|
|
222
|
+
// needs none: its server comes with its plugin, which the envelope mounts (`plugins`).
|
|
223
|
+
const INDEX_DE_LA_MAISON = [{ nom: 'codegraph', programme: '.local/bin/codegraph', maison: '.codegraph' }];
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The paths that the envelope of <role> mounts read-only for the index, as a sandbox mounts the
|
|
227
|
+
* tools its configuration gives a process: those of the programs of the index when the rights of
|
|
228
|
+
* the role hold it (`ROLES[role].index`), and the names of the programs the machine lacks, which
|
|
229
|
+
* the journal says. A role without the index gets nothing.
|
|
230
|
+
* @param {{ role?: string, maison: string, existe?: (p: string) => boolean }} o
|
|
231
|
+
* @returns {{ chemins: string[], manquants: string[] }}
|
|
232
|
+
*/
|
|
233
|
+
export function cheminsDeLIndex({ role, maison, existe = existsSync }) {
|
|
234
|
+
const r = { chemins: [], manquants: [] };
|
|
235
|
+
if (!role || !ROLES[role]?.index) {
|
|
236
|
+
return r;
|
|
237
|
+
}
|
|
238
|
+
for (const { nom, programme, maison: dossier } of INDEX_DE_LA_MAISON) {
|
|
239
|
+
const prog = path.join(maison, programme);
|
|
240
|
+
if (!existe(prog)) {
|
|
241
|
+
r.manquants.push(nom);
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
244
|
+
r.chemins.push(prog);
|
|
245
|
+
const home = path.join(maison, dossier);
|
|
246
|
+
if (existe(home)) {
|
|
247
|
+
r.chemins.push(home);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return r;
|
|
251
|
+
}
|
|
252
|
+
|
|
240
253
|
// The variables of a login session that the envelope passes on, as sudo's env_reset keeps them,
|
|
241
254
|
// claude's OAuth credential, the author of the session's comments at the ticket (`BEADS_ACTOR`,
|
|
242
255
|
// which the circuit sets to the session's role), the mark of the place the session holds
|
|
@@ -409,6 +422,7 @@ export function montagesDeLaSeance({
|
|
|
409
422
|
scratchpads,
|
|
410
423
|
sessions = [],
|
|
411
424
|
outils = {},
|
|
425
|
+
index = [],
|
|
412
426
|
publie = null,
|
|
413
427
|
}) {
|
|
414
428
|
const maison = path.dirname(claude);
|
|
@@ -420,6 +434,7 @@ export function montagesDeLaSeance({
|
|
|
420
434
|
...CLAUDE_EN_LECTURE.map(nom => ({ chemin: path.join(claude, nom), ecriture: false })),
|
|
421
435
|
{ chemin: projet, ecriture: true },
|
|
422
436
|
...MAISON_EN_LECTURE.map(rel => ({ chemin: path.join(maison, rel), ecriture: false })),
|
|
437
|
+
...index.map(chemin => ({ chemin, ecriture: false })),
|
|
423
438
|
...Object.values(outils).map(chemin => ({ chemin, ecriture: false })),
|
|
424
439
|
...(publie === null ? [] : [{ chemin: publie, ecriture: false }]),
|
|
425
440
|
];
|
|
@@ -905,6 +920,14 @@ function envelopper(argv) {
|
|
|
905
920
|
if (existsSync(`${claude}.json`)) {
|
|
906
921
|
copyFileSync(`${claude}.json`, etatJetable);
|
|
907
922
|
}
|
|
923
|
+
// The program of the index for a role whose rights hold it; one the machine lacks is named in
|
|
924
|
+
// the journal, the session starting without it.
|
|
925
|
+
const indexDeLaSeance = cheminsDeLIndex({ role, maison: os.homedir() });
|
|
926
|
+
for (const nom of indexDeLaSeance.manquants) {
|
|
927
|
+
process.stderr.write(
|
|
928
|
+
`⚠ la séance part sans ${nom} : les droits du rôle ${role} lui donnent l'index, le programme est introuvable sur le poste\n`
|
|
929
|
+
);
|
|
930
|
+
}
|
|
908
931
|
const montages = avecLiens(
|
|
909
932
|
montagesDeLaSeance({
|
|
910
933
|
cacheNpm,
|
|
@@ -914,6 +937,7 @@ function envelopper(argv) {
|
|
|
914
937
|
scratchpads,
|
|
915
938
|
sessions,
|
|
916
939
|
outils,
|
|
940
|
+
index: indexDeLaSeance.chemins,
|
|
917
941
|
publie,
|
|
918
942
|
}),
|
|
919
943
|
lienSurDisque
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Launches a role agent on one ticket, as its own Claude session inside the envelope of its
|
|
3
3
|
# plan, the packages it writes (one session of the testwriter or the developpeur for the whole
|
|
4
|
-
# ticket, `.` as its component and the plan as `--paquets
|
|
4
|
+
# ticket, `.` as its component and the plan as `--paquets`). The supervisor runs it in the
|
|
5
|
+
# background and is told when the session ends. Architecture: docs/architecture/machine.md (§3.1,
|
|
6
|
+
# §5.5).
|
|
5
7
|
#
|
|
6
8
|
# npx grillhouse lancer [--modele <m>] [--effort <e>] [--seance <id> | --reprise <id>] [--paquets <liste>] [--fiche <sorte>] <ticket> <rôle> <composant> <fichier de consigne>
|
|
7
9
|
#
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
# input from a temporary file the launcher writes and removes (an argument may not pass the
|
|
75
77
|
# 128 KiB Linux allows one, MAX_ARG_STRLEN), the instruction file
|
|
76
78
|
# followed by the section « Ce que les composants d'avant publient », for each package of the
|
|
77
|
-
# plan (one part per package when the plan holds several
|
|
79
|
+
# plan (one part per package when the plan holds several): for each
|
|
78
80
|
# component whose `## Consommateurs` section names the package, its line, the names of the
|
|
79
81
|
# elements declared for the package, and the address of the rubric « Rend » of its frame, the
|
|
80
82
|
# rest of its elements left to the index of the interfaces (`grillhouse index-interfaces
|
|
@@ -96,7 +98,7 @@
|
|
|
96
98
|
# - A role that ends on a sheet (scripts/resultats.mjs: the testwriter, the developpeur) runs with
|
|
97
99
|
# `--output-format json --json-schema <its schema>` (`npx grillhouse resultats --schema
|
|
98
100
|
# <rôle>`); --fiche <sorte> names the schema of a sheet that is not its role's (`geste`, the
|
|
99
|
-
# explorateur's gesture of a mechanical ticket
|
|
101
|
+
# explorateur's gesture of a mechanical ticket), taking a value as --modele does:
|
|
100
102
|
# claude's JSON result, its sheet in `structured_output`, goes to `resultat.json` in the folder
|
|
101
103
|
# of the session (.claude/worktrees/<ticket>.travail/seances/<id>/, <id> the session's
|
|
102
104
|
# --seance or --reprise, `courante` without one), which a launch removes first and the circuit
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// The packages of the plan of the envelope a command runs in. The envelope names them to every
|
|
2
2
|
// command of its session, in the variable `GRILLHOUSE_ENVELOPPE`: the list of the paths the plan
|
|
3
3
|
// names inside the copy (`packages/a`, or `src/parser` in a one-package project), joined by the
|
|
4
|
-
// separator of a list of paths (`path.delimiter
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
// This module uses Node alone, as the modules of scripts/paquets.mjs.
|
|
4
|
+
// separator of a list of paths (`path.delimiter`). The session reads the whole copy and writes
|
|
5
|
+
// these packages only: a command of the frame that reads the list builds, judges and writes them
|
|
6
|
+
// alone. This module uses Node alone, as the modules of scripts/paquets.mjs. Architecture:
|
|
7
|
+
// docs/architecture/machine.md (§4.1, §5.5).
|
|
10
8
|
import path from 'node:path';
|
|
11
9
|
import { paquets } from '../paquets.mjs';
|
|
12
10
|
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
// (scripts/circuit.mjs, `avantLaPasse`), in the copy alone: git's stash (refs/stash) is common to
|
|
5
5
|
// every copy of a repository, so the work never goes there; the copy keeps it, as a merge or a
|
|
6
6
|
// rebase in conflict does (its conflicts marked in the files, the unmerged entries in its own
|
|
7
|
-
// index).
|
|
7
|
+
// index). Architecture: docs/architecture/machine.md (§5.5), which does not describe the carrying
|
|
8
|
+
// of the work of a copy.
|
|
8
9
|
//
|
|
9
10
|
// node scripts/enveloppe/travail-de-la-copie.mjs reporter <copie> <base> <pointe>
|
|
10
11
|
// node scripts/enveloppe/travail-de-la-copie.mjs preparer <copie> [<cible>]
|
|
@@ -17,8 +18,7 @@
|
|
|
17
18
|
// package.json, the installation (`npm install --no-save`, under that mount) when node_modules
|
|
18
19
|
// is missing or the lock file is newer than the installation (`node_modules/.package-lock.json`).
|
|
19
20
|
// It prints on stdout the list its pose fixes, its messages on stderr; exit 1 on the first step
|
|
20
|
-
// that fails, named, its output after
|
|
21
|
-
// and the submodule vendor/bp3-engine, both stale in a copy moved forward without them).
|
|
21
|
+
// that fails, named, its output after.
|
|
22
22
|
// - `reporter`: the lot from <base> to <pointe> (`git diff --binary`), a branch the queue sent
|
|
23
23
|
// back, becomes local work of the copy: applied three ways (`git apply --3way`), a conflict
|
|
24
24
|
// marked in its file, the rest of the lot there; the index is then left as HEAD has it, so that
|
|
@@ -67,19 +67,14 @@
|
|
|
67
67
|
// again in the copy, the lot applied, with the tools of the project (`grillhouse.outils`), out
|
|
68
68
|
// of the envelope. The output of a command that passes is a message, never the data of the
|
|
69
69
|
// preparation: it goes where the faults go (stderr, the log of the preparation for the circuit),
|
|
70
|
-
// so the standard output of `preparer` holds the list of its pose alone
|
|
71
|
-
//
|
|
72
|
-
//
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
// full (`fichiersEngendres` of the module of the language, its `entiers`: the index of the
|
|
79
|
-
// interfaces, the turbo.json of the packages) follows the same rule, with no key of the project:
|
|
80
|
-
// main's version, then the frame's generator, whose code is not read, a real failure aside
|
|
81
|
-
// (BPScript, 2026-11-22: « UU docs/agents/index-des-interfaces.md » at the advance of two
|
|
82
|
-
// copies). The reports of API (INTERFACE.api.md and the generated part of an INTERFACE.md) and
|
|
70
|
+
// so the standard output of `preparer` holds the list of its pose alone. A command that fails
|
|
71
|
+
// stops, exit 1, the command, its code and its output named, the rest of the lot in the copy;
|
|
72
|
+
// a faulty key refuses, named, before the copy is touched. A lot in conflict on another file
|
|
73
|
+
// is not regenerated: its conflicts come first. A reference the frame generates itself and
|
|
74
|
+
// writes in full (`fichiersEngendres` of the module of the language, its `entiers`: the index
|
|
75
|
+
// of the interfaces, the turbo.json of the packages) follows the same rule, with no key of the
|
|
76
|
+
// project: main's version, then the frame's generator, whose code is not read, a real failure
|
|
77
|
+
// aside. The reports of API (INTERFACE.api.md and the generated part of an INTERFACE.md) and
|
|
83
78
|
// the debt of the guards, which the frame does not give as written in full (no `entiers`), are
|
|
84
79
|
// still merged. A copy whose references the module of the language does not read (no language
|
|
85
80
|
// declared) is advanced all the same, its references merged as files written by hand, and the
|
package/scripts/etapes.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// The steps of a ticket, the tree of its circuit,
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
1
|
+
// The steps of a ticket, the tree of its circuit, and the stops of its circuit: the one list,
|
|
2
|
+
// which the circuit (scripts/circuit.mjs), the board (scripts/tableau.mjs), the bilan
|
|
3
|
+
// (scripts/bilan.mjs) and the texts read. The list of the steps is told here and at circuit.md
|
|
4
|
+
// §5.1 alone; the gestures and the stops, at §5.4 and §5.5. The code today holds the long and the
|
|
5
|
+
// short circuits; the direct one is a target (circuit.md §9.1).
|
|
5
6
|
//
|
|
6
7
|
// - A step (ETAPES): its number (« 2 », « 4.1 »), its title, who works there (`qui`: the role
|
|
7
8
|
// agents, or AUTO for a step the circuit leads itself; none for a step that only holds its
|
|
@@ -15,8 +16,8 @@
|
|
|
15
16
|
// The tri of the discoveries (5.3) is the explorateur's too, once the queue has brought the lot
|
|
16
17
|
// onto main, as Chromium and Mozilla give each new report a verdict before it is filed; so is the
|
|
17
18
|
// gesture of a mechanical ticket (1.1), the command its plan names played in the copy, as Rosie
|
|
18
|
-
// and ClangMR let a tool make a large-scale change at Google
|
|
19
|
-
//
|
|
19
|
+
// and ClangMR let a tool make a large-scale change at Google; the role's own step stays the plan
|
|
20
|
+
// (`etapeDuRole`).
|
|
20
21
|
// SUITE is the tree in its order, each step before its sub-steps.
|
|
21
22
|
// - A step carries as many bounded loops as it needs (`boucles`), each spanning the step and its
|
|
22
23
|
// sub-steps: each its key (`cle`, which keys its count in the state's `boucles`), its label and
|
|
@@ -51,7 +52,7 @@ export const ETAPES = [
|
|
|
51
52
|
questionnement: 'plan',
|
|
52
53
|
arrets: ['questionnement'],
|
|
53
54
|
// The gesture of a mechanical ticket, in the copy, in place of the testwriter and the
|
|
54
|
-
// developpeur
|
|
55
|
+
// developpeur.
|
|
55
56
|
sous: [{ numero: '1.1', titre: 'Geste mécanique', qui: [EXPLORATEUR], etat: 'geste' }],
|
|
56
57
|
},
|
|
57
58
|
{
|
|
@@ -101,7 +102,7 @@ export const ETAPES = [
|
|
|
101
102
|
sous: [
|
|
102
103
|
{ numero: '5.1', titre: 'Commit', qui: [AUTO], etat: 'integration' },
|
|
103
104
|
{ numero: '5.2', titre: 'File : passe finale, main', qui: [AUTO], etat: 'file' },
|
|
104
|
-
// The tri of the discoveries of the ticket, on the lot entered on main
|
|
105
|
+
// The tri of the discoveries of the ticket, on the lot entered on main.
|
|
105
106
|
{ numero: '5.3', titre: 'Tri des découvertes', qui: [EXPLORATEUR], etat: 'tri' },
|
|
106
107
|
],
|
|
107
108
|
},
|
|
@@ -135,7 +136,7 @@ export const ARRETS = {
|
|
|
135
136
|
integration: 17,
|
|
136
137
|
// The resumption of the integration of a lot already on main: a lot neither on main nor in the
|
|
137
138
|
// copy (`lot-absent`), or a copy that does not get removed (`copie-gardee`); both at the code of
|
|
138
|
-
// the integration stop
|
|
139
|
+
// the integration stop.
|
|
139
140
|
'lot-absent': 17,
|
|
140
141
|
'copie-gardee': 17,
|
|
141
142
|
'hors-portee': 19,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The state of a git repository
|
|
1
|
+
// The state of a git repository (packages/grillhouse/docs/architecture/entree.md §4.1: the trees
|
|
2
|
+
// judged, the last green and the results are per-repository files) and the place of the per-branch files the frame keeps beside it:
|
|
2
3
|
// the layer the last green (scripts/dernier-vert.mjs) and the registry of results
|
|
3
4
|
// (scripts/registre-des-resultats.mjs) share. Each keeps `{ … }` per branch under
|
|
4
5
|
// `<git common dir>/grillhouse/<sous>/<branche>.json`, and each measures what counts against the
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// One act of the circuit of a ticket for its workflow under Temporal
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
2
|
+
// One act of the circuit of a ticket for its workflow under Temporal, in a process of its own: the
|
|
3
|
+
// circuit's code waits on its passes synchronously, so the worker that awaits this process keeps
|
|
4
|
+
// serving, and sends its heartbeats, while the act plays (circuit.md §3.1, « Actes du circuit »;
|
|
5
|
+
// §2.3). The worker's activities (src/temporal/circuit/activites.ts) start it in the main tree of
|
|
6
|
+
// the repository:
|
|
7
7
|
//
|
|
8
8
|
// node scripts/faits-du-circuit.mjs <acte> (its input in JSON on the standard input)
|
|
9
9
|
//
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
// killed (scripts/seances.mjs). The act ends with its worker: once the worker is gone, it exits
|
|
13
13
|
// at once, the group of its session left running, which the attempt played again waits for.
|
|
14
14
|
//
|
|
15
|
-
// The acts of a ticket write nothing outside themselves
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
// the
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
15
|
+
// The acts of a ticket write nothing outside themselves: each gathers the effects the circuit's
|
|
16
|
+
// code emits (scripts/effets.mjs) and gives them back with its outcome (`effets`), its own
|
|
17
|
+
// readings seeing those it already emitted; the workflow then plays each one in an activity of its
|
|
18
|
+
// own, the act `effet`, under the key of that activity (`cle`: its workflow, its run, its
|
|
19
|
+
// activity, the same for each of its attempts). A fact (the act `fait`) is read again on an
|
|
20
|
+
// attempt played again: a reading, a measure, a pass of the checks, a regeneration and the
|
|
21
|
+
// integration (no second commit for a lot already in the queue) replay without harm. Under the
|
|
22
|
+
// opening and a fact, a session draws its id from the key of its activity, its event and the
|
|
23
|
+
// attempt of the activity (`idDeSeance` of scripts/seances.mjs, `<séance>-e<essai>`), and ranges
|
|
24
|
+
// its result under it (`rangDeLaSeance`). Only an attempt Temporal plays again (its attempt 2 or
|
|
25
|
+
// more, `essai`), at the launch the dead attempt made last, takes the result of a session the
|
|
26
|
+
// dead attempt launched in its envelope once its group has ended, with no second session
|
|
27
|
+
// (scripts/seances.mjs `lancer`); a session out of the envelope (the explorateur's, the
|
|
28
28
|
// questionneur's, the reviewer's), which writes nothing in the lot, is launched again. The acts of
|
|
29
29
|
// the queue of a project follow the same model: each of their gestures replays without harm (main
|
|
30
30
|
// moved onto a lot already on main enters it, a ticket closed stays closed, a commit pushed is
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
// - `effet`, one effect an act gave back, written under the key of its activity (`ecrireLEffet`):
|
|
50
50
|
// an effect not written has its outcome, said on the error output or the failure of its
|
|
51
51
|
// activity;
|
|
52
|
-
// - the acts of the queue of a project (scripts/integration/file.mjs
|
|
52
|
+
// - the acts of the queue of a project (scripts/integration/file.mjs): `situer`,
|
|
53
53
|
// where the lot of a ticket stands (`situerLeLot`); `brancher`, the branch made the candidate the
|
|
54
54
|
// final pass judges (`preparerLaBranche`); `avancer`,
|
|
55
55
|
// main moved onto the candidate (`avancerMain`); each of `brancher` and `avancer` telling the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// The closure of the machine by the supervisor,
|
|
2
|
-
//
|
|
1
|
+
// The closure of the machine by the supervisor (docs/architecture/machine.md, §5.7):
|
|
2
|
+
// the decision of each command on the reservation of the machine in place, and the lines it
|
|
3
3
|
// says, what still runs by project and by ticket (sessions: the places of the workflow of the
|
|
4
4
|
// machine; passes: their parts), « la machine est vide » when nothing plays, and how long the
|
|
5
5
|
// closure has lasted. Pure: the workflow of the places (src/temporal/places/deroule.ts) bundles
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// The variables of the poste a tool of a language reads: a file of the poste, out of every
|
|
2
2
|
// repository, under the frame's directory of configuration (`$XDG_CONFIG_HOME/grillhouse/`,
|
|
3
|
-
// `~/.config/grillhouse/` without it,
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
// repository.
|
|
3
|
+
// `~/.config/grillhouse/` without it), whose name the module of the language gives
|
|
4
|
+
// (`environnementDuPoste`, scripts/jointure.d.ts): the server of a remote cache, its token, which
|
|
5
|
+
// never enter a repository. Architecture: docs/architecture/machine.md (§4.1).
|
|
7
6
|
//
|
|
8
7
|
// - The file holds one `VARIABLE=valeur` per line, as a `.env` of the shell: `export ` before the
|
|
9
8
|
// name, a value between quotes, a blank line and a line of comment (`#`) are read too; any
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
// ticket's plan covers by its own word: a write out of the plan in it extends the plan, with the
|
|
4
4
|
// piece that names it. A parent directory, a base name alone, another section, and the documents
|
|
5
5
|
// the responsable owns (ARCHITECTURE.md, CADRE.md, INTERFACE.md) are not named. The plan keeps the
|
|
6
|
-
// component of the title that holds a file named there (`fichiersNommesAuTicket
|
|
6
|
+
// component of the title that holds a file named there (`fichiersNommesAuTicket`;
|
|
7
|
+
// docs/architecture/circuit.md §3.3).
|
|
7
8
|
|
|
8
9
|
const DOCUMENTS_DU_RESPONSABLE = /(^|\/)(ARCHITECTURE|CADRE|INTERFACE)\.md$/;
|
|
9
10
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// The rule of the queue of the tickets of a project: the tickets the owner validated (label
|
|
2
2
|
// `circuit`) whose dependencies are all closed start by themselves, by Beads priority, as Zuul and
|
|
3
3
|
// the merge queues start a change once what it depends on has merged. The queue of the tickets
|
|
4
|
-
// under Temporal (src/temporal/tickets/) reads the tickets and applies this rule.
|
|
4
|
+
// under Temporal (src/temporal/tickets/) reads the tickets and applies this rule (circuit.md
|
|
5
|
+
// §5.7, « La file des tickets »; the code still asks for the section « ## Architecture » where
|
|
6
|
+
// the target reads « Régi par », circuit.md §9.1).
|
|
5
7
|
//
|
|
6
8
|
// - A ticket starts when it is open, labelled `circuit`, with no circuit already on it, its
|
|
7
9
|
// description holds its section « ## Architecture » (a line that begins so), and every
|