@sylad/cadence 1.7.0 → 1.9.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.
Files changed (94) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +26 -8
  4. package/agents/code-reviewer.md +2 -2
  5. package/agents/doc-keeper.md +19 -0
  6. package/agents/qa-reviewer.md +2 -2
  7. package/agents/spec-writer.md +1 -1
  8. package/agents/ux-reviewer.md +1 -1
  9. package/bin/cadence.js +12 -1
  10. package/dist/audit.js +14 -4
  11. package/dist/check.js +6 -0
  12. package/dist/cli.js +295 -29
  13. package/dist/config.js +147 -5
  14. package/dist/corrections.js +78 -22
  15. package/dist/deliver.js +85 -21
  16. package/dist/docsync.js +19 -3
  17. package/dist/git.js +16 -3
  18. package/dist/lead.js +37 -12
  19. package/dist/migrate.js +166 -0
  20. package/dist/orchestrate/briefs.js +28 -6
  21. package/dist/orchestrate/command.js +303 -34
  22. package/dist/orchestrate/cycle.js +720 -273
  23. package/dist/orchestrate/guard.js +2 -2
  24. package/dist/orchestrate/integrate.js +85 -0
  25. package/dist/orchestrate/launch.js +37 -5
  26. package/dist/orchestrate/mutex.js +30 -0
  27. package/dist/orchestrate/pool.js +74 -36
  28. package/dist/orchestrate/registry.js +123 -14
  29. package/dist/orchestrate/result.js +1 -1
  30. package/dist/orchestrate/snapshot.js +25 -0
  31. package/dist/orchestrate/spec.js +89 -5
  32. package/dist/orchestrate/state.js +42 -6
  33. package/dist/orchestrate/table.js +61 -2
  34. package/dist/orchestrate/timeouts.js +40 -0
  35. package/dist/orchestrate/worktree.js +368 -0
  36. package/dist/perf.js +620 -0
  37. package/dist/plan.js +92 -6
  38. package/dist/ready-free.js +109 -0
  39. package/dist/ref/add.js +116 -0
  40. package/dist/ref/check.js +338 -0
  41. package/dist/ref/command.js +78 -0
  42. package/dist/ref/corpus-render.js +83 -0
  43. package/dist/ref/corpus.js +201 -0
  44. package/dist/ref/evaluate.js +241 -0
  45. package/dist/ref/figures.js +179 -0
  46. package/dist/ref/measure.js +330 -0
  47. package/dist/ref/pdf.js +104 -0
  48. package/dist/ref/png.js +125 -0
  49. package/dist/ref/store.js +40 -0
  50. package/dist/ref/tools.js +51 -0
  51. package/dist/resources.js +51 -0
  52. package/dist/session.js +5 -2
  53. package/dist/state.js +82 -0
  54. package/dist/testgate.js +15 -0
  55. package/docs/cadence-hud.md +12 -0
  56. package/docs/corrections.md +1 -1
  57. package/docs/cycle-vague-dark.svg +1 -1
  58. package/docs/cycle-vague-light.svg +1 -1
  59. package/docs/deliver.md +58 -3
  60. package/docs/fonctionnement-wave-dark.svg +1 -1
  61. package/docs/fonctionnement-wave-light.svg +1 -1
  62. package/docs/fonctionnement.md +5 -5
  63. package/docs/lead.md +37 -12
  64. package/docs/news.md +24 -1
  65. package/docs/orchestrate.md +230 -19
  66. package/docs/perf.md +89 -0
  67. package/docs/raf.md +89 -11
  68. package/docs/ref.md +316 -0
  69. package/docs/session.md +2 -2
  70. package/docs/skills.md +9 -2
  71. package/docs/spec.md +1 -1
  72. package/docs/stabilite.md +4 -4
  73. package/docs/whats-new.md +4 -0
  74. package/package.json +3 -1
  75. package/skills/deliver/SKILL.md +6 -1
  76. package/skills/lead/SKILL.md +31 -6
  77. package/skills/session-close/SKILL.md +1 -1
  78. package/skills/session-start/SKILL.md +2 -2
  79. package/templates/inventaire.json +96 -0
  80. package/templates/orchestrate/accept-back.md +1 -0
  81. package/templates/orchestrate/accept.md +1 -0
  82. package/templates/orchestrate/fiche.md +1 -0
  83. package/templates/orchestrate/fix-docs.md +18 -0
  84. package/templates/orchestrate/fix-minors.md +2 -1
  85. package/templates/orchestrate/fix.md +5 -2
  86. package/templates/orchestrate/implement.md +6 -3
  87. package/templates/orchestrate/maquette.md +2 -1
  88. package/templates/orchestrate/precheck.md +2 -1
  89. package/templates/orchestrate/review-recheck.md +2 -0
  90. package/templates/orchestrate/review-small.md +5 -1
  91. package/templates/orchestrate/review.md +2 -0
  92. package/templates/orchestrate/spec-back.md +2 -1
  93. package/templates/orchestrate/spec.md +4 -3
  94. package/templates/orchestrate/ux.md +3 -1
