@muggleai/works 5.26.0-staging.208 → 5.26.0-staging.209

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 (46) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/plugin/.claude-plugin/plugin.json +1 -1
  5. package/dist/plugin/.codex-mcp.json +1 -1
  6. package/dist/plugin/.codex-plugin/plugin.json +1 -1
  7. package/dist/plugin/.cursor-plugin/plugin.json +1 -1
  8. package/dist/plugin/.mcp.json +1 -1
  9. package/dist/plugin/agents/acceptance-tester.md +18 -2
  10. package/dist/plugin/hooks/README.md +5 -4
  11. package/dist/plugin/hooks/codex-hooks.json +2 -2
  12. package/dist/plugin/hooks/hooks.json +2 -2
  13. package/dist/plugin/scripts/guardrail-record-delegation.sh +25 -0
  14. package/dist/plugin/scripts/guardrail-walkthrough-gate.sh +6 -6
  15. package/dist/plugin/scripts/guardrails.mjs +161 -32
  16. package/dist/plugin/skills/do/background-e2e.md +89 -0
  17. package/dist/plugin/skills/do/e2e-acceptance.md +4 -0
  18. package/dist/plugin/skills/do/e2e-repair.md +1 -1
  19. package/dist/plugin/skills/do/open-prs/forward.md +3 -3
  20. package/dist/plugin/skills/do/pre-flight.md +4 -3
  21. package/dist/plugin/skills/do/wave-e2e.md +3 -3
  22. package/dist/plugin/skills/do/wave-or-stream.md +51 -0
  23. package/dist/plugin/skills/muggle-do/SKILL.md +6 -2
  24. package/dist/release-manifest.json +3 -3
  25. package/package.json +1 -1
  26. package/plugin/.claude-plugin/plugin.json +1 -1
  27. package/plugin/.codex-mcp.json +1 -1
  28. package/plugin/.codex-plugin/plugin.json +1 -1
  29. package/plugin/.cursor-plugin/plugin.json +1 -1
  30. package/plugin/.mcp.json +1 -1
  31. package/plugin/agents/acceptance-tester.md +18 -2
  32. package/plugin/hooks/README.md +5 -4
  33. package/plugin/hooks/codex-hooks.json +2 -2
  34. package/plugin/hooks/hooks.json +2 -2
  35. package/plugin/scripts/guardrail-record-delegation.sh +25 -0
  36. package/plugin/scripts/guardrail-walkthrough-gate.sh +6 -6
  37. package/plugin/scripts/guardrails.mjs +161 -32
  38. package/plugin/skills/do/background-e2e.md +89 -0
  39. package/plugin/skills/do/e2e-acceptance.md +4 -0
  40. package/plugin/skills/do/e2e-repair.md +1 -1
  41. package/plugin/skills/do/open-prs/forward.md +3 -3
  42. package/plugin/skills/do/pre-flight.md +4 -3
  43. package/plugin/skills/do/wave-e2e.md +3 -3
  44. package/plugin/skills/do/wave-or-stream.md +51 -0
  45. package/plugin/skills/muggle-do/SKILL.md +6 -2
  46. /package/dist/{chunk-HOKMW4AL.js → chunk-PQVRAFNE.js} +0 -0
