@roomi-fields/grillhouse 0.52.0 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +96 -0
- package/agents/direct.md +1 -1
- package/cadre/templates/projet/docs/agents/issue-tracker.md +2 -2
- package/cadre/templates/projet/vitest.config.cjs +45 -0
- package/charte/superviseur.md +36 -37
- package/charte.md +13 -1
- package/dist/temporal/circuit/appel.d.ts +2 -0
- package/dist/temporal/circuit/appel.js +24 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +14 -5
- package/dist/temporal/circuit/client.js +41 -9
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +17 -6
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +9 -0
- package/dist/temporal/circuit/contrat.js +6 -0
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +29 -12
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/client.d.ts +35 -1
- package/dist/temporal/client.js +144 -1
- package/dist/temporal/client.js.map +1 -1
- package/dist/temporal/commande.js +31 -13
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/etat.d.ts +3 -1
- package/dist/temporal/etat.js +31 -17
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +1 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +4 -5
- package/dist/temporal/file/contrat.js +2 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +7 -5
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +116 -53
- package/dist/temporal/installation.js +898 -241
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +3 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/deroule.js +2 -1
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/sonde/deroule.js +2 -1
- package/dist/temporal/sonde/deroule.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -3
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/dist/temporal/travailleur.d.ts +7 -1
- package/dist/temporal/travailleur.js +49 -25
- package/dist/temporal/travailleur.js.map +1 -1
- package/docs/INTERFACE.md +37 -12
- package/docs/architecture/circuit.md +21 -18
- package/docs/architecture/entree.md +10 -11
- package/docs/architecture/greffon.md +45 -27
- package/docs/architecture/installation.md +92 -59
- package/docs/architecture/machine.md +2 -2
- package/docs/architecture/tests.md +15 -6
- package/docs/lexique.md +2 -2
- package/hooks/hooks.json +10 -0
- package/hooks/register.tsx +59 -39
- package/package.json +3 -2
- package/scripts/activites.mjs +5 -4
- package/scripts/aiguillage.mjs +5 -2
- package/scripts/bd-garde.mjs +69 -0
- package/scripts/ci-de-main.mjs +259 -56
- package/scripts/circuit.mjs +274 -47
- package/scripts/circuits-du-serveur.mjs +3 -2
- package/scripts/circuits-tenus.d.mts +7 -0
- package/scripts/circuits-tenus.mjs +17 -0
- package/scripts/commandes-composees.mjs +1 -1
- package/scripts/copie-de-montee.mjs +354 -0
- package/scripts/copies-du-depot.d.mts +13 -0
- package/scripts/copies-du-depot.mjs +66 -0
- package/scripts/copies-finies.mjs +6 -40
- package/scripts/crochets.mjs +16 -2
- package/scripts/direct.mjs +2 -2
- package/scripts/droits.mjs +13 -6
- package/scripts/engendres.mjs +5 -3
- package/scripts/enveloppe/travail-de-la-copie.mjs +77 -0
- package/scripts/etapes.mjs +11 -3
- package/scripts/faits-du-circuit.mjs +12 -5
- package/scripts/file-des-tickets.d.mts +13 -2
- package/scripts/file-des-tickets.mjs +71 -21
- package/scripts/greffons.mjs +42 -27
- package/scripts/grillhouse-maj.mjs +105 -85
- package/scripts/init.mjs +1 -1
- package/scripts/integration/file.mjs +5 -2
- package/scripts/integration/integrer.mjs +14 -4
- package/scripts/jointure.d.ts +16 -0
- package/scripts/langages/c/commandes.mjs +18 -8
- package/scripts/langages/cargo/commandes.mjs +88 -35
- package/scripts/langages/cargo/index.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +15 -12
- package/scripts/langages/cargo/tailles-des-tests.mjs +115 -6
- package/scripts/langages/python/commandes.mjs +19 -9
- package/scripts/langages/python/squelette.mjs +2 -2
- package/scripts/langages/typescript/code-mort.mjs +36 -3
- package/scripts/langages/typescript/configurations-de-vitest.mjs +118 -0
- package/scripts/langages/typescript/index.mjs +2 -0
- package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +370 -0
- package/scripts/langages/typescript/mise-a-jour.mjs +49 -12
- package/scripts/langages/typescript/parcours.mjs +5 -1
- package/scripts/langages/typescript/squelette.mjs +20 -17
- package/scripts/langages/typescript/tests-de-nuit.mjs +3 -3
- package/scripts/langages/typescript/turbo-des-paquets.mjs +24 -37
- package/scripts/langages/typescript/vitest-config/base.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/cibles.mjs +2 -2
- package/scripts/langages/typescript/{vitest.nuit.config.mjs → vitest.nuit.config.cjs} +61 -50
- package/scripts/langages.d.mts +6 -0
- package/scripts/langages.mjs +6 -0
- package/scripts/lire.mjs +236 -0
- package/scripts/mesure/pression.mjs +5 -3
- package/scripts/migrations/cout-des-jetons-au-registre.mjs +136 -0
- package/scripts/migrations/lire-un-ticket.mjs +46 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/montee.mjs +588 -0
- package/scripts/nuit.sh +21 -12
- package/scripts/outil.mjs +5 -3
- package/scripts/paquet-npm.mjs +22 -0
- package/scripts/paquet.mjs +5 -5
- package/scripts/pre-compact.mjs +25 -0
- package/scripts/registre.d.mts +7 -1
- package/scripts/registre.mjs +114 -102
- package/scripts/reponses-du-circuit.d.mts +17 -2
- package/scripts/reponses-du-circuit.mjs +78 -20
- package/scripts/resultats.mjs +55 -17
- package/scripts/retirer-les-copies-finies.mjs +4 -7
- package/scripts/seances.mjs +28 -3
- package/scripts/services-du-noyau.mjs +7 -2
- package/scripts/session-start.sh +18 -11
- package/scripts/sortie.mjs +4 -7
- package/scripts/sous-commandes.mjs +2 -0
- package/scripts/suiveur.mjs +12 -4
- package/scripts/superviseur.mjs +135 -84
- package/scripts/tableau.mjs +651 -224
- package/scripts/tarifs.mjs +67 -0
- package/scripts/ticket-du-circuit.mjs +25 -4
- package/scripts/transitions.d.mts +6 -14
- package/scripts/transitions.mjs +126 -49
- package/scripts/verdict-de-la-nuit.mjs +2 -2
- package/scripts/verrou-de-fichier.d.mts +11 -0
- package/skills/direct/SKILL.md +21 -11
- package/skills/explorateur/SKILL.md +16 -6
- package/skills/grill/SKILL.md +9 -7
- package/skills/grill/references/paquets.md +4 -4
- package/skills/mesure/SKILL.md +4 -3
- package/skills/pitmaster/SKILL.md +56 -35
- package/skills/pitmaster/references/consigne-agent.md +1 -1
- package/skills/pitmaster/references/erreurs.md +4 -2
- package/skills/pitmaster/references/tour.md +11 -4
- package/skills/relecteur/SKILL.md +8 -1
- package/skills/testwriter/SKILL.md +1 -1
- package/types/index.d.ts +3 -1
- package/cadre/templates/projet/vitest.config.ts +0 -44
- package/scripts/base-des-workflows.mjs +0 -58
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// The price of the tokens of the frame's models, in dollars per million tokens, as the table of
|
|
2
|
+
// LiteLLM that ccusage reads publishes it: the input, the output, a read of the cache, a write of
|
|
3
|
+
// the cache kept five minutes, and one kept an hour. A model with a `palier` takes the tariff of
|
|
4
|
+
// its upper tier for a request of more than `palier.au` input tokens, cache included. Those of
|
|
5
|
+
// Sonnet 5.5 and Opus 5.5 give the total Claude Code wrote for each of 25 sessions without
|
|
6
|
+
// sub-agent, to the thousandth.
|
|
7
|
+
const OPUS_5 = { entree: 5, sortie: 25, lecture: 0.5, ecriture5m: 6.25, ecriture1h: 10 };
|
|
8
|
+
|
|
9
|
+
export const TARIFS = {
|
|
10
|
+
'claude-fable-5-2': { entree: 8, sortie: 40, lecture: 0.2, ecriture5m: 10, ecriture1h: 16 },
|
|
11
|
+
'claude-opus-5': OPUS_5,
|
|
12
|
+
'claude-opus-4-8': OPUS_5,
|
|
13
|
+
'claude-sonnet-5-5': { entree: 2, sortie: 10, lecture: 0.1, ecriture5m: 2.5, ecriture1h: 4 },
|
|
14
|
+
'claude-opus-5-5': { entree: 4, sortie: 20, lecture: 0.2, ecriture5m: 5, ecriture1h: 8 },
|
|
15
|
+
'claude-haiku-4-5': { entree: 1, sortie: 5, lecture: 0.1, ecriture5m: 1.25, ecriture1h: 2 },
|
|
16
|
+
'claude-haiku-5-5': {
|
|
17
|
+
entree: 0.1,
|
|
18
|
+
sortie: 0.5,
|
|
19
|
+
lecture: 0.01,
|
|
20
|
+
ecriture5m: 0.125,
|
|
21
|
+
ecriture1h: 0.2,
|
|
22
|
+
palier: {
|
|
23
|
+
au: 100_000,
|
|
24
|
+
entree: 0.5,
|
|
25
|
+
sortie: 2.5,
|
|
26
|
+
lecture: 0.05,
|
|
27
|
+
ecriture5m: 0.625,
|
|
28
|
+
ecriture1h: 1,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// What marks, after its model's name, the usage of the requests of the upper tier.
|
|
34
|
+
const AU_DESSUS = ' (palier supérieur)';
|
|
35
|
+
|
|
36
|
+
// The tariff of the model <modele>: that of its name, else of its name without its date.
|
|
37
|
+
const tarifDe = modele => TARIFS[modele] ?? TARIFS[modele.replace(/-\d{8}$/, '')];
|
|
38
|
+
|
|
39
|
+
// The key under which the usage by model counts one request of <modele>, its usage <u> (`{ entree,
|
|
40
|
+
// sortie, lecture, ecriture5m, ecriture1h }`): its name, marked when the request is of the upper
|
|
41
|
+
// tier.
|
|
42
|
+
export function cleDuTarif(modele, u) {
|
|
43
|
+
const au = tarifDe(modele)?.palier?.au;
|
|
44
|
+
const entree = u.entree + u.lecture + u.ecriture5m + u.ecriture1h;
|
|
45
|
+
return au !== undefined && entree > au ? `${modele}${AU_DESSUS}` : modele;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// The cost of the usage by model <modeles> (`{ <clé>: { entree, sortie, lecture, ecriture5m,
|
|
49
|
+
// ecriture1h } }`, tokens, each key a model's name or one `cleDuTarif` gives), or null when a model
|
|
50
|
+
// without a tariff spent tokens.
|
|
51
|
+
export function coutDe(modeles) {
|
|
52
|
+
let cout = 0;
|
|
53
|
+
for (const [cle, u] of Object.entries(modeles ?? {})) {
|
|
54
|
+
const parts = Object.entries(u);
|
|
55
|
+
if (parts.every(([, n]) => !n)) {
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const haut = cle.endsWith(AU_DESSUS);
|
|
59
|
+
const base = tarifDe(haut ? cle.slice(0, -AU_DESSUS.length) : cle);
|
|
60
|
+
const tarif = haut ? base?.palier : base;
|
|
61
|
+
if (!tarif) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
cout += parts.reduce((m, [k, n]) => m + n * (tarif[k] ?? 0), 0) / 1e6;
|
|
65
|
+
}
|
|
66
|
+
return cout;
|
|
67
|
+
}
|
|
@@ -10,7 +10,7 @@ import { spawnSync } from 'node:child_process';
|
|
|
10
10
|
import { appendFileSync, existsSync, readFileSync } from 'node:fs';
|
|
11
11
|
import { gesteDe } from './etapes.mjs';
|
|
12
12
|
import { paquetsDuLangage } from './enveloppe/paquets-du-plan.mjs';
|
|
13
|
-
import {
|
|
13
|
+
import { composantsLisibles, langageDe } from './langages.mjs';
|
|
14
14
|
import { AUTEUR_DU_CIRCUIT, PREFIXE, emettre, rendusDe, sansCouleurs } from './effets.mjs';
|
|
15
15
|
|
|
16
16
|
// The author of a comment, the circuit's, and the start of its lines: those of its one writer.
|
|
@@ -34,6 +34,7 @@ export class Arret extends Error {
|
|
|
34
34
|
question = null,
|
|
35
35
|
qui = null,
|
|
36
36
|
etape = null,
|
|
37
|
+
demande = null,
|
|
37
38
|
} = {}
|
|
38
39
|
) {
|
|
39
40
|
super(nom);
|
|
@@ -47,6 +48,8 @@ export class Arret extends Error {
|
|
|
47
48
|
this.qui = qui;
|
|
48
49
|
// The step the stop stands at, when it is not the step that throws it.
|
|
49
50
|
this.etape = etape;
|
|
51
|
+
// The motif of the sheet the stop answers (« demande-un-plan »), which its state keeps.
|
|
52
|
+
this.demande = demande;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -65,9 +68,8 @@ export const enUneLigne = t =>
|
|
|
65
68
|
// root (a crate whose workspace is its own, as OSC Bridge's).
|
|
66
69
|
export const composantsDe = racine => paquetsDuLangage(langageDe(racine), racine);
|
|
67
70
|
|
|
68
|
-
// The same components, still read in a copy its tool no longer loads
|
|
69
|
-
|
|
70
|
-
export const composantsLisibles = racine => paquetsDuLangage(langageDeLaCopie(racine), racine);
|
|
71
|
+
// The same components, still read in a copy its tool no longer loads.
|
|
72
|
+
export { composantsLisibles };
|
|
71
73
|
|
|
72
74
|
// Every comment at the ticket, in their order, `{ author, text }` as Beads gives them, then those
|
|
73
75
|
// emitted and not yet played; a failed read throws.
|
|
@@ -152,6 +154,25 @@ export function lesFiches(ctx) {
|
|
|
152
154
|
export const inscrire = (ctx, entree) =>
|
|
153
155
|
emettre(ctx, { genre: 'fiche', entree: { date: new Date().toISOString(), ...entree } });
|
|
154
156
|
|
|
157
|
+
// A line of the circuit that switches a direct circuit to the plan (`--planifier`, circuit.md §5.6).
|
|
158
|
+
const estUneBasculeVersLePlan = e => e.role === AUTEUR_DU_CIRCUIT && Boolean(e.planifier);
|
|
159
|
+
|
|
160
|
+
// The sheets of the ticket since its last switch to the plan, all of them without one: what was
|
|
161
|
+
// judged before it is stale, as a vote Gerrit does not copy to a new patch set.
|
|
162
|
+
export function fichesDepuisLaBascule(ctx) {
|
|
163
|
+
const tous = lesFiches(ctx);
|
|
164
|
+
return tous.slice(tous.findLastIndex(estUneBasculeVersLePlan) + 1);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// The switch to the plan whose plan has not passed yet (`{ raison, piece }`), or null.
|
|
168
|
+
export function basculeVersLePlanEnCours(ctx) {
|
|
169
|
+
const tous = lesFiches(ctx);
|
|
170
|
+
const i = tous.findLastIndex(estUneBasculeVersLePlan);
|
|
171
|
+
return i < 0 || tous.slice(i + 1).some(e => e.role === AUTEUR_DU_CIRCUIT && e.plan?.empreinte)
|
|
172
|
+
? null
|
|
173
|
+
: tous[i].planifier;
|
|
174
|
+
}
|
|
175
|
+
|
|
155
176
|
// The sheets of <role>, in their order.
|
|
156
177
|
export const fichesDe = (ctx, role) =>
|
|
157
178
|
lesFiches(ctx)
|
|
@@ -17,11 +17,6 @@ export interface EntreeDeLaTransition {
|
|
|
17
17
|
ticket: { id: string; paquets: string[]; sorte: unknown; copie: string; circuit?: string | null };
|
|
18
18
|
reprend?: boolean;
|
|
19
19
|
faits?: Record<string, unknown>;
|
|
20
|
-
/**
|
|
21
|
-
* The markers of the workflow of a ticket (`patched`), each true when the run carries it; a run
|
|
22
|
-
* recorded before a marker decides as before it.
|
|
23
|
-
*/
|
|
24
|
-
marqueurs?: { attributionAvantSansLivraison?: boolean };
|
|
25
20
|
}
|
|
26
21
|
|
|
27
22
|
/** The next fact to read, with what the step decided before it; or the decision of the step. */
|
|
@@ -35,10 +30,10 @@ export interface Transition {
|
|
|
35
30
|
usage?: string;
|
|
36
31
|
}
|
|
37
32
|
|
|
38
|
-
/** The circuit (`long` or `
|
|
33
|
+
/** The circuit (`long`, `court` or `direct`) the sort of a ticket makes. */
|
|
39
34
|
export function circuitDeLaSorte(
|
|
40
35
|
sorte: { genre?: string; comportement?: string } | null | undefined
|
|
41
|
-
): 'long' | 'court';
|
|
36
|
+
): 'long' | 'court' | 'direct';
|
|
42
37
|
|
|
43
38
|
/** The circuit <circuit> once the sort of its ticket turns to <sorte>: a direct circuit stays so. */
|
|
44
39
|
export function circuitSuivant(
|
|
@@ -220,16 +215,13 @@ interface Constat {
|
|
|
220
215
|
/** The developpeur's report on the integration's refusal <refus>. */
|
|
221
216
|
export function rapportDuRefus(refus: { rapport: string }): string;
|
|
222
217
|
|
|
223
|
-
/** The stop of a ticket the queue reopens
|
|
224
|
-
export function refusDeLaFile(
|
|
225
|
-
issue?: { raison?: string | null; conflit?: boolean },
|
|
226
|
-
circuit?: string | null
|
|
227
|
-
): {
|
|
218
|
+
/** The stop of a ticket the queue reopens without a conflict: its motive, and no question of its own. */
|
|
219
|
+
export function refusDeLaFile(issue?: { raison?: string | null }): {
|
|
228
220
|
motif: string;
|
|
229
|
-
question:
|
|
221
|
+
question: null;
|
|
230
222
|
};
|
|
231
223
|
|
|
232
|
-
/** The step after the plan of sort <sorte>: the gesture, the developpeur, or the testwriter. */
|
|
224
|
+
/** The step after the plan of sort <sorte>: the gesture, the code (developpeur or agent direct), or the testwriter. */
|
|
233
225
|
export function etapeApresLePlan(e: {
|
|
234
226
|
sorte?: { genre?: string; comportement?: string } | null;
|
|
235
227
|
sansTests?: boolean;
|
package/scripts/transitions.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// reads no file, launches no process and imports no module that does (a guard holds it:
|
|
7
7
|
// tests/unit/transitions.spec.ts).
|
|
8
8
|
//
|
|
9
|
-
// `transition({ etat, memoire, ticket, reprend, faits
|
|
9
|
+
// `transition({ etat, memoire, ticket, reprend, faits })`:
|
|
10
10
|
//
|
|
11
11
|
// - `etat`, the run at its step: `{ etape, tentative, rapport, finale, relanceSurLeRefus }`;
|
|
12
12
|
// - `memoire`, what the circuit keeps between steps (`controlesRouges`, `renvoiAuTestwriter`,
|
|
@@ -15,10 +15,7 @@
|
|
|
15
15
|
// - `ticket`, `{ id, paquets, sorte, copie, circuit }`, `circuit` being `long`, `court` or
|
|
16
16
|
// `direct` (without it, the rule decides as a long or short circuit);
|
|
17
17
|
// - `reprend`, whether this step is the first of a `--reprendre`;
|
|
18
|
-
// - `faits`, the facts read for this step, by their name
|
|
19
|
-
// - `marqueurs`, the markers of the workflow of a ticket (`patched`), each true when the run
|
|
20
|
-
// carries it: `attributionAvantSansLivraison`, without which red checks after a developpeur who
|
|
21
|
-
// had nothing to deliver stop before any attribution, as a run recorded before it replays.
|
|
18
|
+
// - `faits`, the facts read for this step, by their name.
|
|
22
19
|
//
|
|
23
20
|
// It returns either the next fact to read, `{ besoin: { fait, ...parametres }, effets, memoire }` (a
|
|
24
21
|
// session, a pass, a reading of the copy), which the circuit reads and gives back in `faits` with
|
|
@@ -34,7 +31,17 @@
|
|
|
34
31
|
// step the list does not hold `usage`. Each call is played again from the start of its step with
|
|
35
32
|
// the facts read so far, as Temporal replays a workflow on its history: the same facts give the
|
|
36
33
|
// same decision.
|
|
37
|
-
import {
|
|
34
|
+
import {
|
|
35
|
+
ARRETS,
|
|
36
|
+
auteurDuCode,
|
|
37
|
+
boucle,
|
|
38
|
+
DEMANDE_UN_PLAN,
|
|
39
|
+
joue,
|
|
40
|
+
LOT_NE_S_APPLIQUE_PAS,
|
|
41
|
+
nomDuRole,
|
|
42
|
+
RESPONSABLE,
|
|
43
|
+
SUITE,
|
|
44
|
+
} from './etapes.mjs';
|
|
38
45
|
import { attribuerLeRouge, departDepuis, refusDeLaReprise } from './reprise.mjs';
|
|
39
46
|
|
|
40
47
|
// The resumptions `--depuis` names and the one rule that accepts them (./reprise.mjs), as the
|
|
@@ -43,11 +50,16 @@ export { ETAPES_DE_REPRISE } from './reprise.mjs';
|
|
|
43
50
|
export { refusDeLaReprise };
|
|
44
51
|
|
|
45
52
|
/**
|
|
46
|
-
* The circuit (`long` or `
|
|
47
|
-
*
|
|
53
|
+
* The circuit (`long`, `court` or `direct`) the sort <sorte> of a ticket makes: direct for a
|
|
54
|
+
* correction triviale, short for a gesture without new behaviour (mechanical, or « comportement
|
|
55
|
+
* inchangé »), long for any other, none said included.
|
|
48
56
|
*/
|
|
49
|
-
export const circuitDeLaSorte = sorte =>
|
|
50
|
-
sorte?.genre === '
|
|
57
|
+
export const circuitDeLaSorte = sorte => {
|
|
58
|
+
if (sorte?.genre === 'correction triviale') {
|
|
59
|
+
return 'direct';
|
|
60
|
+
}
|
|
61
|
+
return sorte?.genre === 'mécanique' || sorte?.comportement === 'inchangé' ? 'court' : 'long';
|
|
62
|
+
};
|
|
51
63
|
|
|
52
64
|
/**
|
|
53
65
|
* The circuit <circuit> once the sort of its ticket turns to <sorte>: a direct circuit stays so,
|
|
@@ -133,35 +145,36 @@ const auteurDe = circuit => {
|
|
|
133
145
|
export const rapportDuRefus = refus =>
|
|
134
146
|
`L’intégration refuse ce lot : son refus, ci-dessous, est le rouge à lever ; les contrôles de ta copie, verts, ne le voient pas, et le lot ne repasse à l’intégration qu’avec un changement.\n\n${refus.rapport}`;
|
|
135
147
|
|
|
136
|
-
// The stop of a ticket the queue reopens on its issue `{ raison
|
|
137
|
-
// (`direLIssue` of scripts/integration/file.mjs)
|
|
138
|
-
//
|
|
139
|
-
//
|
|
140
|
-
//
|
|
141
|
-
export function refusDeLaFile({ raison
|
|
142
|
-
const auteur = auteurDe(circuit);
|
|
148
|
+
// The stop of a ticket the queue reopens on its issue `{ raison }`, as it gives the circuit
|
|
149
|
+
// (`direLIssue` of scripts/integration/file.mjs), for any reason but a conflict, which the circuit
|
|
150
|
+
// takes back itself (gesture `conflit-de-l-avance`): `motif`, whose first line, the fact of the
|
|
151
|
+
// question gone up, says why (the first line of the reason that is not a title), the whole reason
|
|
152
|
+
// after it; `question`, null: no such reopening has a question of its own.
|
|
153
|
+
export function refusDeLaFile({ raison } = {}) {
|
|
143
154
|
const texte = String(raison ?? '').trim();
|
|
144
155
|
const pourquoi = texte.split('\n').find(l => l.trim() && !l.startsWith('#'));
|
|
145
156
|
return {
|
|
146
157
|
motif: `La file rouvre le ticket${pourquoi ? ` : ${pourquoi.trim()}` : '.'}\n\n${texte}`,
|
|
147
|
-
question:
|
|
148
|
-
? `La branche ne se replace pas sur main : \`--depuis ${auteur.role}\` remet son lot en travail local sur main, où ${auteur.le} le replace ; \`--reprendre\` renverrait la même branche.`
|
|
149
|
-
: null,
|
|
158
|
+
question: null,
|
|
150
159
|
};
|
|
151
160
|
}
|
|
152
161
|
|
|
153
162
|
// The step after the plan of sort <sorte> (null when the path is not mechanical): the gesture of
|
|
154
|
-
// a mechanical ticket (1.1), in place of the testwriter, the proof and the developpeur; the
|
|
155
|
-
// developpeur of a plan without tests (<sansTests>) or of a plan whose `comportement` is inchangé
|
|
163
|
+
// a mechanical ticket (1.1), in place of the testwriter, the proof and the developpeur; the code,
|
|
164
|
+
// by the agent direct, of a correction triviale; the developpeur of a plan without tests (<sansTests>) or of a plan whose `comportement` is inchangé
|
|
156
165
|
// (a gesture written by hand: no test can turn red, the existing suite proves it); else the
|
|
157
166
|
// testwriter, for changé and tests-adaptés alike.
|
|
158
167
|
// The supervisor's `--depuis testwriter` (<demande>) wins over `inchangé`: the testwriter plays.
|
|
159
|
-
export const etapeApresLePlan = ({ sorte, sansTests, demande = false }) =>
|
|
160
|
-
sorte?.genre === 'mécanique'
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
168
|
+
export const etapeApresLePlan = ({ sorte, sansTests, demande = false }) => {
|
|
169
|
+
if (sorte?.genre === 'mécanique') {
|
|
170
|
+
return GESTE;
|
|
171
|
+
}
|
|
172
|
+
return sorte?.genre === 'correction triviale' ||
|
|
173
|
+
sansTests ||
|
|
174
|
+
(sorte?.comportement === 'inchangé' && !demande)
|
|
175
|
+
? CODE
|
|
176
|
+
: TESTS;
|
|
177
|
+
};
|
|
165
178
|
|
|
166
179
|
// The step after a proof that passes: the developpeur on a red (<rouges>), on a finding of the
|
|
167
180
|
// reviewer still open for him (<pourLeDeveloppeur>), or under a plan « comportement
|
|
@@ -479,6 +492,12 @@ export function depart({
|
|
|
479
492
|
if (etat.etape === 'integre') {
|
|
480
493
|
return { usage: `rien à reprendre : le lot de ${ticket} est intégré.` };
|
|
481
494
|
}
|
|
495
|
+
// After the reviewer asks for a plan (`demande-un-plan`), --reprendre keeps the direct circuit:
|
|
496
|
+
// the agent direct, the findings of that verdict as his task.
|
|
497
|
+
if (etat.etape === RELECTURE && etat.motif === DEMANDE_UN_PLAN) {
|
|
498
|
+
Object.assign(memoire, { verifie: null, toursDeLaPasseFinale: null });
|
|
499
|
+
return { suivant: { etape: CODE, tentative: 1, rapport: null, finale: false }, memoire };
|
|
500
|
+
}
|
|
482
501
|
const compteGarde =
|
|
483
502
|
circuit === 'direct' &&
|
|
484
503
|
[CODE, CONTROLES, REFERENCES].includes(etat.etape) &&
|
|
@@ -586,7 +605,7 @@ export function transition(entree) {
|
|
|
586
605
|
}
|
|
587
606
|
}
|
|
588
607
|
|
|
589
|
-
function decider({ etat, memoire = {}, ticket, reprend = false
|
|
608
|
+
function decider({ etat, memoire = {}, ticket, reprend = false }, lire, partiel) {
|
|
590
609
|
let { etape, tentative, rapport, finale } = etat;
|
|
591
610
|
let relanceSurLeRefus = Boolean(etat.relanceSurLeRefus);
|
|
592
611
|
const maj = {};
|
|
@@ -664,9 +683,10 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
664
683
|
}
|
|
665
684
|
|
|
666
685
|
// After the plan: the gesture of a mechanical ticket, the developpeur of a plan without tests,
|
|
667
|
-
// else the testwriter.
|
|
686
|
+
// else the testwriter. A testwriter relaunched on a conflict with main (`retourDuConflit`) plays
|
|
687
|
+
// his session whatever the sort of the plan.
|
|
668
688
|
const route =
|
|
669
|
-
etape === TESTS
|
|
689
|
+
etape === TESTS && !m('retourDuConflit')
|
|
670
690
|
? etapeApresLePlan({
|
|
671
691
|
sorte:
|
|
672
692
|
lire('mecanique') || ticket.sorte?.comportement === 'inchangé' ? ticket.sorte : null,
|
|
@@ -862,6 +882,9 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
862
882
|
// integration stop (17, scripts/etapes.mjs), its piece the output.
|
|
863
883
|
return arreter(r.nom, fin(r.sortie, 60), { piece: fin(r.sortie, 30) });
|
|
864
884
|
}
|
|
885
|
+
if (r.code === LOT_NE_S_APPLIQUE_PAS && lire('mainAvancee')) {
|
|
886
|
+
return repasserSurMain('integration', "le lot ne s'applique plus sur la pointe de main");
|
|
887
|
+
}
|
|
865
888
|
if (r.code !== 0) {
|
|
866
889
|
return refuser(
|
|
867
890
|
`Le script d'intégration refuse le lot (code ${r.code}).\n\n${fin(r.sortie, 60)}`,
|
|
@@ -898,8 +921,13 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
898
921
|
if (f.etat === 'en-file') {
|
|
899
922
|
return arreter('a-repasser', f.raison);
|
|
900
923
|
}
|
|
901
|
-
|
|
902
|
-
|
|
924
|
+
if (f.etat === 'rouvert' && f.conflit) {
|
|
925
|
+
// The lot is committed on its branch, the copy gone: both become again what the pass that
|
|
926
|
+
// judges it reads, whose preparation meets the conflict.
|
|
927
|
+
lire('remiseEnTravail');
|
|
928
|
+
return repasserSurMain('file', 'la file ne replace pas la branche sur la pointe de main');
|
|
929
|
+
}
|
|
930
|
+
return refuser(refusDeLaFile(f).motif, f.raison);
|
|
903
931
|
}
|
|
904
932
|
if (etape === TRI) {
|
|
905
933
|
// The lot is on main: the tri of its discoveries, which neither stops nor undoes it.
|
|
@@ -926,12 +954,32 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
926
954
|
return decision();
|
|
927
955
|
}
|
|
928
956
|
|
|
957
|
+
// A lot that no longer applies on the tip of main (at the integration while main moved past the
|
|
958
|
+
// copy, or in the queue on a conflict) goes back to the pass that judges it, whose preparation
|
|
959
|
+
// advances the copy and plays the gesture `conflit-de-l-avance` on what conflicts, as a merge
|
|
960
|
+
// queue sends back a lot that no longer applies on its tip: no refusal is kept, and the final
|
|
961
|
+
// pass played before stands no more. <auteur> signs the line at the ticket, which says <fait>.
|
|
962
|
+
function repasserSurMain(auteur, fait) {
|
|
963
|
+
maj.refus = null;
|
|
964
|
+
maj.verifie = null;
|
|
965
|
+
garderLeVert('passe-finale', null);
|
|
966
|
+
etape = CONTROLES;
|
|
967
|
+
tentative = 0;
|
|
968
|
+
rapport = null;
|
|
969
|
+
finale = direct;
|
|
970
|
+
commenter(
|
|
971
|
+
auteur,
|
|
972
|
+
`${fait} : le circuit revient ${direct ? 'à la passe finale' : 'aux contrôles'}, qui avance la copie.`
|
|
973
|
+
);
|
|
974
|
+
return decision();
|
|
975
|
+
}
|
|
976
|
+
|
|
929
977
|
// The stop « integration » of the motive <motif> and the piece <piece>, the refusal of the lot
|
|
930
978
|
// kept in the memory (`refus`: `{ rapport, piece, empreinte, lance, relance }`, the fingerprint
|
|
931
979
|
// of the plan refused, whether a --depuis developpeur launched the developpeur on it, and whether
|
|
932
980
|
// a session so launched already left it unchanged once), which --depuis developpeur gives the
|
|
933
|
-
// developpeur
|
|
934
|
-
function refuser(motif, piece
|
|
981
|
+
// developpeur.
|
|
982
|
+
function refuser(motif, piece) {
|
|
935
983
|
maj.refus = {
|
|
936
984
|
rapport: motif,
|
|
937
985
|
piece,
|
|
@@ -939,7 +987,7 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
939
987
|
lance: false,
|
|
940
988
|
relance: false,
|
|
941
989
|
};
|
|
942
|
-
return arreter('integration', motif,
|
|
990
|
+
return arreter('integration', motif, { piece });
|
|
943
991
|
}
|
|
944
992
|
|
|
945
993
|
function code() {
|
|
@@ -959,6 +1007,12 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
959
1007
|
});
|
|
960
1008
|
relanceSurLeRefus = false;
|
|
961
1009
|
const fortement = fort ? ' (opus)' : '';
|
|
1010
|
+
// The agent direct who asks for a plan stops the circuit before any other gesture.
|
|
1011
|
+
if (direct && fiche.statut !== 'FAIT' && fiche.motif === DEMANDE_UN_PLAN) {
|
|
1012
|
+
return decision({
|
|
1013
|
+
arret: { nom: nomDuStatut(fiche), statut: { role: auteur.role, tentative, fiche } },
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
962
1016
|
// A question goes up to the supervisor; a red out of reach, to the testwriter its sheet sends
|
|
963
1017
|
// it to, else up to the supervisor.
|
|
964
1018
|
if (fiche.statut === 'BESOIN') {
|
|
@@ -1292,13 +1346,6 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1292
1346
|
`Le ticket est mécanique (${ticket.sorte.raison}) : ni testwriter ni développeur ne lève ce rouge du lot de sa commande. Le superviseur fait corriger le lot (\`--depuis developpeur\`, le rouge en \`--contexte\`), corrige le geste dans la copie puis \`--reprendre\`, ou arrête le circuit (\`--arreter\`).`
|
|
1293
1347
|
);
|
|
1294
1348
|
}
|
|
1295
|
-
// A run without the marker `attribution-avant-sans-livraison` of the workflow of a ticket
|
|
1296
|
-
// (src/temporal/circuit/deroule.ts) keeps the former order: the stop of a developpeur who had
|
|
1297
|
-
// nothing to deliver before any attribution, the fact « portes » not read, as its history
|
|
1298
|
-
// replays.
|
|
1299
|
-
if (k.rouge && rien && !marqueurs.attributionAvantSansLivraison) {
|
|
1300
|
-
return arret('sans-livraison', rien, CODE);
|
|
1301
|
-
}
|
|
1302
1349
|
// The red goes back to the step that carries it, by the files it names (scripts/reprise.mjs).
|
|
1303
1350
|
const portes =
|
|
1304
1351
|
k.rouge && suivante <= SEANCES_DEVELOPPEUR ? lire('portes', { lieux: k.lieux }) : null;
|
|
@@ -1460,11 +1507,22 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1460
1507
|
|
|
1461
1508
|
function relecture() {
|
|
1462
1509
|
const v = lire('relecture');
|
|
1463
|
-
|
|
1510
|
+
const demandeUnPlan = direct && v.fiche.motif === DEMANDE_UN_PLAN;
|
|
1511
|
+
// A question for the owner: nothing is committed nor relaunched before his answer. A RENDU
|
|
1512
|
+
// keeps its findings first, those of a direct lot that asks for a plan all for the agent
|
|
1513
|
+
// direct; the report names the faulty ones, which the supervisor's context settles.
|
|
1464
1514
|
if (v.fiche.question) {
|
|
1515
|
+
let sansAuteur = '';
|
|
1516
|
+
if (v.verdict === 'RENDU') {
|
|
1517
|
+
const lus = demandeUnPlan ? { constats: lire('constatsDeLaDemande') } : lire('constats');
|
|
1518
|
+
maj.constats = lus.constats;
|
|
1519
|
+
if (lus.arret) {
|
|
1520
|
+
sansAuteur = `\n\nAucune séance d’un auteur ne recevra ces constats, que le contexte du superviseur tranche :\n${lus.arret.piece}`;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1465
1523
|
return arreter(
|
|
1466
1524
|
'besoin',
|
|
1467
|
-
`Le relecteur attend une réponse : ${v.fiche.question}\n\nLe verdict :\n\n${v.texte}`,
|
|
1525
|
+
`Le relecteur attend une réponse : ${v.fiche.question}${sansAuteur}\n\nLe verdict :\n\n${v.texte}`,
|
|
1468
1526
|
{
|
|
1469
1527
|
piece: v.fiche.piece,
|
|
1470
1528
|
question: `Le relecteur demande : ${v.fiche.question}`,
|
|
@@ -1516,21 +1574,40 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1516
1574
|
finale = true;
|
|
1517
1575
|
return decision();
|
|
1518
1576
|
}
|
|
1577
|
+
// A direct lot rendered because its ticket asks for a plan goes up to the supervisor, before
|
|
1578
|
+
// the count of the reviews and the recipients of its findings: `--reprendre` gives them to the
|
|
1579
|
+
// agent direct (`depart`), `--planifier` drops them.
|
|
1580
|
+
if (demandeUnPlan) {
|
|
1581
|
+
const lus = lire('constatsDeLaDemande');
|
|
1582
|
+
maj.constats = lus;
|
|
1583
|
+
const pieces = lus.map(c => c.piece ?? c.titre).join('\n');
|
|
1584
|
+
return arreter(
|
|
1585
|
+
'hors-portee',
|
|
1586
|
+
`Le relecteur rend le lot au motif « ${DEMANDE_UN_PLAN} » : le ticket demande un plan.\n\nLe verdict :\n\n${v.texte}`,
|
|
1587
|
+
{
|
|
1588
|
+
piece: v.fiche.piece || pieces,
|
|
1589
|
+
question:
|
|
1590
|
+
'Le relecteur demande un plan : `--planifier --contexte <raison>` confirme la bascule vers le plan, `--reprendre --contexte <texte>` garde le circuit direct et rend les constats à l’agent direct.',
|
|
1591
|
+
demande: DEMANDE_UN_PLAN,
|
|
1592
|
+
}
|
|
1593
|
+
);
|
|
1594
|
+
}
|
|
1519
1595
|
// The reviews since the last ACCEPTÉ: a lot the queue sent back starts a new count.
|
|
1520
1596
|
const rendus = lire('rendus');
|
|
1597
|
+
// The findings still open once the sheet is read (`constatsOuverts` of scripts/circuit.mjs),
|
|
1598
|
+
// kept by every stop below, as the threads of a review stay open whatever stopped it, with the
|
|
1599
|
+
// stop for a finding without a valid recipient.
|
|
1600
|
+
const lus = lire('constats');
|
|
1601
|
+
maj.constats = lus.constats;
|
|
1521
1602
|
if (rendus >= RELECTURES) {
|
|
1522
1603
|
return arreter(
|
|
1523
1604
|
'relecture-arret',
|
|
1524
1605
|
`${rendus} relectures ont rendu le lot : le circuit s'arrête à la troisième.\n\nLe dernier verdict :\n\n${v.texte}`
|
|
1525
1606
|
);
|
|
1526
1607
|
}
|
|
1527
|
-
// The findings still open once the sheet is read (`constatsOuverts` of scripts/circuit.mjs),
|
|
1528
|
-
// or its stop for a finding without a valid recipient.
|
|
1529
|
-
const lus = lire('constats');
|
|
1530
1608
|
if (lus.arret) {
|
|
1531
1609
|
return decision({ arret: lus.arret });
|
|
1532
1610
|
}
|
|
1533
|
-
maj.constats = lus.constats;
|
|
1534
1611
|
// A lot of the short circuit (mechanical, or written by hand under a plan « comportement
|
|
1535
1612
|
// inchangé ») that the reviewer renders for a changed behaviour (`comportement-change`) goes
|
|
1536
1613
|
// back to 2 Tests on the same plan, its sort turned to comportement with the verdict as its
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
11
11
|
import path from 'node:path';
|
|
12
12
|
import { fileURLToPath } from 'node:url';
|
|
13
|
+
import { A_REPASSER } from './codes-de-sortie.mjs';
|
|
13
14
|
|
|
14
|
-
const CODE_A_REPASSER = 75;
|
|
15
15
|
const FICHIERS = { pc2: 'verdict-pc2', pc3: 'verdict' };
|
|
16
16
|
const fichierDuVerdict = (commun, part) => path.join(commun, 'nuit', FICHIERS[part]);
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ const fichierDuVerdict = (commun, part) => path.join(commun, 'nuit', FICHIERS[pa
|
|
|
22
22
|
* @returns {'vert' | 'rouge' | null} the verdict written, null when the part is to be replayed
|
|
23
23
|
*/
|
|
24
24
|
export function noterLeVerdict(commun, code, part = 'pc3') {
|
|
25
|
-
if (code ===
|
|
25
|
+
if (code === A_REPASSER) {
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
const verdict = code === 0 ? 'vert' : 'rouge';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// The types of ./verrou-de-fichier.mjs, for the frame's TypeScript (src/temporal/installation.ts).
|
|
2
|
+
|
|
3
|
+
/** Blocks the process for `ms` milliseconds. */
|
|
4
|
+
export function attendreUnPeu(ms: number): string;
|
|
5
|
+
/** Takes the lock file `verrou`; with `attendre` false, false while another holds it. */
|
|
6
|
+
export function prendreVerrou(
|
|
7
|
+
verrou: string,
|
|
8
|
+
options: { attendre: boolean; perime?: number | null; pid?: number }
|
|
9
|
+
): boolean;
|
|
10
|
+
/** Releases the lock this process took on `verrou`. */
|
|
11
|
+
export function lacherVerrou(verrou: string): void;
|
package/skills/direct/SKILL.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: direct
|
|
3
|
-
description: "Travailler un ticket
|
|
3
|
+
description: "Travailler un ticket du circuit direct : tests et code ensemble, dans la copie du ticket. À charger au démarrage d'une séance de l'agent direct, dans le circuit ou sur la voie de secours, avant de lire le ticket."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Direct — écrire un ticket
|
|
6
|
+
# Direct — écrire un ticket du circuit direct
|
|
7
7
|
|
|
8
|
-
Un ticket direct est un
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
Un ticket direct est un travail que le ticket décrit en entier : une correction triviale, le
|
|
9
|
+
squelette d'un paquet, ou une correction du circuit que le circuit complet ou court ne peut pas
|
|
10
|
+
porter. Une correction triviale te vient aussi du plan, quand l'explorateur l'a jugée telle : tu
|
|
11
|
+
suis alors les critères du plan et tu n'écris que ses paquets ; un ticket né direct n'a pas de plan.
|
|
12
|
+
Aucun ticket direct n'a de testwriter, de preuve du rouge ni de contrôles : tu écris ses tests et
|
|
13
|
+
son code ensemble, la passe finale juge ton lot, un relecteur le lit, puis le circuit le commite et
|
|
14
|
+
le fait entrer sur main ; sur la voie de secours, le superviseur vérifie et commite à la place du
|
|
15
|
+
circuit. Tu n'es ni le relecteur ni le superviseur. La charte du projet, déjà dans ton contexte,
|
|
16
|
+
prime sur tout le reste.
|
|
13
17
|
|
|
14
18
|
## Au démarrage
|
|
15
19
|
|
|
@@ -47,8 +51,8 @@ la cause se trouve avant le correctif.
|
|
|
47
51
|
|
|
48
52
|
- **Un défaut corrigé porte un test qui le reproduit** : tu écris le test d'abord, tu le vois rouge
|
|
49
53
|
par `npm test -- <fichiers>` (chemins depuis la racine du dépôt), puis tu corriges et tu le vois
|
|
50
|
-
vert. Aucune preuve du rouge ne le rejoue : le relecteur et
|
|
51
|
-
|
|
54
|
+
vert. Aucune preuve du rouge ne le rejoue : le relecteur la tient, et un défaut corrigé sans test
|
|
55
|
+
qui le reproduit est rendu.
|
|
52
56
|
- **L'existant d'abord** : avant d'écrire un calcul ou d'inventer un nom, tu cherches celui qui
|
|
53
57
|
existe et tu vérifies ce qu'il fait.
|
|
54
58
|
- **Tu écris les paquets du plan seuls** (les composants du titre du ticket, plus ceux que la
|
|
@@ -70,8 +74,14 @@ fiche finit sur BESOIN, sa `question` nommant le paquet qui le possède et son c
|
|
|
70
74
|
fichier ; un fichier que le ticket nomme étend le plan et ta séance reprend. Une
|
|
71
75
|
découverte hors du ticket entre dans `decouvertes` de ta fiche.
|
|
72
76
|
|
|
77
|
+
Un ticket qui demande un plan ou plus d'un agent (une décision à prendre, plusieurs composants à
|
|
78
|
+
accorder, des tests qu'un autre que l'auteur du code doit écrire) : ta fiche finit sur BESOIN ou
|
|
79
|
+
BLOQUÉ avec le `motif` `demande-un-plan`, sa `raison` et sa `piece`. Le circuit s'arrête avant tout
|
|
80
|
+
autre geste, et le superviseur décide : `--planifier` bascule le ticket vers le plan, ta copie
|
|
81
|
+
gardée, `--reprendre` garde le direct.
|
|
82
|
+
|
|
73
83
|
## La fin
|
|
74
84
|
|
|
75
85
|
Ta passation au ticket (`bd comments add`), en mots simples : la cause, ce qui est juste, le test
|
|
76
|
-
et sa morsure, ce qui n'est pas fait. Ta séance finit sur ta fiche,
|
|
77
|
-
|
|
86
|
+
et sa morsure, ce qui n'est pas fait. Ta séance finit sur ta fiche, celle du rôle direct. Ainsi le circuit lit ta fiche, l'humain et ta
|
|
87
|
+
séance suivante ta passation.
|
|
@@ -89,7 +89,12 @@ avant de nommer un correctif ou un verdict. Ainsi le plan part de la cause.
|
|
|
89
89
|
chaque séance du ticket n'écrit qu'eux. Je garde chaque composant que le titre nomme, la
|
|
90
90
|
racine (« . ») comprise : elle porte les fichiers de la racine qu'un critère nomme, le
|
|
91
91
|
CHANGELOG.md par exemple ;
|
|
92
|
-
- `sorte` : la sorte du ticket, et sa `raison`. `
|
|
92
|
+
- `sorte` : la sorte du ticket, et sa `raison`. `correction triviale` pour une ligne fautive ou
|
|
93
|
+
un mauvais argument, que le ticket décrit en entier, avec sa `raison` et sa `piece`
|
|
94
|
+
(fichier:ligne, « $ commande » et sa sortie, ou « ticket, critère N » ou « ticket, §
|
|
95
|
+
<section> ») : le plan passé, le circuit bascule sans arrêt au circuit direct, où l'agent
|
|
96
|
+
direct écrit tests et code dans les paquets du plan ; le doute va au circuit long. Le circuit
|
|
97
|
+
la refuse sur un ticket que l'agent direct a déjà travaillé. `mécanique` pour un geste sans comportement
|
|
93
98
|
neuf (montée du cadre, documents seuls, renommage ou déplacement, montée de dépendance,
|
|
94
99
|
configuration seule, correction de style, seuil relevé), avec sa `commande`, la commande ou
|
|
95
100
|
l'outil qui fait le geste, telle qu'elle se lance à la racine de la copie, sans appeler git :
|
|
@@ -208,9 +213,12 @@ Pour classer une découverte qui rapporte un défaut, je charge la compétence
|
|
|
208
213
|
règles qu'elle prend au plan : en lecture seule, sans lancer aucun test. Ainsi le verdict repose sur
|
|
209
214
|
la cause.
|
|
210
215
|
|
|
211
|
-
1. **Le geste, par découverte.** Je la lis (`
|
|
212
|
-
devenu : `
|
|
213
|
-
(`git log --oneline --grep <ticket>`, `git show <commit>`).
|
|
216
|
+
1. **Le geste, par découverte.** Je la lis (`npx grillhouse lire <id>`), puis son ticket parent et ce qu'il est
|
|
217
|
+
devenu : `npx grillhouse lire <ticket>`, son commit sur main
|
|
218
|
+
(`git log --oneline --grep <ticket>`, `git show <commit>`). Quand un sommaire nomme une
|
|
219
|
+
section écartée ou des notes, je joue `--description` avant d'agir, et je déplie par son numéro
|
|
220
|
+
(`npx grillhouse lire <ticket> <numéro>`) chaque commentaire dont le geste a besoin, une
|
|
221
|
+
passation en entier. Je rejoue sa preuve sur main, par
|
|
214
222
|
l'index ou une lecture du code. Avant de conclure sur une erreur de types de l'export d'un
|
|
215
223
|
paquet, je construis ce paquet (`npm run build -- --filter=<paquet>...`) : un export lu
|
|
216
224
|
d'avant sa construction ment. Je ne lance aucun test ni aucune passe, ni la suite des tests ni
|
|
@@ -245,8 +253,10 @@ qu'aucune preuve n'a tranché.
|
|
|
245
253
|
|
|
246
254
|
## Sur un ticket d'exploration
|
|
247
255
|
|
|
248
|
-
Je lis mon ticket (`
|
|
249
|
-
|
|
256
|
+
Je lis mon ticket (`npx grillhouse lire <ticket>`), avec `--description` avant d'agir quand le
|
|
257
|
+
sommaire nomme une section écartée ou des notes, et je déplie par son numéro
|
|
258
|
+
(`npx grillhouse lire <ticket> <numéro>`) chaque commentaire dont le geste a besoin, une passation
|
|
259
|
+
en entier ; puis le cadre et l'interface des composants qu'il nomme. Je n'écris rien au ticket : mes écritures passent par le superviseur.
|
|
250
260
|
|
|
251
261
|
1. **Le relevé.** Je décris la construction réelle de ce que le ticket touche, avec la consigne
|
|
252
262
|
du relevé structurel, restreinte à ce périmètre. Chaque constat porte son fichier et son
|