@@ -0,0 +1,96 @@
1
+ {
2
+ "version": 1,
3
+ "genre": "inventaire",
4
+ "document": { "slug": "exemple", "sha256": "0000000000000000000000000000000000000000000000000000000000000000" },
5
+ "pages": 5,
6
+ "roles": {
7
+ "titre": "titre d'un document, d'une page ou d'une section",
8
+ "titre-panneau": "titre d'un panneau ou d'une fenêtre d'interface",
9
+ "paragraphe": "phrase ou bloc de texte courant",
10
+ "legende": "texte qui désigne une figure, un tableau ou une échelle de couleurs (« Figure 1 — … »)",
11
+ "etiquette-figure": "mot ou valeur écrit dans une figure (flèche, axe, courbe, seuil)",
12
+ "exigence": "énoncé d'une exigence dans une liste d'exigences",
13
+ "ligne": "ligne d'un relevé ou d'un formulaire, sans autre fonction",
14
+ "message_erreur": "message qui signale une erreur ou un refus à l'utilisateur",
15
+ "unite": "unité accolée à une valeur (kt, hPa, m)",
16
+ "info_bulle": "texte court qui apparaît au survol ou au focus d'un élément",
17
+ "bouton": "contrôle sur lequel on agit (composant), ou son libellé (texte)",
18
+ "champ": "zone où l'on saisit une valeur (composant), ou son libellé (texte)",
19
+ "case_a_cocher": "contrôle à deux états, coché ou non, indépendant des autres",
20
+ "selecteur": "contrôle qui fait choisir une valeur dans une liste fermée (liste déroulante, boutons radio)",
21
+ "onglet": "entrée d'une barre qui bascule entre des vues de même niveau",
22
+ "menu": "liste d'actions ou de destinations qui s'ouvre depuis un contrôle",
23
+ "liste": "suite d'éléments de même nature affichés les uns sous les autres",
24
+ "panneau": "zone d'interface qui regroupe des contrôles (composant)",
25
+ "carte": "zone d'affichage cartographique ou graphique (composant)",
26
+ "icone": "pictogramme sans texte qui représente une action ou un objet",
27
+ "badge": "pastille ou marque qui qualifie un élément (statut, compteur)"
28
+ },
29
+ "elements": [
30
+ {
31
+ "type": "ecran", "id": "exemple#ecran-1", "confiance": "mesure",
32
+ "source": { "page": 1, "zone": { "x": 0, "y": 0, "l": 1700, "h": 2200 } },
33
+ "largeur_reference": 1440,
34
+ "zones": [{ "nom": "entete", "x": 0, "y": 0, "l": 1440, "h": 96, "pct": { "x": 0, "y": 0, "l": 100, "h": 8 } }]
35
+ },
36
+ {
37
+ "type": "composant", "id": "exemple#composant-1", "confiance": "mesure",
38
+ "source": { "page": 1, "zone": { "x": 120, "y": 600, "l": 240, "h": 64 } },
39
+ "role": "bouton", "position": { "x": 120, "y": 600 }, "taille": { "l": 240, "h": 64 }, "contenu": "Valider", "ecran": "exemple#ecran-1"
40
+ },
41
+ {
42
+ "type": "etat", "id": "exemple#etat-1", "confiance": "lu",
43
+ "source": { "page": 2, "zone": { "x": 120, "y": 600, "l": 240, "h": 64 } },
44
+ "citations": [{ "page": 2, "ligne": 14, "extrait": "le bouton est grisé tant que le formulaire est vide" }],
45
+ "nom": "vide", "cible": "exemple#composant-1"
46
+ },
47
+ {
48
+ "type": "texte", "id": "exemple#texte-1", "confiance": "lu",
49
+ "source": { "page": 1, "zone": { "x": 140, "y": 612, "l": 120, "h": 28 } },
50
+ "libelle": "Valider", "role": "bouton"
51
+ },
52
+ {
53
+ "type": "jeton", "id": "exemple#jeton-1", "confiance": "mesure",
54
+ "source": { "page": 1, "zone": { "x": 120, "y": 600, "l": 240, "h": 64 } },
55
+ "categorie": "couleur", "valeur": "#c81e28", "point": { "x": 130, "y": 610 },
56
+ "contraste": { "texte": "#ffffff", "fond": "#c81e28", "ratio": 5.9 }
57
+ },
58
+ {
59
+ "type": "table", "id": "exemple#table-1", "confiance": "lu",
60
+ "source": { "page": 3, "zone": { "x": 100, "y": 400, "l": 1500, "h": 300 } },
61
+ "colonnes": ["Code", "Sens", "Unité"],
62
+ "lignes": [["T", "température", "K"], ["P", "pression", "Pa"]]
63
+ },
64
+ {
65
+ "type": "gabarit", "id": "exemple#gabarit-1", "confiance": "lu",
66
+ "source": { "page": 4, "zone": { "x": 100, "y": 300, "l": 1500, "h": 500 } },
67
+ "nom": "message d'observation",
68
+ "champs": [
69
+ { "nom": "date", "obligatoire": true, "format": "AAAAMMJJ" },
70
+ { "nom": "vent", "obligatoire": false, "format": "entier", "min": 0, "max": 360 }
71
+ ]
72
+ },
73
+ {
74
+ "type": "schema", "id": "exemple#schema-1", "confiance": "lu",
75
+ "source": { "page": 5, "zone": { "x": 100, "y": 300, "l": 1500, "h": 900 } },
76
+ "noeuds": [{ "id": "capteur", "libelle": "Capteur" }, { "id": "serveur", "libelle": "Serveur" }],
77
+ "flux": [{ "de": "capteur", "vers": "serveur", "libelle": "envoie la mesure", "direction": "de_vers" }]
78
+ },
79
+ {
80
+ "type": "lien", "id": "exemple#lien-1", "confiance": "lu",
81
+ "source": { "page": 5, "zone": { "x": 100, "y": 300, "l": 1500, "h": 900 } },
82
+ "figure": "Figure 1 — chaîne de mesure", "passage": { "page": 5, "ligne": 3, "extrait": "comme le montre la figure ci-dessous" }, "constat": "confirme"
83
+ },
84
+ {
85
+ "type": "statut", "id": "exemple#statut-1", "confiance": "lu",
86
+ "source": { "page": 1, "zone": { "x": 1400, "y": 20, "l": 200, "h": 40 } },
87
+ "libelle": "Proposal", "couvre": ["exemple#ecran-1", "exemple#composant-1"]
88
+ },
89
+ {
90
+ "type": "silence", "id": "exemple#silence-1", "confiance": "incertain",
91
+ "source": { "page": 2 },
92
+ "cause": "le document ne montre aucun écran d'erreur",
93
+ "question": "Que voit l'utilisateur quand le serveur ne répond pas ?"
94
+ }
95
+ ]
96
+ }
@@ -16,3 +16,4 @@ Report: `commits`, `nonVerifie` (what you could not run or check), `choix`, `que
16
16
 
17
17
  You are one short session of an orchestrated wave: do not launch subagents (the Agent tool is disabled).
18
18
  Give your final report as the structured output, not as free text.
19
+ {{tmp}}
@@ -16,3 +16,4 @@ Report: `commits`, `nonVerifie` (what you could not run or check), `choix`, `que
16
16
 
