@roomi-fields/grillhouse 0.51.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +68 -0
- package/agents/direct.md +1 -1
- package/cadre/templates/projet/vitest.config.cjs +45 -0
- package/charte/plan.md +47 -0
- package/charte/preuve.md +39 -0
- package/charte/superviseur.md +60 -0
- package/charte/tests.md +38 -0
- package/charte.md +23 -178
- package/dist/temporal/circuit/appel.d.ts +2 -0
- package/dist/temporal/circuit/appel.js +24 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +15 -7
- package/dist/temporal/circuit/client.js +42 -11
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +17 -6
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +9 -0
- package/dist/temporal/circuit/contrat.js +6 -0
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +25 -4
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/client.d.ts +35 -1
- package/dist/temporal/client.js +144 -1
- package/dist/temporal/client.js.map +1 -1
- package/dist/temporal/commande.js +31 -13
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/etat.d.ts +3 -1
- package/dist/temporal/etat.js +31 -17
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +1 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +4 -5
- package/dist/temporal/file/contrat.js +2 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +7 -5
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +103 -53
- package/dist/temporal/installation.js +842 -237
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +3 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/deroule.js +2 -1
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/sonde/deroule.js +2 -1
- package/dist/temporal/sonde/deroule.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -3
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/dist/temporal/travailleur.d.ts +7 -1
- package/dist/temporal/travailleur.js +49 -25
- package/dist/temporal/travailleur.js.map +1 -1
- package/docs/INTERFACE.md +20 -14
- package/docs/architecture/circuit.md +19 -16
- package/docs/architecture/entree.md +8 -9
- package/docs/architecture/greffon.md +54 -20
- package/docs/architecture/installation.md +99 -60
- package/docs/architecture/machine.md +31 -4
- package/docs/architecture/tests.md +22 -8
- package/docs/lexique.md +12 -3
- package/hooks/hooks.json +10 -10
- package/hooks/register.tsx +84 -2
- package/package.json +4 -2
- package/scripts/activites.mjs +25 -9
- package/scripts/aiguillage.mjs +1 -1
- package/scripts/attente-au-tour.mjs +2 -3
- package/scripts/bilan.mjs +116 -56
- package/scripts/bilans-gardes.mjs +37 -0
- package/scripts/circuit.mjs +256 -42
- package/scripts/circuits-du-serveur.mjs +3 -2
- package/scripts/circuits-tenus.d.mts +7 -0
- package/scripts/circuits-tenus.mjs +17 -0
- package/scripts/copie-de-montee.mjs +354 -0
- package/scripts/copies-du-depot.d.mts +13 -0
- package/scripts/copies-du-depot.mjs +66 -0
- package/scripts/copies-finies.mjs +6 -40
- package/scripts/crochets.mjs +16 -2
- package/scripts/direct.mjs +2 -2
- package/scripts/droits.mjs +117 -38
- package/scripts/engendres.mjs +5 -3
- package/scripts/entree-de-seance.mjs +35 -0
- package/scripts/enveloppe/enveloppe.mjs +23 -16
- package/scripts/enveloppe/lancer.sh +32 -22
- package/scripts/enveloppe/travail-de-la-copie.mjs +154 -0
- package/scripts/etapes.mjs +11 -3
- package/scripts/faits-du-circuit.mjs +12 -5
- package/scripts/file-des-tickets.d.mts +13 -2
- package/scripts/file-des-tickets.mjs +44 -12
- package/scripts/greffons.mjs +42 -27
- package/scripts/grillhouse-maj.mjs +105 -85
- package/scripts/init.mjs +1 -1
- package/scripts/integration/file.mjs +5 -2
- package/scripts/integration/integrer.mjs +14 -4
- package/scripts/jointure.d.ts +18 -1
- package/scripts/langages/c/commandes.mjs +17 -7
- package/scripts/langages/cargo/commandes.mjs +87 -34
- package/scripts/langages/cargo/index.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +15 -12
- package/scripts/langages/python/commandes.mjs +68 -15
- package/scripts/langages/python/squelette.mjs +4 -3
- package/scripts/langages/typescript/configurations-de-vitest.mjs +118 -0
- package/scripts/langages/typescript/index.mjs +14 -12
- package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +299 -0
- package/scripts/langages/typescript/squelette.mjs +20 -17
- package/scripts/langages/typescript/tests-de-nuit.mjs +3 -3
- package/scripts/langages/typescript/turbo-des-paquets.mjs +76 -39
- package/scripts/langages/typescript/verifier.mjs +27 -2
- package/scripts/langages/typescript/vitest-config/base.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/cibles.mjs +2 -2
- package/scripts/langages/typescript/{vitest.nuit.config.mjs → vitest.nuit.config.cjs} +61 -50
- package/scripts/mesure/pression.mjs +5 -3
- package/scripts/migrations/serveurs-de-l-index.mjs +1 -1
- package/scripts/migrations/suivi-du-superviseur-retire.mjs +56 -0
- package/scripts/migrations.mjs +2 -0
- package/scripts/montee.mjs +524 -0
- package/scripts/nuit.sh +3 -2
- package/scripts/outil.mjs +5 -3
- package/scripts/paquet-npm.mjs +22 -0
- package/scripts/paquet.mjs +5 -5
- package/scripts/pre-compact.mjs +25 -0
- package/scripts/reponses-du-circuit.d.mts +17 -2
- package/scripts/reponses-du-circuit.mjs +78 -20
- package/scripts/resultats.mjs +42 -14
- package/scripts/retirer-les-copies-finies.mjs +4 -7
- package/scripts/seances.mjs +81 -29
- package/scripts/services-du-noyau.mjs +7 -2
- package/scripts/session-start.sh +19 -10
- package/scripts/sortie-de-seance.mjs +70 -0
- package/scripts/sortie.mjs +4 -7
- package/scripts/sous-commandes.mjs +1 -1
- package/scripts/superviseur.mjs +417 -159
- package/scripts/tableau.mjs +249 -152
- package/scripts/ticket-du-circuit.mjs +22 -0
- package/scripts/transitions.d.mts +6 -9
- package/scripts/transitions.mjs +123 -36
- package/scripts/verrou-de-fichier.d.mts +11 -0
- package/skills/direct/SKILL.md +21 -11
- package/skills/explorateur/SKILL.md +8 -3
- package/skills/grill/SKILL.md +11 -8
- package/skills/grill/references/paquets.md +4 -4
- package/skills/pitmaster/SKILL.md +99 -53
- package/skills/pitmaster/references/cadre.md +1 -1
- package/skills/pitmaster/references/consigne-agent.md +1 -1
- package/skills/pitmaster/references/tour.md +6 -5
- package/skills/relecteur/SKILL.md +9 -2
- package/skills/testwriter/SKILL.md +3 -3
- package/cadre/templates/projet/pitmaster/SUIVI.md +0 -22
- package/cadre/templates/projet/vitest.config.ts +0 -44
- package/scripts/attente-a-l-arret.mjs +0 -114
|
@@ -34,6 +34,7 @@ export class Arret extends Error {
|
|
|
34
34
|
question = null,
|
|
35
35
|
qui = null,
|
|
36
36
|
etape = null,
|
|
37
|
+
demande = null,
|
|
37
38
|
} = {}
|
|
38
39
|
) {
|
|
39
40
|
super(nom);
|
|
@@ -47,6 +48,8 @@ export class Arret extends Error {
|
|
|
47
48
|
this.qui = qui;
|
|
48
49
|
// The step the stop stands at, when it is not the step that throws it.
|
|
49
50
|
this.etape = etape;
|
|
51
|
+
// The motif of the sheet the stop answers (« demande-un-plan »), which its state keeps.
|
|
52
|
+
this.demande = demande;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -152,6 +155,25 @@ export function lesFiches(ctx) {
|
|
|
152
155
|
export const inscrire = (ctx, entree) =>
|
|
153
156
|
emettre(ctx, { genre: 'fiche', entree: { date: new Date().toISOString(), ...entree } });
|
|
154
157
|
|
|
158
|
+
// A line of the circuit that switches a direct circuit to the plan (`--planifier`, circuit.md §5.6).
|
|
159
|
+
const estUneBasculeVersLePlan = e => e.role === AUTEUR_DU_CIRCUIT && Boolean(e.planifier);
|
|
160
|
+
|
|
161
|
+
// The sheets of the ticket since its last switch to the plan, all of them without one: what was
|
|
162
|
+
// judged before it is stale, as a vote Gerrit does not copy to a new patch set.
|
|
163
|
+
export function fichesDepuisLaBascule(ctx) {
|
|
164
|
+
const tous = lesFiches(ctx);
|
|
165
|
+
return tous.slice(tous.findLastIndex(estUneBasculeVersLePlan) + 1);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// The switch to the plan whose plan has not passed yet (`{ raison, piece }`), or null.
|
|
169
|
+
export function basculeVersLePlanEnCours(ctx) {
|
|
170
|
+
const tous = lesFiches(ctx);
|
|
171
|
+
const i = tous.findLastIndex(estUneBasculeVersLePlan);
|
|
172
|
+
return i < 0 || tous.slice(i + 1).some(e => e.role === AUTEUR_DU_CIRCUIT && e.plan?.empreinte)
|
|
173
|
+
? null
|
|
174
|
+
: tous[i].planifier;
|
|
175
|
+
}
|
|
176
|
+
|
|
155
177
|
// The sheets of <role>, in their order.
|
|
156
178
|
export const fichesDe = (ctx, role) =>
|
|
157
179
|
lesFiches(ctx)
|
|
@@ -35,10 +35,10 @@ export interface Transition {
|
|
|
35
35
|
usage?: string;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
/** The circuit (`long` or `
|
|
38
|
+
/** The circuit (`long`, `court` or `direct`) the sort of a ticket makes. */
|
|
39
39
|
export function circuitDeLaSorte(
|
|
40
40
|
sorte: { genre?: string; comportement?: string } | null | undefined
|
|
41
|
-
): 'long' | 'court';
|
|
41
|
+
): 'long' | 'court' | 'direct';
|
|
42
42
|
|
|
43
43
|
/** The circuit <circuit> once the sort of its ticket turns to <sorte>: a direct circuit stays so. */
|
|
44
44
|
export function circuitSuivant(
|
|
@@ -220,16 +220,13 @@ interface Constat {
|
|
|
220
220
|
/** The developpeur's report on the integration's refusal <refus>. */
|
|
221
221
|
export function rapportDuRefus(refus: { rapport: string }): string;
|
|
222
222
|
|
|
223
|
-
/** The stop of a ticket the queue reopens
|
|
224
|
-
export function refusDeLaFile(
|
|
225
|
-
issue?: { raison?: string | null; conflit?: boolean },
|
|
226
|
-
circuit?: string | null
|
|
227
|
-
): {
|
|
223
|
+
/** The stop of a ticket the queue reopens without a conflict: its motive, and no question of its own. */
|
|
224
|
+
export function refusDeLaFile(issue?: { raison?: string | null }): {
|
|
228
225
|
motif: string;
|
|
229
|
-
question:
|
|
226
|
+
question: null;
|
|
230
227
|
};
|
|
231
228
|
|
|
232
|
-
/** The step after the plan of sort <sorte>: the gesture, the developpeur, or the testwriter. */
|
|
229
|
+
/** The step after the plan of sort <sorte>: the gesture, the code (developpeur or agent direct), or the testwriter. */
|
|
233
230
|
export function etapeApresLePlan(e: {
|
|
234
231
|
sorte?: { genre?: string; comportement?: string } | null;
|
|
235
232
|
sansTests?: boolean;
|
package/scripts/transitions.mjs
CHANGED
|
@@ -34,7 +34,17 @@
|
|
|
34
34
|
// step the list does not hold `usage`. Each call is played again from the start of its step with
|
|
35
35
|
// the facts read so far, as Temporal replays a workflow on its history: the same facts give the
|
|
36
36
|
// same decision.
|
|
37
|
-
import {
|
|
37
|
+
import {
|
|
38
|
+
ARRETS,
|
|
39
|
+
auteurDuCode,
|
|
40
|
+
boucle,
|
|
41
|
+
DEMANDE_UN_PLAN,
|
|
42
|
+
joue,
|
|
43
|
+
LOT_NE_S_APPLIQUE_PAS,
|
|
44
|
+
nomDuRole,
|
|
45
|
+
RESPONSABLE,
|
|
46
|
+
SUITE,
|
|
47
|
+
} from './etapes.mjs';
|
|
38
48
|
import { attribuerLeRouge, departDepuis, refusDeLaReprise } from './reprise.mjs';
|
|
39
49
|
|
|
40
50
|
// The resumptions `--depuis` names and the one rule that accepts them (./reprise.mjs), as the
|
|
@@ -43,11 +53,16 @@ export { ETAPES_DE_REPRISE } from './reprise.mjs';
|
|
|
43
53
|
export { refusDeLaReprise };
|
|
44
54
|
|
|
45
55
|
/**
|
|
46
|
-
* The circuit (`long` or `
|
|
47
|
-
*
|
|
56
|
+
* The circuit (`long`, `court` or `direct`) the sort <sorte> of a ticket makes: direct for a
|
|
57
|
+
* correction triviale, short for a gesture without new behaviour (mechanical, or « comportement
|
|
58
|
+
* inchangé »), long for any other, none said included.
|
|
48
59
|
*/
|
|
49
|
-
export const circuitDeLaSorte = sorte =>
|
|
50
|
-
sorte?.genre === '
|
|
60
|
+
export const circuitDeLaSorte = sorte => {
|
|
61
|
+
if (sorte?.genre === 'correction triviale') {
|
|
62
|
+
return 'direct';
|
|
63
|
+
}
|
|
64
|
+
return sorte?.genre === 'mécanique' || sorte?.comportement === 'inchangé' ? 'court' : 'long';
|
|
65
|
+
};
|
|
51
66
|
|
|
52
67
|
/**
|
|
53
68
|
* The circuit <circuit> once the sort of its ticket turns to <sorte>: a direct circuit stays so,
|
|
@@ -133,35 +148,36 @@ const auteurDe = circuit => {
|
|
|
133
148
|
export const rapportDuRefus = refus =>
|
|
134
149
|
`L’intégration refuse ce lot : son refus, ci-dessous, est le rouge à lever ; les contrôles de ta copie, verts, ne le voient pas, et le lot ne repasse à l’intégration qu’avec un changement.\n\n${refus.rapport}`;
|
|
135
150
|
|
|
136
|
-
// The stop of a ticket the queue reopens on its issue `{ raison
|
|
137
|
-
// (`direLIssue` of scripts/integration/file.mjs)
|
|
138
|
-
//
|
|
139
|
-
//
|
|
140
|
-
//
|
|
141
|
-
export function refusDeLaFile({ raison
|
|
142
|
-
const auteur = auteurDe(circuit);
|
|
151
|
+
// The stop of a ticket the queue reopens on its issue `{ raison }`, as it gives the circuit
|
|
152
|
+
// (`direLIssue` of scripts/integration/file.mjs), for any reason but a conflict, which the circuit
|
|
153
|
+
// takes back itself (gesture `conflit-de-l-avance`): `motif`, whose first line, the fact of the
|
|
154
|
+
// question gone up, says why (the first line of the reason that is not a title), the whole reason
|
|
155
|
+
// after it; `question`, null: no such reopening has a question of its own.
|
|
156
|
+
export function refusDeLaFile({ raison } = {}) {
|
|
143
157
|
const texte = String(raison ?? '').trim();
|
|
144
158
|
const pourquoi = texte.split('\n').find(l => l.trim() && !l.startsWith('#'));
|
|
145
159
|
return {
|
|
146
160
|
motif: `La file rouvre le ticket${pourquoi ? ` : ${pourquoi.trim()}` : '.'}\n\n${texte}`,
|
|
147
|
-
question:
|
|
148
|
-
? `La branche ne se replace pas sur main : \`--depuis ${auteur.role}\` remet son lot en travail local sur main, où ${auteur.le} le replace ; \`--reprendre\` renverrait la même branche.`
|
|
149
|
-
: null,
|
|
161
|
+
question: null,
|
|
150
162
|
};
|
|
151
163
|
}
|
|
152
164
|
|
|
153
165
|
// The step after the plan of sort <sorte> (null when the path is not mechanical): the gesture of
|
|
154
|
-
// a mechanical ticket (1.1), in place of the testwriter, the proof and the developpeur; the
|
|
155
|
-
// developpeur of a plan without tests (<sansTests>) or of a plan whose `comportement` is inchangé
|
|
166
|
+
// a mechanical ticket (1.1), in place of the testwriter, the proof and the developpeur; the code,
|
|
167
|
+
// by the agent direct, of a correction triviale; the developpeur of a plan without tests (<sansTests>) or of a plan whose `comportement` is inchangé
|
|
156
168
|
// (a gesture written by hand: no test can turn red, the existing suite proves it); else the
|
|
157
169
|
// testwriter, for changé and tests-adaptés alike.
|
|
158
170
|
// The supervisor's `--depuis testwriter` (<demande>) wins over `inchangé`: the testwriter plays.
|
|
159
|
-
export const etapeApresLePlan = ({ sorte, sansTests, demande = false }) =>
|
|
160
|
-
sorte?.genre === 'mécanique'
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
171
|
+
export const etapeApresLePlan = ({ sorte, sansTests, demande = false }) => {
|
|
172
|
+
if (sorte?.genre === 'mécanique') {
|
|
173
|
+
return GESTE;
|
|
174
|
+
}
|
|
175
|
+
return sorte?.genre === 'correction triviale' ||
|
|
176
|
+
sansTests ||
|
|
177
|
+
(sorte?.comportement === 'inchangé' && !demande)
|
|
178
|
+
? CODE
|
|
179
|
+
: TESTS;
|
|
180
|
+
};
|
|
165
181
|
|
|
166
182
|
// The step after a proof that passes: the developpeur on a red (<rouges>), on a finding of the
|
|
167
183
|
// reviewer still open for him (<pourLeDeveloppeur>), or under a plan « comportement
|
|
@@ -479,6 +495,12 @@ export function depart({
|
|
|
479
495
|
if (etat.etape === 'integre') {
|
|
480
496
|
return { usage: `rien à reprendre : le lot de ${ticket} est intégré.` };
|
|
481
497
|
}
|
|
498
|
+
// After the reviewer asks for a plan (`demande-un-plan`), --reprendre keeps the direct circuit:
|
|
499
|
+
// the agent direct, the findings of that verdict as his task.
|
|
500
|
+
if (etat.etape === RELECTURE && etat.motif === DEMANDE_UN_PLAN) {
|
|
501
|
+
Object.assign(memoire, { verifie: null, toursDeLaPasseFinale: null });
|
|
502
|
+
return { suivant: { etape: CODE, tentative: 1, rapport: null, finale: false }, memoire };
|
|
503
|
+
}
|
|
482
504
|
const compteGarde =
|
|
483
505
|
circuit === 'direct' &&
|
|
484
506
|
[CODE, CONTROLES, REFERENCES].includes(etat.etape) &&
|
|
@@ -664,9 +686,10 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
664
686
|
}
|
|
665
687
|
|
|
666
688
|
// After the plan: the gesture of a mechanical ticket, the developpeur of a plan without tests,
|
|
667
|
-
// else the testwriter.
|
|
689
|
+
// else the testwriter. A testwriter relaunched on a conflict with main (`retourDuConflit`) plays
|
|
690
|
+
// his session whatever the sort of the plan.
|
|
668
691
|
const route =
|
|
669
|
-
etape === TESTS
|
|
692
|
+
etape === TESTS && !m('retourDuConflit')
|
|
670
693
|
? etapeApresLePlan({
|
|
671
694
|
sorte:
|
|
672
695
|
lire('mecanique') || ticket.sorte?.comportement === 'inchangé' ? ticket.sorte : null,
|
|
@@ -862,6 +885,9 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
862
885
|
// integration stop (17, scripts/etapes.mjs), its piece the output.
|
|
863
886
|
return arreter(r.nom, fin(r.sortie, 60), { piece: fin(r.sortie, 30) });
|
|
864
887
|
}
|
|
888
|
+
if (r.code === LOT_NE_S_APPLIQUE_PAS && lire('mainAvancee')) {
|
|
889
|
+
return repasserSurMain('integration', "le lot ne s'applique plus sur la pointe de main");
|
|
890
|
+
}
|
|
865
891
|
if (r.code !== 0) {
|
|
866
892
|
return refuser(
|
|
867
893
|
`Le script d'intégration refuse le lot (code ${r.code}).\n\n${fin(r.sortie, 60)}`,
|
|
@@ -898,8 +924,13 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
898
924
|
if (f.etat === 'en-file') {
|
|
899
925
|
return arreter('a-repasser', f.raison);
|
|
900
926
|
}
|
|
901
|
-
|
|
902
|
-
|
|
927
|
+
if (f.etat === 'rouvert' && f.conflit) {
|
|
928
|
+
// The lot is committed on its branch, the copy gone: both become again what the pass that
|
|
929
|
+
// judges it reads, whose preparation meets the conflict.
|
|
930
|
+
lire('remiseEnTravail');
|
|
931
|
+
return repasserSurMain('file', 'la file ne replace pas la branche sur la pointe de main');
|
|
932
|
+
}
|
|
933
|
+
return refuser(refusDeLaFile(f).motif, f.raison);
|
|
903
934
|
}
|
|
904
935
|
if (etape === TRI) {
|
|
905
936
|
// The lot is on main: the tri of its discoveries, which neither stops nor undoes it.
|
|
@@ -926,12 +957,32 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
926
957
|
return decision();
|
|
927
958
|
}
|
|
928
959
|
|
|
960
|
+
// A lot that no longer applies on the tip of main (at the integration while main moved past the
|
|
961
|
+
// copy, or in the queue on a conflict) goes back to the pass that judges it, whose preparation
|
|
962
|
+
// advances the copy and plays the gesture `conflit-de-l-avance` on what conflicts, as a merge
|
|
963
|
+
// queue sends back a lot that no longer applies on its tip: no refusal is kept, and the final
|
|
964
|
+
// pass played before stands no more. <auteur> signs the line at the ticket, which says <fait>.
|
|
965
|
+
function repasserSurMain(auteur, fait) {
|
|
966
|
+
maj.refus = null;
|
|
967
|
+
maj.verifie = null;
|
|
968
|
+
garderLeVert('passe-finale', null);
|
|
969
|
+
etape = CONTROLES;
|
|
970
|
+
tentative = 0;
|
|
971
|
+
rapport = null;
|
|
972
|
+
finale = direct;
|
|
973
|
+
commenter(
|
|
974
|
+
auteur,
|
|
975
|
+
`${fait} : le circuit revient ${direct ? 'à la passe finale' : 'aux contrôles'}, qui avance la copie.`
|
|
976
|
+
);
|
|
977
|
+
return decision();
|
|
978
|
+
}
|
|
979
|
+
|
|
929
980
|
// The stop « integration » of the motive <motif> and the piece <piece>, the refusal of the lot
|
|
930
981
|
// kept in the memory (`refus`: `{ rapport, piece, empreinte, lance, relance }`, the fingerprint
|
|
931
982
|
// of the plan refused, whether a --depuis developpeur launched the developpeur on it, and whether
|
|
932
983
|
// a session so launched already left it unchanged once), which --depuis developpeur gives the
|
|
933
|
-
// developpeur
|
|
934
|
-
function refuser(motif, piece
|
|
984
|
+
// developpeur.
|
|
985
|
+
function refuser(motif, piece) {
|
|
935
986
|
maj.refus = {
|
|
936
987
|
rapport: motif,
|
|
937
988
|
piece,
|
|
@@ -939,7 +990,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
939
990
|
lance: false,
|
|
940
991
|
relance: false,
|
|
941
992
|
};
|
|
942
|
-
return arreter('integration', motif,
|
|
993
|
+
return arreter('integration', motif, { piece });
|
|
943
994
|
}
|
|
944
995
|
|
|
945
996
|
function code() {
|
|
@@ -959,6 +1010,12 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
959
1010
|
});
|
|
960
1011
|
relanceSurLeRefus = false;
|
|
961
1012
|
const fortement = fort ? ' (opus)' : '';
|
|
1013
|
+
// The agent direct who asks for a plan stops the circuit before any other gesture.
|
|
1014
|
+
if (direct && fiche.statut !== 'FAIT' && fiche.motif === DEMANDE_UN_PLAN) {
|
|
1015
|
+
return decision({
|
|
1016
|
+
arret: { nom: nomDuStatut(fiche), statut: { role: auteur.role, tentative, fiche } },
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
962
1019
|
// A question goes up to the supervisor; a red out of reach, to the testwriter its sheet sends
|
|
963
1020
|
// it to, else up to the supervisor.
|
|
964
1021
|
if (fiche.statut === 'BESOIN') {
|
|
@@ -1460,11 +1517,22 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1460
1517
|
|
|
1461
1518
|
function relecture() {
|
|
1462
1519
|
const v = lire('relecture');
|
|
1463
|
-
|
|
1520
|
+
const demandeUnPlan = direct && v.fiche.motif === DEMANDE_UN_PLAN;
|
|
1521
|
+
// A question for the owner: nothing is committed nor relaunched before his answer. A RENDU
|
|
1522
|
+
// keeps its findings first, those of a direct lot that asks for a plan all for the agent
|
|
1523
|
+
// direct; the report names the faulty ones, which the supervisor's context settles.
|
|
1464
1524
|
if (v.fiche.question) {
|
|
1525
|
+
let sansAuteur = '';
|
|
1526
|
+
if (v.verdict === 'RENDU') {
|
|
1527
|
+
const lus = demandeUnPlan ? { constats: lire('constatsDeLaDemande') } : lire('constats');
|
|
1528
|
+
maj.constats = lus.constats;
|
|
1529
|
+
if (lus.arret) {
|
|
1530
|
+
sansAuteur = `\n\nAucune séance d’un auteur ne recevra ces constats, que le contexte du superviseur tranche :\n${lus.arret.piece}`;
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1465
1533
|
return arreter(
|
|
1466
1534
|
'besoin',
|
|
1467
|
-
`Le relecteur attend une réponse : ${v.fiche.question}\n\nLe verdict :\n\n${v.texte}`,
|
|
1535
|
+
`Le relecteur attend une réponse : ${v.fiche.question}${sansAuteur}\n\nLe verdict :\n\n${v.texte}`,
|
|
1468
1536
|
{
|
|
1469
1537
|
piece: v.fiche.piece,
|
|
1470
1538
|
question: `Le relecteur demande : ${v.fiche.question}`,
|
|
@@ -1516,21 +1584,40 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1516
1584
|
finale = true;
|
|
1517
1585
|
return decision();
|
|
1518
1586
|
}
|
|
1587
|
+
// A direct lot rendered because its ticket asks for a plan goes up to the supervisor, before
|
|
1588
|
+
// the count of the reviews and the recipients of its findings: `--reprendre` gives them to the
|
|
1589
|
+
// agent direct (`depart`), `--planifier` drops them.
|
|
1590
|
+
if (demandeUnPlan) {
|
|
1591
|
+
const lus = lire('constatsDeLaDemande');
|
|
1592
|
+
maj.constats = lus;
|
|
1593
|
+
const pieces = lus.map(c => c.piece ?? c.titre).join('\n');
|
|
1594
|
+
return arreter(
|
|
1595
|
+
'hors-portee',
|
|
1596
|
+
`Le relecteur rend le lot au motif « ${DEMANDE_UN_PLAN} » : le ticket demande un plan.\n\nLe verdict :\n\n${v.texte}`,
|
|
1597
|
+
{
|
|
1598
|
+
piece: v.fiche.piece || pieces,
|
|
1599
|
+
question:
|
|
1600
|
+
'Le relecteur demande un plan : `--planifier --contexte <raison>` confirme la bascule vers le plan, `--reprendre --contexte <texte>` garde le circuit direct et rend les constats à l’agent direct.',
|
|
1601
|
+
demande: DEMANDE_UN_PLAN,
|
|
1602
|
+
}
|
|
1603
|
+
);
|
|
1604
|
+
}
|
|
1519
1605
|
// The reviews since the last ACCEPTÉ: a lot the queue sent back starts a new count.
|
|
1520
1606
|
const rendus = lire('rendus');
|
|
1607
|
+
// The findings still open once the sheet is read (`constatsOuverts` of scripts/circuit.mjs),
|
|
1608
|
+
// kept by every stop below, as the threads of a review stay open whatever stopped it, with the
|
|
1609
|
+
// stop for a finding without a valid recipient.
|
|
1610
|
+
const lus = lire('constats');
|
|
1611
|
+
maj.constats = lus.constats;
|
|
1521
1612
|
if (rendus >= RELECTURES) {
|
|
1522
1613
|
return arreter(
|
|
1523
1614
|
'relecture-arret',
|
|
1524
1615
|
`${rendus} relectures ont rendu le lot : le circuit s'arrête à la troisième.\n\nLe dernier verdict :\n\n${v.texte}`
|
|
1525
1616
|
);
|
|
1526
1617
|
}
|
|
1527
|
-
// The findings still open once the sheet is read (`constatsOuverts` of scripts/circuit.mjs),
|
|
1528
|
-
// or its stop for a finding without a valid recipient.
|
|
1529
|
-
const lus = lire('constats');
|
|
1530
1618
|
if (lus.arret) {
|
|
1531
1619
|
return decision({ arret: lus.arret });
|
|
1532
1620
|
}
|
|
1533
|
-
maj.constats = lus.constats;
|
|
1534
1621
|
// A lot of the short circuit (mechanical, or written by hand under a plan « comportement
|
|
1535
1622
|
// inchangé ») that the reviewer renders for a changed behaviour (`comportement-change`) goes
|
|
1536
1623
|
// back to 2 Tests on the same plan, its sort turned to comportement with the verdict as its
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// The types of ./verrou-de-fichier.mjs, for the frame's TypeScript (src/temporal/installation.ts).
|
|
2
|
+
|
|
3
|
+
/** Blocks the process for `ms` milliseconds. */
|
|
4
|
+
export function attendreUnPeu(ms: number): string;
|
|
5
|
+
/** Takes the lock file `verrou`; with `attendre` false, false while another holds it. */
|
|
6
|
+
export function prendreVerrou(
|
|
7
|
+
verrou: string,
|
|
8
|
+
options: { attendre: boolean; perime?: number | null; pid?: number }
|
|
9
|
+
): boolean;
|
|
10
|
+
/** Releases the lock this process took on `verrou`. */
|
|
11
|
+
export function lacherVerrou(verrou: string): void;
|
package/skills/direct/SKILL.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: direct
|
|
3
|
-
description: "Travailler un ticket
|
|
3
|
+
description: "Travailler un ticket du circuit direct : tests et code ensemble, dans la copie du ticket. À charger au démarrage d'une séance de l'agent direct, dans le circuit ou sur la voie de secours, avant de lire le ticket."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Direct — écrire un ticket
|
|
6
|
+
# Direct — écrire un ticket du circuit direct
|
|
7
7
|
|
|
8
|
-
Un ticket direct est un
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
Un ticket direct est un travail que le ticket décrit en entier : une correction triviale, le
|
|
9
|
+
squelette d'un paquet, ou une correction du circuit que le circuit complet ou court ne peut pas
|
|
10
|
+
porter. Une correction triviale te vient aussi du plan, quand l'explorateur l'a jugée telle : tu
|
|
11
|
+
suis alors les critères du plan et tu n'écris que ses paquets ; un ticket né direct n'a pas de plan.
|
|
12
|
+
Aucun ticket direct n'a de testwriter, de preuve du rouge ni de contrôles : tu écris ses tests et
|
|
13
|
+
son code ensemble, la passe finale juge ton lot, un relecteur le lit, puis le circuit le commite et
|
|
14
|
+
le fait entrer sur main ; sur la voie de secours, le superviseur vérifie et commite à la place du
|
|
15
|
+
circuit. Tu n'es ni le relecteur ni le superviseur. La charte du projet, déjà dans ton contexte,
|
|
16
|
+
prime sur tout le reste.
|
|
13
17
|
|
|
14
18
|
## Au démarrage
|
|
15
19
|
|
|
@@ -47,8 +51,8 @@ la cause se trouve avant le correctif.
|
|
|
47
51
|
|
|
48
52
|
- **Un défaut corrigé porte un test qui le reproduit** : tu écris le test d'abord, tu le vois rouge
|
|
49
53
|
par `npm test -- <fichiers>` (chemins depuis la racine du dépôt), puis tu corriges et tu le vois
|
|
50
|
-
vert. Aucune preuve du rouge ne le rejoue : le relecteur et
|
|
51
|
-
|
|
54
|
+
vert. Aucune preuve du rouge ne le rejoue : le relecteur la tient, et un défaut corrigé sans test
|
|
55
|
+
qui le reproduit est rendu.
|
|
52
56
|
- **L'existant d'abord** : avant d'écrire un calcul ou d'inventer un nom, tu cherches celui qui
|
|
53
57
|
existe et tu vérifies ce qu'il fait.
|
|
54
58
|
- **Tu écris les paquets du plan seuls** (les composants du titre du ticket, plus ceux que la
|
|
@@ -70,8 +74,14 @@ fiche finit sur BESOIN, sa `question` nommant le paquet qui le possède et son c
|
|
|
70
74
|
fichier ; un fichier que le ticket nomme étend le plan et ta séance reprend. Une
|
|
71
75
|
découverte hors du ticket entre dans `decouvertes` de ta fiche.
|
|
72
76
|
|
|
77
|
+
Un ticket qui demande un plan ou plus d'un agent (une décision à prendre, plusieurs composants à
|
|
78
|
+
accorder, des tests qu'un autre que l'auteur du code doit écrire) : ta fiche finit sur BESOIN ou
|
|
79
|
+
BLOQUÉ avec le `motif` `demande-un-plan`, sa `raison` et sa `piece`. Le circuit s'arrête avant tout
|
|
80
|
+
autre geste, et le superviseur décide : `--planifier` bascule le ticket vers le plan, ta copie
|
|
81
|
+
gardée, `--reprendre` garde le direct.
|
|
82
|
+
|
|
73
83
|
## La fin
|
|
74
84
|
|
|
75
85
|
Ta passation au ticket (`bd comments add`), en mots simples : la cause, ce qui est juste, le test
|
|
76
|
-
et sa morsure, ce qui n'est pas fait. Ta séance finit sur ta fiche,
|
|
77
|
-
|
|
86
|
+
et sa morsure, ce qui n'est pas fait. Ta séance finit sur ta fiche, celle du rôle direct. Ainsi le circuit lit ta fiche, l'humain et ta
|
|
87
|
+
séance suivante ta passation.
|
|
@@ -72,7 +72,7 @@ avant de nommer un correctif ou un verdict. Ainsi le plan part de la cause.
|
|
|
72
72
|
2. **Le plan.** Ma fiche porte le plan, que le circuit écrit au ticket :
|
|
73
73
|
- `criteres` : chacun un comportement que ses tests mesurent, sans son numéro ; un critère
|
|
74
74
|
répond à un besoin réel de l'usage actuel, et se confronte à la spécification. **Je fixe la
|
|
75
|
-
taille du test au critère** (charte, « La taille d'un test suit la pyramide ») : par défaut il
|
|
75
|
+
taille du test au critère** (charte, module `preuve`, « La taille d'un test suit la pyramide ») : par défaut il
|
|
76
76
|
se prouve petit, et je ne dis rien ; je ne nomme que l'exception, avec sa raison (comme un
|
|
77
77
|
écart à la référence porte la sienne) — `moyen` quand une couture entre quelques modules
|
|
78
78
|
échappe au petit, `grand` quand seul le produit ou le cadre monté prouve le câblage (un seul
|
|
@@ -89,7 +89,12 @@ avant de nommer un correctif ou un verdict. Ainsi le plan part de la cause.
|
|
|
89
89
|
chaque séance du ticket n'écrit qu'eux. Je garde chaque composant que le titre nomme, la
|
|
90
90
|
racine (« . ») comprise : elle porte les fichiers de la racine qu'un critère nomme, le
|
|
91
91
|
CHANGELOG.md par exemple ;
|
|
92
|
-
- `sorte` : la sorte du ticket, et sa `raison`. `
|
|
92
|
+
- `sorte` : la sorte du ticket, et sa `raison`. `correction triviale` pour une ligne fautive ou
|
|
93
|
+
un mauvais argument, que le ticket décrit en entier, avec sa `raison` et sa `piece`
|
|
94
|
+
(fichier:ligne, « $ commande » et sa sortie, ou « ticket, critère N » ou « ticket, §
|
|
95
|
+
<section> ») : le plan passé, le circuit bascule sans arrêt au circuit direct, où l'agent
|
|
96
|
+
direct écrit tests et code dans les paquets du plan ; le doute va au circuit long. Le circuit
|
|
97
|
+
la refuse sur un ticket que l'agent direct a déjà travaillé. `mécanique` pour un geste sans comportement
|
|
93
98
|
neuf (montée du cadre, documents seuls, renommage ou déplacement, montée de dépendance,
|
|
94
99
|
configuration seule, correction de style, seuil relevé), avec sa `commande`, la commande ou
|
|
95
100
|
l'outil qui fait le geste, telle qu'elle se lance à la racine de la copie, sans appeler git :
|
|
@@ -258,7 +263,7 @@ composants qu'il nomme. Je n'écris rien au ticket : mes écritures passent par
|
|
|
258
263
|
rapport.
|
|
259
264
|
3. **Le découpage.** Je propose les tickets de réalisation. Chacun décrit un seul comportement par
|
|
260
265
|
ses tests, fait une seule livraison, et nomme les composants qu'il touche, le fournisseur
|
|
261
|
-
d'abord, puis ses lecteurs (charte, « Un ticket de réalisation nomme ses composants »). Les
|
|
266
|
+
d'abord, puis ses lecteurs (charte, module `plan`, « Un ticket de réalisation nomme ses composants »). Les
|
|
262
267
|
composants d'un ticket se relèvent sur son brouillon :
|
|
263
268
|
`npx grillhouse composants-affectes --description <brouillon>` ; la section « Architecture »
|
|
264
269
|
reprend le relevé. Chaque critère de fin se confronte à la spécification et se mesure par une
|
package/skills/grill/SKILL.md
CHANGED
|
@@ -39,10 +39,11 @@ le responsable corrige une proposition et garde son temps pour les vraies décis
|
|
|
39
39
|
|
|
40
40
|
Un projet neuf naît de `npx @roomi-fields/grillhouse init <dossier> [préfixe]` : le gabarit, les
|
|
41
41
|
tickets, l'index, les greffons et les crochets. S'il manque ensuite un élément, l'ouverture de séance
|
|
42
|
-
le signale sous « Manque », chacun avec sa commande, sans invite : `npx grillhouse
|
|
42
|
+
le signale sous « Manque », chacun avec sa commande, sans invite : `npx grillhouse greffons` installe pour
|
|
43
43
|
le projet chaque greffon que `.claude/settings.json` déclare (`enabledPlugins`), après son
|
|
44
|
-
marketplace, et met le greffon du cadre à la version du paquet ;
|
|
45
|
-
|
|
44
|
+
marketplace, et met le greffon du cadre à la version du paquet ; `npx grillhouse hooks` pose les
|
|
45
|
+
crochets git du cadre. La montée (`npx grillhouse maj`), qui commite et avance main, ne sert pas à
|
|
46
|
+
réparer. Le préfixe des tickets vient du nom du projet ; il se confirme au premier tour du grill.
|
|
46
47
|
|
|
47
48
|
## 2. La règle de l'architecture
|
|
48
49
|
|
|
@@ -133,11 +134,12 @@ remplace jamais le grill. Les branches de l'arbre :
|
|
|
133
134
|
que le tableau ne déclare pas, un paquet dont le manifeste suit un autre langage (un
|
|
134
135
|
`package.json` pour `typescript`, un `Cargo.toml` pour `cargo`, un `pyproject.toml` pour
|
|
135
136
|
`python`, un `CMakeLists.txt` pour `c`), un dossier déclaré sans ce manifeste, et une interface qui en nomme un autre.
|
|
136
|
-
**Un paquet neuf naît en quatre temps
|
|
137
|
+
**Un paquet neuf naît en quatre temps** (charte, module `superviseur`) : ce grill tranche
|
|
137
138
|
son rôle, sa frontière, ses refus, son interface et son langage (1) ; le superviseur écrit sa
|
|
138
|
-
ligne et ses documents, relus par le responsable
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
ligne et ses documents, relus par le responsable, à la description d'un ticket direct (2) ;
|
|
140
|
+
l'agent direct de ce ticket les écrit et joue `npx grillhouse paquet <chemin>`, qui bâtit son
|
|
141
|
+
squelette et, pour le premier paquet d'un langage, les outils de ce langage (3), 2 et 3 entrant
|
|
142
|
+
dans le même lot, sur sa passe finale ; son code part en ticket ordinaire (4).
|
|
141
143
|
Les mécanismes d'un paquet — sa forme publiée, les outils du projet, le corpus et ses données, les traces, Turborepo et la configuration Vitest — sont dans `references/paquets.md`, à lire au moment de créer un paquet.
|
|
142
144
|
9. **Les interfaces** — pour chaque frontière : ce qui la traverse, qui offre, qui consomme, qui
|
|
143
145
|
juge quelle faute, et le garde qui la tiendra.
|
|
@@ -195,7 +197,8 @@ ensuite. Ainsi les documents écrivent des décisions prises.
|
|
|
195
197
|
s'ouvrent sous l'étiquette `a-valider`, chacun avec les règles et les documents qu'il touche,
|
|
196
198
|
et chaque réalisation avec ses critères d'acceptation numérotés (`docs/agents/issue-tracker.md`).
|
|
197
199
|
Ainsi le premier chantier part avec l'accord du responsable.
|
|
198
|
-
-
|
|
200
|
+
- Les questions restées ouvertes, chacune dans un ticket : la note de reprise du superviseur
|
|
201
|
+
(compétence `pitmaster`) commence à son premier jalon.
|
|
199
202
|
- Un commit `docs: initialiser le projet` qui ne contient que ces éléments.
|
|
200
203
|
|
|
201
204
|
À la fin, l'ouverture de séance ne signale plus rien : la séance suivante charge `pitmaster`.
|
|
@@ -14,10 +14,10 @@ s'intègre comme un paquet.
|
|
|
14
14
|
**Le corpus du produit, un seul paquet** : les cas qui traversent toute la chaîne, et dont toute
|
|
15
15
|
modification d'un paquet peut changer le résultat, vivent dans un seul paquet qui exporte
|
|
16
16
|
`./test-fixtures`, comme `tests/cases` de TypeScript ou `tests/ui` de rustc ; tous les rôles le
|
|
17
|
-
lisent, le testwriter seul l'écrit. Sa configuration de Vitest
|
|
18
|
-
(`vitest.config.cjs`, la base du cadre par `await
|
|
19
|
-
d'une configuration ESM pour la charger, et
|
|
20
|
-
|
|
17
|
+
lisent, le testwriter seul l'écrit. Sa configuration de Vitest, comme celle de la racine et de
|
|
18
|
+
chaque paquet, s'écrit en CommonJS (`vitest.config.cjs`, la base du cadre par `await
|
|
19
|
+
import()`) : Vite écrit un fichier à côté d'une configuration ESM pour la charger, et
|
|
20
|
+
l'enveloppe montre en lecture seule un paquet hors du plan. Ses données (scènes, paires) ne bougent que les tests qui
|
|
21
21
|
les lisent, comme le `data` de Bazel : chaque paquet déclare dans son `package.json`, depuis la
|
|
22
22
|
racine, les chemins (dossiers ou fichiers) que ses tests lisent (`"grillhouse": { "lit": [...] }`),
|
|
23
23
|
données ou code d'un voisin (ses scripts de capture, un fichier de ses sources), comme le `data`
|