@@ -0,0 +1,51 @@
1
+ # Wave or stream — how a session's PRs group into changes
2
+
3
+ A session that opens more than one PR has opened a **wave**, a **stream**, or both, and each is tested differently. The grouping decides how many E2E runs the session owes and which report each PR carries, so it is settled once, at pre-flight, and every later stage reads it from `state.md`.
4
+
5
+ ## Wave
6
+
7
+ One change split across repos. The PRs only work together: the frontend PR calls an endpoint the backend PR adds; a library PR ships a type its consumers adopt in theirs.
8
+
9
+ - One PR per repo, all carrying parts of the same change.
10
+ - **One** E2E run against the combined stack, every service started from its member's branch. The same report goes on every PR in the wave, and they merge together.
11
+ - Procedure: [`wave-e2e.md`](wave-e2e.md).
12
+
13
+ ## Stream
14
+
15
+ Unrelated changes that ship in the same session: separate bugs, separate tasks. Each PR stands alone — it would pass review and work in production if none of the others ever merged.
16
+
17
+ - Each PR is its own change, with its own session directory, branch, worktree, E2E run and report.
18
+ - Each run goes to a background acceptance-tester while the session moves on, one local run at a time.
19
+ - Procedure: [`background-e2e.md`](background-e2e.md).
20
+
21
+ A session can hold both. A wave for one feature, opened alongside unrelated fixes, is one change in the stream: it gets one wave run, and each fix gets its own.
22
+
23
+ ## Deciding
24
+
25
+ For each pair of PRs, ask whether either needs the other to work.
26
+
27
+ | Answer | Grouping |
28
+ | :----- | :------- |
29
+ | Yes, and they are in different repos | Same wave |
30
+ | Yes, and they are in the same repo | A stack, not a wave: each PR is tested on its own branch, which already carries the PRs beneath it |
31
+ | No | Separate changes in the stream |
32
+
33
+ A wave also needs every serving repo to run locally ([`wave-e2e.md`](wave-e2e.md#when-a-cycle-is-a-wave)). Interdependent PRs whose stack cannot start together are tested per PR; record why as `Wave: off — <reason>`.
34
+
35
+ **When unsure, treat them as a stream.** A stream PR that needed a sibling fails visibly, and its repair loop names the missing piece. A wave that should have been a stream puts one change's report on another change's PR — the evidence reviewers trust most, vouching for code it never ran.
36
+
37
+ ## Recording
38
+
39
+ Pre-flight writes the grouping into `state.md`; no later stage re-derives it from branch names or diffs.
40
+
41
+ - **Wave** — one session directory for the wave, with `Wave: on` and its `Wave members` block ([`wave-e2e.md`](wave-e2e.md#what-pre-flight-records)).
42
+ - **Stream** — one session directory per change, each listing the others under `Sibling changes`.
43
+
44
+ A change that grows a second repo mid-cycle has become a wave: record the new member before Stage 6, never after a run has already been posted per PR.
45
+
46
+ ## The acceptance-tester's brief
47
+
48
+ A background run tests exactly one change, so its brief names exactly that change's PRs ([`background-e2e.md`](background-e2e.md#brief)):
49
+
50
+ - **A stream change** — its one repo, worktree, branch, head SHA and PR.
51
+ - **A wave** — every member's repo, worktree, branch, head SHA and PR. The agent starts the combined stack per [`wave-e2e.md`](wave-e2e.md) Stage 6, reports `Tested:` once per member, and names each failure's `implicatedRepo`.
@@ -25,7 +25,11 @@ Runs an autonomous dev cycle from requirements to PR. **Fire and review:** user
25
25
  | 7.5 | E2E repair loop | [`../do/e2e-repair.md`](../do/e2e-repair.md) |
26
26
  | 8 | Hand off to watcher | [`../muggle-pr-followup/SKILL.md`](../muggle-pr-followup/SKILL.md) |
27
27
 
28
- **Multi-repo waves.** When a task spans several repos with one PR each, the PRs form a wave: every repo's service starts from its branch, Stage 6 runs **one** E2E pass against the combined stack, and that same result is posted to every PR in the wave. See [`../do/wave-e2e.md`](../do/wave-e2e.md); pre-flight decides whether a cycle is a wave.
28
+ **Waves and streams.** A session's PRs are either a **wave** — one change split across repos — or a **stream** of independent changes, or both; [`../do/wave-or-stream.md`](../do/wave-or-stream.md) defines which is which, and pre-flight decides it once.
29
+
30
+ **Multi-repo waves.** When a task's PRs need each other to work — one PR per repo — they form a wave: every repo's service starts from its branch, Stage 6 runs **one** E2E pass against the combined stack, and that same result is posted to every PR in the wave. See [`../do/wave-e2e.md`](../do/wave-e2e.md); pre-flight decides whether a cycle is a wave.
31
+
32
+ **Streams — several changes in one session.** Unrelated fixes — several bugs in one request, or a second task while the first is still in flight — are separate changes, each with its own session directory, worktree, PR, and E2E run; a wave is one change among them. When a change reaches Stage 6 while other work is in front of the session, its run goes to a background `acceptance-tester` and the session moves on; the report comes back to the main session, which carries that change through Stages 7–8. One local run at a time, and a PR's walkthrough only ever carries its own change's run. See [`../do/background-e2e.md`](../do/background-e2e.md).
29
33
 
30
34
  Stage 7 dispatches one watcher per opened PR as its last action, gated on Stage 7.5's clearance — a cycle with unrepaired E2E failures never reaches a watcher.
31
35
 
@@ -36,7 +40,7 @@ The pipeline table lists **pointers, not summaries**. Open each stage's file and
36
40
  **Bootstrap before any code, in order:**
37
41
  1. Emit telemetry — [`../_shared/telemetry-emit.md`](../_shared/telemetry-emit.md), `skillName: "muggle-do"`.
38
42
  2. Create `~/.muggle-ai/muggle-do/sessions/<slug>/` with `state.md` + `iterations/001.md` (pre-flight owns this; do it even when running unattended).
39
- 3. `TodoWrite` one item per stage 1–8, Stage 7.5 included — these stages are the checklist; never swap in your own decomposition.
43
+ 3. `TodoWrite` one item per stage 1–8, Stage 7.5 included — these stages are the checklist; never swap in your own decomposition. Several changes → one set of stage items per change.
40
44
 
41
45
  **Per stage:** read the file → execute it → append a marker to `iterations/<NNN>.md` citing the evidence that file requires (jest exit code, E2E verdict + `runId`, screenshot path). A stage is done only when its evidence is written, never on recollection.
42
46
 
File without changes