@roomi-fields/grillhouse 0.24.7 → 0.24.9
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/charte.md +2 -2
- package/docs/ARCHITECTURE.md +22 -4
- package/package.json +1 -1
- package/scripts/circuit.mjs +109 -41
- package/scripts/droits.mjs +42 -12
- package/scripts/elements-du-lot.mjs +1 -1
- package/scripts/enveloppe/lancer.sh +26 -19
- package/scripts/resultats.mjs +42 -12
- package/scripts/turbo-des-paquets.mjs +20 -0
- package/skills/developpeur/SKILL.md +4 -1
- package/skills/explorateur/SKILL.md +8 -3
- package/skills/pitmaster/SKILL.md +15 -10
- package/skills/pitmaster/references/consigne-agent.md +4 -4
- package/skills/relecteur/SKILL.md +4 -2
package/charte.md
CHANGED
|
@@ -59,8 +59,8 @@ revient. Ainsi aucune séance ne juge ce qu'une règle tranche.
|
|
|
59
59
|
**Un agent qui a la réponse l'applique** : une décision qu'il sait trancher et qu'il recommande
|
|
60
60
|
(un nom, une signature, un paquet à retirer de son plan), il la prend et l'écrit dans sa fiche,
|
|
61
61
|
sans s'arrêter ; seule monte une question qui revient au responsable (le langage, l'architecture,
|
|
62
|
-
un écart à la référence) ou dont il n'a pas la réponse. Ainsi le circuit
|
|
63
|
-
décisions.
|
|
62
|
+
un écart à la référence) ou dont il n'a pas la réponse, et elle nomme lequel. Ainsi le circuit
|
|
63
|
+
n'attend que les vraies décisions.
|
|
64
64
|
|
|
65
65
|
**Tous les agents jugent sur le plan** : une décision du responsable entre dans la description du
|
|
66
66
|
ticket, comme une RFC amendée ; les commentaires restent l'historique. Ainsi chaque agent lit la
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -93,18 +93,33 @@ qui suit, et seule une vraie panne l'arrête (la commande introuvable, ou tuée
|
|
|
93
93
|
reste rouge. Ainsi aucun fichier engendré n'attend une main (BP 320.9 : 292 min autour des
|
|
94
94
|
références, dont 163 d'attente).
|
|
95
95
|
|
|
96
|
+
Comme `--update-snapshots` et `rustc --bless`, la régénération ne réécrit que ses sorties : un
|
|
97
|
+
constat d'une garde d'une référence du projet sur un fichier du plan que ses fichiers ne couvrent
|
|
98
|
+
pas vise le code du lot, et va au développeur, aux contrôles du plan comme à la passe finale ; son
|
|
99
|
+
constat sans fichier, ou sur un fichier qu'elle couvre, reste à la régénération. Une commande du
|
|
100
|
+
projet qui refuse, seul écart d'une régénération que demande une passe finale porteuse de rouges du
|
|
101
|
+
plan, juge le lot : la copie rendue telle qu'avant elle, ces rouges vont au développeur avec la fin
|
|
102
|
+
de sa sortie, dans la limite de ses séances. Ainsi le développeur reçoit le refus de son code (BP
|
|
103
|
+
320.10 : un mot de librairie écrit dans 030-binder, absent des trois rapports « Tes rouges », puis
|
|
104
|
+
un arrêt `references` sur « le plafond ne monte pas »).
|
|
105
|
+
|
|
96
106
|
**L'explorateur écrit le plan, questionné une fois** : comme l'auteur d'une RFC l'écrit après
|
|
97
107
|
avoir relevé l'existant, qu'une revue la lit une fois, que l'auteur répond une fois et que ce qui
|
|
98
108
|
reste ouvert va à qui décide, l'étape 1 du circuit (1 Plan) lance l'explorateur hors de
|
|
99
109
|
l'enveloppe ; il relève les composants (`npx grillhouse composants-affectes <ticket>`) et finit sur
|
|
100
110
|
sa fiche : les critères, les paquets à toucher, les composants du relevé qu'il écarte avec leur
|
|
101
|
-
raison, ses questions ouvertes avec leur pièce
|
|
111
|
+
raison, ses questions ouvertes avec leur pièce et leur motif, pourquoi chacune monte (le langage,
|
|
112
|
+
l'architecture, un écart à la référence, ou « sans réponse ») : une question sans motif rend la
|
|
113
|
+
fiche non conforme, redemandée une fois à la même séance (BP 328 : une question que le ticket
|
|
114
|
+
tranchait arrêtait le plan). Le circuit rejoue le relevé sur le plan, sans
|
|
102
115
|
séance, comme il contrôle les paquets : un composant du relevé ni touché ni écarté rend la fiche
|
|
103
116
|
non conforme, comme la section des composants touchés d'un document de conception dit pour
|
|
104
117
|
chacun s'il change, ou pourquoi il reste. Le circuit
|
|
105
118
|
écrit le plan au ticket : les paquets finissent son titre, la seule liste que lit l'enveloppe de
|
|
106
119
|
chaque séance d'après. Le questionneur le lit une fois ; l'explorateur, sa séance
|
|
107
|
-
reprise, répond une fois, CHANGE ou GARDE par question
|
|
120
|
+
reprise, répond une fois, CHANGE ou GARDE par question, une ligne par question posée : une fiche
|
|
121
|
+
sans elle lui est redemandée une fois avec les numéros qui manquent, comme le relecteur donne une
|
|
122
|
+
ligne à chaque élément du lot ; ce qui reste ouvert monte au superviseur
|
|
108
123
|
(« questionnement »), sinon le circuit passe aux tests. Un plan passé ne se rejoue que si son
|
|
109
124
|
titre ou ses critères changent. Ainsi les questions utiles se posent avant
|
|
110
125
|
le plan, et le plan ne tourne pas en rond (BP 320.9 : 132 tours de questions, 29 critères dont 2
|
|
@@ -120,8 +135,11 @@ change, le diff des rapports d'API (`docs/INTERFACE.api.md`) les exports qui cha
|
|
|
120
135
|
rend une ligne par élément (`conformite`), conforme ou non, la règle citée (`document` CADRE,
|
|
121
136
|
INTERFACE ou ARCHITECTURE, et sa `reference`) ; un export neuf cite son entrée dans l'INTERFACE.
|
|
122
137
|
Le schéma de la fiche refuse une ligne sans document ni référence (`resultats.mjs`), et le
|
|
123
|
-
circuit une fiche à laquelle il manque un élément
|
|
124
|
-
|
|
138
|
+
circuit une fiche à laquelle il manque un élément, ou dont une ligne nomme un élément hors de la
|
|
139
|
+
liste (`conformiteDuLot`) ; un « non » rend le lot à son destinataire. Un fichier que le service de
|
|
140
|
+
langage ne lit pas, la liste le nomme : le relecteur en relève lui-même les éléments, une ligne
|
|
141
|
+
chacun, `<fichier>#<nom>`, ou le fichier seul, comme une revue accepte un commentaire sur toute
|
|
142
|
+
ligne du diff. En relecture bornée, comme une revue ne décoche « vu » que sur les fichiers
|
|
125
143
|
changés depuis, la consigne marque chaque élément : à rejuger quand la différence le touche,
|
|
126
144
|
repris sinon avec sa ligne d'avant, que la fiche porte encore. Ainsi rien de neuf n'entre sans
|
|
127
145
|
avoir été jugé contre l'architecture (Romain, 2026-10-23 : « il faut que le relecteur valide
|
package/package.json
CHANGED
package/scripts/circuit.mjs
CHANGED
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
// answers once, and what stays open goes to who decides. One session of the explorateur out of
|
|
53
53
|
// the envelope, on Sonnet, its instruction from the sixth template (the ticket, its title,
|
|
54
54
|
// description and notes, the context), writes the plan in its sheet: its criteria, the packages
|
|
55
|
-
// to touch, and its open questions, each with
|
|
55
|
+
// to touch, and its open questions, each with why it goes up (its motif: the language, the
|
|
56
|
+
// architecture, a gap to the reference, or no answer) and its piece; it surveys the components the ticket
|
|
56
57
|
// reaches by `npx grillhouse composants-affectes <ticket>` (scripts/composants-affectes.mjs),
|
|
57
58
|
// which the circuit plays no more as a step. A package the repository does not hold, one named
|
|
58
59
|
// twice, or a component of the survey of the plan (`releve`, which the circuit plays with no
|
|
@@ -72,7 +73,10 @@
|
|
|
72
73
|
// at), AUCUNE or DÉSACCORD. On its questions, its disagreement as one, the explorateur's session
|
|
73
74
|
// is resumed once, its instruction from the seventh template (the numbered questions): its sheet
|
|
74
75
|
// answers each question, CHANGE (what the plan becomes) or GARDE (why it stays), and carries the
|
|
75
|
-
// plan as it becomes, which the circuit writes at the ticket again.
|
|
76
|
+
// plan as it becomes, which the circuit writes at the ticket again. A sheet without a line of
|
|
77
|
+
// `reponses` by question put (`reponsesAuxQuestions` of scripts/resultats.mjs) is refused and
|
|
78
|
+
// asked again once of the same session, the numbers that lack named; only after that resumption
|
|
79
|
+
// does a question without its line stay open. The exchange is written at
|
|
76
80
|
// the ticket (`Circuit · plan : …`, `Circuit · questionnement : …`) and its end kept with the
|
|
77
81
|
// circuit's results (`questionnement`: objet, the questions asked, `questions`, change, issue,
|
|
78
82
|
// ouvertes, the plan's fingerprint). What stays open (the plan's own questions, and each
|
|
@@ -260,10 +264,15 @@
|
|
|
260
264
|
// index of the interfaces, which reads the interfaces, the turbo.json of the packages, the API
|
|
261
265
|
// reports, which write the generated part of the interfaces), and the known debt of the guards;
|
|
262
266
|
// a reference of the project whose first file is one of theirs replaces it. A final pass with a red of a reference (a failed test of one of
|
|
263
|
-
// their test files, a finding of one of their guards,
|
|
264
|
-
//
|
|
267
|
+
// their test files, a finding of one of their guards, or a failed test or a finding on a file a
|
|
268
|
+
// reference of the project covers), mixed with other reds or not, or a
|
|
265
269
|
// guard's note of a key of the debt inscribed above what it finds (`a-elaguer`, the pass green
|
|
266
|
-
// or not), sends no developpeur: the gesture `regeneration`, once for that pass.
|
|
270
|
+
// or not), sends no developpeur: the gesture `regeneration`, once for that pass. A finding of a
|
|
271
|
+
// guard of a reference of the project on a file of the plan its files do not cover is no output
|
|
272
|
+
// it generates but the code of the lot, the developpeur's, at the checks of the plan as at the
|
|
273
|
+
// final pass, as `--update-snapshots` leaves every failure but the snapshots to its owner; its
|
|
274
|
+
// finding without a file, or on a file the reference covers, stays the regeneration's (BPScript
|
|
275
|
+
// 320.10: a word of library written in 030-binder, sent to no developpeur). Checks of the
|
|
267
276
|
// plan green but for reds of references call for it too, before the final pass, as make
|
|
268
277
|
// remakes a generated file before what reads it: the final pass that is due then plays once, on
|
|
269
278
|
// the regenerated tree, and does not regenerate again a reference regenerated on that same tree
|
|
@@ -288,7 +297,10 @@
|
|
|
288
297
|
// them), which the pass that follows judges. The stop leaves the copy restored as it was before
|
|
289
298
|
// the regeneration, a question for the supervisor that carries each deviation (the command and
|
|
290
299
|
// its code, the file), as the comment at the ticket does; the state keeps the references to regenerate and the reds of the
|
|
291
|
-
// pass before (`aRegenerer`), for a regeneration resumed.
|
|
300
|
+
// pass before (`aRegenerer`), for a regeneration resumed. A command of the project that refuses
|
|
301
|
+
// (no real failure), its only deviation, after a final pass that carries reds of the plan,
|
|
302
|
+
// judges the lot, as a ceiling refuses a lot beyond it: the copy restored, those reds go to the
|
|
303
|
+
// developpeur with the end of its output, within his sessions, then the final pass again.
|
|
292
304
|
// - The proof, the checks and the final pass are heavy passes: each holds the lock of the machine
|
|
293
305
|
// (scripts/verrou-de-machine.mjs), shared by every repository of the machine, and waits, the
|
|
294
306
|
// wait written to the log, while another measure holds it; the wait bounded, the pass is at 75,
|
|
@@ -514,6 +526,7 @@ import {
|
|
|
514
526
|
lireResumes,
|
|
515
527
|
lireSarif,
|
|
516
528
|
regleDeLaLigne,
|
|
529
|
+
reponsesAuxQuestions,
|
|
517
530
|
RESULTATS,
|
|
518
531
|
schemaDeFiche,
|
|
519
532
|
} from './resultats.mjs';
|
|
@@ -1307,8 +1320,9 @@ function seanceLancee(ctx, role, r) {
|
|
|
1307
1320
|
// id for that author (`ctx.reprise`); with <repli> (a resumption), a session that ends in error
|
|
1308
1321
|
// returns null, for a fresh session in its place. Throws an Arret for a launch that stops before its session,
|
|
1309
1322
|
// a motionless session, or twice no sheet that conforms (« sans-fiche »). <avec> joins its fields
|
|
1310
|
-
// to the sheet's entry (the lot a review read); <valider> names what makes a sheet
|
|
1311
|
-
// conformity beyond its schema (an unknown package of a plan
|
|
1323
|
+
// to the sheet's entry (the lot a review read); <valider>(sheet, attempt) names what makes a sheet
|
|
1324
|
+
// out of conformity beyond its schema at that attempt (an unknown package of a plan, an answer
|
|
1325
|
+
// without a line for a question put), or null.
|
|
1312
1326
|
async function jusquALaFiche(ctx, role, texte, options = {}) {
|
|
1313
1327
|
const {
|
|
1314
1328
|
neuve,
|
|
@@ -1337,7 +1351,7 @@ async function jusquALaFiche(ctx, role, texte, options = {}) {
|
|
|
1337
1351
|
r.seance === 0
|
|
1338
1352
|
? lireSaFiche(ctx, role, r.sortie)
|
|
1339
1353
|
: { erreur: `la séance finit en erreur (code ${r.seance})` };
|
|
1340
|
-
const faute = lu.fiche ? valider(lu.fiche) : null;
|
|
1354
|
+
const faute = lu.fiche ? valider(lu.fiche, essai) : null;
|
|
1341
1355
|
if (faute) lu = { erreur: `fiche non conforme : ${faute}` };
|
|
1342
1356
|
if (lu.fiche) return garder(ctx, role, lu.fiche, avec);
|
|
1343
1357
|
if (essai === 1) {
|
|
@@ -1542,7 +1556,7 @@ async function relire(ctx) {
|
|
|
1542
1556
|
horsEnveloppe: true,
|
|
1543
1557
|
droits: horsDeLEnveloppe(ctx, 'relecteur', 'opus'),
|
|
1544
1558
|
avec: lot ? { lot: { ...lot, fichiers: [...tests, ...code] } } : {},
|
|
1545
|
-
valider: f => conformiteDuLot(f, liste
|
|
1559
|
+
valider: f => conformiteDuLot(f, liste),
|
|
1546
1560
|
});
|
|
1547
1561
|
const texte = texteDuVerdict(fiche);
|
|
1548
1562
|
const r = ctx.bdSous(AUTEUR_DU_VERDICT, 'comments', 'add', ctx.ticket, texte);
|
|
@@ -1555,7 +1569,7 @@ async function relire(ctx) {
|
|
|
1555
1569
|
// in a bounded review (<bornee>: `{ touches, lignes }`, the ids the difference touches, null for
|
|
1556
1570
|
// every one, and the lines of the review before by element), each marked to judge again, or to
|
|
1557
1571
|
// take up with its line before; then the changed sources the language service does not read,
|
|
1558
|
-
// whose elements he surveys himself, and why.
|
|
1572
|
+
// whose elements he surveys himself, one line of conformity each as `<fichier>#<nom>`, and why.
|
|
1559
1573
|
function texteDesElements(liste, bornee = null) {
|
|
1560
1574
|
if (liste.etat !== 'fait') {
|
|
1561
1575
|
return `aucun : la liste n'a pas pu être calculée (${liste.raison}) ; tu relèves toi-même chaque élément du lot.`;
|
|
@@ -1577,7 +1591,7 @@ function texteDesElements(liste, bornee = null) {
|
|
|
1577
1591
|
? `le service de langage n'a pas pu tourner : ${liste.service}`
|
|
1578
1592
|
: 'aucun tsconfig.json ne les lit';
|
|
1579
1593
|
lignes.push(
|
|
1580
|
-
`- Hors du service de langage (${pourquoi}), tu relèves toi-même leurs éléments : ${liste.horsDuService.join(', ')}.`
|
|
1594
|
+
`- Hors du service de langage (${pourquoi}), tu relèves toi-même leurs éléments, une ligne de conformité chacun, son élément \`<fichier>#<nom>\` : ${liste.horsDuService.join(', ')}.`
|
|
1581
1595
|
);
|
|
1582
1596
|
}
|
|
1583
1597
|
return lignes.join('\n') || 'aucun : le lot ne change aucun élément du code.';
|
|
@@ -1710,15 +1724,19 @@ export function couvertPar(motifs, fichier) {
|
|
|
1710
1724
|
});
|
|
1711
1725
|
}
|
|
1712
1726
|
|
|
1713
|
-
// The references a red of <lieux> is one of (each `{ fichier, gardes }`, its file
|
|
1714
|
-
// finding carries
|
|
1715
|
-
// snapshots that fail and leaves the other
|
|
1716
|
-
// their `
|
|
1717
|
-
// <aElaguer> (a guard wrote a key of
|
|
1718
|
-
// covers the debt's file too.
|
|
1727
|
+
// The references a red of <lieux> is one of (each `{ fichier, gardes, dansLePlan }`, its file, the
|
|
1728
|
+
// names its finding carries, and whether a path of the plan holds it), however many other reds
|
|
1729
|
+
// stand beside it, as `--update-snapshots` updates the snapshots that fail and leaves the other
|
|
1730
|
+
// failures: a finding of one of their `gardes`, a file of their `tests`, or a file their
|
|
1731
|
+
// `fichiers` cover, the frame's by their `gardes` alone; with <aElaguer> (a guard wrote a key of
|
|
1732
|
+
// the debt inscribed above what it finds), the reference that covers the debt's file too. A
|
|
1733
|
+
// finding of a guard of a reference of the project on a file of the plan its `fichiers` do not
|
|
1734
|
+
// cover is no output it generates, but the code of the lot: the developpeur's (BPScript 320.10,
|
|
1735
|
+
// a word of library in the code of 030-binder).
|
|
1719
1736
|
function referencesDesRouges(ctx, lieux, aElaguer = false) {
|
|
1720
|
-
const sien = (r, { fichier: f, gardes }) =>
|
|
1721
|
-
gardes.some(g => r.gardes.includes(g))
|
|
1737
|
+
const sien = (r, { fichier: f, gardes, dansLePlan: plan = false }) =>
|
|
1738
|
+
(gardes.some(g => r.gardes.includes(g)) &&
|
|
1739
|
+
(r.cadre || !f || !plan || couvertPar(r.fichiers, f))) ||
|
|
1722
1740
|
(!r.cadre && Boolean(f) && (r.tests.includes(f) || couvertPar(r.fichiers, f)));
|
|
1723
1741
|
return lesReferences(ctx).filter(
|
|
1724
1742
|
r => lieux.some(l => sien(r, l)) || (aElaguer && couvertPar(r.fichiers, DETTE))
|
|
@@ -1737,8 +1755,12 @@ function referencesDesRouges(ctx, lieux, aElaguer = false) {
|
|
|
1737
1755
|
// the output of a genrule, without a word of the plan, and the reviewer reads its difference; a
|
|
1738
1756
|
// file changed that none of the references run declares, or a command that fails (a reference of
|
|
1739
1757
|
// the project at another code than 0, one of the frame on a real failure alone) restores the copy
|
|
1740
|
-
// as it was and stops at « references », each deviation in its question.
|
|
1741
|
-
|
|
1758
|
+
// as it was and stops at « references », each deviation in its question. With <refusAuLot>, the
|
|
1759
|
+
// final pass that called for it carries reds of the plan: a command of the project that refuses
|
|
1760
|
+
// (another code than 0, no real failure), its only deviation, judges the lot, as a ceiling that
|
|
1761
|
+
// never rises refuses a lot beyond it; the copy restored, `{ refus }` gives the report of each
|
|
1762
|
+
// refusal with the end of its output, for the developpeur (BPScript 320.10).
|
|
1763
|
+
function regenerer(ctx, noms, notes = [], avantLaPasse = false, refusAuLot = false) {
|
|
1742
1764
|
// The notes of the debt, in a file of the run, which the command that lowers it reads.
|
|
1743
1765
|
const fichierDesNotes = path.join(ctx.base.dossier, 'dette-a-abaisser.json');
|
|
1744
1766
|
const toutes = lesReferences(ctx).map(r =>
|
|
@@ -1760,6 +1782,8 @@ function regenerer(ctx, noms, notes = [], avantLaPasse = false) {
|
|
|
1760
1782
|
// them): a real failure alone counts; a reference of the project, by its code.
|
|
1761
1783
|
const refs = [];
|
|
1762
1784
|
const echecs = [];
|
|
1785
|
+
// The refusals of the commands of the project, each its line and the end of its output.
|
|
1786
|
+
const refus = [];
|
|
1763
1787
|
const appelees = new Set();
|
|
1764
1788
|
let arbre = avant.arbre;
|
|
1765
1789
|
while (aJouer.length) {
|
|
@@ -1767,9 +1791,9 @@ function regenerer(ctx, noms, notes = [], avantLaPasse = false) {
|
|
|
1767
1791
|
const x = commandeDeReference(ctx, r.commande);
|
|
1768
1792
|
if (!refs.includes(r)) refs.push(r);
|
|
1769
1793
|
if (x.panne || (!r.cadre && x.code !== 0)) {
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
);
|
|
1794
|
+
const ligne = `- ${r.nom} : \`${r.commande}\` rend le code ${x.code}${x.panne ? ' (une panne)' : ''}.`;
|
|
1795
|
+
echecs.push(ligne);
|
|
1796
|
+
if (!x.panne) refus.push([ligne, '', fin(x.sortie.trimEnd(), 30)].join('\n'));
|
|
1773
1797
|
}
|
|
1774
1798
|
// The references that read a file this command wrote run after it.
|
|
1775
1799
|
const suivant = arbreDeLaCopie(ctx);
|
|
@@ -1794,6 +1818,7 @@ function regenerer(ctx, noms, notes = [], avantLaPasse = false) {
|
|
|
1794
1818
|
];
|
|
1795
1819
|
if (ecarts.length) {
|
|
1796
1820
|
restaurer(ctx, avant.commit, fichiers);
|
|
1821
|
+
if (refusAuLot && refus.length === ecarts.length) return { refus };
|
|
1797
1822
|
const difference =
|
|
1798
1823
|
apres && fichiers.length
|
|
1799
1824
|
? [
|
|
@@ -1839,13 +1864,15 @@ function regenerer(ctx, noms, notes = [], avantLaPasse = false) {
|
|
|
1839
1864
|
}
|
|
1840
1865
|
|
|
1841
1866
|
// One command of a reference, run by the shell at the root of the copy, out of the envelope,
|
|
1842
|
-
// under the lock of the machine, its output added to the log: `{ code, panne }`, its exit
|
|
1843
|
-
// whether it failed for real, whatever it judges
|
|
1844
|
-
// 127, as the shell says it
|
|
1845
|
-
// machine not taken.
|
|
1867
|
+
// under the lock of the machine, its output added to the log: `{ code, panne, sortie }`, its exit
|
|
1868
|
+
// code, whether it failed for real, whatever it judges (the command not found or not executable,
|
|
1869
|
+
// 126, 127, as the shell says it; killed by a signal, the shell's 128 + its number; or the lock of
|
|
1870
|
+
// the machine not taken), and what it wrote to the log.
|
|
1846
1871
|
function commandeDeReference(ctx, commande) {
|
|
1847
1872
|
entete(ctx, 'references');
|
|
1848
1873
|
appendFileSync(ctx.journal, `$ ${commande}\n`);
|
|
1874
|
+
const debut = statSync(ctx.journal).size;
|
|
1875
|
+
const sortie = () => readFileSync(ctx.journal).subarray(debut).toString('utf8');
|
|
1849
1876
|
const fd = openSync(ctx.journal, 'a');
|
|
1850
1877
|
try {
|
|
1851
1878
|
const r = avecLaMachine(
|
|
@@ -1857,11 +1884,12 @@ function commandeDeReference(ctx, commande) {
|
|
|
1857
1884
|
code,
|
|
1858
1885
|
panne:
|
|
1859
1886
|
r.signal !== null || r.error !== undefined || code === 126 || code === 127 || code > 128,
|
|
1887
|
+
sortie: sortie(),
|
|
1860
1888
|
};
|
|
1861
1889
|
} catch (e) {
|
|
1862
1890
|
if (!(e instanceof AttenteDeLaMachine)) throw e;
|
|
1863
1891
|
appendFileSync(ctx.journal, `${e.message}\n`);
|
|
1864
|
-
return { code: e.code, panne: true };
|
|
1892
|
+
return { code: e.code, panne: true, sortie: sortie() };
|
|
1865
1893
|
} finally {
|
|
1866
1894
|
closeSync(fd);
|
|
1867
1895
|
}
|
|
@@ -2566,8 +2594,8 @@ const ligneDeCommande = c =>
|
|
|
2566
2594
|
// developpeur, his reds first; `complet` every red, for a stop; `auDeveloppeur` whether a red lies
|
|
2567
2595
|
// in a package of the plan; `horsTitre` the packages out of the plan that hold a red; `arbitrer`
|
|
2568
2596
|
// when every red of the plan is a finding to settle; `lieux` the place of each red, `{ fichier,
|
|
2569
|
-
// gardes }`, its file (null for a red without one)
|
|
2570
|
-
// test or a task); `references`, out of the final pass, the references whose reds the checks saw,
|
|
2597
|
+
// gardes, dansLePlan }`, its file (null for a red without one), the names its finding carries
|
|
2598
|
+
// (none for a test or a task), and whether a path of the plan holds it; `references`, out of the final pass, the references whose reds the checks saw,
|
|
2571
2599
|
// which their regeneration lifts before the final pass; `tous` every red as it was read; `notes`,
|
|
2572
2600
|
// at the final pass, each key of the debt a guard wrote inscribed above what it finds, `{ garde,
|
|
2573
2601
|
// fichier, regle, trouve }`.
|
|
@@ -2604,7 +2632,11 @@ function controles(ctx, finale, restreinte = null, reportes = null) {
|
|
|
2604
2632
|
// Out of the final pass, the reds of the plan are the developpeur's; a red of a reference goes to
|
|
2605
2633
|
// its regeneration (4.2), before the final pass; the others (the root, a red no file situates, a
|
|
2606
2634
|
// package out of the plan) wait for the final pass.
|
|
2607
|
-
const lieu = r => ({
|
|
2635
|
+
const lieu = r => ({
|
|
2636
|
+
fichier: r.fichier ?? null,
|
|
2637
|
+
gardes: r.gardes ?? [],
|
|
2638
|
+
dansLePlan: Boolean(r.dansLePlan),
|
|
2639
|
+
});
|
|
2608
2640
|
const deReference = r => referencesDesRouges(ctx, [lieu(r)]).length > 0;
|
|
2609
2641
|
const siens = r => finale || (r.dansLePlan && !deReference(r));
|
|
2610
2642
|
const rouges = tous.filter(siens);
|
|
@@ -3010,7 +3042,15 @@ async function derouler(ctx, debut) {
|
|
|
3010
3042
|
resultat(k.rouge ? 'rouge' : 'vert'),
|
|
3011
3043
|
k.texte
|
|
3012
3044
|
);
|
|
3013
|
-
|
|
3045
|
+
// The report of the reds of the plan, which go to the developpeur when a command of the
|
|
3046
|
+
// project refuses the lot.
|
|
3047
|
+
ctx.aRegenerer = {
|
|
3048
|
+
noms,
|
|
3049
|
+
rouges: k.tous,
|
|
3050
|
+
notes: k.notes,
|
|
3051
|
+
entiere: !passe.restreinte,
|
|
3052
|
+
auDeveloppeur: k.auDeveloppeur && !k.arbitrer ? k.texte : null,
|
|
3053
|
+
};
|
|
3014
3054
|
etape = REFERENCES;
|
|
3015
3055
|
finale = true;
|
|
3016
3056
|
} else if (k.rouge && passeFinale && k.horsTitre.length) {
|
|
@@ -3093,7 +3133,25 @@ async function derouler(ctx, debut) {
|
|
|
3093
3133
|
"L'état du circuit ne garde pas les références à régénérer : la passe finale les redonne (`--depuis developpeur`)."
|
|
3094
3134
|
);
|
|
3095
3135
|
}
|
|
3096
|
-
|
|
3136
|
+
// A command of the project that refuses beside reds of the plan, within the developpeur's
|
|
3137
|
+
// sessions: the copy restored, those reds go to him with its output, the final pass after.
|
|
3138
|
+
const suivante = tentative + 1;
|
|
3139
|
+
const auLot = Boolean(a.auDeveloppeur) && suivante <= SEANCES_DEVELOPPEUR;
|
|
3140
|
+
const g = regenerer(ctx, a.noms, a.notes, Boolean(a.avantLaPasse), auLot);
|
|
3141
|
+
if (g.refus) {
|
|
3142
|
+
const texte = [
|
|
3143
|
+
`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 développeur (séance ${suivante}).`,
|
|
3144
|
+
'',
|
|
3145
|
+
...g.refus,
|
|
3146
|
+
].join('\n');
|
|
3147
|
+
ecrireRapport(ctx, 'references', texte, { regenerees: [], fichiers: [] });
|
|
3148
|
+
rapport = `${texte}\n\n${a.auDeveloppeur}`;
|
|
3149
|
+
ctx.aRegenerer = null;
|
|
3150
|
+
etape = CODE;
|
|
3151
|
+
tentative = suivante;
|
|
3152
|
+
finale = true;
|
|
3153
|
+
continue;
|
|
3154
|
+
}
|
|
3097
3155
|
ecrireRapport(ctx, 'references', g.texte, {
|
|
3098
3156
|
regenerees: g.regenerees,
|
|
3099
3157
|
fichiers: g.fichiers,
|
|
@@ -3353,10 +3411,12 @@ function aLaFin(ctx, code) {
|
|
|
3353
3411
|
const lignesDesQuestions = questions =>
|
|
3354
3412
|
(questions ?? []).map((q, i) => `${i + 1}. (${q.vise}) ${q.question}`).join('\n');
|
|
3355
3413
|
|
|
3356
|
-
// The open questions <questions> of a plan (`{ question, piece }`), one per line, each with
|
|
3357
|
-
// piece.
|
|
3414
|
+
// The open questions <questions> of a plan (`{ question, motif, piece }`), one per line, each with
|
|
3415
|
+
// why it goes up, when the explorateur wrote it, and its piece.
|
|
3358
3416
|
const lignesOuvertes = questions =>
|
|
3359
|
-
questions
|
|
3417
|
+
questions
|
|
3418
|
+
.map((q, i) => `${i + 1}. ${q.motif ? `(${q.motif}) ` : ''}${q.question} (${q.piece})`)
|
|
3419
|
+
.join('\n');
|
|
3360
3420
|
|
|
3361
3421
|
// The rubric « ## <titre> » of the project's charter (CLAUDE.md of the main tree), up to the next
|
|
3362
3422
|
// `##` heading, or what stands in its place.
|
|
@@ -3524,8 +3584,9 @@ const ecartsDe = fiche =>
|
|
|
3524
3584
|
// explorateur, out of the envelope, writes the plan in its sheet (its criteria, the packages to
|
|
3525
3585
|
// touch, its open questions), which the circuit writes at the ticket (`ecrireLePlan`); one session
|
|
3526
3586
|
// of the questionneur reads it once; on its questions (its disagreement as one), the explorateur's
|
|
3527
|
-
// session, resumed, answers once, CHANGE or GARDE by question, its sheet the plan as it becomes
|
|
3528
|
-
//
|
|
3587
|
+
// session, resumed, answers once, CHANGE or GARDE by question, its sheet the plan as it becomes; a
|
|
3588
|
+
// sheet without a line by question put is asked again once of that session, and a question it
|
|
3589
|
+
// still leaves without an answer stays open with its own. Each session's work is named in
|
|
3529
3590
|
// the state while it runs (`questionnement`); the exchange is written at the ticket and its end
|
|
3530
3591
|
// kept with the circuit's results (`questionnement`, which the bilan counts). A plan that has
|
|
3531
3592
|
// passed, its title and criteria unchanged since (`empreinteDuPlan`), passes. Null when nothing
|
|
@@ -3632,7 +3693,14 @@ async function lePlan(ctx) {
|
|
|
3632
3693
|
},
|
|
3633
3694
|
6
|
|
3634
3695
|
),
|
|
3635
|
-
{
|
|
3696
|
+
{
|
|
3697
|
+
...explorateur,
|
|
3698
|
+
premiere: 'reprend',
|
|
3699
|
+
// A line of `reponses` by question put, asked again once; after it, a question without
|
|
3700
|
+
// its line stays open.
|
|
3701
|
+
valider: (f, essai) =>
|
|
3702
|
+
explorateur.valider(f) ?? (essai === 1 ? reponsesAuxQuestions(f, posees.length) : null),
|
|
3703
|
+
}
|
|
3636
3704
|
);
|
|
3637
3705
|
reponses = plan.reponses ?? [];
|
|
3638
3706
|
const lignes = reponses.map(r => `${r.numero}. ${r.reponse} — ${r.texte}`).join('\n');
|
package/scripts/droits.mjs
CHANGED
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
// settings and charter, and the frame's plugin it enables (agents, skills, common charter,
|
|
16
16
|
// hooks), stay in.
|
|
17
17
|
// - `--settings <json>` (the settings of the role, on the command line: no file the session could
|
|
18
|
-
// change): its permissions (`allow`, the commands its skill names
|
|
18
|
+
// change): its permissions (`allow`, the commands its skill names, and the reading of its
|
|
19
|
+
// skill's files, references included, and of the METACADRE.md its skill names, in the frame's
|
|
20
|
+
// plugin as installed for the copy, else for the project, by `Read` and `ls` and with no writing; `deny`, the change of its
|
|
19
21
|
// author at the ticket, AUTEUR_FIXE, for a role that writes the editing by script, the test
|
|
20
22
|
// tool run directly and the reading again of the ticket its instruction carries, and for a role
|
|
21
23
|
// that writes nothing at the ticket, the explorateur and the questionneur, every write of bd,
|
|
@@ -129,12 +131,14 @@ const LIRE = ['Bash', 'Read', 'Skill'];
|
|
|
129
131
|
const ECRIRE = ['Edit', 'Write'];
|
|
130
132
|
|
|
131
133
|
// Each role the circuit launches: whether it writes (files, `ecrit`; the ticket, unless
|
|
132
|
-
// `ecritAuTicket` is false), whether it uses the index,
|
|
133
|
-
//
|
|
134
|
+
// `ecritAuTicket` is false), whether it uses the index, whether its skill names the frame's
|
|
135
|
+
// METACADRE.md (`metacadre`, read at the root of the plugin installed), and the commands its skill
|
|
136
|
+
// names (the frame's plugin, `mods/grillhouse/skills/<rôle>/`), as permission rules.
|
|
134
137
|
export const ROLES = {
|
|
135
138
|
// It writes no file and nothing at the ticket: it surveys the components and reads the code by
|
|
136
139
|
// the index, and ends on the plan in its sheet, which the circuit writes at the ticket.
|
|
137
140
|
explorateur: {
|
|
141
|
+
metacadre: true,
|
|
138
142
|
index: true,
|
|
139
143
|
ecritAuTicket: false,
|
|
140
144
|
commandes: [
|
|
@@ -149,6 +153,7 @@ export const ROLES = {
|
|
|
149
153
|
// It writes the tests of the whole ticket, in the envelope of its plan, and reads the whole copy
|
|
150
154
|
// by the index (charter, « L'index d'abord »).
|
|
151
155
|
testwriter: {
|
|
156
|
+
metacadre: true,
|
|
152
157
|
ecrit: true,
|
|
153
158
|
index: true,
|
|
154
159
|
commandes: [
|
|
@@ -163,6 +168,7 @@ export const ROLES = {
|
|
|
163
168
|
// It writes the code of the whole ticket, in the envelope of its plan, and reads the whole copy
|
|
164
169
|
// by the index.
|
|
165
170
|
developpeur: {
|
|
171
|
+
metacadre: true,
|
|
166
172
|
ecrit: true,
|
|
167
173
|
index: true,
|
|
168
174
|
commandes: [
|
|
@@ -177,6 +183,7 @@ export const ROLES = {
|
|
|
177
183
|
],
|
|
178
184
|
},
|
|
179
185
|
relecteur: {
|
|
186
|
+
metacadre: true,
|
|
180
187
|
index: true,
|
|
181
188
|
commandes: [
|
|
182
189
|
...LIRE_GIT,
|
|
@@ -219,23 +226,43 @@ function greffonsDuProjet(racine) {
|
|
|
219
226
|
return [...actifs].sort();
|
|
220
227
|
}
|
|
221
228
|
|
|
222
|
-
// The installed path of the plugin <nom> for the
|
|
223
|
-
//
|
|
224
|
-
function cheminDuGreffon(nom,
|
|
229
|
+
// The installed path of the plugin <nom> for the projects <projets>: the entry of the first that
|
|
230
|
+
// has one, else the user's.
|
|
231
|
+
function cheminDuGreffon(nom, projets, home) {
|
|
225
232
|
const entrees =
|
|
226
233
|
lireJson(path.join(home, '.claude', 'plugins', 'installed_plugins.json'))?.plugins?.[nom] ?? [];
|
|
227
234
|
const e =
|
|
228
|
-
|
|
235
|
+
projets.map(p => entrees.find(x => x.projectPath === p)).find(Boolean) ??
|
|
236
|
+
entrees.find(x => x.scope === 'user') ??
|
|
237
|
+
null;
|
|
229
238
|
return e?.installPath ?? null;
|
|
230
239
|
}
|
|
231
240
|
|
|
241
|
+
// The reading of the skill of <role> (SKILL.md and its references/) in the frame's plugin, as
|
|
242
|
+
// installed for the copy where the session runs, else for the project, and of the plugin's
|
|
243
|
+
// METACADRE.md alone for a role whose skill names it: rules `Read(//…)`, which let through the
|
|
244
|
+
// tool Read and `ls` of those folders, and write nothing (measured on Claude Code in `dontAsk`).
|
|
245
|
+
// Narrower than a folder of work (`--add-dir`), which would open the whole plugin; none when the
|
|
246
|
+
// plugin is not installed.
|
|
247
|
+
function lireSaCompetence(role, { racine, copie, home }) {
|
|
248
|
+
const cadre = greffonsDuProjet(racine).find(g => g.startsWith(GREFFON_DU_CADRE));
|
|
249
|
+
const dossier = cadre && cheminDuGreffon(cadre, [copie, racine], home);
|
|
250
|
+
if (!dossier) {
|
|
251
|
+
return [];
|
|
252
|
+
}
|
|
253
|
+
return [
|
|
254
|
+
`Read(/${path.join(dossier, 'skills', role)}/**)`,
|
|
255
|
+
...(ROLES[role].metacadre ? [`Read(/${path.join(dossier, 'METACADRE.md')})`] : []),
|
|
256
|
+
];
|
|
257
|
+
}
|
|
258
|
+
|
|
232
259
|
// The servers of the index: the project's `.mcp.json`, then the manifests of the plugins it enables.
|
|
233
260
|
function serveursDeLIndex(racine, home) {
|
|
234
261
|
const out = {};
|
|
235
262
|
const projet = lireJson(path.join(racine, '.mcp.json'))?.mcpServers ?? {};
|
|
236
263
|
for (const n of INDEX) if (projet[n]) out[n] = projet[n];
|
|
237
264
|
for (const greffon of greffonsDuProjet(racine)) {
|
|
238
|
-
const dossier = cheminDuGreffon(greffon, racine, home);
|
|
265
|
+
const dossier = cheminDuGreffon(greffon, [racine], home);
|
|
239
266
|
if (!dossier) continue;
|
|
240
267
|
const serveurs =
|
|
241
268
|
lireJson(path.join(dossier, '.claude-plugin', 'plugin.json'))?.mcpServers ??
|
|
@@ -250,8 +277,8 @@ function serveursDeLIndex(racine, home) {
|
|
|
250
277
|
}
|
|
251
278
|
|
|
252
279
|
// The settings of the session of <role>, for the ticket <ticket>, its copy <copie> (where the
|
|
253
|
-
// project's own skills are read) and the main tree <racine
|
|
254
|
-
function reglagesDuRole(role, { racine, copie = racine, ticket }) {
|
|
280
|
+
// project's own skills are read) and the main tree <racine>; <home> holds the plugins installed.
|
|
281
|
+
function reglagesDuRole(role, { racine, copie = racine, ticket, home }) {
|
|
255
282
|
const r = ROLES[role];
|
|
256
283
|
if (!r) throw new Error(`rôle sans droits : ${role}`);
|
|
257
284
|
const deny = [...AUTEUR_FIXE, ...(r.ecritAuTicket === false ? ECRIRE_AU_TICKET : [])];
|
|
@@ -272,7 +299,10 @@ function reglagesDuRole(role, { racine, copie = racine, ticket }) {
|
|
|
272
299
|
: []),
|
|
273
300
|
];
|
|
274
301
|
const reglages = {
|
|
275
|
-
permissions: {
|
|
302
|
+
permissions: {
|
|
303
|
+
allow: [...r.commandes, ...lireSaCompetence(role, { racine, copie, home })],
|
|
304
|
+
deny,
|
|
305
|
+
},
|
|
276
306
|
autoMemoryEnabled: false,
|
|
277
307
|
disableBundledSkills: true,
|
|
278
308
|
skillOverrides: Object.fromEntries(autres.map(s => [s, 'off'])),
|
|
@@ -321,7 +351,7 @@ export function optionsDuRole(role, contexte) {
|
|
|
321
351
|
'--setting-sources',
|
|
322
352
|
'project,local',
|
|
323
353
|
'--settings',
|
|
324
|
-
JSON.stringify(reglagesDuRole(role, contexte)),
|
|
354
|
+
JSON.stringify(reglagesDuRole(role, { ...contexte, home })),
|
|
325
355
|
'--tools',
|
|
326
356
|
outils.join(','),
|
|
327
357
|
'--strict-mcp-config',
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
// that no element of its package's sources already names (a type that changed through another),
|
|
22
22
|
// is an element of the report itself, exported.
|
|
23
23
|
// - A changed source that the service does not read (a package without `tsconfig.json`) is named
|
|
24
|
-
// in `horsDuService`: the reviewer surveys its elements himself
|
|
24
|
+
// in `horsDuService`: the reviewer surveys its elements himself, each named `<fichier>#<nom>`.
|
|
25
25
|
import { spawnSync } from 'node:child_process';
|
|
26
26
|
import { existsSync } from 'node:fs';
|
|
27
27
|
import { createRequire } from 'node:module';
|
|
@@ -54,14 +54,19 @@
|
|
|
54
54
|
# agent finds the builds of the packages out of its plan. As Bazel builds the dependencies of a
|
|
55
55
|
# target before the target: for a plan whose every path is a package of the frame (the circuit's
|
|
56
56
|
# session over the whole ticket, `.` as its component and the plan as `--paquets`, or a component
|
|
57
|
-
# alone), their providers are built first (the
|
|
58
|
-
#
|
|
59
|
-
#
|
|
57
|
+
# alone), their providers are built first (the builds their builds wait for, read in Turborepo's
|
|
58
|
+
# graph, `turbo run build --filter=<paquet>… --dry=json`, which node reads on its standard input,
|
|
59
|
+
# whatever its size), and a failure stops the launch, CODE_COPIE;
|
|
60
60
|
# then the traces of other packages their tests wait for (`grillhouse.traces`, read in Turborepo's
|
|
61
61
|
# plan of their tests, `turbo run test:vitest --filter=<paquet>… --dry=json`), which the envelope
|
|
62
|
-
# shows read-only, and a failure stops the launch, CODE_COPIE
|
|
63
|
-
#
|
|
64
|
-
#
|
|
62
|
+
# shows read-only, and a failure stops the launch, CODE_COPIE. A task of either step that waits,
|
|
63
|
+
# directly or not, for a task of a package of the plan (`attendentLePlan` of
|
|
64
|
+
# turbo-des-paquets.mjs) is not played there: as with Bazel's --keep_going, a package of the plan
|
|
65
|
+
# stays a target of the plan even as another's provider (BPScript's 990-corpus, the shared test
|
|
66
|
+
# material, which the trace of 060-encoder waits for), and goes with the plan. Then the packages,
|
|
67
|
+
# the traces of the plan or that wait for it, and what their tests read (`turbo run build <those
|
|
68
|
+
# traces> --filter=<paquet>...… --continue=dependencies-successful`), whose failure does not
|
|
69
|
+
# stop it: each task whose
|
|
65
70
|
# dependencies succeed goes to its end, so what their tests read without depending on them is
|
|
66
71
|
# built whole; the session opens, its instruction ending with a section « La construction de ton
|
|
67
72
|
# paquet échoue » with the end of that output, since repairing it is the session's work (a
|
|
@@ -243,30 +248,32 @@ echec=$(mktemp)
|
|
|
243
248
|
mapfile -t lesNoms <<<"$noms"
|
|
244
249
|
cibles=() lecteurs=()
|
|
245
250
|
for n in "${lesNoms[@]}"; do cibles+=("--filter=$n"); lecteurs+=("--filter=$n..."); done
|
|
246
|
-
# Their providers: the
|
|
251
|
+
# Their providers: the builds their own builds wait for, as Turborepo reads them, save those
|
|
252
|
+
# that wait for a package of the plan, which go with the plan below. The graph comes on the
|
|
253
|
+
# standard input: as an argument, it may pass the size Linux allows one.
|
|
247
254
|
graphe=$(cd "$copie" && monter npx --no-install turbo run build "${cibles[@]}" --dry=json) || exit 1
|
|
248
|
-
|
|
249
|
-
fournisseurs=$(node -e 'const plan = process.argv.slice(1); const t = JSON.parse(require("node:fs").readFileSync(0, "utf8")).tasks.filter(t => !plan.includes(t.package)); console.log([...new Set(t.map(t => `--filter=${t.package}`))].join("\n"));' "${lesNoms[@]}" <<<"$graphe") || exit 1
|
|
255
|
+
fournisseurs=$(node --input-type=module -e "import { readFileSync } from 'node:fs'; import { attendentLePlan } from '$ici/../turbo-des-paquets.mjs'; const g = JSON.parse(readFileSync(0, 'utf8')); const avec = attendentLePlan(g, process.argv.slice(1)); console.log(g.tasks.map(t => t.taskId).filter(id => !avec.has(id)).sort().join('\n'));" "${lesNoms[@]}" <<<"$graphe") || exit 1
|
|
250
256
|
if [ -n "$fournisseurs" ]; then
|
|
251
|
-
mapfile -t
|
|
252
|
-
(cd "$copie" && monter npx --no-install turbo run
|
|
257
|
+
mapfile -t ids <<<"$fournisseurs"
|
|
258
|
+
(cd "$copie" && monter npx --no-install turbo run "${ids[@]}") || exit 1
|
|
253
259
|
fi
|
|
254
260
|
# The traces their tests wait for, as Turborepo's plan of their tests reads them. Another
|
|
255
|
-
# package's trace
|
|
256
|
-
#
|
|
261
|
+
# package's trace that waits for no package of the plan is produced here, and a failure
|
|
262
|
+
# stops the launch, as a provider's; a trace of the plan, or one that waits for a package of
|
|
263
|
+
# the plan, is produced with the plan below.
|
|
257
264
|
plan=$(cd "$copie" && monter npx --no-install turbo run test:vitest "${cibles[@]}" --dry=json) || exit 1
|
|
258
|
-
traces() { node --input-type=module -e "import { readFileSync } from 'node:fs'; import { tracesDuPlan } from '$ici/../turbo-des-paquets.mjs'; const [
|
|
265
|
+
traces() { node --input-type=module -e "import { readFileSync } from 'node:fs'; import { attendentLePlan, tracesDuPlan } from '$ici/../turbo-des-paquets.mjs'; const [avec, ...noms] = process.argv.slice(1); const p = JSON.parse(readFileSync(0, 'utf8')); const attend = attendentLePlan(p, noms); console.log(tracesDuPlan(p, t => attend.has(t.taskId) === (avec === 'oui')).join('\n'));" "$1" "${lesNoms[@]}" <<<"$plan"; }
|
|
259
266
|
autres=$(traces non) || exit 1
|
|
260
267
|
if [ -n "$autres" ]; then
|
|
261
268
|
mapfile -t ids <<<"$autres"
|
|
262
269
|
(cd "$copie" && monter npx --no-install turbo run "${ids[@]}") || exit 1
|
|
263
270
|
fi
|
|
264
|
-
|
|
271
|
+
avec=$(traces oui) || exit 1
|
|
265
272
|
ids=()
|
|
266
|
-
[ -z "$
|
|
267
|
-
# The packages of the plan,
|
|
268
|
-
# material), built after their providers: a failure does not stop the launch, it
|
|
269
|
-
# the instruction. Each task whose dependencies succeed goes to its end
|
|
273
|
+
[ -z "$avec" ] || mapfile -t ids <<<"$avec"
|
|
274
|
+
# The packages of the plan, the traces that go with them, and what their tests read (the
|
|
275
|
+
# shared test material), built after their providers: a failure does not stop the launch, it
|
|
276
|
+
# goes into the instruction. Each task whose dependencies succeed goes to its end
|
|
270
277
|
# (--continue=dependencies-successful): one package's failure does not cancel the build of
|
|
271
278
|
# what the tests read without depending on it, which the envelope shows read-only.
|
|
272
279
|
if ! (cd "$copie" && monter npx --no-install turbo run build ${ids[@]+"${ids[@]}"} "${lecteurs[@]}" --continue=dependencies-successful) > "$echec" 2>&1; then
|
package/scripts/resultats.mjs
CHANGED
|
@@ -33,19 +33,22 @@
|
|
|
33
33
|
// one line per element of the lot (scripts/elements-du-lot.mjs), its rule cited from a
|
|
34
34
|
// document of its package, a new export's the entry of the INTERFACE that names it; a line
|
|
35
35
|
// without its reference is refused; a « non » is a blocking finding (`bloquantsDeLaFiche`),
|
|
36
|
-
// and the circuit refuses a sheet without a line for each element
|
|
37
|
-
//
|
|
36
|
+
// and the circuit refuses a sheet without a line for each element, or with a line on an
|
|
37
|
+
// element out of the list, a file out of the language service named alone or as
|
|
38
|
+
// `<fichier>#<nom>` (`conformiteDuLot`) (reviewer);
|
|
38
39
|
// - `suivi` (`titre`, `etat` levé or non levé, `preuve`): after a review sent back, each finding
|
|
39
40
|
// before it judged on the difference of the lot, which the circuit writes at the ticket with
|
|
40
41
|
// the verdict, for the human (reviewer);
|
|
41
42
|
// - `question`, with its `piece` (reviewer): what goes up to the owner, a real word of the
|
|
42
43
|
// language written in the code; the circuit stops at « besoin » before it commits or
|
|
43
44
|
// relaunches anyone;
|
|
44
|
-
// - `criteres`, `paquets`, `questions` (each with its `piece`): the plan, which the circuit
|
|
45
|
+
// - `criteres`, `paquets`, `questions` (each with its `motif` and its `piece`): the plan, which the circuit
|
|
45
46
|
// writes at the ticket: the criteria it adds after those the ticket holds, which the circuit
|
|
46
47
|
// keeps as they are; the packages in the title as it names its components (a package name or a
|
|
47
48
|
// path), the list the envelope of every later session writes; the open questions, a change or
|
|
48
|
-
// a removal of a criterion written among them, go up to the supervisor
|
|
49
|
+
// a removal of a criterion written among them, go up to the supervisor, each naming why: the
|
|
50
|
+
// language, the architecture, a gap to the reference, or no answer (BP 328: a question the
|
|
51
|
+
// ticket settled stopped the plan) (explorateur);
|
|
49
52
|
// - `ecartes` (`composant`, `raison`): the components of the survey the plan does not touch,
|
|
50
53
|
// which the circuit writes at the ticket; each other component of the survey the circuit
|
|
51
54
|
// plays is in the packages (explorateur);
|
|
@@ -159,6 +162,10 @@ const ECARTS = {
|
|
|
159
162
|
// The documents a line of a reviewer's conformity cites its rule from.
|
|
160
163
|
const DOCUMENTS = ['CADRE', 'INTERFACE', 'ARCHITECTURE'];
|
|
161
164
|
|
|
165
|
+
// Why an open question of a plan goes up: what is the owner's (the language, the architecture, a
|
|
166
|
+
// gap to the mature reference), or no answer the explorateur holds.
|
|
167
|
+
const MOTIFS = ['langage', 'architecture', 'écart à la référence', 'sans réponse'];
|
|
168
|
+
|
|
162
169
|
// The schema of the sheet of each role the circuit leads.
|
|
163
170
|
const FICHES = {
|
|
164
171
|
explorateur: objet(
|
|
@@ -185,11 +192,17 @@ const FICHES = {
|
|
|
185
192
|
objet(
|
|
186
193
|
{
|
|
187
194
|
question: texte('La question qui reste ouverte, ses options et ta recommandation.'),
|
|
195
|
+
motif: {
|
|
196
|
+
type: 'string',
|
|
197
|
+
enum: MOTIFS,
|
|
198
|
+
description:
|
|
199
|
+
'Pourquoi elle monte : ce qui revient au responsable (le langage, l’architecture, un écart à la référence), ou « sans réponse », tu n’as pas la réponse.',
|
|
200
|
+
},
|
|
188
201
|
piece: piece('Sa pièce'),
|
|
189
202
|
},
|
|
190
|
-
['question', 'piece']
|
|
203
|
+
['question', 'motif', 'piece']
|
|
191
204
|
),
|
|
192
|
-
'Les questions ouvertes du plan, que tu ne tranches pas ; elles montent au superviseur.'
|
|
205
|
+
'Les questions ouvertes du plan, que tu ne tranches pas ; elles montent au superviseur. Une question que tu sais trancher, tu la tranches dans le plan.'
|
|
193
206
|
),
|
|
194
207
|
reponses: liste(
|
|
195
208
|
objet(
|
|
@@ -384,19 +397,27 @@ export const bloquantsDeLaFiche = fiche => [
|
|
|
384
397
|
})),
|
|
385
398
|
];
|
|
386
399
|
|
|
387
|
-
// What makes the reviewer's sheet <fiche> out of conformity with the
|
|
388
|
-
//
|
|
400
|
+
// What makes the reviewer's sheet <fiche> out of conformity with the list of its lot
|
|
401
|
+
// (scripts/elements-du-lot.mjs: <elements>, each `{ id, nom, statut, exporte }`, and
|
|
402
|
+
// <horsDuService>, the changed sources the language service does not read), as a review asks a
|
|
389
403
|
// word on every changed file: an element without its line, a line on an element out of the list,
|
|
390
|
-
// a new export whose rule does not name its entry in the INTERFACE of its package.
|
|
391
|
-
//
|
|
392
|
-
|
|
404
|
+
// a new export whose rule does not name its entry in the INTERFACE of its package. A line on a
|
|
405
|
+
// file out of the service names it alone or one of its elements, `<fichier>#<nom>`, as a review
|
|
406
|
+
// accepts a comment on any line of the diff. The fault, or null.
|
|
407
|
+
export function conformiteDuLot(fiche, { elements, horsDuService }) {
|
|
393
408
|
const lignes = fiche.conformite ?? [];
|
|
394
409
|
const ids = new Set(elements.map(e => e.id));
|
|
410
|
+
const hors = new Set(horsDuService);
|
|
411
|
+
const duLot = element => {
|
|
412
|
+
if (ids.has(element) || hors.has(element)) return true;
|
|
413
|
+
const diese = element.lastIndexOf('#');
|
|
414
|
+
return diese > 0 && diese < element.length - 1 && hors.has(element.slice(0, diese));
|
|
415
|
+
};
|
|
395
416
|
const fautes = [];
|
|
396
417
|
const sans = elements.filter(e => !lignes.some(l => l.element === e.id)).map(e => e.id);
|
|
397
418
|
if (sans.length) fautes.push(`conformite : sans ligne pour ${sans.join(', ')}`);
|
|
398
419
|
for (const [i, l] of lignes.entries()) {
|
|
399
|
-
if (!
|
|
420
|
+
if (!duLot(l.element)) {
|
|
400
421
|
fautes.push(`conformite[${i}].element : ${l.element} n'est pas un élément du lot`);
|
|
401
422
|
}
|
|
402
423
|
}
|
|
@@ -412,6 +433,15 @@ export function conformiteDuLot(fiche, elements) {
|
|
|
412
433
|
return fautes.length ? fautes.join(' ; ') : null;
|
|
413
434
|
}
|
|
414
435
|
|
|
436
|
+
// What makes the explorateur's answer <fiche> out of conformity with the <posees> questions put to
|
|
437
|
+
// it, as a reviewer gives a line to each element of its lot: each question without its line of
|
|
438
|
+
// `reponses`, by its number. The fault, or null.
|
|
439
|
+
export function reponsesAuxQuestions(fiche, posees) {
|
|
440
|
+
const numeros = new Set((fiche.reponses ?? []).map(r => Number(r.numero)));
|
|
441
|
+
const sans = Array.from({ length: posees }, (_, i) => i + 1).filter(n => !numeros.has(n));
|
|
442
|
+
return sans.length ? `reponses : sans ligne pour les questions ${sans.join(', ')}` : null;
|
|
443
|
+
}
|
|
444
|
+
|
|
415
445
|
// The piece of a fact <texte>: `{ fichier, ligne }` for « <fichier>:<ligne> », `{ fichier, ligne,
|
|
416
446
|
// fin }` for « <fichier>:<ligne>-<fin> » (as SARIF's region has a start line and an optional end
|
|
417
447
|
// line), then what it shows after a space, the place in backquotes or followed by punctuation
|
|
@@ -234,6 +234,26 @@ export const tracesDuPlan = (plan, garder = () => true) =>
|
|
|
234
234
|
.map(t => t.taskId)
|
|
235
235
|
.sort();
|
|
236
236
|
|
|
237
|
+
// The tasks of a plan of Turborepo (`turbo run … --dry=json`, parsed) that wait, directly or not,
|
|
238
|
+
// for a task of one of the packages <paquets>, those tasks included: their task ids. As Bazel
|
|
239
|
+
// under --keep_going, a task that waits for a target of the plan goes with the plan, whose failure
|
|
240
|
+
// is the session's work; the others are the plan's providers.
|
|
241
|
+
export function attendentLePlan(plan, paquets) {
|
|
242
|
+
const parId = new Map(plan.tasks.map(t => [t.taskId, t]));
|
|
243
|
+
const verdicts = new Map();
|
|
244
|
+
const attend = id => {
|
|
245
|
+
if (verdicts.has(id)) return verdicts.get(id);
|
|
246
|
+
// A cycle of tasks is no wait on the plan by itself; Turborepo refuses it anyway.
|
|
247
|
+
verdicts.set(id, false);
|
|
248
|
+
const t = parId.get(id);
|
|
249
|
+
const v =
|
|
250
|
+
t !== undefined && (paquets.includes(t.package) || (t.dependencies ?? []).some(attend));
|
|
251
|
+
verdicts.set(id, v);
|
|
252
|
+
return v;
|
|
253
|
+
};
|
|
254
|
+
return new Set(plan.tasks.map(t => t.taskId).filter(attend));
|
|
255
|
+
}
|
|
256
|
+
|
|
237
257
|
// A path from the root, without its trailing slashes.
|
|
238
258
|
const net = d => String(d ?? '').replace(/\/+$/, '');
|
|
239
259
|
// The fixed part of the pattern <motif>, its segments before the first holding a glob character,
|
|
@@ -139,7 +139,10 @@ son adresse) : le circuit la consigne fermée sous ton ticket, et tu continues.
|
|
|
139
139
|
projet déclare, un plafond par exemple. Leur rouge n'est pas le tien : ta séance ne s'arrête pas sur elles,
|
|
140
140
|
et ta fiche finit FAIT sur ta part. Exemple : en 320.8 de BPScript, un développeur aux tests
|
|
141
141
|
verts s'est arrêté sur le plafond des mots, la dette et l'index, que 4.2 a régénérés ensuite.
|
|
142
|
-
|
|
142
|
+
Un constat de leur garde sur ton code reste le tien, sous « Tes rouges », comme le refus de leur
|
|
143
|
+
commande qu'il cause : un plafond ne monte jamais. Exemple : en 320.10 de BPScript, le mot
|
|
144
|
+
« door » écrit dans 030-binder dépassait le plafond des mots. Ainsi le geste mécanique reste au
|
|
145
|
+
circuit, et ton code à toi.
|
|
143
146
|
- **Un rouge qui reste dans les tests va au testwriter** : quand le rouge qui reste est dans les
|
|
144
147
|
tests du lot (un test existant que ton changement de type casse), ta fiche porte `renvoi`, le
|
|
145
148
|
rôle testwriter. Le circuit relance le testwriter, ta `raison` et ta passation pour rapport, puis
|
|
@@ -69,7 +69,10 @@ change, et ceux qu'il peut casser.
|
|
|
69
69
|
que je sais trancher et recommande, je l'applique au plan (écarter un paquet qui n'a rien à
|
|
70
70
|
changer, par exemple) et je le dis dans ma fiche. Chaque question : chacune avec ses options, ma recommandation et sa
|
|
71
71
|
`piece` (fichier:ligne depuis la racine de la copie, ou « $ commande » et sa sortie), que le
|
|
72
|
-
circuit cherche dans la copie ; elles montent au superviseur.
|
|
72
|
+
circuit cherche dans la copie ; elles montent au superviseur. Chacune dit pourquoi elle monte,
|
|
73
|
+
son `motif` : `langage`, `architecture` ou `écart à la référence`, ce qui revient au
|
|
74
|
+
responsable, ou `sans réponse`, je n'ai pas la réponse. Une question sans motif, ou au motif
|
|
75
|
+
hors de ces valeurs, rend ma fiche non conforme : le circuit me la redemande une fois. Un fait que je reprends d'un
|
|
73
76
|
autre agent (le ticket, une passation) se relit à sa pièce avant que je m'appuie dessus.
|
|
74
77
|
Une décision que la référence mature, l'existant ou une règle du cadre tranche, je la tranche
|
|
75
78
|
dans le plan, sa raison au critère. _Fini quand_ chaque critère se mesure et chaque composant du
|
|
@@ -77,8 +80,10 @@ change, et ceux qu'il peut casser.
|
|
|
77
80
|
3. **La réponse.** Le circuit reprend ma séance avec les questions du questionneur, numérotées. Je
|
|
78
81
|
réponds une seule fois, à chacune : CHANGE, et ce que le plan devient, ou GARDE, et pourquoi il
|
|
79
82
|
reste tel quel. Ma fiche porte aussi le plan tel qu'il devient, ses `questions` ouvertes
|
|
80
|
-
comprises.
|
|
81
|
-
|
|
83
|
+
comprises. Chaque question posée a sa ligne dans mes `reponses`, même quand je réponds par des
|
|
84
|
+
critères ajoutés : une fiche sans elle est refusée, et le circuit me la redemande une fois avec
|
|
85
|
+
les numéros qui manquent ; après, une question sans ligne reste ouverte. _Fini quand_ chaque
|
|
86
|
+
question a sa ligne.
|
|
82
87
|
|
|
83
88
|
Je n'écris ni fichier ni plan au ticket : le circuit l'écrit depuis ma fiche. Ainsi le plan a une
|
|
84
89
|
seule source, et les paquets un seul format.
|
|
@@ -88,9 +88,11 @@ nomme le responsable, ce qui décide, les documents qu'il valide et les commande
|
|
|
88
88
|
(l'index après les rapports d'API), sans que le plan les nomme, puis la passe finale restreinte
|
|
89
89
|
à ce qu'elles changent, les autres rouges allant chacun à son propriétaire ; aux contrôles du
|
|
90
90
|
plan verts hors de leurs rouges, avant la passe finale, qui joue alors une fois : je ne les régénère
|
|
91
|
-
jamais à la main ;
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
jamais à la main ; un constat de leur garde sur le code du plan, hors de leurs fichiers, va au
|
|
92
|
+
développeur ; une commande du projet qui refuse à côté de rouges du plan, à la passe finale,
|
|
93
|
+
les lui envoie avec sa sortie ; toute autre commande en échec ou un fichier qu'aucune référence
|
|
94
|
+
n'écrit arrête à `references`, code 23, une question pour moi qui porte chaque écart : je fais
|
|
95
|
+
corriger la référence ou le lot, 4.3 le relecteur), 5 Intégration (5.1
|
|
94
96
|
le commit, 5.2 la file et la lecture de la CI) ; aucun composant n'est une unité du circuit, chaque
|
|
95
97
|
étape joue une fois pour tout le ticket, dans l'enveloppe de tous les paquets du plan ; je dis
|
|
96
98
|
où en est un ticket par son étape, « 3 Code » ; son en-tête dit ses arrêts et leurs codes. Ainsi
|
|
@@ -211,7 +213,7 @@ Une séance de supervision charge le superviseur (`pitmaster`) ; un projet a un
|
|
|
211
213
|
comme Zuul a un seul ordonnanceur : l'ouverture de séance prend le verrou du dépôt, et une seconde
|
|
212
214
|
séance le dit au responsable et ne lance aucun circuit. Les rôles sont des agents du greffon du
|
|
213
215
|
cadre (ses `agents/`, leurs compétences dans ses `skills/`), chacun sous ses verrous et les droits que nomment les commandes de sa
|
|
214
|
-
compétence, sans la configuration propre de l'utilisateur (`packages/grillhouse/scripts/droits.mjs`). Un ticket
|
|
216
|
+
compétence, avec la lecture des fichiers de sa compétence et du métacadre dans le greffon installé, sans la configuration propre de l'utilisateur (`packages/grillhouse/scripts/droits.mjs`). Un ticket
|
|
215
217
|
parcourt l'arbre de son circuit, les étapes « auto » comprises (`packages/grillhouse/scripts/etapes.mjs`, la seule
|
|
216
218
|
liste), comme un pipeline de GitLab CI ses étapes et leurs travaux : 1 Plan : l'`explorateur` écrit le plan
|
|
217
219
|
(ses critères, les paquets à toucher, ses questions ouvertes, que le circuit écrit au ticket), le
|
|
@@ -228,12 +230,15 @@ motifs `*` et `**`, comme les entrées de Turborepo ; `tests`, les fichiers de t
|
|
|
228
230
|
jugent, par le nom que porte leur constat SARIF), et celles du cadre dans chaque projet (l'index
|
|
229
231
|
des interfaces, les `turbo.json`, les rapports d'API, la dette des gardes), comme les genrules de
|
|
230
232
|
Bazel et `--update-snapshots` : un rouge de la passe finale qui est le leur (un de leurs tests, un
|
|
231
|
-
constat d'une de leurs gardes,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
constat d'une de leurs gardes, ou un fichier qu'elles couvrent), mêlé ou non à d'autres, ou une
|
|
234
|
+
dette qui baisse, les régénère, chacune suivie, comme dans make, de celles qui lisent ce qu'elle
|
|
235
|
+
écrit, puis la passe finale rejoue restreinte à ce qu'elles changent, les autres rouges allant
|
|
236
|
+
chacun à son propriétaire ; un constat d'une garde d'une référence du projet sur le code du plan,
|
|
237
|
+
hors de ses fichiers, va au développeur, aux contrôles comme à la passe finale ; la différence va
|
|
238
|
+
au lot et au relecteur sans que le plan la nomme, un plafond ne monte jamais, une commande du
|
|
239
|
+
projet qui refuse à côté de rouges du plan envoie ces rouges au développeur avec sa sortie, la
|
|
240
|
+
copie rendue, et toute autre commande en échec ou un fichier qu'aucune référence n'écrit arrête le
|
|
241
|
+
circuit (`references`), ses écarts dans sa question, et 4.3 Relecture, le `relecteur`, trois tours au plus, qui rend une ligne de
|
|
237
242
|
conformité par élément que le lot ajoute, change ou supprime (la liste mécanique que le circuit
|
|
238
243
|
lui donne, chaque ligne avec sa règle : CADRE, INTERFACE ou ARCHITECTURE), un « non » rendant le
|
|
239
244
|
lot et un élément sans ligne refusant sa fiche, un lot rendu revenant à
|
|
@@ -59,7 +59,7 @@ LA DERNIÈRE PASSATION de ton rôle (pour un développeur qui n'en a pas encore,
|
|
|
59
59
|
|
|
60
60
|
Le circuit joue la preuve du rouge après le testwriter, sur les seuls tests du lot (sans eux, sur les paquets du plan entiers), et les contrôles après le développeur : les tests du lot, les paquets du plan, les gardes dans l'enveloppe du plan, dont seuls comptent les constats sur ses fichiers ; puis la passe finale, `npm run verifier`, qui juge le reste.
|
|
61
61
|
|
|
62
|
-
LES RÉFÉRENCES QUE LE CIRCUIT RÉGÉNÈRE à l'étape 4.2, sur la copie entière, après la passe finale : ce que leur commande écrit dans ces fichiers, le circuit l'écrit, et leur rouge (un plafond, la dette, l'index) n'arrête pas ta séance :
|
|
62
|
+
LES RÉFÉRENCES QUE LE CIRCUIT RÉGÉNÈRE à l'étape 4.2, sur la copie entière, après la passe finale : ce que leur commande écrit dans ces fichiers, le circuit l'écrit, et leur rouge (un plafond, la dette, l'index) n'arrête pas ta séance ; un constat de leur garde sur ton code, sous « Tes rouges », reste le tien :
|
|
63
63
|
|
|
64
64
|
{{references}}
|
|
65
65
|
|
|
@@ -103,7 +103,7 @@ LES ÉLÉMENTS DU LOT, chaque fonction, classe, type, interface, constante de t
|
|
|
103
103
|
|
|
104
104
|
{{elements}}
|
|
105
105
|
|
|
106
|
-
Ta fiche rend une ligne de `conformite` par élément, son `element` tel que cette liste l'écrit : `conforme` oui ou non, la règle citée (`document` : le CADRE, l'INTERFACE ou l'ARCHITECTURE de son paquet ; `reference` : la règle dans ce document ; un export neuf, son entrée dans l'INTERFACE de son paquet), sa `piece` ; un « non » nomme son agent (`role`) et rend le lot. En relecture bornée, tu rejuges un élément marqué « à rejuger » et tu reprends la ligne d'un élément marqué « reprise » ; chacun garde sa ligne. Le circuit refuse une fiche à laquelle il manque un élément. Ainsi chaque élément nouveau ou changé est jugé contre l'architecture.
|
|
106
|
+
Ta fiche rend une ligne de `conformite` par élément, son `element` tel que cette liste l'écrit : `conforme` oui ou non, la règle citée (`document` : le CADRE, l'INTERFACE ou l'ARCHITECTURE de son paquet ; `reference` : la règle dans ce document ; un export neuf, son entrée dans l'INTERFACE de son paquet), sa `piece` ; un « non » nomme son agent (`role`) et rend le lot. Un fichier hors du service de langage : une ligne par élément que tu y relèves, son `element` écrit `<fichier>#<nom>`. En relecture bornée, tu rejuges un élément marqué « à rejuger » et tu reprends la ligne d'un élément marqué « reprise » ; chacun garde sa ligne. Le circuit refuse une fiche à laquelle il manque un élément. Ainsi chaque élément nouveau ou changé est jugé contre l'architecture.
|
|
107
107
|
|
|
108
108
|
LES RAPPORTS DU CIRCUIT depuis le dernier verdict (preuves du rouge, contrôles, passe finale) :
|
|
109
109
|
|
|
@@ -201,7 +201,7 @@ LES NOTES DU TICKET :
|
|
|
201
201
|
|
|
202
202
|
{{notes}}
|
|
203
203
|
|
|
204
|
-
Tu relèves les composants que le ticket touche (`npx grillhouse composants-affectes {{ticket}}`) et le code qu'il change, par l'index. Ta fiche, que le circuit lit seule, finit ta séance : le plan, ses `criteres`, ceux que tu ajoutes (chacun un comportement que ses tests mesurent, sans son numéro ; le circuit garde tels quels les critères écrits au ticket, la décision du responsable, et écrit les tiens après eux ; changer ou retirer un critère écrit est une question ouverte), ses `paquets` à toucher (le fournisseur d'abord, chacun comme le titre le nomme : le nom de son paquet, ou son chemin), ses `ecartes` (chaque composant du relevé que le plan ne touche pas, avec sa raison ; le circuit rejoue le relevé, et un composant ni dans tes `paquets` ni dans tes `ecartes` rend ta fiche non conforme) et ses `questions` ouvertes (ce que tu ne tranches pas, chacune avec sa `piece`). Chaque séance du ticket n'écrit que les paquets du plan.
|
|
204
|
+
Tu relèves les composants que le ticket touche (`npx grillhouse composants-affectes {{ticket}}`) et le code qu'il change, par l'index. Ta fiche, que le circuit lit seule, finit ta séance : le plan, ses `criteres`, ceux que tu ajoutes (chacun un comportement que ses tests mesurent, sans son numéro ; le circuit garde tels quels les critères écrits au ticket, la décision du responsable, et écrit les tiens après eux ; changer ou retirer un critère écrit est une question ouverte), ses `paquets` à toucher (le fournisseur d'abord, chacun comme le titre le nomme : le nom de son paquet, ou son chemin), ses `ecartes` (chaque composant du relevé que le plan ne touche pas, avec sa raison ; le circuit rejoue le relevé, et un composant ni dans tes `paquets` ni dans tes `ecartes` rend ta fiche non conforme) et ses `questions` ouvertes (ce que tu ne tranches pas, chacune avec son `motif`, pourquoi elle monte : `langage`, `architecture` ou `écart à la référence`, ce qui revient au responsable, ou `sans réponse`, tu n'as pas la réponse ; et sa `piece`). Une question que tu sais trancher, tu la tranches dans le plan. Chaque séance du ticket n'écrit que les paquets du plan.
|
|
205
205
|
|
|
206
206
|
Tu n'écris rien : ni fichier, ni ticket. Le circuit écrit le plan au ticket : les paquets au titre, les critères et les questions ouvertes dans la description. Puis le questionneur le lit une seule fois.
|
|
207
207
|
```
|
|
@@ -217,5 +217,5 @@ SES QUESTIONS, numérotées :
|
|
|
217
217
|
|
|
218
218
|
{{questions}}
|
|
219
219
|
|
|
220
|
-
Tu réponds une seule fois, à chaque question : dans tes `reponses`, son `numero`, CHANGE avec ce que le plan devient, ou GARDE avec pourquoi il reste tel quel. Ta fiche porte aussi le plan tel qu'il devient : ses `criteres`, ceux que tu ajoutes aux critères écrits au ticket, ses `paquets`, ses `ecartes` et ses `questions` ouvertes, celles que tu ne tranches pas.
|
|
220
|
+
Tu réponds une seule fois, à chaque question : dans tes `reponses`, son `numero`, CHANGE avec ce que le plan devient, ou GARDE avec pourquoi il reste tel quel. Ta fiche porte aussi le plan tel qu'il devient : ses `criteres`, ceux que tu ajoutes aux critères écrits au ticket, ses `paquets`, ses `ecartes` et ses `questions` ouvertes, celles que tu ne tranches pas. Chaque question posée a sa ligne dans tes `reponses`, même quand tu y réponds par des critères ajoutés : une fiche sans elle est refusée et te revient une fois, avec les numéros qui manquent ; après, une question sans ligne reste ouverte. Ce qui reste ouvert monte au superviseur ; le reste, le circuit l'écrit au ticket, et passe aux tests.
|
|
221
221
|
```
|
|
@@ -34,8 +34,10 @@ des rapports d'API).
|
|
|
34
34
|
3. Un `non` rend le lot : il nomme son agent (`role`), comme un constat
|
|
35
35
|
bloquant. Le circuit refuse une fiche à laquelle il manque un élément, ou dont une ligne n'a
|
|
36
36
|
pas sa référence.
|
|
37
|
-
4. Un fichier que la liste dit hors du service de langage se relit de même :
|
|
38
|
-
|
|
37
|
+
4. Un fichier que la liste dit hors du service de langage se relit de même : tu relèves ses
|
|
38
|
+
éléments neufs, changés ou supprimés, et chacun a sa ligne de `conformite`, son `element`
|
|
39
|
+
écrit `<fichier>#<nom>` (le fichier seul pour une ligne sur tout le fichier). Le circuit
|
|
40
|
+
refuse une ligne sur un élément hors de la liste et hors de ces fichiers.
|
|
39
41
|
|
|
40
42
|
En relecture bornée, la liste porte encore tout le lot, chaque élément marqué, comme une revue ne
|
|
41
43
|
décoche « vu » que sur les fichiers changés depuis : « à rejuger » quand la différence le touche
|