@sylad/cadence 1.8.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 (93) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +23 -7
  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 +9 -1
  10. package/dist/audit.js +14 -4
  11. package/dist/check.js +6 -0
  12. package/dist/cli.js +235 -30
  13. package/dist/config.js +101 -5
  14. package/dist/corrections.js +23 -2
  15. package/dist/deliver.js +78 -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 +80 -19
  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 +60 -7
  54. package/dist/testgate.js +15 -0
  55. package/docs/cadence-hud.md +12 -0
  56. package/docs/cycle-vague-dark.svg +1 -1
  57. package/docs/cycle-vague-light.svg +1 -1
  58. package/docs/deliver.md +58 -3
  59. package/docs/fonctionnement-wave-dark.svg +1 -1
  60. package/docs/fonctionnement-wave-light.svg +1 -1
  61. package/docs/fonctionnement.md +5 -5
  62. package/docs/lead.md +35 -12
  63. package/docs/news.md +24 -1
  64. package/docs/orchestrate.md +230 -19
  65. package/docs/perf.md +13 -8
  66. package/docs/raf.md +89 -11
  67. package/docs/ref.md +316 -0
  68. package/docs/session.md +2 -2
  69. package/docs/skills.md +9 -2
  70. package/docs/spec.md +1 -1
  71. package/docs/stabilite.md +4 -4
  72. package/docs/whats-new.md +2 -0
  73. package/package.json +2 -1
  74. package/skills/deliver/SKILL.md +6 -1
  75. package/skills/lead/SKILL.md +24 -6
  76. package/skills/session-close/SKILL.md +1 -1
  77. package/skills/session-start/SKILL.md +2 -2
  78. package/templates/inventaire.json +96 -0
  79. package/templates/orchestrate/accept-back.md +1 -0
  80. package/templates/orchestrate/accept.md +1 -0
  81. package/templates/orchestrate/fiche.md +1 -0
  82. package/templates/orchestrate/fix-docs.md +18 -0
  83. package/templates/orchestrate/fix-minors.md +2 -1
  84. package/templates/orchestrate/fix.md +5 -2
  85. package/templates/orchestrate/implement.md +6 -3
  86. package/templates/orchestrate/maquette.md +2 -1
  87. package/templates/orchestrate/precheck.md +2 -1
  88. package/templates/orchestrate/review-recheck.md +2 -0
  89. package/templates/orchestrate/review-small.md +5 -1
  90. package/templates/orchestrate/review.md +2 -0
  91. package/templates/orchestrate/spec-back.md +2 -1
  92. package/templates/orchestrate/spec.md +4 -3
  93. package/templates/orchestrate/ux.md +3 -1
package/docs/session.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # session
4
4
 
5
5
  ```sh
6
- cadence session start # notes from the last close, lots in progress (silent ones flagged),
6
+ cadence session start # notes from the last close, lots in progress (commit count, `0 commit` included, and last activity; silent ones flagged),
7
7
  # work done since yesterday by lot, drift, repo state, 3 proposals
8
8
  cadence session start --since "3 days ago" --idle 2
9
9
  cadence session close # commits by lot since the last `session start`,
@@ -35,7 +35,7 @@ ouverture`, then the lines as written, blank ones dropped), so `session-close` c
35
35
  them without running `session start` again.
36
36
 
37
37
  `--all` runs the same command inside each project found under the current folder —
38
- `docs/plan/raf.yaml`, or a `cadence.yaml` with `plan:` — and never enters a project
38
+ `.cadence/raf.yaml`, `docs/plan/raf.yaml`, or a `cadence.yaml` with `plan:` — and never enters a project
39
39
  to look for another. `--since` and `--idle` go to every project; an error in one
40
40
  project is printed in its section and the others still run. It replaces the shell
41
41
  loop over the sub-folders. A project that is not the root of its own git repository gets a `✗` line
