@roomi-fields/grillhouse 0.50.3 → 0.52.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/developpeur.md +1 -1
- package/agents/direct.md +1 -1
- package/agents/explorateur.md +1 -1
- package/agents/questionneur.md +1 -1
- package/agents/relecteur.md +1 -1
- package/agents/testwriter.md +1 -1
- package/cadre/templates/c/package.json +1 -0
- package/cadre/templates/cargo/package.json +1 -0
- package/cadre/templates/python/package.json +1 -0
- package/charte/plan.md +47 -0
- package/charte/preuve.md +39 -0
- package/charte/superviseur.md +61 -0
- package/charte/tests.md +38 -0
- package/charte.md +39 -189
- package/dist/machine/part-par-sorte.d.ts +16 -0
- package/dist/machine/part-par-sorte.js +36 -0
- package/dist/machine/part-par-sorte.js.map +1 -0
- package/dist/temporal/circuit/appel.js +1 -1
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +4 -4
- package/dist/temporal/circuit/client.js +38 -16
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +11 -7
- package/dist/temporal/circuit/contrat.js +5 -9
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +18 -6
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/commande.js +12 -3
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/installation.d.ts +54 -3
- package/dist/temporal/installation.js +187 -17
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/places/client.d.ts +5 -1
- package/dist/temporal/places/client.js +23 -11
- package/dist/temporal/places/client.js.map +1 -1
- package/docs/ARCHITECTURE.md +23 -2700
- package/docs/INTERFACE.md +26 -10
- package/docs/architecture/circuit.md +61 -14
- package/docs/architecture/entree.md +21 -8
- package/docs/architecture/greffon.md +49 -20
- package/docs/architecture/installation.md +46 -17
- package/docs/architecture/machine.md +79 -39
- package/docs/architecture/tests.md +59 -16
- package/docs/lexique.md +163 -0
- package/hooks/hooks.json +0 -10
- package/hooks/register.tsx +92 -4
- package/package.json +2 -1
- package/scripts/activites.mjs +105 -65
- package/scripts/aiguillage.mjs +15 -8
- package/scripts/attente-au-tour.mjs +2 -3
- package/scripts/attente-de-la-machine.mjs +4 -8
- package/scripts/avancement.mjs +12 -8
- package/scripts/bilan.mjs +126 -63
- package/scripts/bilans-gardes.mjs +37 -0
- package/scripts/branche-de-nuit.mjs +2 -2
- package/scripts/ci-de-main.mjs +18 -21
- package/scripts/circuit.mjs +89 -44
- package/scripts/circuits-du-serveur.mjs +5 -5
- package/scripts/composants-affectes.mjs +30 -12
- package/scripts/composition-des-langages.mjs +5 -3
- package/scripts/conformite.mjs +1 -1
- package/scripts/consommation-des-passes.mjs +8 -6
- package/scripts/copies-finies.mjs +3 -14
- package/scripts/depart-du-ticket.d.mts +8 -2
- package/scripts/depart-du-ticket.mjs +26 -8
- package/scripts/direct.mjs +158 -72
- package/scripts/droits.mjs +165 -208
- package/scripts/engendres.mjs +3 -14
- package/scripts/entree-de-seance.mjs +35 -0
- package/scripts/enveloppe/enveloppe.mjs +98 -46
- package/scripts/enveloppe/lancer.sh +90 -66
- package/scripts/enveloppe/paquets-du-plan.mjs +38 -11
- package/scripts/enveloppe/travail-de-la-copie.mjs +192 -3
- package/scripts/etapes.mjs +84 -22
- package/scripts/faits-du-circuit.mjs +8 -2
- package/scripts/grillhouse-maj.mjs +43 -18
- package/scripts/groupe-cles.d.mts +15 -0
- package/scripts/groupe-cles.mjs +77 -2
- package/scripts/init.mjs +9 -2
- package/scripts/integration/rejeu.mjs +8 -1
- package/scripts/jointure.d.ts +24 -4
- package/scripts/langages/c/index.mjs +5 -2
- package/scripts/langages/cargo/commandes.mjs +35 -15
- package/scripts/langages/cargo/composants.mjs +45 -3
- package/scripts/langages/cargo/index.mjs +6 -3
- package/scripts/langages/python/commandes.mjs +50 -7
- package/scripts/langages/python/index.mjs +5 -2
- package/scripts/langages/python/squelette.mjs +2 -1
- package/scripts/langages/typescript/chemins-des-tests.mjs +1 -1
- package/scripts/langages/typescript/index.mjs +16 -14
- package/scripts/langages/typescript/mise-a-jour.mjs +1 -1
- package/scripts/langages/typescript/rapports-aux-lignes.mjs +74 -0
- package/scripts/langages/typescript/turbo-des-paquets.mjs +151 -38
- package/scripts/langages/typescript/verdict.mjs +29 -3
- package/scripts/langages/typescript/verifier.mjs +28 -3
- package/scripts/langages/typescript/vitest-config/changements.mjs +8 -6
- package/scripts/langages/typescript/vitest-config/lances.mjs +15 -32
- package/scripts/langages.mjs +54 -4
- package/scripts/matieres-lues.mjs +1 -1
- package/scripts/mesure/base-de-passe.mjs +32 -90
- package/scripts/migrations/serveurs-de-l-index.mjs +79 -0
- package/scripts/migrations/suivi-du-superviseur-retire.mjs +56 -0
- package/scripts/migrations.mjs +23 -7
- package/scripts/nuit.sh +3 -2
- package/scripts/paquet.mjs +1 -1
- package/scripts/paquets.d.ts +3 -0
- package/scripts/paquets.mjs +88 -1
- package/scripts/passe-de-la-machine.mjs +109 -36
- package/scripts/places-de-la-machine.mjs +81 -29
- package/scripts/plafond-de-la-machine.d.mts +2 -5
- package/scripts/plafond-de-la-machine.mjs +9 -9
- package/scripts/reprise.mjs +42 -13
- package/scripts/resultats.mjs +78 -56
- package/scripts/retirer-les-copies-finies.mjs +1 -1
- package/scripts/seances.mjs +471 -133
- package/scripts/services-du-noyau.mjs +9 -1
- package/scripts/session-start.sh +22 -7
- package/scripts/sortie-de-seance.mjs +70 -0
- package/scripts/sortie.mjs +37 -6
- package/scripts/sous-commandes.mjs +0 -3
- package/scripts/superviseur.mjs +400 -162
- package/scripts/tableau.mjs +188 -65
- package/scripts/transitions.d.mts +25 -2
- package/scripts/transitions.mjs +137 -29
- package/scripts/verrous/ecriture-hors-enveloppe.mjs +31 -9
- package/skills/codebase-design/DESIGN-IT-TWICE.md +1 -1
- package/skills/developpeur/SKILL.md +38 -15
- package/skills/direct/SKILL.md +29 -9
- package/skills/domain-modeling/GLOSSARY-FORMAT.md +9 -9
- package/skills/domain-modeling/SKILL.md +14 -12
- package/skills/explorateur/SKILL.md +32 -8
- package/skills/grill/SKILL.md +3 -2
- package/skills/pitmaster/SKILL.md +80 -50
- package/skills/pitmaster/references/cadre.md +1 -1
- package/skills/pitmaster/references/consigne-agent.md +12 -11
- package/skills/pitmaster/references/tour.md +6 -5
- package/skills/relecteur/SKILL.md +13 -6
- package/skills/systematic-debugging/SKILL.md +281 -0
- package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/skills/systematic-debugging/find-polluter.sh +72 -0
- package/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/skills/testwriter/SKILL.md +37 -31
- package/cadre/templates/projet/pitmaster/SUIVI.md +0 -22
- package/scripts/attente-a-l-arret.mjs +0 -114
- package/scripts/verrous/commande.mjs +0 -214
- package/scripts/verrous/verrou.mjs +0 -311
package/scripts/transitions.mjs
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
// - `memoire`, what the circuit keeps between steps (`controlesRouges`, `renvoiAuTestwriter`,
|
|
13
13
|
// `refus`, `rienALivrer`, `regeneration`, `regenereSur`, `aRegenerer`, `verifie`,
|
|
14
14
|
// `toursDeLaPasseFinale`, `constats`);
|
|
15
|
-
// - `ticket`, `{ id, paquets, sorte, copie }
|
|
15
|
+
// - `ticket`, `{ id, paquets, sorte, copie, circuit }`, `circuit` being `long`, `court` or
|
|
16
|
+
// `direct` (without it, the rule decides as a long or short circuit);
|
|
16
17
|
// - `reprend`, whether this step is the first of a `--reprendre`;
|
|
17
18
|
// - `faits`, the facts read for this step, by their name;
|
|
18
19
|
// - `marqueurs`, the markers of the workflow of a ticket (`patched`), each true when the run
|
|
@@ -33,8 +34,27 @@
|
|
|
33
34
|
// step the list does not hold `usage`. Each call is played again from the start of its step with
|
|
34
35
|
// the facts read so far, as Temporal replays a workflow on its history: the same facts give the
|
|
35
36
|
// same decision.
|
|
36
|
-
import { ARRETS, boucle, RESPONSABLE, SUITE } from './etapes.mjs';
|
|
37
|
-
import { attribuerLeRouge, departDepuis } from './reprise.mjs';
|
|
37
|
+
import { ARRETS, auteurDuCode, boucle, joue, nomDuRole, RESPONSABLE, SUITE } from './etapes.mjs';
|
|
38
|
+
import { attribuerLeRouge, departDepuis, refusDeLaReprise } from './reprise.mjs';
|
|
39
|
+
|
|
40
|
+
// The resumptions `--depuis` names and the one rule that accepts them (./reprise.mjs), as the
|
|
41
|
+
// workflow of a ticket reads them.
|
|
42
|
+
export { ETAPES_DE_REPRISE } from './reprise.mjs';
|
|
43
|
+
export { refusDeLaReprise };
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The circuit (`long` or `court`) the sort <sorte> of a ticket makes: short for a gesture without
|
|
47
|
+
* new behaviour (mechanical, or « comportement inchangé »), long for any other, none said included.
|
|
48
|
+
*/
|
|
49
|
+
export const circuitDeLaSorte = sorte =>
|
|
50
|
+
sorte?.genre === 'mécanique' || sorte?.comportement === 'inchangé' ? 'court' : 'long';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The circuit <circuit> once the sort of its ticket turns to <sorte>: a direct circuit stays so,
|
|
54
|
+
* any other follows the sort.
|
|
55
|
+
*/
|
|
56
|
+
export const circuitSuivant = (circuit, sorte) =>
|
|
57
|
+
circuit === 'direct' ? circuit : circuitDeLaSorte(sorte);
|
|
38
58
|
|
|
39
59
|
// What the circuit keeps between steps, which the decisions read and change: the one list the
|
|
40
60
|
// opening reads back (scripts/faits-du-circuit.mjs `GARDEE`) and the memo of a circuit keeps
|
|
@@ -97,6 +117,17 @@ export const TOURS_DE_LA_PASSE_FINALE = 2;
|
|
|
97
117
|
export const CHANGE_DU_REFUS =
|
|
98
118
|
'l’intégration refuse ton lot, et ta séance n’a changé aucun fichier du plan : son refus, dans le rapport ci-dessous, est le rouge à lever';
|
|
99
119
|
|
|
120
|
+
// The author of the code of the circuit <circuit> as the texts name him: his role, which
|
|
121
|
+
// `--depuis` takes, and his name in words (« le …», « du … », « au … »).
|
|
122
|
+
const auteurDe = circuit => {
|
|
123
|
+
const role = auteurDuCode(circuit);
|
|
124
|
+
const [nom, le, du, au] =
|
|
125
|
+
role === 'direct'
|
|
126
|
+
? ['agent direct', 'l’agent direct', 'de l’agent direct', 'à l’agent direct']
|
|
127
|
+
: ['développeur', 'le développeur', 'du développeur', 'au développeur'];
|
|
128
|
+
return { role, nom, le, du, au };
|
|
129
|
+
};
|
|
130
|
+
|
|
100
131
|
// The developpeur's report on the integration's refusal <refus>: the red to lift, which the checks
|
|
101
132
|
// of the copy, green, do not see.
|
|
102
133
|
export const rapportDuRefus = refus =>
|
|
@@ -106,14 +137,15 @@ export const rapportDuRefus = refus =>
|
|
|
106
137
|
// (`direLIssue` of scripts/integration/file.mjs): `motif`, whose first line, the
|
|
107
138
|
// fact of the question gone up, says why (the first line of the reason that is not a title), the
|
|
108
139
|
// whole reason after it; `question`, for a branch that does not replay on main (its conflict), the
|
|
109
|
-
// answer that serves
|
|
110
|
-
export function refusDeLaFile({ raison, conflit = false } = {}) {
|
|
140
|
+
// answer that serves in the circuit <circuit>, null for any other reason.
|
|
141
|
+
export function refusDeLaFile({ raison, conflit = false } = {}, circuit = null) {
|
|
142
|
+
const auteur = auteurDe(circuit);
|
|
111
143
|
const texte = String(raison ?? '').trim();
|
|
112
144
|
const pourquoi = texte.split('\n').find(l => l.trim() && !l.startsWith('#'));
|
|
113
145
|
return {
|
|
114
146
|
motif: `La file rouvre le ticket${pourquoi ? ` : ${pourquoi.trim()}` : '.'}\n\n${texte}`,
|
|
115
147
|
question: conflit
|
|
116
|
-
?
|
|
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.`
|
|
117
149
|
: null,
|
|
118
150
|
};
|
|
119
151
|
}
|
|
@@ -386,8 +418,23 @@ export const etatDeReprise = etat =>
|
|
|
386
418
|
// the log of its check; else the step a --depuis names (the testwriter's, which makes the lot
|
|
387
419
|
// again, the refusal dropped, or the developpeur's), the step of the state `etat` (null without
|
|
388
420
|
// one) on --reprendre, the integration or the queue played again on the same lot after their stop,
|
|
389
|
-
// as bors retries, else the testwriter, the run starting over.
|
|
390
|
-
|
|
421
|
+
// as bors retries, else the testwriter, the run starting over. A direct circuit (<circuit>) starts
|
|
422
|
+
// at the code, its agent in the developpeur's place, and keeps on --reprendre the count of its
|
|
423
|
+
// sessions from the code to the regeneration, but after a stop `controles` or `sans-livraison`. A
|
|
424
|
+
// --depuis the circuit does not accept is a refusal (`refusDeLaReprise`).
|
|
425
|
+
export function depart({
|
|
426
|
+
depuis = null,
|
|
427
|
+
reprendre = false,
|
|
428
|
+
marque = false,
|
|
429
|
+
etat,
|
|
430
|
+
refus,
|
|
431
|
+
ticket,
|
|
432
|
+
circuit = null,
|
|
433
|
+
}) {
|
|
434
|
+
const usage = depuis ? refusDeLaReprise({ depuis, circuit }) : null;
|
|
435
|
+
if (usage) {
|
|
436
|
+
return { usage };
|
|
437
|
+
}
|
|
391
438
|
// The supervisor's command wins over the sort of the plan: the mark of his `--depuis testwriter`.
|
|
392
439
|
const memoire = {
|
|
393
440
|
testwriterDemande: testwriterDemande({ depuis, reprendre: Boolean(reprendre), marque }),
|
|
@@ -397,7 +444,7 @@ export function depart({ depuis = null, reprendre = false, marque = false, etat,
|
|
|
397
444
|
if (depuis) {
|
|
398
445
|
Object.assign(memoire, { verts: {}, reprise: null, relancesTestwriter: null });
|
|
399
446
|
}
|
|
400
|
-
if (depuis ===
|
|
447
|
+
if (depuis === auteurDuCode(circuit) && etat?.raison === 'integration' && refus) {
|
|
401
448
|
memoire.refus = { ...refus, lance: true, relance: false };
|
|
402
449
|
return {
|
|
403
450
|
suivant: { etape: CODE, tentative: 1, rapport: rapportDuRefus(memoire.refus), finale: false },
|
|
@@ -423,7 +470,8 @@ export function depart({ depuis = null, reprendre = false, marque = false, etat,
|
|
|
423
470
|
refus: null,
|
|
424
471
|
controlesRouges: null,
|
|
425
472
|
});
|
|
426
|
-
|
|
473
|
+
const etape = circuit === 'direct' && !joue('2', circuit) ? CODE : TESTS;
|
|
474
|
+
return { suivant: { etape, tentative: 1, rapport: null, finale: false }, memoire };
|
|
427
475
|
}
|
|
428
476
|
if (!etat) {
|
|
429
477
|
return { usage: `rien à reprendre : le circuit de ${ticket} n'a aucun état d'arrêt.` };
|
|
@@ -431,10 +479,14 @@ export function depart({ depuis = null, reprendre = false, marque = false, etat,
|
|
|
431
479
|
if (etat.etape === 'integre') {
|
|
432
480
|
return { usage: `rien à reprendre : le lot de ${ticket} est intégré.` };
|
|
433
481
|
}
|
|
482
|
+
const compteGarde =
|
|
483
|
+
circuit === 'direct' &&
|
|
484
|
+
[CODE, CONTROLES, REFERENCES].includes(etat.etape) &&
|
|
485
|
+
!['controles', 'sans-livraison'].includes(etat.raison);
|
|
434
486
|
return {
|
|
435
487
|
suivant: {
|
|
436
488
|
etape: etat.etape,
|
|
437
|
-
tentative: etat.etape === CONTROLES ? 0 : 1,
|
|
489
|
+
tentative: compteGarde ? etat.tentative : etat.etape === CONTROLES ? 0 : 1,
|
|
438
490
|
rapport: etat.rapport,
|
|
439
491
|
finale: etat.finale === true,
|
|
440
492
|
},
|
|
@@ -480,7 +532,7 @@ export function fichiersDeTestRouges(controlesRouges) {
|
|
|
480
532
|
|
|
481
533
|
// The context `--etendre` gives the sessions of the run it resumes on the stop <question>: the
|
|
482
534
|
// supervisor's answer (the packages <etendus> the plan gains, the plan <plan> as it is now), then his own text <contexte>. The stop's fact
|
|
483
|
-
// and piece stay out of it: they say the plan as it was and tell a session to stop (
|
|
535
|
+
// and piece stay out of it: they say the plan as it was and tell a session to stop (its
|
|
484
536
|
// message), and a session reads its context as the supervisor's word. Without a question, his
|
|
485
537
|
// text alone, or null.
|
|
486
538
|
export function contexteDeLExtension({ question, etendus, plan, contexte }) {
|
|
@@ -596,12 +648,21 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
596
648
|
return true;
|
|
597
649
|
};
|
|
598
650
|
const plan = ticket.paquets.join(', ');
|
|
651
|
+
const direct = ticket.circuit === 'direct';
|
|
652
|
+
const auteur = auteurDe(ticket.circuit);
|
|
599
653
|
// The plan skips the testwriter (« comportement inchangé » he was not asked for, or no package
|
|
600
654
|
// playing tests): a sending of the red to him leads nowhere, whatever the checks between two.
|
|
601
655
|
const inchangeSansTestwriter = () =>
|
|
602
656
|
ticket.sorte?.comportement === 'inchangé' && !m('testwriterDemande');
|
|
603
657
|
const testwriterSaute = () => inchangeSansTestwriter() || Boolean(lire('sansTests'));
|
|
604
658
|
|
|
659
|
+
// A direct circuit plays neither the tests nor their proof: a state that stands there (the
|
|
660
|
+
// conflict of the advance that names the testwriter) launches its agent at the code.
|
|
661
|
+
if (direct && ((etape === TESTS && !joue('2', 'direct')) || etape === PREUVE)) {
|
|
662
|
+
etape = CODE;
|
|
663
|
+
return decision();
|
|
664
|
+
}
|
|
665
|
+
|
|
605
666
|
// After the plan: the gesture of a mechanical ticket, the developpeur of a plan without tests,
|
|
606
667
|
// else the testwriter.
|
|
607
668
|
const route =
|
|
@@ -691,6 +752,9 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
691
752
|
}
|
|
692
753
|
// No checks have run since this session.
|
|
693
754
|
maj.controlesRouges = null;
|
|
755
|
+
if (fiche.horsRole) {
|
|
756
|
+
return rendreLeLot('testwriter', TESTS, fiche.horsRole);
|
|
757
|
+
}
|
|
694
758
|
commenter('testwriter', `séance ${tentative} finie, sa fiche lue.`);
|
|
695
759
|
// A copy the module of the language no longer reads is a red of the testwriter.
|
|
696
760
|
const illisible = lire('lecture');
|
|
@@ -834,7 +898,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
834
898
|
if (f.etat === 'en-file') {
|
|
835
899
|
return arreter('a-repasser', f.raison);
|
|
836
900
|
}
|
|
837
|
-
const refus = refusDeLaFile(f);
|
|
901
|
+
const refus = refusDeLaFile(f, ticket.circuit);
|
|
838
902
|
return refuser(refus.motif, f.raison, refus.question);
|
|
839
903
|
}
|
|
840
904
|
if (etape === TRI) {
|
|
@@ -844,6 +908,24 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
844
908
|
}
|
|
845
909
|
return decision({ usage: `étape inconnue dans l'état : ${etape}` });
|
|
846
910
|
|
|
911
|
+
// The lot of the session of <role> at <lieu> holds files out of the rule of its role (<hors>,
|
|
912
|
+
// `{ fichiers, rapport }`): the step goes back to its author, one attempt used as a red uses
|
|
913
|
+
// it, or, the attempts used up, the stop « controles ».
|
|
914
|
+
function rendreLeLot(role, lieu, hors) {
|
|
915
|
+
const suite = suiteDuRougeDeLecture(role, tentative);
|
|
916
|
+
if (suite.arret) {
|
|
917
|
+
return arreter(suite.arret, hors.rapport, { piece: hors.fichiers.join('\n') });
|
|
918
|
+
}
|
|
919
|
+
commenter(
|
|
920
|
+
role,
|
|
921
|
+
`séance ${tentative} finie ; son lot sort de la règle de son rôle, ${nomDuRole(role)} relancé (séance ${suite.tentative}).\n\n${hors.rapport}`
|
|
922
|
+
);
|
|
923
|
+
etape = lieu;
|
|
924
|
+
tentative = suite.tentative;
|
|
925
|
+
rapport = hors.rapport;
|
|
926
|
+
return decision();
|
|
927
|
+
}
|
|
928
|
+
|
|
847
929
|
// The stop « integration » of the motive <motif> and the piece <piece>, the refusal of the lot
|
|
848
930
|
// kept in the memory (`refus`: `{ rapport, piece, empreinte, lance, relance }`, the fingerprint
|
|
849
931
|
// of the plan refused, whether a --depuis developpeur launched the developpeur on it, and whether
|
|
@@ -861,10 +943,14 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
861
943
|
}
|
|
862
944
|
|
|
863
945
|
function code() {
|
|
946
|
+
if (direct) {
|
|
947
|
+
// A new session of the agent direct: what an earlier one left unchanged is judged no more.
|
|
948
|
+
maj.rienALivrer = null;
|
|
949
|
+
}
|
|
864
950
|
const fort = tentative >= SEANCES_DEVELOPPEUR;
|
|
865
951
|
const avant = lire('empreinteAvant');
|
|
866
952
|
const fiche = lire('seance', {
|
|
867
|
-
role:
|
|
953
|
+
role: auteur.role,
|
|
868
954
|
tentative,
|
|
869
955
|
rapport,
|
|
870
956
|
fort,
|
|
@@ -877,10 +963,14 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
877
963
|
// it to, else up to the supervisor.
|
|
878
964
|
if (fiche.statut === 'BESOIN') {
|
|
879
965
|
return decision({
|
|
880
|
-
arret: { nom: 'besoin', statut: { role:
|
|
966
|
+
arret: { nom: 'besoin', statut: { role: auteur.role, tentative, fiche } },
|
|
881
967
|
});
|
|
882
968
|
}
|
|
883
|
-
|
|
969
|
+
if (fiche.horsRole) {
|
|
970
|
+
return rendreLeLot('developpeur', CODE, fiche.horsRole);
|
|
971
|
+
}
|
|
972
|
+
// The agent direct writes the tests: no red of his goes to the testwriter.
|
|
973
|
+
const renvoi = direct ? null : lire('renvoi');
|
|
884
974
|
if (renvoi) {
|
|
885
975
|
// The red that remains lies in the tests of the lot: the gesture `renvoi-au-testwriter`,
|
|
886
976
|
// the testwriter, the sending and the handover as its report, then the proof and the
|
|
@@ -916,7 +1006,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
916
1006
|
}
|
|
917
1007
|
if (fiche.statut === 'BLOQUÉ') {
|
|
918
1008
|
return decision({
|
|
919
|
-
arret: { nom: 'hors-portee', statut: { role:
|
|
1009
|
+
arret: { nom: 'hors-portee', statut: { role: auteur.role, tentative, fiche } },
|
|
920
1010
|
});
|
|
921
1011
|
}
|
|
922
1012
|
if (fiche.hors_plan?.length) {
|
|
@@ -931,7 +1021,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
931
1021
|
}
|
|
932
1022
|
commenter(
|
|
933
1023
|
'developpeur',
|
|
934
|
-
`séance ${tentative} finie ; la copie ne se lit plus,
|
|
1024
|
+
`séance ${tentative} finie ; la copie ne se lit plus, ${auteur.nom} relancé (séance ${suite.tentative}).\n\n${illisible.rapport}`
|
|
935
1025
|
);
|
|
936
1026
|
tentative = suite.tentative;
|
|
937
1027
|
rapport = illisible.rapport;
|
|
@@ -948,14 +1038,14 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
948
1038
|
if (refus.relance) {
|
|
949
1039
|
return arreter(
|
|
950
1040
|
'sans-livraison',
|
|
951
|
-
`La séance ${tentative} du
|
|
1041
|
+
`La séance ${tentative} ${auteur.du} ne change aucun fichier du plan (${plan}), une seconde fois sur le lot que l'intégration refuse.\n\n${refus.rapport}`,
|
|
952
1042
|
{ piece: refus.piece }
|
|
953
1043
|
);
|
|
954
1044
|
}
|
|
955
1045
|
maj.refus = { ...refus, relance: true };
|
|
956
1046
|
commenter(
|
|
957
1047
|
'developpeur',
|
|
958
|
-
`séance ${tentative}${fortement} finie sans changement, sur le lot que l'intégration refuse : le circuit le relance une fois, le refus comme rapport.`
|
|
1048
|
+
`séance ${tentative}${fortement} finie sans changement, sur le lot que l'intégration refuse : le circuit ${direct ? `relance ${auteur.le}` : 'le relance'} une fois, le refus comme rapport.`
|
|
959
1049
|
);
|
|
960
1050
|
tentative++;
|
|
961
1051
|
rapport = rapportDuRefus(refus);
|
|
@@ -966,7 +1056,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
966
1056
|
// A resumed developpeur that finds the lot delivered: the checks judge it.
|
|
967
1057
|
commenter(
|
|
968
1058
|
'developpeur',
|
|
969
|
-
`séance ${tentative} reprise sans changement, le plan garde la livraison d'avant : aux contrôles.`
|
|
1059
|
+
`séance ${tentative} reprise sans changement, le plan garde la livraison d'avant : ${direct ? 'à la passe finale' : 'aux contrôles'}.`
|
|
970
1060
|
);
|
|
971
1061
|
inscrire({ etape: CODE, inchange: true }, 'inchange');
|
|
972
1062
|
} else if (inchangee) {
|
|
@@ -974,13 +1064,15 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
974
1064
|
// stop goes up.
|
|
975
1065
|
geste('rien-a-livrer');
|
|
976
1066
|
inscrire({ etape: CODE, inchange: true }, 'inchange');
|
|
977
|
-
maj.rienALivrer = `La séance ${tentative} du
|
|
1067
|
+
maj.rienALivrer = `La séance ${tentative} ${auteur.du} ne change aucun fichier du plan (${plan}), et ${direct ? 'la passe finale reste rouge' : 'les contrôles restent rouges'}. Sa passation au ticket dit pourquoi :\n\n${lire('passation') ?? 'aucune'}`;
|
|
978
1068
|
}
|
|
979
1069
|
if (auRetourDuConflit('developpeur')) {
|
|
980
1070
|
return decision();
|
|
981
1071
|
}
|
|
982
1072
|
commenter('developpeur', `séance ${tentative}${fortement} finie, sa fiche lue.`);
|
|
983
1073
|
etape = CONTROLES;
|
|
1074
|
+
// A circuit without checks (3.1) goes to the final pass, the count of its sessions kept.
|
|
1075
|
+
finale ||= direct && !joue('3.1', 'direct');
|
|
984
1076
|
return decision();
|
|
985
1077
|
}
|
|
986
1078
|
|
|
@@ -1003,6 +1095,10 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1003
1095
|
) {
|
|
1004
1096
|
// The step's inputs are those of its last green: its result is read back, not played.
|
|
1005
1097
|
releve(nomEtape, vert.ms);
|
|
1098
|
+
if (direct) {
|
|
1099
|
+
// A green pass: the session that had nothing to deliver is judged.
|
|
1100
|
+
maj.rienALivrer = null;
|
|
1101
|
+
}
|
|
1006
1102
|
maj.controlesRouges = null;
|
|
1007
1103
|
if (!passeFinale) {
|
|
1008
1104
|
etape = CONTROLES;
|
|
@@ -1041,6 +1137,14 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1041
1137
|
// A developpeur who had nothing to deliver before these checks.
|
|
1042
1138
|
const rien = m('rienALivrer');
|
|
1043
1139
|
maj.rienALivrer = null;
|
|
1140
|
+
// In a direct circuit the final pass judges that session: until a verdict of the pass falls
|
|
1141
|
+
// (green, or a red that stops or relaunches), the memory keeps it, through the regeneration
|
|
1142
|
+
// the pass calls for and a pass « à repasser ».
|
|
1143
|
+
const garderRien = () => {
|
|
1144
|
+
if (direct) {
|
|
1145
|
+
maj.rienALivrer = rien;
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1044
1148
|
// A stop of the checks: <phrase>, then the report, its reds also kept apart, as its piece;
|
|
1045
1149
|
// the stop kept at the checks keeps their outcome.
|
|
1046
1150
|
const arret = (nom, phrase, lieu = null) => {
|
|
@@ -1131,6 +1235,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1131
1235
|
}
|
|
1132
1236
|
if (aRegenerer.length) {
|
|
1133
1237
|
const noms = aRegenerer.map(r => r.nom);
|
|
1238
|
+
garderRien();
|
|
1134
1239
|
geste('regeneration');
|
|
1135
1240
|
ecrireRapport(
|
|
1136
1241
|
'controles',
|
|
@@ -1165,7 +1270,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1165
1270
|
if (k.rouge && passeFinale && k.horsTitre.length) {
|
|
1166
1271
|
return arret(
|
|
1167
1272
|
'controles',
|
|
1168
|
-
`La passe finale est rouge dans ${k.horsTitre.join(', ')}, hors du plan du ticket (${plan}) : le
|
|
1273
|
+
`La passe finale est rouge dans ${k.horsTitre.join(', ')}, hors du plan du ticket (${plan}) : ${auteur.le} n'est pas relancé. Le superviseur étend le plan à ce paquet (\`--etendre\`), le rouge allant ensuite ${auteur.au}, ou fait corriger le lot (\`--depuis ${auteur.role}\`, le rouge en \`--contexte\`).`
|
|
1169
1274
|
);
|
|
1170
1275
|
}
|
|
1171
1276
|
if (k.rouge && !k.auDeveloppeur) {
|
|
@@ -1177,7 +1282,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1177
1282
|
if (k.rouge && k.arbitrer) {
|
|
1178
1283
|
return arret(
|
|
1179
1284
|
'controles',
|
|
1180
|
-
|
|
1285
|
+
`Les rouges du plan sont des constats à arbitrer : ${direct ? 'aucun agent' : 'aucun développeur'} ne les tranche.`
|
|
1181
1286
|
);
|
|
1182
1287
|
}
|
|
1183
1288
|
if (k.rouge && lire('mecanique')) {
|
|
@@ -1197,7 +1302,9 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1197
1302
|
// The red goes back to the step that carries it, by the files it names (scripts/reprise.mjs).
|
|
1198
1303
|
const portes =
|
|
1199
1304
|
k.rouge && suivante <= SEANCES_DEVELOPPEUR ? lire('portes', { lieux: k.lieux }) : null;
|
|
1200
|
-
const a = portes
|
|
1305
|
+
const a = portes
|
|
1306
|
+
? attribuerLeRouge({ lieux: k.lieux, portes, circuit: ticket.circuit })
|
|
1307
|
+
: null;
|
|
1201
1308
|
// A developpeur who had nothing to deliver stops the circuit on a red that is his: the stop
|
|
1202
1309
|
// stands at his step, which a resumption plays again. A red that names a test file of the lot
|
|
1203
1310
|
// is the testwriter's, who is relaunched: the developpeur had nothing to write for it.
|
|
@@ -1234,7 +1341,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1234
1341
|
maj.reprise = null;
|
|
1235
1342
|
ecrireRapport(
|
|
1236
1343
|
'controles',
|
|
1237
|
-
`${k.resume} ;
|
|
1344
|
+
`${k.resume} ; ${auteur.nom} relancé (séance ${suivante}).`,
|
|
1238
1345
|
resultat('rouge'),
|
|
1239
1346
|
`${k.texte}${k.avertissements}`
|
|
1240
1347
|
);
|
|
@@ -1246,6 +1353,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1246
1353
|
return arret('controles', null);
|
|
1247
1354
|
}
|
|
1248
1355
|
if (k.aRepasser) {
|
|
1356
|
+
garderRien();
|
|
1249
1357
|
return arret('a-repasser', null);
|
|
1250
1358
|
}
|
|
1251
1359
|
ecrireRapport('controles', `${k.resume}.`, resultat('vert'), `${k.resume}.${k.avertissements}`);
|
|
@@ -1297,7 +1405,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1297
1405
|
if (!a) {
|
|
1298
1406
|
return arreter(
|
|
1299
1407
|
'references',
|
|
1300
|
-
|
|
1408
|
+
`L'état du circuit ne garde pas les références à régénérer : la passe finale les redonne (\`--depuis ${auteur.role}\`).`
|
|
1301
1409
|
);
|
|
1302
1410
|
}
|
|
1303
1411
|
// A command of the project that refuses beside reds of the plan, within the developpeur's
|
|
@@ -1313,7 +1421,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1313
1421
|
});
|
|
1314
1422
|
if (g.refus) {
|
|
1315
1423
|
const texte = [
|
|
1316
|
-
`La régénération des références refuse le lot ; la copie est rendue telle qu'avant elle, et les rouges du plan vont au
|
|
1424
|
+
`La régénération des références refuse le lot ; la copie est rendue telle qu'avant elle, et les rouges du plan vont ${auteur.au} (séance ${suivante}).`,
|
|
1317
1425
|
'',
|
|
1318
1426
|
...g.refus,
|
|
1319
1427
|
].join('\n');
|
|
@@ -1472,7 +1580,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1472
1580
|
maj.toursDeLaPasseFinale = null;
|
|
1473
1581
|
commenter(
|
|
1474
1582
|
'relecture',
|
|
1475
|
-
`RENDU (relecture ${rendus}) ; le circuit relance ${auTestwriter ? 'le testwriter' :
|
|
1583
|
+
`RENDU (relecture ${rendus}) ; le circuit relance ${auTestwriter ? 'le testwriter' : auteur.le}, ses ${lus.constats.length} constat(s) ouvert(s) dans la consigne de chaque séance, puis la passe finale sur la bande du lot (sa base et ses dépendants), et le relecteur sur la différence.`
|
|
1476
1584
|
);
|
|
1477
1585
|
return decision();
|
|
1478
1586
|
}
|
|
@@ -10,21 +10,22 @@
|
|
|
10
10
|
// - A write of a document (a `.md` file) passes: the documents of a package (CADRE.md,
|
|
11
11
|
// INTERFACE.md, ARCHITECTURE.md, CHANGELOG, the skills and the charter of `mods/grillhouse`) and
|
|
12
12
|
// those of the root (CLAUDE.md, docs/, the configuration) stay the supervisor's.
|
|
13
|
-
// - What a package holds is read
|
|
14
|
-
//
|
|
13
|
+
// - What a package holds is read on the components of the module of the language
|
|
14
|
+
// (`paquetQuiTient`); `mods/grillhouse`, the frame's plugin, is one too. A file of the root
|
|
15
15
|
// of the repository passes.
|
|
16
16
|
// - A path under the temporary directory of the session passes, and so does any tool that writes
|
|
17
|
-
// nothing. A session under its envelope is
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
|
|
17
|
+
// nothing. A session under its envelope is bounded by its mounts, and its lot judged by the
|
|
18
|
+
// circuit.
|
|
19
|
+
// - The reason names the direct circuit (a ticket labelled `direct`, which goes by the queue), and
|
|
20
|
+
// the rescue command `npx grillhouse direct <ticket> --panne <texte>` for a failure of the engine
|
|
21
|
+
// alone.
|
|
22
|
+
import { execFileSync } from 'node:child_process';
|
|
23
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
22
24
|
import { tmpdir } from 'node:os';
|
|
23
25
|
import path from 'node:path';
|
|
24
26
|
import { pathToFileURL } from 'node:url';
|
|
25
27
|
import { paquetQuiTient, paquetsDuLangage, paquetsDeLEnveloppe } from '../enveloppe/paquets-du-plan.mjs';
|
|
26
28
|
import { langageDeLaCopie } from '../langages.mjs';
|
|
27
|
-
import { racineDe } from './verrou.mjs';
|
|
28
29
|
|
|
29
30
|
const OUTILS_D_ECRITURE = new Set(['Write', 'Edit', 'MultiEdit', 'NotebookEdit']);
|
|
30
31
|
// The frame's own code, a package though no table of components lists it.
|
|
@@ -32,6 +33,27 @@ const CADRE = 'mods/grillhouse';
|
|
|
32
33
|
|
|
33
34
|
const sous = (rel, dossier) => rel === dossier || rel.startsWith(`${dossier}/`);
|
|
34
35
|
|
|
36
|
+
// The root of the git repository (or worktree) that holds the absolute path <file>, read from its
|
|
37
|
+
// nearest existing directory; null when no repository holds it.
|
|
38
|
+
function racineDe(file) {
|
|
39
|
+
let dir = path.dirname(file);
|
|
40
|
+
while (!existsSync(dir)) {
|
|
41
|
+
const parent = path.dirname(dir);
|
|
42
|
+
if (parent === dir) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
dir = parent;
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
return execFileSync('git', ['-C', dir, 'rev-parse', '--show-toplevel'], {
|
|
49
|
+
encoding: 'utf8',
|
|
50
|
+
stdio: 'pipe',
|
|
51
|
+
}).trim();
|
|
52
|
+
} catch {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
35
57
|
/**
|
|
36
58
|
* The refusal of the write <input> of a session out of the envelope, or null when it passes.
|
|
37
59
|
* @param {{ tool_name?: string, tool_input?: Record<string, string>, cwd?: string }} input
|
|
@@ -68,7 +90,7 @@ export function refusDeLEcritureHorsEnveloppe(
|
|
|
68
90
|
if (tenant === '.') {
|
|
69
91
|
return null;
|
|
70
92
|
}
|
|
71
|
-
return `⛔ ${rel} est du code ou un test du paquet ${tenant} : une séance hors enveloppe (le superviseur, une séance lancée à la main, une séance qui a perdu sa variable d'enveloppe) n'écrit ni le code ni les tests d'un paquet.
|
|
93
|
+
return `⛔ ${rel} est du code ou un test du paquet ${tenant} : une séance hors enveloppe (le superviseur, une séance lancée à la main, une séance qui a perdu sa variable d'enveloppe) n'écrit ni le code ni les tests d'un paquet. Ce travail passe par le circuit direct : un ticket étiqueté \`direct\`, qui part par la file, un agent l'écrit dans une copie à lui et un relecteur le relit. Pour une panne du moteur seulement, la voie de secours le mène : \`npx grillhouse direct <ticket> --panne <texte>\`. Les documents restent écrits ici.`;
|
|
72
94
|
}
|
|
73
95
|
|
|
74
96
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) {
|
|
@@ -27,7 +27,7 @@ Prompt each sub-agent with a separate technical brief (file paths, coupling deta
|
|
|
27
27
|
- Agent 3: "Optimise for the most common caller: make the default case trivial."
|
|
28
28
|
- Agent 4 (if applicable): "Design around ports & adapters for cross-seam dependencies."
|
|
29
29
|
|
|
30
|
-
Include both [SKILL.md](SKILL.md) vocabulary and
|
|
30
|
+
Include both [SKILL.md](SKILL.md) vocabulary and CONTEXT.md vocabulary in the brief so each sub-agent names things consistently with the architecture language and the project's domain language.
|
|
31
31
|
|
|
32
32
|
Each sub-agent outputs:
|
|
33
33
|
|
|
@@ -41,6 +41,11 @@ reste.
|
|
|
41
41
|
|
|
42
42
|
## Avant le code
|
|
43
43
|
|
|
44
|
+
- **L'index d'abord** : avant toute recherche par le shell, tu appelles `mcp__rtfm__rtfm_search`
|
|
45
|
+
(`rtfm_search`, mode `hybrid`) pour le quoi, et `mcp__rtfm__rtfm_expand` (`rtfm_expand`) lit en
|
|
46
|
+
entier un résultat qu'elle rend ; l'appel se cherche par `mcp__codegraph__codegraph_explore`
|
|
47
|
+
(`codegraph_explore`), ou par `codegraph explore <symboles>` ; le shell lit un fichier déjà
|
|
48
|
+
nommé. Ainsi ton code part de ce que le dépôt contient.
|
|
44
49
|
- **La section « Architecture » du ticket dit où va le correctif** : dans le mécanisme commun
|
|
45
50
|
qu'elle nomme, jamais à l'endroit où le défaut se voit. Ainsi le défaut se règle pour tous les
|
|
46
51
|
cas qui passent par ce mécanisme.
|
|
@@ -51,16 +56,28 @@ reste.
|
|
|
51
56
|
le fournisseur d'abord. Un plan qui demande un autre paquet t'arrête : ta fiche le nomme, et le
|
|
52
57
|
superviseur étend le plan ou refuse. Ainsi un ticket reste dans son plan.
|
|
53
58
|
|
|
59
|
+
## Devant un rouge ou un défaut
|
|
60
|
+
|
|
61
|
+
Devant un rouge que ton lot ne lève pas, celui de la passe finale compris, ou devant un défaut, tu
|
|
62
|
+
charges la compétence `grillhouse:systematic-debugging` (outil Skill) avant tout correctif. Ainsi
|
|
63
|
+
la cause se trouve avant le correctif.
|
|
64
|
+
|
|
65
|
+
- **Les règles de ton rôle priment sur la méthode.** Tu n'écris aucun test : le test qui reproduit
|
|
66
|
+
le défaut est celui du testwriter, et son rouge attendu avant le code n'est pas un défaut à
|
|
67
|
+
instruire. Là où la méthode renvoie au « human partner », tu remontes au superviseur par ta fiche.
|
|
68
|
+
Ainsi la méthode sert le rôle sans l'élargir.
|
|
69
|
+
- **Un geste de la méthode que tes droits ou la charte refusent ne se lance pas et ne se contourne
|
|
70
|
+
pas.** La cause se cherche avec les gestes permis : la lecture, l'index, `npm test -- <fichiers>`
|
|
71
|
+
et une instrumentation temporaire dans les paquets du plan, retirée avant la fiche. Ce qui ne peut
|
|
72
|
+
pas se prouver ainsi remonte par la fiche. Tu ne lances jamais `find-polluter.sh`, repris pour la
|
|
73
|
+
fidélité de la copie. Ainsi chaque preuve vient d'un geste permis.
|
|
74
|
+
|
|
54
75
|
## Le code
|
|
55
76
|
|
|
56
77
|
- **Chaque paquet reçoit les faits de ses fournisseurs** : ceux que publie leur interface, déclarés
|
|
57
78
|
pour lui. Tu lis chacun à son adresse, et ton code le prend tel que son fournisseur le publie ; un
|
|
58
79
|
calcul qui refait l'un d'eux se refuse. Ainsi chaque fait a un seul calcul, comme une passe LLVM
|
|
59
80
|
reçoit son analyse du gestionnaire.
|
|
60
|
-
- **L'index d'abord** : toute recherche commence par `rtfm_search` (mode `hybrid`) pour le quoi, et
|
|
61
|
-
`rtfm_expand` lit en entier un résultat qu'elle rend ; l'appel se cherche par
|
|
62
|
-
`codegraph explore <symboles>`, ou l'outil `codegraph_explore` ; le shell lit un fichier déjà
|
|
63
|
-
nommé. Ainsi ton code part de ce que le dépôt contient.
|
|
64
81
|
- **L'existant d'abord** : avant d'écrire un calcul ou d'inventer un nom, tu cherches celui qui
|
|
65
82
|
existe (ton paquet, le lexique, les interfaces voisines) et tu vérifies ce qu'il fait.
|
|
66
83
|
- **Une entrée ambiguë se refuse** : ce que le produit ne sait pas interpréter d'une seule façon
|
|
@@ -73,10 +90,12 @@ reste.
|
|
|
73
90
|
d'acceptation, et rien d'autre.
|
|
74
91
|
|
|
75
92
|
Tu lis toute la copie, index compris. Tu écris les seuls paquets du plan de ton ticket (les
|
|
76
|
-
paquets de son titre) : le reste de la copie est en lecture seule, une écriture hors d'eux
|
|
77
|
-
échoue (« Read-only file system »),
|
|
78
|
-
|
|
79
|
-
|
|
93
|
+
paquets de son titre) : le reste de la copie est en lecture seule, et une écriture hors d'eux
|
|
94
|
+
échoue (« Read-only file system »), quel que soit l'outil : ta fiche finit sur BESOIN, sa
|
|
95
|
+
`question` nommant le paquet qui possède le fichier et son champ `manque` le fichier ; un fichier
|
|
96
|
+
que le ticket nomme étend le plan et ta séance reprend, sinon le superviseur étend le plan ou
|
|
97
|
+
refuse ; un dossier hors des paquets (des données comme `libraries/`) s'écrit par le paquet qui le
|
|
98
|
+
possède. Les paquets hors du plan
|
|
80
99
|
arrivent construits, et les traces que lisent tes tests produites : `npm test -- <fichiers>` construit les paquets du plan et régénère leurs propres traces, et `npm run api`,
|
|
81
100
|
après lui, écrit le rapport d'API et la part générée des paquets du plan. La matière de test
|
|
82
101
|
partagée, en lecture seule pour toi, arrive construite : `npm test -- <un test de la matière>` la
|
|
@@ -88,11 +107,14 @@ est un rouge. Un lancement qui nomme une mesure de temps (un banc, un témoin de
|
|
|
88
107
|
de nuit et sort en 75, « à repasser », n'a vu que des échecs de durée sous charge (la pression CPU
|
|
89
108
|
écrite à chaque échec) : la nuit le juge, et un échec au repos est un vrai rouge.
|
|
90
109
|
|
|
91
|
-
**
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
110
|
+
**Tu prends l'outil que ton travail demande** : Write ou Edit, un script (python3, sed -i), une
|
|
111
|
+
redirection du shell, le client d'une base. Une substitution par script vérifie qu'elle a trouvé
|
|
112
|
+
son texte : `sed` qui ne trouve rien réussit sans rien changer. Un fichier temporaire va dans
|
|
113
|
+
`$TMPDIR`. Les tests se lancent par `npm test -- <fichiers>`, jamais par l'outil de test
|
|
114
|
+
directement. **Ton lot se juge à la fin de ta séance** : un fichier de test ou de la matière de
|
|
115
|
+
test partagée qu'il change, par tout outil, une commande qui le régénère comprise, te rend l'étape,
|
|
116
|
+
le fichier nommé, jusqu'à ce qu'il revienne à son état d'avant. Ainsi ton lot ne porte que le
|
|
117
|
+
code.
|
|
96
118
|
|
|
97
119
|
**Cargo compile sans compilation incrémentale** (`CARGO_INCREMENTAL=0`, posé par le cadre, comme
|
|
98
120
|
la CI de Rust) : une copie compile une fois, et son `target/` reste petit. Pour déboguer, tu la
|
|
@@ -166,9 +188,10 @@ son adresse) : le circuit la consigne fermée sous ton ticket, et tu continues.
|
|
|
166
188
|
- **Ta séance finit sur ta fiche**, que ton schéma décrit et que le circuit lit seule :
|
|
167
189
|
- `statut` FAIT : ton code est écrit, et les contrôles le jugent ;
|
|
168
190
|
- `statut` BLOQUÉ, avec sa `raison` : ce qui reste est hors de ta portée (un test, la matière
|
|
169
|
-
de test partagée,
|
|
191
|
+
de test partagée, une décision hors de ton rôle) ; avec
|
|
170
192
|
`renvoi`, c'est le renvoi au testwriter ; sans lui, le circuit s'arrête (`hors-portee`) ;
|
|
171
|
-
- `statut` BESOIN, avec sa `question` : une réponse
|
|
193
|
+
- `statut` BESOIN, avec sa `question` : une réponse, ou un fichier hors du plan (`manque`), te
|
|
194
|
+
manque pour avancer ; le circuit étend le plan à un fichier que le ticket nomme, sinon il
|
|
172
195
|
s'arrête (`besoin`) ;
|
|
173
196
|
- `hors_plan` : chaque critère du ticket que tu ne tiens pas parce qu'il demande un paquet hors
|
|
174
197
|
du plan, avec son numéro (`critere`), ce `paquet` et sa `piece` ; tu le remplis dès qu'un
|