@roomi-fields/grillhouse 0.24.8 → 0.24.10
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/docs/ARCHITECTURE.md +15 -3
- package/package.json +5 -1
- package/scripts/circuit.mjs +79 -27
- package/scripts/resultats.d.ts +28 -0
- package/scripts/resultats.mjs +2 -1
- package/skills/developpeur/SKILL.md +4 -1
- package/skills/pitmaster/SKILL.md +14 -9
- package/skills/pitmaster/references/consigne-agent.md +1 -1
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -15,8 +15,8 @@ rôle qui écrit les refusent, `droits.mjs`). `npm run verifier` joue, après la
|
|
|
15
15
|
construction : les gardes du cadre,
|
|
16
16
|
celles du projet (son script racine `gardes`, un nom que le cadre réserve ; une garde juge les
|
|
17
17
|
fichiers de l'arbre de travail, que le cache de Turborepo compte, jamais l'index de git ; elle
|
|
18
|
-
écrit ses constats en SARIF, chacun avec son fichier et sa ligne, par `ecrireSarif
|
|
19
|
-
|
|
18
|
+
écrit ses constats en SARIF, chacun avec son fichier et sa ligne, par `ecrireSarif`, que
|
|
19
|
+
publie l'entrée `@roomi-fields/grillhouse/resultats`, dans le dossier que nomme `GRILLHOUSE_RESULTATS`, et sans eux son rouge
|
|
20
20
|
ne revient à aucun composant) et les tests, côte à côte ; un rouge n'arrête pas la passe, qui joue tout ce que ses tâches
|
|
21
21
|
préalables permettent et nomme chaque rouge ; `npm run verifier -- --gardes` joue les gardes
|
|
22
22
|
seules, ce que le relecteur joue sur la copie du ticket. Une tâche dont
|
|
@@ -93,6 +93,16 @@ 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
|
|
@@ -291,7 +301,9 @@ nom et l'une de ses entrées (le champ `exports`), jamais par l'adresse d'un fic
|
|
|
291
301
|
la fonction, sans réexport, avec sa déclaration de types à côté (`scripts/<module>.d.ts`) :
|
|
292
302
|
`@roomi-fields/grillhouse/dette` (`trancher`, la dette connue d'une garde du projet),
|
|
293
303
|
`@roomi-fields/grillhouse/consommateurs` (`matieres`, les paquets de la matière de test
|
|
294
|
-
partagée), `@roomi-fields/grillhouse/paquets` (`horsCadre`, les paquets hors cadre),
|
|
304
|
+
partagée), `@roomi-fields/grillhouse/paquets` (`horsCadre`, les paquets hors cadre),
|
|
305
|
+
`@roomi-fields/grillhouse/resultats` (`ecrireSarif`, les constats d'une garde du projet en
|
|
306
|
+
SARIF), et la
|
|
295
307
|
configuration de base de Vitest, `@roomi-fields/grillhouse/vitest-config` et
|
|
296
308
|
`@roomi-fields/grillhouse/vitest-config/mesure`, et la base TSDoc,
|
|
297
309
|
`@roomi-fields/grillhouse/tsdoc-base.json`, dont hérite le `tsdoc.json` d'un projet : elle hérite
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomi-fields/grillhouse",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.10",
|
|
4
4
|
"description": "Roomi's Grillhouse: the frame's scripts, called by one command, grillhouse <sous-commande>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
"types": "./scripts/paquets.d.ts",
|
|
44
44
|
"default": "./scripts/paquets.mjs"
|
|
45
45
|
},
|
|
46
|
+
"./resultats": {
|
|
47
|
+
"types": "./scripts/resultats.d.ts",
|
|
48
|
+
"default": "./scripts/resultats.mjs"
|
|
49
|
+
},
|
|
46
50
|
"./vitest-config": {
|
|
47
51
|
"types": "./scripts/vitest-config/base.d.ts",
|
|
48
52
|
"default": "./scripts/vitest-config/base.mjs"
|
package/scripts/circuit.mjs
CHANGED
|
@@ -264,10 +264,15 @@
|
|
|
264
264
|
// index of the interfaces, which reads the interfaces, the turbo.json of the packages, the API
|
|
265
265
|
// reports, which write the generated part of the interfaces), and the known debt of the guards;
|
|
266
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
|
|
267
|
-
// their test files, a finding of one of their guards,
|
|
268
|
-
//
|
|
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
|
|
269
269
|
// guard's note of a key of the debt inscribed above what it finds (`a-elaguer`, the pass green
|
|
270
|
-
// 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
|
|
271
276
|
// plan green but for reds of references call for it too, before the final pass, as make
|
|
272
277
|
// remakes a generated file before what reads it: the final pass that is due then plays once, on
|
|
273
278
|
// the regenerated tree, and does not regenerate again a reference regenerated on that same tree
|
|
@@ -292,7 +297,10 @@
|
|
|
292
297
|
// them), which the pass that follows judges. The stop leaves the copy restored as it was before
|
|
293
298
|
// the regeneration, a question for the supervisor that carries each deviation (the command and
|
|
294
299
|
// its code, the file), as the comment at the ticket does; the state keeps the references to regenerate and the reds of the
|
|
295
|
-
// 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.
|
|
296
304
|
// - The proof, the checks and the final pass are heavy passes: each holds the lock of the machine
|
|
297
305
|
// (scripts/verrou-de-machine.mjs), shared by every repository of the machine, and waits, the
|
|
298
306
|
// wait written to the log, while another measure holds it; the wait bounded, the pass is at 75,
|
|
@@ -1716,15 +1724,19 @@ export function couvertPar(motifs, fichier) {
|
|
|
1716
1724
|
});
|
|
1717
1725
|
}
|
|
1718
1726
|
|
|
1719
|
-
// The references a red of <lieux> is one of (each `{ fichier, gardes }`, its file
|
|
1720
|
-
// finding carries
|
|
1721
|
-
// snapshots that fail and leaves the other
|
|
1722
|
-
// their `
|
|
1723
|
-
// <aElaguer> (a guard wrote a key of
|
|
1724
|
-
// 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).
|
|
1725
1736
|
function referencesDesRouges(ctx, lieux, aElaguer = false) {
|
|
1726
|
-
const sien = (r, { fichier: f, gardes }) =>
|
|
1727
|
-
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))) ||
|
|
1728
1740
|
(!r.cadre && Boolean(f) && (r.tests.includes(f) || couvertPar(r.fichiers, f)));
|
|
1729
1741
|
return lesReferences(ctx).filter(
|
|
1730
1742
|
r => lieux.some(l => sien(r, l)) || (aElaguer && couvertPar(r.fichiers, DETTE))
|
|
@@ -1743,8 +1755,12 @@ function referencesDesRouges(ctx, lieux, aElaguer = false) {
|
|
|
1743
1755
|
// the output of a genrule, without a word of the plan, and the reviewer reads its difference; a
|
|
1744
1756
|
// file changed that none of the references run declares, or a command that fails (a reference of
|
|
1745
1757
|
// the project at another code than 0, one of the frame on a real failure alone) restores the copy
|
|
1746
|
-
// as it was and stops at « references », each deviation in its question.
|
|
1747
|
-
|
|
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) {
|
|
1748
1764
|
// The notes of the debt, in a file of the run, which the command that lowers it reads.
|
|
1749
1765
|
const fichierDesNotes = path.join(ctx.base.dossier, 'dette-a-abaisser.json');
|
|
1750
1766
|
const toutes = lesReferences(ctx).map(r =>
|
|
@@ -1766,6 +1782,8 @@ function regenerer(ctx, noms, notes = [], avantLaPasse = false) {
|
|
|
1766
1782
|
// them): a real failure alone counts; a reference of the project, by its code.
|
|
1767
1783
|
const refs = [];
|
|
1768
1784
|
const echecs = [];
|
|
1785
|
+
// The refusals of the commands of the project, each its line and the end of its output.
|
|
1786
|
+
const refus = [];
|
|
1769
1787
|
const appelees = new Set();
|
|
1770
1788
|
let arbre = avant.arbre;
|
|
1771
1789
|
while (aJouer.length) {
|
|
@@ -1773,9 +1791,9 @@ function regenerer(ctx, noms, notes = [], avantLaPasse = false) {
|
|
|
1773
1791
|
const x = commandeDeReference(ctx, r.commande);
|
|
1774
1792
|
if (!refs.includes(r)) refs.push(r);
|
|
1775
1793
|
if (x.panne || (!r.cadre && x.code !== 0)) {
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
);
|
|
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'));
|
|
1779
1797
|
}
|
|
1780
1798
|
// The references that read a file this command wrote run after it.
|
|
1781
1799
|
const suivant = arbreDeLaCopie(ctx);
|
|
@@ -1800,6 +1818,7 @@ function regenerer(ctx, noms, notes = [], avantLaPasse = false) {
|
|
|
1800
1818
|
];
|
|
1801
1819
|
if (ecarts.length) {
|
|
1802
1820
|
restaurer(ctx, avant.commit, fichiers);
|
|
1821
|
+
if (refusAuLot && refus.length === ecarts.length) return { refus };
|
|
1803
1822
|
const difference =
|
|
1804
1823
|
apres && fichiers.length
|
|
1805
1824
|
? [
|
|
@@ -1845,13 +1864,15 @@ function regenerer(ctx, noms, notes = [], avantLaPasse = false) {
|
|
|
1845
1864
|
}
|
|
1846
1865
|
|
|
1847
1866
|
// One command of a reference, run by the shell at the root of the copy, out of the envelope,
|
|
1848
|
-
// under the lock of the machine, its output added to the log: `{ code, panne }`, its exit
|
|
1849
|
-
// whether it failed for real, whatever it judges
|
|
1850
|
-
// 127, as the shell says it
|
|
1851
|
-
// 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.
|
|
1852
1871
|
function commandeDeReference(ctx, commande) {
|
|
1853
1872
|
entete(ctx, 'references');
|
|
1854
1873
|
appendFileSync(ctx.journal, `$ ${commande}\n`);
|
|
1874
|
+
const debut = statSync(ctx.journal).size;
|
|
1875
|
+
const sortie = () => readFileSync(ctx.journal).subarray(debut).toString('utf8');
|
|
1855
1876
|
const fd = openSync(ctx.journal, 'a');
|
|
1856
1877
|
try {
|
|
1857
1878
|
const r = avecLaMachine(
|
|
@@ -1863,11 +1884,12 @@ function commandeDeReference(ctx, commande) {
|
|
|
1863
1884
|
code,
|
|
1864
1885
|
panne:
|
|
1865
1886
|
r.signal !== null || r.error !== undefined || code === 126 || code === 127 || code > 128,
|
|
1887
|
+
sortie: sortie(),
|
|
1866
1888
|
};
|
|
1867
1889
|
} catch (e) {
|
|
1868
1890
|
if (!(e instanceof AttenteDeLaMachine)) throw e;
|
|
1869
1891
|
appendFileSync(ctx.journal, `${e.message}\n`);
|
|
1870
|
-
return { code: e.code, panne: true };
|
|
1892
|
+
return { code: e.code, panne: true, sortie: sortie() };
|
|
1871
1893
|
} finally {
|
|
1872
1894
|
closeSync(fd);
|
|
1873
1895
|
}
|
|
@@ -2572,8 +2594,8 @@ const ligneDeCommande = c =>
|
|
|
2572
2594
|
// developpeur, his reds first; `complet` every red, for a stop; `auDeveloppeur` whether a red lies
|
|
2573
2595
|
// in a package of the plan; `horsTitre` the packages out of the plan that hold a red; `arbitrer`
|
|
2574
2596
|
// when every red of the plan is a finding to settle; `lieux` the place of each red, `{ fichier,
|
|
2575
|
-
// gardes }`, its file (null for a red without one)
|
|
2576
|
-
// 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,
|
|
2577
2599
|
// which their regeneration lifts before the final pass; `tous` every red as it was read; `notes`,
|
|
2578
2600
|
// at the final pass, each key of the debt a guard wrote inscribed above what it finds, `{ garde,
|
|
2579
2601
|
// fichier, regle, trouve }`.
|
|
@@ -2610,7 +2632,11 @@ function controles(ctx, finale, restreinte = null, reportes = null) {
|
|
|
2610
2632
|
// Out of the final pass, the reds of the plan are the developpeur's; a red of a reference goes to
|
|
2611
2633
|
// its regeneration (4.2), before the final pass; the others (the root, a red no file situates, a
|
|
2612
2634
|
// package out of the plan) wait for the final pass.
|
|
2613
|
-
const lieu = r => ({
|
|
2635
|
+
const lieu = r => ({
|
|
2636
|
+
fichier: r.fichier ?? null,
|
|
2637
|
+
gardes: r.gardes ?? [],
|
|
2638
|
+
dansLePlan: Boolean(r.dansLePlan),
|
|
2639
|
+
});
|
|
2614
2640
|
const deReference = r => referencesDesRouges(ctx, [lieu(r)]).length > 0;
|
|
2615
2641
|
const siens = r => finale || (r.dansLePlan && !deReference(r));
|
|
2616
2642
|
const rouges = tous.filter(siens);
|
|
@@ -3016,7 +3042,15 @@ async function derouler(ctx, debut) {
|
|
|
3016
3042
|
resultat(k.rouge ? 'rouge' : 'vert'),
|
|
3017
3043
|
k.texte
|
|
3018
3044
|
);
|
|
3019
|
-
|
|
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
|
+
};
|
|
3020
3054
|
etape = REFERENCES;
|
|
3021
3055
|
finale = true;
|
|
3022
3056
|
} else if (k.rouge && passeFinale && k.horsTitre.length) {
|
|
@@ -3099,7 +3133,25 @@ async function derouler(ctx, debut) {
|
|
|
3099
3133
|
"L'état du circuit ne garde pas les références à régénérer : la passe finale les redonne (`--depuis developpeur`)."
|
|
3100
3134
|
);
|
|
3101
3135
|
}
|
|
3102
|
-
|
|
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
|
+
}
|
|
3103
3155
|
ecrireRapport(ctx, 'references', g.texte, {
|
|
3104
3156
|
regenerees: g.regenerees,
|
|
3105
3157
|
fichiers: g.fichiers,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// The types of ./resultats.mjs as the entry `@roomi-fields/grillhouse/resultats` publishes it, for
|
|
2
|
+
// a project's guard that writes its findings in SARIF.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A finding of a guard: its `fichier` (from the root) and its `ligne` (from 1) place it, `regle`
|
|
6
|
+
* is the guard's own rule, `niveau` the SARIF level (`error` by default) and `genre` who settles
|
|
7
|
+
* it (`a-corriger`, the default, or `a-arbitrer`, a person, never a developpeur).
|
|
8
|
+
*/
|
|
9
|
+
export type Constat = {
|
|
10
|
+
fichier?: string;
|
|
11
|
+
ligne?: number;
|
|
12
|
+
message: string;
|
|
13
|
+
regle?: string;
|
|
14
|
+
niveau?: 'error' | 'warning' | 'note' | 'none';
|
|
15
|
+
genre?: 'a-corriger' | 'a-arbitrer';
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Writes the SARIF 2.1.0 of the findings `constats` of `garde` at `racine` under the results
|
|
20
|
+
* directory `GRILLHOUSE_RESULTATS` of `env` (`process.env` by default): its path, or null without
|
|
21
|
+
* the variable. A green guard writes its run too, `constats` empty.
|
|
22
|
+
*/
|
|
23
|
+
export function ecrireSarif(options: {
|
|
24
|
+
garde: string;
|
|
25
|
+
constats: Constat[];
|
|
26
|
+
racine?: string;
|
|
27
|
+
env?: Record<string, string | undefined>;
|
|
28
|
+
}): string | null;
|
package/scripts/resultats.mjs
CHANGED
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
// nothing without it; a green guard writes its run, empty, so a reader knows it played. The
|
|
83
83
|
// frame's guards write through the known debt (scripts/dette.mjs), their runner
|
|
84
84
|
// (scripts/gardes-du-cadre.mjs) writes for a red guard that wrote none a finding without
|
|
85
|
-
// location, and a project's guards (its script `gardes`) import `ecrireSarif`
|
|
85
|
+
// location, and a project's guards (its script `gardes`) import `ecrireSarif` by the package's
|
|
86
|
+
// entry `@roomi-fields/grillhouse/resultats`, whose types (./resultats.d.ts) declare it alone.
|
|
86
87
|
// - The summary of a run of Turborepo (`turbo run … --summarize`, `.turbo/runs/<id>.json`):
|
|
87
88
|
// `garderLesResumes` moves the summaries a run wrote into `<dossier>/turbo/`, and `lireResumes`
|
|
88
89
|
// gives each task, its package and directory, its script, its exit code, its cache status and
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|