17
17
  You are one short session of an orchestrated wave: do not launch subagents (the Agent tool is disabled).
18
18
  Give your final report as the structured output, not as free text.
19
+ {{tmp}}
@@ -12,3 +12,4 @@ Read the project's CLAUDE.md first, then the sheet, then the code and the tests
12
12
  Rank the findings blocking / major / minor, never on taste: a blocking or major finding sends the sheet back to the spec writer (one more pass only), a minor one becomes a note of the lot.
13
13
  You are read-only: do not modify, commit, push or run `raf review|ux|done`. Do not launch subagents. Leave `sousTaches` empty: a sheet has no bug to sub-task.
14
14
  Give your report as the structured output: counts of blocking / major / minor findings, each finding (severity, file, line, text), what you could not verify, and a one-line verdict.
15
+ {{tmp}}
@@ -0,0 +1,18 @@
1
+ Work in `{{chemin}}` on lot `{{lot}}` — "{{titre}}" — of its plan, as the librarian (doc-keeper agent).
2
+ The program computed that the commits of the lot touch code without touching the documentation that describes it (cadence.yaml docs.sync). Update the documentation, and nothing else: no code, no test.
3
+ {{repos}}
4
+ Commits of the lot so far:
5
+ {{commits}}
6
+
7
+ Documentation behind the lot:
8
+ {{constats}}
9
+
10
+ Read the diff of each commit above (`git show <sha>`), the project's CLAUDE.md, the README, the pages of `docs/`, the CHANGELOG and the news entries; update each document the change makes false or leaves out. A document that the change really leaves true is left alone: say why under "choix".
11
+ Rules: commit each document as soon as it is right, with explicit paths (never `git add -A` or `commit -a`), and a message that cites the lot (`docs({{lot}}): …`); run the project's documentation checks if it has any, and its full test suite and build if a test reads the documents, before reporting; do not push, deliver, run `raf done`, `raf ux` or `raf review`.
12
+ Never run `git checkout` or `git switch` to another commit or branch in this repository: the orchestrator watches it and a moved HEAD breaks the other sessions of the wave. To look at another sha, use a throwaway `git worktree add --detach <tmp> <sha>`, removed afterwards.
13
+ {{elsewhere}}
14
+ Do not stop to ask: an interpretation you settle yourself goes under "choix" with the alternative you did not take; "questions" stays empty. Making no commit is a valid outcome when every document is already true.
15
+ You are one short session of an orchestrated wave: do not launch subagents (the Agent tool is disabled).
16
+ Give your final report as the structured output (commits, tests, build, what you could not verify, choices).
17
+ {{reponse}}
18
+ {{tmp}}
@@ -25,4 +25,5 @@ You are one short session of an orchestrated wave: do not launch subagents (the
25
25
  Give your final report as the structured output (commits, tests, build, what you could not verify, choices).
26
26
  {{reponse}}
27
27
  {{captures}}
28
- Browser (Playwright): if a Playwright MCP server is available in this session (only in an orchestrated wave: a brief delegated by hand has none), the orchestrator launched it with its own output directory, in the orchestrator's run directory outside the repository: give screenshots, snapshots and traces a relative file name only (e.g. `page-home.png`), they land there. Never an absolute path, never the `--output-dir` option (the server's launch argument, which a session cannot set). If no such server is available, do not install or start one; if you use the Playwright CLI, write its outputs under the OS temp directory (or the temporary folder the project's CLAUDE.md names), never inside the repository, which must stay clean.
28
+ Browser (Playwright): if a Playwright MCP server is available in this session (only in an orchestrated wave: a brief delegated by hand has none), the orchestrator launched it with its own output directory, in the orchestrator's run directory outside the repository. {{shots}} If no such server is available, do not install or start one; if you use the Playwright CLI, write its outputs under the OS temp directory (or the temporary folder the project's CLAUDE.md names), never inside the repository, which must stay clean.
29
+ {{tmp}}
@@ -18,10 +18,12 @@ Self-check before handing back (the recurring findings of the reviews), covering
18
18
  - documentation: the README and the architecture documentation describe the behaviour, updated in the same commits as the behaviour (and the CHANGELOG);