package/docs/skills.md CHANGED
@@ -40,7 +40,7 @@ repository with `cadence skills install` (to `.claude/skills/cadence-*` and
40
40
  one project at a time; a delivery that changes what a page shows or what it is
41
41
  served is then checked in the running app by the `qa-reviewer` agent, whose
42
42
  blocking findings come back to you. As many
43
- subagents as the session cap at most (2 by default, `CADENCE_MAX_SESSIONS`), never two in the same repository. The whole flow is drawn in
43
+ subagents as the session cap at most (2 by default, `CADENCE_MAX_SESSIONS`), the ones it starts by hand declared with `cadence lead hold`, never two in the same repository. The whole flow is drawn in
44
44
  [docs/lead.md](lead.md); how a lot, a wave, the lead and the service of cadence itself fit together, in four figures, is in
45
45
  [docs/fonctionnement.md](fonctionnement.md).
46
46
  - **ux-reviewer** (agent): captures at 1440 and 390 px, findings grounded in a
@@ -48,7 +48,7 @@ repository with `cadence skills install` (to `.claude/skills/cadence-*` and
48
48
  `raf add --parent` sub-tasks, and a one-line verdict for `raf ux`. It never
49
49
  edits code. Read-only for real: its `tools:` list is `Read, Grep, Glob, Bash` and the
50
50
  Playwright tools (`mcp__playwright`, and `mcp__plugin_playwright_playwright` when the
51
- browser comes from the Playwright plugin) — no `Edit`, no `Write`. Outside a wave it gives its captures a relative file name only, which the Playwright MCP writes under `.playwright-mcp/` (the same rule as the wave's briefs); `qa-reviewer` follows it too.
51
+ browser comes from the Playwright plugin) — no `Edit`, no `Write`. In a wave it gives its captures the absolute path of the capture directory its brief names (a bare name would land in the repository); outside a wave, a path under `.playwright-mcp/` (e.g. `.playwright-mcp/page-home.png`; the Playwright MCP resolves a bare file name against the repository, where it would land at the root); `qa-reviewer` follows it too.
52
52
  - **code-reviewer** (agent): any stack; given a repository and a lot id, it reads
53
53
  the diff itself from the commits that cite the lot — not the author's summary —
54
54
  and the project's CLAUDE.md, when there is one, for its conventions; findings grounded in a
@@ -58,6 +58,13 @@ repository with `cadence skills install` (to `.claude/skills/cadence-*` and
58
58
  verdict for `raf review`. It takes the lot's commits from `raf commits`, never
59
59
  runs a build whose output is used live, and never edits code. A README or usage
60
60
  documentation that does not follow the lot's change is a *major* finding.
61
+ - **doc-keeper** (agent, L306): any stack; given a repository and a lot id, it reads the diff of the lot and the
62
+ project's map of documents (`docs.sync` of `cadence.yaml`, README, `docs/`, CHANGELOG, news entries), says which
63
+ documents must change and where, then updates them in a writing session (explicit paths, `docs(<lot>): …`) or
64
+ only lists them in a read-only one. `cadence orchestrate` calls it before the review when `docs.sync` reports a
65
+ document behind the lot; the lead calls it by hand. A document outside the repository only when the project's
66
+ `cadence.yaml` names it (`docs.articles`): the agent then proposes a lot for that repository's plan and never writes it
67
+ ([news](news.md#the-librarian-doc-keeper)).
61
68
  - **qa-reviewer** (agent): any web app (read-only like `ux-reviewer`: same tool list, no `Edit`, no `Write`); given a repository and a base URL (and
62
69
  optionally a lot id, to walk only the pages it touched — those that call the
63
70
  changed endpoints, those of the screens it changed, the pages that consume the services the lot changed,
package/docs/spec.md CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  `cadence spec check` prints the same summary line for each kind (`N cas, N règles (N hypothèses), N contrats, N données` for a back-end sheet) and keeps its exit codes: 0 valid, 1 violations, 2 usage.
28
28
 
29
- `cadence spec reseal <lot> <test> --reason texte` is the lead's way to correct one sealed acceptance test of the lot in progress that contradicts its sheet (unchanged, or amended by commits of the lot, L217; of a delivered lot, also by commits of another delivered lot, L229) (of a delivered lot: add `--porteur <lot in progress>`), see [The accept step](orchestrate.md#the-accept-step-red-acceptance-tests-and-their-lock).
29
+ `cadence spec reseal <lot> <test> --reason texte` is the lead's way to correct one sealed acceptance test of the lot in progress that contradicts its sheet (unchanged, or amended by commits of the lot, L217; of a delivered lot, also by commits of another delivered lot, L229) (of a delivered lot: add `--porteur <lot in progress>`); refused while a wave of the repository is running, or a wave that is not `done` keeps open (question waiting, suspended, queued) any lot of this repository still `doing` in its plan, the resealed lot or another (L238: one error, also when a live wave holds the lock, names each wave (live ones to wait for), its launch folder and, for each stopped wave, the single `cd <folder> && cadence orchestrate --resume <wave> --drop <project>:<lot> --drop …` that closes all its open lots of the repository, the queued ones that are not `doing` in the plan included (L239); a lot `done` or absent in the plan never refuses), see [The accept step](orchestrate.md#the-accept-step-red-acceptance-tests-and-their-lock).
30
30
 
31
31
  `cadence spec qa <fiche.yaml>` derives from a valid sheet the section of `docs/qa/expectations.md` for its screen and prints it on the standard output
32
32
  (it never writes the file: you paste the section, and the lead commits it like the rest of the plan files). A sheet with violations prints them on the
package/docs/stabilite.md CHANGED
@@ -8,17 +8,17 @@ From 1.0.0 cadence follows [semantic versioning](https://semver.org): what is li
8
8
  **Guaranteed**
9
9
 
10
10
  - **Commands and options** of `raf` and `cadence` (`cadence raf …` is `raf …`): `init`, `add`, `start`, `done`, `drop`,
11
- `note`, `did`, `public`, `screen`, `spec`, `ux`, `review`, `commits`, `show`, `list`, `now`, `ignore`, `check`, `gantt`, `hook`;
11
+ `note`, `did`, `public`, `screen`, `spec`, `visible`, `ux`, `review`, `commits`, `show`, `list`, `now`, `ignore`, `check`, `gantt`, `hook`;
12
12
  `cadence news`, `session` (`start`, `close`, `next`, `context`), `lead tour`, `corrections`, `deliver`, `verify`, `orchestrate`,
13
13
  `skills`, `spec` (`cadence spec <lot> on|off` is `raf spec`; `check`, `qa`: exit **0** when the sheet is valid and the section is printed, **1** with violations, **2** on a missing or unreadable file or a wrong usage);
14
14
  their options and exit codes as the pages [raf](raf.md), [orchestrate](orchestrate.md), [deliver](deliver.md), [spec](spec.md), [news](news.md), [session](session.md), [lead](lead.md), [corrections](corrections.md) and [skills](skills.md) document them. A new command or option is a minor change.
15
15
  - **The keys of `cadence.yaml`**: `plan`, `news`, `hook`, `session`, `deliver`, `orchestrate`, `docs`, `qa`, `priority`, `depth`, `lead` (`lead.ux`)
16
- and the keys each of them takes. A key is not renamed nor removed, nor does its meaning change; a new key is a minor change.
17
- - **The plan file** (`docs/plan/raf.yaml`): `project`, `prefix`, `since`, `ignore`, `lots` (with their
16
+ and the keys each of them takes (`docs`: `sync`, `since`, `articles`; `docs.articles` names both the article refreshed after a delivery and the outside documents the `doc-keeper` agent proposes lots for). A key is not renamed nor removed, nor does its meaning change; a new key is a minor change.
17
+ - **The plan file** (`.cadence/raf.yaml`, or the legacy `docs/plan/raf.yaml`): `project`, `prefix`, `since`, `ignore`, `lots` (with their
18
18
  fields, `tasks`, `notes`, `repos`) and `acknowledged`, and the plan formats `plan:` in `cadence.yaml` can read.
19
19
  The `version` key is kept in the file but ignored (`src/plan.ts` does not read it): it is not a schema version.
20
20
  - **The names of the skills** (`session-start`, `session-close`, `deliver`, `lead`) **and of the agents**
21
- (`ux-reviewer`, `code-reviewer`, `qa-reviewer`).
21
+ (`ux-reviewer`, `code-reviewer`, `qa-reviewer`, `doc-keeper`).
22
22
 
23
23
  **Not guaranteed** (may change in any release)
24
24
 
package/docs/whats-new.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  The long form of the README's « What's new » (the README keeps two lines per version). The full history, with the date of each version, is in [CHANGELOG.md](../CHANGELOG.md).
6
6
 
7
+ **1.9.0**: the default plan is `.cadence/raf.yaml`, a hidden folder git versions and `docs/` never publishes (L246), and `raf migrate [--dry-run]` moves a legacy plan and the readers of the old path (L284, L305); `raf title`, `raf visible`, `uses:` resources shown by `lead tour` and the lot `goal:` (L244, L273, L251–L253, L258). `cadence ref add|measure|check|corpus|eval` registers reference documents outside the repository, measures a rendered zone, validates the inventory schema and scores a reading against a known truth (L261–L264). In `cadence orchestrate`: the `doc-keeper` agent and `docs.articles` (L306, L308), the mechanical `orchestrate.testGate` before the review (L287), `precheck: local` on every lot with no commit (L296), a write-step time limit proportioned to the lot (L298), sessions that no longer hold their slot after their report (L285), the real weekly-limit message recognised (L286), and an experimental worktree mode with `--resume --integrate|--replay` and `--remove-worktree` (L279, L299–L304). `cadence lead hold|release` counts the lead's hand-started sessions, an expired one is flagged by `lead tour`, `--status` and the `cadence-hud` band (0.5.0; L255, L276, L278). `cadence deliver --sha` is accepted while a wave runs (L277), `CADENCE_DEPLOYED_FILE` names the deployed sha (L277, L281) and `deliveries-failed.log` keeps the class and last lines of a red delivery, secrets masked (L282, L289, L294). `cadence perf` breaks red deliveries down and counts the `review-small` UX (L282, L283). Details: [CHANGELOG.md](../CHANGELOG.md).
8
+
7
9
  **1.8.0**: `cadence perf [folder] [--since date] [--json]` is the permanent dashboard of the workflow, without a model: the last 7 days against the 7 before, read in `.cadence/runs`, with a `⚠` on a trend or a bottleneck (L225); `perf.prices` prices the lots in euros (L226); `cadence deliver` writes `deliveries-failed.log` and `cadence lead tour` opens with a perf header (L227). The measure of the back-end spec step on 10 lots is in `docs/mesures` (L190). The release was blocked by a test that required an entry under `[Unreleased]` (L235). Details: [docs/perf.md](perf.md).
8
10
 
9
11
  **1.7.0**: `cadence orchestrate` no longer replays the `accept` step of a lot whose acceptation is green and sealed, e.g. after a `cadence spec reseal`, and the `accept` brief and the `acceptance-writer` agent may no longer rewrite a green oracle (L233); `cadence orchestrate --resume … --dry-run` is refused before anything is written instead of resuming the wave for real (L228); `cadence spec reseal <delivered lot> … --porteur` accepts a sheet amended by commits of another delivered lot, and its refusal names the commit and the way out (L229); the README is a short home page (about 5 kB instead of 208 kB in the package), the rest moved unchanged to `docs/` pages checked by `scripts/check-links.mjs`, and a commit that touches only the version fields, the CHANGELOG, « What's new » and `docs/whats-new.md` is a version commit for `raf check` and `raf done` (L232).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylad/cadence",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "A small, repo-native working method: a versioned plan linked to your commits, a changelog with screenshots, session rituals and deliveries proven by their effect.",
5
5
  "license": "MIT",
6
6
  "author": "Sylvain Ladoire",
@@ -22,6 +22,7 @@
22
22
  "docs/deliver.md",
23
23
  "docs/spec.md",
24
24
  "docs/lead.md",
25
+ "docs/ref.md",
25
26
  "docs/stabilite.md",
26
27
  "docs/news.md",
27
28
  "docs/session.md",
@@ -27,6 +27,11 @@ deliver:
27
27
  script: ./scripts/ship.sh "$CADENCE_SHORT"
28
28
  ```
29
29
 
30
+ A script that deploys a commit other than `$CADENCE_SHA` (it committed a Nouveautés timestamp itself)
31
+ writes that sha into the file named by `$CADENCE_DEPLOYED_FILE`: cadence logs it as delivered and never guesses
32
+ (a content that is not a hexadecimal commit sha — `HEAD` or a branch name included — fails the delivery; empty during a wave, the log keeps `$CADENCE_SHA` and a warning
33
+ says the head moved).
34
+
30
35
  Its arguments go after `--`: `cadence deliver -- api frontend` (`--sha <rev>` to deliver a pushed
31
36
  commit other than HEAD). Ask the human (or the project's own
32
37
  delivery skill) which arguments this delivery needs; never guess them.
@@ -36,7 +41,7 @@ delivery skill) which arguments this delivery needs; never guess them.
36
41
  Every `cadence` / `raf` command works on the git repository of the current directory. When the
37
42
  session runs from a parent folder that holds several projects (not itself a repository), run each
38
43
  command inside the project concerned: `cd <project> && cadence …`. The projects are the sub-folders
39
- that contain `docs/plan/raf.yaml`, or a `cadence.yaml` with a `plan:` key.
44
+ that contain `.cadence/raf.yaml` or `docs/plan/raf.yaml`, or a `cadence.yaml` with a `plan:` key.
40
45
 
41
46
  Deliver one project at a time: the one the human names, or ask.
42
47
 
@@ -7,7 +7,7 @@ description: Lead several cadence projects from a parent folder without loading
7
7
 
8
8
  The lead session stays small: it reads summaries, decides with the human, delegates, checks and
9
9
  delivers. Project files are changed by subagents, each with its own context; the facts of the tour come from `cadence lead tour`, a program. The projects
10
- are the sub-folders of the current directory that contain `docs/plan/raf.yaml`, or a `cadence.yaml`
10
+ are the sub-folders of the current directory that contain `.cadence/raf.yaml` or `docs/plan/raf.yaml`, or a `cadence.yaml`
11
11
  with a `plan:` key. A project whose `cadence.yaml` maps the fields of a plan kept by its own tool is
12
12
  **read-only** for `raf`: it takes part in the tour, and its plan is changed with the project's own
13
13
  commands (its CLAUDE.md names them), never with `raf start|done|note|ux|review`.
@@ -21,7 +21,16 @@ commands (its CLAUDE.md names them), never with `raf start|done|note|ux|review`.
21
21
  subagent, check `cadence orchestrate --status`, and while a wave runs, start none beyond the free slots. Read the cap and the
22
22
  free slots, do not compute them: `cadence orchestrate --status` and `cadence lead tour` print
23
23
  `créneaux libres : N sur M` (M is the configured cap; the registry subtracts, for each live wave, min(cap,
24
- repositories it still holds) from the M slots; no line from `lead tour` means no live wave, so all M are free).
24
+ repositories it still holds) and one slot per lead session (below) from the M slots; no line from `lead tour` means no live wave and no lead session, so all M are free).
25
+ **A session you start by hand counts too** (a fix subagent, a review, a QA pass launched outside a wave): the registry does not
26
+ see it, so declare it. Right before starting it, `cadence lead hold <label> [--ttl minutes]` (60 minutes by default,
27
+ the label names the session: `correctif-L12`); as soon as it comes back, `cadence lead release <label>`. While it is held, both
28
+ commands print `sessions du lead : N (labels)` and subtract it from `créneaux libres`; the `--ttl` is the maximum duration you
29
+ declare for the session (size it to the slot you have, not to the optimistic case). When it runs out the hold stops counting, but
30
+ nothing stops the session: `lead tour` and `orchestrate --status` print `⚠ session du lead échue : <label> (…)` until you
31
+ release it, and the band shows the same ⚠ row. **At each ⚠, decide at once**: either it is still worth the slot, so renew it
32
+ with `cadence lead hold <label> --ttl <minutes>` and say why in one sentence, or stop it (`TaskStop` or the agent's end) and
33
+ `cadence lead release <label>`. A fix that ran 5 h on a 3 h slot (23-10) is the case this catches. Holding does not block anything and never raises the cap.
25
34
  Never raise `--max-sessions` or `CADENCE_MAX_SESSIONS` yourself to speed a wave up: raising the cap is a decision of
26
35
  the human (a trial at 3 was decided on 2026-10-12); if the slots are the bottleneck, say so and let them decide.
27
36
  - **Never two subagents in the same repository at the same time**, and the lead does not commit in a
@@ -34,8 +43,8 @@ commands (its CLAUDE.md names them), never with `raf start|done|note|ux|review`.
34
43
  ## 1. Tour of the projects
35
44
 
36
45
  Run `cadence lead tour` from the parent folder (one command, no subagent, no model: it reads the same
37
- facts as `cadence session start` for every project). It prints one line per project — lots in progress
38
- (`silencieux Nj` when idle for more than three days), drift, notes from the last close, the next ready lot,
46
+ facts as `cadence session start` for every project). It prints one line per project — lots in progress with their commit count
47
+ (`0 commit` included; `silencieux Nj` when idle for more than three days), drift, notes from the last close, the next ready lot,
39
48
  repository state — and exits 0 even when a project is in error (its line says so). `--json` gives the same
40
49
  content. Read the lines yourself; open a project's own `cadence session start` only for the one you need to
41
50
  look at closer.
@@ -59,7 +68,7 @@ one fresh short session per step; the wave runs from a frozen copy of the cadenc
59
68
  `cd <project> && raf start <lot>`, then starts from the brief written by `cadence orchestrate --dry-run
60
69
  <project>:<lot>`: it is already rendered (`{{chemin}}`, `{{lot}}`, `{{titre}}`, `{{objectif}}` and `{{news}}`,
61
70
  the News instruction of a `visible` lot, are filled in; it names no wave Playwright directory — a hand delegation has none — so the screenshot goes under the OS temp directory, then into `docs/nouveautes/captures/`). The lead only adjusts the goal to what done looks
62
- like (the human's words) and keeps the rest verbatim.
71
+ like (the human's words) and keeps the rest verbatim. **A stale title is no reason to delegate by hand**: the lot's scope changed since the plan was written, so give the new goal to the program — `--goal "…"` on the launch (one lot per launch), or a `goal:` key on the lots in the plan (every launch, several lots at once): `goal:` in a native plan, and in a plan kept by another tool (read-only, e.g. maritime's `docs/plan/taches.yaml`) the key of theirs that holds it, mapped with `plan.fields: { goal: <their key> }` in `cadence.yaml` (an unmapped key other than `goal` is ignored without a message). It replaces the title as the objective of every brief and shows in the wave table.
63
72
 
64
73
  A lot that adds or changes a screen is `visible`: after the implementation, have the
65
74
  `ux-reviewer` agent review it (give it the URL or the way to run the app) and bring its verdict and
@@ -74,6 +83,8 @@ silent wait, no polling loop — `cadence orchestrate --status` shows where the
74
83
  cadence orchestrate <project>:<lot> <project>:<lot>@haiku … --wave <id> [--budget 2M]
75
84
  ```
76
85
 
86
+ For a single lot whose title is stale, add `--goal "<what done looks like>"` (refused with two lots, `--continue` or `--resume`); for several lots, a `goal:` key per lot in the plan (mapped by `plan.fields.goal` on a plan kept by another tool).
87
+
77
88
  **Make the wave visible to the human.** Name the background task after what it runs — « vague `<id>` :
78
89
  `<project>:<lot>`, … » (its `description`), so the task list says which projects and lots, not just « a task
79
90
  is running » — and pass `--wave <id>` (e.g. `2026-10-08-1030`) so its state folder is known in advance. Right after
@@ -96,6 +107,12 @@ handed back too. `cadence orchestrate --stop-after-current` lets the sessions ru
96
107
  ends `interrupted`, and `--resume` takes it up again. To take a lot out of a wave that is already stopped, use
97
108
  `--resume --drop <project>:<lot>` (the lot is handed back instead of being replayed). Neither kills a session.
98
109
 
110
+ **One worktree per lot is experimental and not enabled** (`orchestrate.worktrees: true`, L279): `cadence orchestrate` refuses it (exit 2, `--dry-run` too) while lots L299, L300 and L301 are not done, unless `CADENCE_EXPERIMENTAL_WORKTREES=1` is set (the mode's tests only) — never set it for a real wave. Its options exist but belong to that mode: `--resume <wave> --integrate <project:lot>` replays a lot handed back at the integration step (the wave's output names that exact command), `--replay <project:lot>` also after a refused plan write, `--remove-worktree <project:lot> [--abandon-commits]` removes a kept worktree and branch, and `cadence orchestrate --status` and `cadence lead tour` list the worktrees kept by waves (nothing to list in the default mode).
111
+
112
+ **Delivering while the wave runs.** A lot that turns **ready** in the journal is not left waiting: once the lead has re-verified it (section 3, point 2) and recorded its verdict (`raf done`), it delivers that lot at once, without waiting for the end of the wave. The re-check runs at that sha in a throwaway `git worktree add --detach <tmp> <sha>` (removed afterwards), never in the shared tree, which holds the lots still running. Take the sha to deliver from `git log`: the last commit of the ready lot such that no commit of a lot that is not ready (running, queued, in question, handed back) sits beneath it — the same « livrable jusqu'à » the final table prints. Push that sha alone (`git push origin <sha>:main`, never HEAD, which holds the code of lots still running), then `cadence deliver --dry-run --sha <sha>` and `cadence deliver --sha <sha>`: `deliver` accepts a `--sha` during a wave of the same repository when none of its commits belongs to a lot that is not ready, and refuses otherwise, naming the lots. Without `--sha` it stays refused until every lot of the repository is ready or handed back. The wave's sessions keep committing in the working tree: `--sha` never reads it. What the log keeps is `<sha>`, unless the delivery script declares another deployed commit in `CADENCE_DEPLOYED_FILE`; if HEAD moved during the delivery without that declaration, `deliver` warns (« la tête a avancé pendant la livraison ») and the log keeps `<sha>`: it is not a failure. This is the measured gain: a ready lot used to wait for the slowest lot of its wave (1,554 lot-minutes between « ready » and the end of the wave over 28 waves).
113
+
114
+ **Free resources.** While a wave is live or a session is held with `cadence lead hold`, `cadence lead tour` and `cadence orchestrate --continue` print, after the free slots line, `prêts, ressources libres : <project>:<lot> <title> (<resources>) · …`: the ready lots whose shared resources (`uses:`) nothing holds. Read it again each time an agent comes back (a session ended, a lot handed back or ready) and each time a lot is blocked (a question, a refusal, a resource taken), **before waiting** for the next transition: a lot listed there can start now, so start it (with the free slots line saying a slot is free) instead of waiting behind the blocked one. The line is a display: nothing is locked, and it never raises the cap — no `créneaux libres`, no new session. No line means no ready lot is free: wait.
115
+
99
116
  `cadence orchestrate --dry-run …` first when a precondition is in doubt. The program, not the lead, runs
100
117
  for each lot a fresh short session per step — implementation (Sonnet), code review
101
118
  (Opus, the `code-reviewer` agent; Sonnet, with no pass on the minor findings, for a lot whose estimate is
@@ -109,7 +126,7 @@ suspended (budget or usage limit; `--resume --budget …` continues).
109
126
  What the orchestrator does **not** do, and stays with the lead: choose the lots (with the human), bring the
110
127
  questions back (`--resume --answer <project>:<lot> "…"`), look at the UX reviewer's captures and record
111
128
  `raf ux` (the orchestrator reports its verdict, it never records it; who decides it is the `lead.ux` setting, section 2c), re-verify (section 3, point 2),
112
- `raf done`, push and deliver. **A locked acceptance test that contradicts the sheet** (the lot is handed back with `verrou des tests d'acceptation`, or the session's question says its own test is wrong, e.g. a regex that rejects a sentence the sheet allows) has a path, and it is the lead's, never a session's: correct the test in the working tree (the sheet is left as it is; if it was amended, **commit it first, citing the lot**: an amended sheet whose every commit cites the lot is accepted, L217, never put it back to the red state), then `cadence spec reseal <lot> <test> --reason "why it contradicts the sheet"` (outside any wave): the program redoes the fingerprint of that one test, writes the reason in `acceptation.json` (`resceaux`) and as a note of the lot, commits both, and the lock keeps everything else. For a **delivered** lot (`vert: true`) whose contract does not change but whose test is unstable, add `--porteur <the lot in progress that carries the fix>`: the commit and the note cite that lot, `vert` stays true (L212). It refuses a lot that is neither in progress nor delivered, a sheet with uncommitted changes or touched by a commit that does not cite the lot, and any other listed test touched, and during a wave of that repository. It is atomic (a refused commit restores `acceptation.json` and the test), with a plan kept read-only by another tool it leaves the plan untouched and says a note is to be added by hand, with an untracked plan or one outside the repository it writes the note but does not commit it (`plan à commiter`: do not add it again), and if the commit of the note is refused the reseal stays done and the error says to commit the plan by hand. Do it **between two sessions**, never inside one: a resealed commit that belongs to a session of the wave is not adopted (still a lock violation), and sessions are forbidden the command. Then continue the lot: `--resume --answer` when it waits on a `question`; a new wave `cadence orchestrate <project>:<lot>` when it was handed back (`--resume` skips finished lots). Minor findings and proposed sub-tasks come back in the table: adding them to
129
+ `raf done`, push and deliver. **A locked acceptance test that contradicts the sheet** (the lot is handed back with `verrou des tests d'acceptation`, or the session's question says its own test is wrong, e.g. a regex that rejects a sentence the sheet allows) has a path, and it is the lead's, never a session's: correct the test in the working tree (the sheet is left as it is; if it was amended, **commit it first, citing the lot**: an amended sheet whose every commit cites the lot is accepted, L217, never put it back to the red state), then `cadence spec reseal <lot> <test> --reason "why it contradicts the sheet"` (outside any wave): the program redoes the fingerprint of that one test, writes the reason in `acceptation.json` (`resceaux`) and as a note of the lot, commits both, and the lock keeps everything else. For a **delivered** lot (`vert: true`) whose contract does not change but whose test is unstable, add `--porteur <the lot in progress that carries the fix>`: the commit and the note cite that lot, `vert` stays true (L212). It refuses a lot that is neither in progress nor delivered, a sheet with uncommitted changes or touched by a commit that does not cite the lot, and any other listed test touched, and during a wave of that repository. It is atomic (a refused commit restores `acceptation.json` and the test), with a plan kept read-only by another tool it leaves the plan untouched and says a note is to be added by hand, with an untracked plan or one outside the repository it writes the note but does not commit it (`plan à commiter`: do not add it again), and if the commit of the note is refused the reseal stays done and the error says to commit the plan by hand. It is also refused while a wave that is not `done` (stopped on a question or the quota, or still alive) keeps open any lot of that repository still `doing` in its plan, **the resealed lot, the porteur or any other lot of the repository** (the lock hands back all of them, L238; a lot `done` or absent in the plan, an old abandoned wave, a lot of another repository with the same id never block): the error is a single message, also when a live wave holds the repository lock: it lists every wave (the live ones and the stopped ones) with its launch folder and its lots and gives, for each stopped wave, ONE command to run as it stands, `cd <launch folder> && cadence orchestrate --resume <wave> --drop <project>:<lot> --drop <project>:<lot>` (a `--drop` per open lot of the repository, queued ones not yet `doing` in the plan included, since `--resume` replays the whole wave; or `--resume <wave> --answer …` to let it go on); a wave still alive is waited for. Close them **first**, reseal afterwards. Do it **between two sessions**, never inside one: a resealed commit that belongs to a session of the wave is not adopted (still a lock violation), and sessions are forbidden the command. Then continue the lot: a new wave `cadence orchestrate <project>:<lot>` when it was handed back (`--resume` skips finished lots). Minor findings and proposed sub-tasks come back in the table: adding them to
113
130
  the plan is the lead's decision. A minor finding becomes a lot of its own only if it describes an observable bug (a wrong output, a crash, a measured regression); otherwise it stays a note of the originating lot, so that a review never feeds the next one. If an orchestrated wave is running in a repository, do not commit there
114
131
  and do not deliver it (`cadence deliver` refuses).
115
132
 
@@ -166,6 +183,7 @@ is always recorded by the lead's own `raf ux`, never by a subagent.
166
183
 
167
184
  0. After an orchestrated wave the review is already done, by a fresh session: read the table, then go to
168
185
  point 2. For a lot delegated by hand:
186
+ 0b. For a lot delegated by hand, `raf check` or the `dérive` column reporting `documentation en retard` is handled **before** the review: hand the lot to the `doc-keeper` agent (a fresh subagent; the absolute path of the project and the lot id; it updates the documents, or only lists them if you say read-only). Read the `docs.articles` key of the project's `cadence.yaml` yourself and put its entries (`repo`, `file`, and the absolute path of that repository, `repo` being relative to the project) in the brief, with read access to that repository for the subagent: the agent examines a document outside the repository only if the brief names it, and with no entry (the key is absent by default) you name none. A proposed lot it returns for a document outside the repository (`docs.articles`) is yours to decide: it never writes to that plan.
169
187
  1. The `code-reviewer` agent, as a fresh subagent (most capable model), reviews the lot. Give it
170
188
  the absolute path of the project and the lot id, **not** the author's report: it reads the diff
171
189
  itself from the commits that cite the lot, runs the checks, and returns real defects only,
@@ -10,7 +10,7 @@ description: Close a work session on a repository that uses cadence — plan hyg
10
10
  Every `cadence` / `raf` command works on the git repository of the current directory. When the
11
11
  session runs from a parent folder that holds several projects (not itself a repository), run
12
12
  `cadence session close --all` there (`--depth 2` for projects one folder deeper): one "## project"
13
- section per sub-folder that contains `docs/plan/raf.yaml`, or a `cadence.yaml` with a `plan:` key.
13
+ section per sub-folder that contains `.cadence/raf.yaml` or `docs/plan/raf.yaml`, or a `cadence.yaml` with a `plan:` key.
14
14
  Other commands (`raf …`, `cadence deliver`) still run inside the project concerned: `cd <project> && cadence …`.
15
15
 
16
16
  With no project named, run `cadence session close --all` from the parent folder, or `cadence session close` in each project touched during the session
@@ -5,7 +5,7 @@ description: Start a work session on a repository that uses cadence — gather t
5
5
 
6
6
  # Session start — resume without reciting
7
7
 
8
- The repository already carries the state: the plan (`docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`), the history, the notes left at
8
+ The repository already carries the state: the plan (`.cadence/raf.yaml`, or the legacy `docs/plan/raf.yaml`, or the file named by `plan:` in `cadence.yaml`), the history, the notes left at
9
9
  the last close. The only thing missing is the human's priority for today. This skill gathers the facts,
10
10
  proposes, and stops.
11
11
 
@@ -14,7 +14,7 @@ proposes, and stops.
14
14
  Every `cadence` / `raf` command works on the git repository of the current directory. When the
15
15
  session runs from a parent folder that holds several projects (not itself a repository), run
16
16
  `cadence session start --all` there (`--depth 2` for projects one folder deeper): one "## project"
17
- section per sub-folder that contains `docs/plan/raf.yaml`, or a `cadence.yaml` with a `plan:` key.
17
+ section per sub-folder that contains `.cadence/raf.yaml` or `docs/plan/raf.yaml`, or a `cadence.yaml` with a `plan:` key.
18
18
  Other commands (`raf …`, `cadence deliver`) still run inside the project concerned: `cd <project> && cadence …`.
19
19
 
20
20
  With no project named, run `cadence session start --all` from the parent folder (or `cadence session start` in **each** project that has a plan) and report
@@ -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}}