19
19
  - tests: one test per rule of the fiche, named « Rn — … »; with no fiche, one test per business rule of the lot, named after it;
20
20
  - no dead code, and no test that cannot fail: a test whose assertion is always true, or that does not exercise the rule it names;
21
- - screens: for a modified screen, the capture due of each state, at 1440 and 390 px, with a relative file name; a lot with no modified screen owes none, and says so;
21
+ - screens: for a modified screen, the capture due of each state, at 1440 and 390 px, with a file name (where it goes is the Playwright paragraph's rule); a lot with no modified screen owes none, and says so;
22
22
  - no false comment: a comment, a docstring or a message never describes a behaviour the code no longer has or does not have.
23
23
  A point you cannot hold is written under "choix" or "nonVerifie" of your report, not left unsaid.
24
24
 
25
+ Auto-verification once the tests are green, before the review: when the full test suite and the build pass, re-read the complete diff of your fix commits (`git diff <HEAD before your first fix>..HEAD`, run in each repository where you committed a fix: the project and any neighbouring repository above) against the grid of the code-reviewer agent: code bug; architecture drift; docs/architecture.md (or the project's architecture documentation) up to date; edge cases; one test per changed behaviour. What you find in your own fix, fix it at once (a `fix({{lot}}): …` commit) and rerun the suite and the build; touch nothing else. Then write in "resume" a paragraph that starts with « auto-vérification »: what you re-read, what you found and fixed, what you could not hold. It is one reading of the diff, not a second review: no subagent, no new exploration, no re-reading of files the diff does not touch.
26
+
25
27
  If a finding is wrong, say so under "choix" with the reason. Ask (under "questions") only when a fix needs a decision that passes the rule below.
26
28
  A question is legitimate only if it names what it would change: the scope of the lot, the architecture, or a costly rollback (data, production, public API);
27
29
  otherwise it is a choice: decide, write the alternative you did not take, go on. Minor choices to settle yourself:
@@ -35,4 +37,5 @@ You are one short session of an orchestrated wave: do not launch subagents (the
35
37
  Give your final report as the structured output (commits, tests, build, what you could not verify, choices, questions).
36
38
  {{reponse}}
37
39
  {{captures}}
38
- Browser (Playwright): if a Playwright MCP server is available in this session (only in an orchestrated wave: a brief delegated by hand has none), the orchestrator launched it with its own output directory, in the orchestrator's run directory outside the repository: give screenshots, snapshots and traces a relative file name only (e.g. `page-home.png`), they land there. Never an absolute path, never the `--output-dir` option (the server's launch argument, which a session cannot set). If no such server is available, do not install or start one; if you use the Playwright CLI, write its outputs under the OS temp directory (or the temporary folder the project's CLAUDE.md names), never inside the repository, which must stay clean.
40
+ Browser (Playwright): if a Playwright MCP server is available in this session (only in an orchestrated wave: a brief delegated by hand has none), the orchestrator launched it with its own output directory, in the orchestrator's run directory outside the repository. {{shots}} If no such server is available, do not install or start one; if you use the Playwright CLI, write its outputs under the OS temp directory (or the temporary folder the project's CLAUDE.md names), never inside the repository, which must stay clean.
41
+ {{tmp}}
@@ -1,5 +1,5 @@
1
1
  Work in `{{chemin}}` on lot `{{lot}}` — "{{titre}}" — of its plan
2
- (`docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`; read the lot, its notes and sub-tasks, and the project's CLAUDE.md first).
2
+ (`.cadence/raf.yaml`, the legacy `docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`; read the lot, its notes and sub-tasks, and the project's CLAUDE.md first).
3
3
  Goal: {{objectif}}
4
4
  {{repos}}
5
5
  {{fiche}}
@@ -14,10 +14,12 @@ Self-check before handing back (the recurring findings of the reviews). Go throu
14
14
  - documentation: the README and the architecture documentation describe the behaviour, updated in the same commits as the behaviour (and the CHANGELOG);
15
15
  - tests: one test per rule of the fiche, named « Rn — … »; with no fiche, one test per business rule of the lot, named after it;
16
16
  - no dead code, and no test that cannot fail: a test whose assertion is always true, or that does not exercise the rule it names;
17
- - screens: for a modified screen, the capture due of each state, at 1440 and 390 px, with a relative file name; a lot with no modified screen owes none, and says so;
17
+ - screens: for a modified screen, the capture due of each state, at 1440 and 390 px, with a file name (where it goes is the Playwright paragraph's rule); a lot with no modified screen owes none, and says so;
18
18
  - no false comment: a comment, a docstring or a message never describes a behaviour the code no longer has or does not have.
19
19
  A point you cannot hold is written under "choix" or "nonVerifie" of your report, not left unsaid.
20
20
 
21
+ Auto-verification once the tests are green, before the review: when the full test suite and the build pass, re-read the complete diff of the lot, commit by commit (the commits `raf commits {{lot}}` lists, each with `git show <sha>`; never a `git diff` range, which would take in the commits of other lots) against the grid of the code-reviewer agent: code bug (wrong result, unhandled error, input trusted); architecture drift (a responsibility put in the wrong module, a duplicated block, a layer skipped); docs/architecture.md (or the project's architecture documentation) up to date; edge cases (empty, absent, twice, wrong order, refused); one test per changed behaviour. What you find, fix it at once (test first, a `fix({{lot}}): …` commit) and rerun the suite and the build. Then write in "resume" a paragraph that starts with « auto-vérification »: what you re-read, what you found and fixed, what you could not hold. It is one reading of the diff, not a second review: no subagent, no new exploration, no re-reading of files the diff does not touch.
22
+
21
23
  Decide minor interpretation questions yourself (the wording of a message, a name, a default, the
22
24
  reading of an ambiguous line of the lot) and list each one under "choix" in your report, with the
23
25
  alternative you did not take — the reviewer re-reads them. Stop and ask (under "questions") only on a real blocker.
@@ -39,4 +41,5 @@ Give your final report as the structured output, not as free text. If the plan i
39
41
  {{news}}
40
42
  {{commits}}
41
43
  {{reponse}}
42
- Browser (Playwright): if a Playwright MCP server is available in this session (only in an orchestrated wave: a brief delegated by hand has none), the orchestrator launched it with its own output directory, in the orchestrator's run directory outside the repository: give screenshots, snapshots and traces a relative file name only (e.g. `page-home.png`), they land there. Never an absolute path, never the `--output-dir` option (the server's launch argument, which a session cannot set). If no such server is available, do not install or start one; if you use the Playwright CLI, write its outputs under the OS temp directory (or the temporary folder the project's CLAUDE.md names), never inside the repository, which must stay clean.
44
+ Browser (Playwright): if a Playwright MCP server is available in this session (only in an orchestrated wave: a brief delegated by hand has none), the orchestrator launched it with its own output directory, in the orchestrator's run directory outside the repository. {{shots}} If no such server is available, do not install or start one; if you use the Playwright CLI, write its outputs under the OS temp directory (or the temporary folder the project's CLAUDE.md names), never inside the repository, which must stay clean.
45
+ {{tmp}}
@@ -11,4 +11,5 @@ Check the sample data of the mockup: recompute the weekday of every date shown (
11
11
  Ground every finding in a named rule (Nielsen heuristic, WCAG 2.2 AA criterion) or a measurement, or in a mismatch between the mockup and the sheet. Rank them blocking / major / minor: a blocking or major finding sends the mockup back to the spec writer, a minor one becomes a note of the lot.
12
12
  You are read-only: do not modify, commit, push or run `raf review|ux|done`; this review is NOT the `raf ux` verdict (the conformity pass after the code keeps that role). Do not launch subagents. Leave `sousTaches` empty: a mockup has no bug to sub-task.
13
13
  Give your report as the structured output: counts of blocking / major / minor findings, each finding (severity, file, line, text), what you could not verify, and a one-line verdict.
14
- Playwright (browser MCP): this session's Playwright server was launched by the orchestrator with its own output directory, which lies in the orchestrator's run directory, outside the repository. Every screenshot, snapshot and trace you take lands there, so give each one a relative file name only (e.g. `maquette-erreur-390-revue.png`), never an absolute path, never the `--output-dir` option, and never write browser outputs anywhere else; the repository must stay clean.
14
+ Playwright (browser MCP): this session's Playwright server was launched by the orchestrator with its own output directory, which lies in the orchestrator's run directory, outside the repository. {{shots}} Never write browser outputs anywhere else; the repository must stay clean.
15
+ {{tmp}}
@@ -2,10 +2,11 @@ Pre-check for lot `{{lot}}` — "{{titre}}" — of the repository `{{chemin}}`,
2
2
  Question: is the deliverable of this lot ALREADY in the repository (done by another lot, or by a correction)?
3
3
  Goal of the lot: {{objectif}}
4
4
  {{repos}}
5
- Read the lot, its notes and sub-tasks in the plan (`docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`),
5
+ Read the lot, its notes and sub-tasks in the plan (`.cadence/raf.yaml`, the legacy `docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`),
6
6
  then look for the deliverable in the code and tests (`git log`, `grep`, reading the files the lot names). Do not
7
7
  implement anything and do not run the full test suite: this is a quick look.
8
8
  Answer `oui` only when every part of the lot is present, with a proof for each (file:line or commit sha); `partiel` when
9
9
  some parts are present (say which); `non` otherwise. When in doubt, answer `non`: an implementation session follows.
10
10
  You are read-only: do not modify, commit, push or run `raf start|done|note|review|ux`. Do not launch subagents.
11
11
  Give your report as the structured output: `dejaPresent` (oui | partiel | non), `preuves` (the proofs), `resume` (one sentence).
12
+ {{tmp}}
@@ -4,6 +4,7 @@ treated them. Check that the minor findings fixed are fixed, that the fixes brok
4
4
  rest of the lot is still sound: read the diff yourself from the commits that cite the lot
5
5
  (`raf commits {{lot}}`, or `git log`), run the checks, report real defects only. A new minor finding
6
6
  is reported, not a reason to ask for another pass. This is a code review only.
7
+ Goal of the lot (it takes precedence over the title in the plan): {{objectif}}
7
8
  {{repos}}
8
9
  {{checks}}
9
10
  {{choix}}
@@ -12,3 +13,4 @@ You are read-only: do not modify, commit, push or run `raf review|ux|done`. Do n
12
13
  Give your report as the structured output: counts of blocking / major / minor findings, each finding
13
14
  (severity, file, line, text), proposed sub-tasks, what you could not verify, and the one-line verdict
14
15
  for `raf review {{lot}}`.
16
+ {{tmp}}
@@ -2,7 +2,9 @@ Review lot `{{lot}}` — "{{titre}}" — of the repository `{{chemin}}`, followi
2
2
  This lot is small: one single pass covers the code review AND the usability review.
3
3
  You are given the repository path and the lot id only: read the diff yourself from the commits that
4
4
  cite the lot (`raf commits {{lot}}`, or `git log`), run the checks, report real defects only.
5
+ Goal of the lot (it takes precedence over the title in the plan): {{objectif}}
5
6
  {{repos}}
7
+ {{integration}}
6
8
  {{fiche}}
7
9
  {{ux}}
8
10
  {{checks}}
@@ -15,4 +17,6 @@ Give your report as the structured output: counts of blocking / major / minor fi
15
17
  findings included, each tied to a named rule — Nielsen heuristic or WCAG 2.2 AA criterion — or a
16
18
  measurement), each finding (severity, file, line, text), proposed sub-tasks, what you could not
17
19
  verify, and the one-line verdict for `raf review {{lot}}`.
18
- Browser (Playwright): if a Playwright MCP server is available in this session (only in an orchestrated wave: a brief delegated by hand has none), the orchestrator launched it with its own output directory, in the orchestrator's run directory outside the repository: give screenshots, snapshots and traces a relative file name only (e.g. `page-home.png`), they land there. Never an absolute path, never the `--output-dir` option (the server's launch argument, which a session cannot set). If no such server is available, do not install or start one; if you use the Playwright CLI, write its outputs under the OS temp directory (or the temporary folder the project's CLAUDE.md names), never inside the repository, which must stay clean.
20
+ Browser (Playwright): if a Playwright MCP server is available in this session (only in an orchestrated wave: a brief delegated by hand has none), the orchestrator launched it with its own output directory, in the orchestrator's run directory outside the repository. {{shots}} If no such server is available, do not install or start one; if you use the Playwright CLI, write its outputs under the OS temp directory (or the temporary folder the project's CLAUDE.md names), never inside the repository, which must stay clean.
21
+ In an orchestrated wave a capture reaches the run directory, outside the repository, only through the absolute path above: never at the repository root (romans-1440px.png, expenses-390px.png), never through a script or a shell command that writes into the repository.
22
+ {{tmp}}
@@ -1,6 +1,7 @@
1
1
  Review lot `{{lot}}` — "{{titre}}" — of the repository `{{chemin}}`, following your agent instructions.
2
2
  You are given the repository path and the lot id only: read the diff yourself from the commits that
3
3
  cite the lot (`raf commits {{lot}}`, or `git log`), run the checks, report real defects only.
4
+ Goal of the lot (it takes precedence over the title in the plan): {{objectif}}
4
5
  {{repos}}
5
6
  {{fiche}}
6
7
  {{checks}}
@@ -12,3 +13,4 @@ You are read-only: do not modify, commit, push or run `raf review|ux|done`. Do n
12
13
  Give your report as the structured output: counts of blocking / major / minor findings, each finding
13
14
  (severity, file, line, text), proposed sub-tasks, what you could not verify, and the one-line verdict
14
15
  for `raf review {{lot}}`.
16
+ {{tmp}}
@@ -1,7 +1,7 @@
1
1
  Spec of the behaviour of lot `{{lot}}` — "{{titre}}" — in `{{chemin}}`, as the spec writer: you write a machine-readable sheet (use cases, rules, contracts, data) BEFORE any code, so that the later steps (review of the sheet, acceptance tests, implementation) share one reference. There is no screen part: only the sheet.
2
2
  Goal of the lot: {{objectif}}
3
3
  {{repos}}
4
- Read the lot, its notes and sub-tasks in the plan (`docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`), the project's CLAUDE.md, and the code and tests of the modules the lot touches (the services, controllers or jobs, their tests, the API contracts and error messages already present): the rules already coded are sources, and a new rule must not contradict them.
4
+ Read the lot, its notes and sub-tasks in the plan (`.cadence/raf.yaml`, the legacy `docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`), the project's CLAUDE.md, and the code and tests of the modules the lot touches (the services, controllers or jobs, their tests, the API contracts and error messages already present): the rules already coded are sources, and a new rule must not contradict them.
5
5
  {{spec}}
6
6
 
7
7
  What you produce, in `<dir>/<sujet>/`:
@@ -24,3 +24,4 @@ Report: `fiche` (path of the sheet relative to the repository, e.g. `docs/specs/
24
24
 
25
25
  You are one short session of an orchestrated wave: do not launch subagents (the Agent tool is disabled).
26
26
  Give your final report as the structured output, not as free text.
27
+ {{tmp}}
@@ -1,12 +1,12 @@
1
1
  Spec of the screen of lot `{{lot}}` — "{{titre}}" — in `{{chemin}}`, as the spec writer: you write a static mockup and a machine-readable sheet BEFORE any code, so that the later steps (UX review of the mockup, acceptance tests, implementation) share one reference.
2
2
  Goal of the lot: {{objectif}}
3
3
  {{repos}}
4
- Read the lot, its notes and sub-tasks in the plan (`docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`), the project's CLAUDE.md, its charter (existing CSS and variables, neighbouring components, `docs/qa/expectations.md`) and the routes and API contracts already present.
4
+ Read the lot, its notes and sub-tasks in the plan (`.cadence/raf.yaml`, the legacy `docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`), the project's CLAUDE.md, its charter (existing CSS and variables, neighbouring components, `docs/qa/expectations.md`) and the routes and API contracts already present.
5
5
  {{spec}}
6
6
 
7
7
  What you produce, in `<dir>/<écran>/`:
8
8
  1. `maquette.html`: static HTML + CSS, to the project's charter (reuse its variables, fonts and components; invent no style when an equivalent exists), no business JavaScript. Every state is an addressable section: `<section id="etat-vide">`, `etat-chargement`, `etat-erreur`, and `etat-charge` when the screen has data. Every field of the sheet carries `data-testid="<id of the field>"`.
9
- 2. The captures described above, one per state and per width, copied from the Playwright output directory of this wave into the folder (a Playwright capture lands outside the repository: give it a relative file name only, then copy it).
9
+ 2. The captures described above, one per state and per width, copied from the Playwright output directory of this wave into the folder (give a capture the absolute path of that directory, as the Playwright paragraph says, then copy it).
10
10
  3. `fiche.yaml`, in the format of the template below. Check it with `cadence spec check <fiche>` until it is valid, and derive the QA expectations with `cadence spec qa <fiche>` only if the lot asks for it.
11
11
 
12
12
  Sheet rules:
@@ -25,5 +25,6 @@ Report: `fiche` (path of the sheet relative to the repository, e.g. `docs/specs/
25
25
 
26
26
  You are one short session of an orchestrated wave: do not launch subagents (the Agent tool is disabled).
27
27
  Give your final report as the structured output, not as free text.
28
- Browser (Playwright): the orchestrator launched the Playwright MCP server with its own output directory, in the orchestrator's run directory outside the repository: give screenshots, snapshots and traces a relative file name only (e.g. `maquette-vide-1440.png`), they land there. Never an absolute path, never the `--output-dir` option (the server's launch argument, which a session cannot set).
28
+ Browser (Playwright): the orchestrator launched the Playwright MCP server with its own output directory, in the orchestrator's run directory outside the repository. {{shots}}
29
29
  {{captures}}
30
+ {{tmp}}
@@ -1,6 +1,7 @@
1
1
  Review the usability and accessibility of lot `{{lot}}` — "{{titre}}" — of the repository `{{chemin}}`,
2
2
  following your agent instructions. Read the diff yourself from the commits that cite the lot
3
3
  (`raf commits {{lot}}`, or `git log`).
4
+ Goal of the lot (it takes precedence over the title in the plan): {{objectif}}
4
5
  {{ux}}
5
6
  {{fiche}}
6
7
  A proposed sub-task describes an observable bug (a wrong output, a crash, a measured regression); any other minor finding stays a note of this lot, not a sub-task.
@@ -10,4 +11,5 @@ describe a mockup before proposing any redesign, never code it.
10
11
  Give your report as the structured output: counts of blocking / major / minor findings, each finding
11
12
  (severity, file, line, text), proposed sub-tasks, what you could not verify, and the one-line verdict
12
13
  for `raf ux {{lot}}`.
13
- Playwright (browser MCP): this session's Playwright server was launched by the orchestrator with its own output directory, which lies in the orchestrator's run directory, outside the repository. Every screenshot, snapshot and trace you take lands there, so give each one a relative file name only (e.g. `page-home.png`, `home-390px.png`): the lead will look at them in that directory. Never an absolute path (such as one under `/tmp`), never the `--output-dir` option (it is the server's launch argument, which a session cannot set), and never write browser outputs anywhere else; the repository must stay clean.
14
+ Playwright (browser MCP): this session's Playwright server was launched by the orchestrator with its own output directory, which lies in the orchestrator's run directory, outside the repository. {{shots}} Never write browser outputs anywhere else; the repository must stay clean.
15
+ {{tmp}}