@muggleai/works 5.38.0 → 5.39.0-staging.360

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.
@@ -1,27 +1,27 @@
1
- # `frontloadQuestions`
2
-
3
- When a run asks its questions. Allowed values: `always` / `never` — there is no `ask`. Default `always`.
4
-
5
- `always` moves every question a run can foresee into one up-front batch, then lets the run finish unattended. `never` keeps each question at the step that raises it.
6
-
7
- ## Under `always`
8
-
9
- 1. **One up-front batch.** Before the run's first long-running step — invoking `muggle-test-prepare`, any `muggle-local-execute-*` call, a remote generation, replay or bulk dispatch, a build, or a wait on a remote workflow — ask every question the run can foresee, in `AskUserQuestion` calls sent back to back with no work between them. Foreseeable includes every gate the run will fire later that resolves to `ask` (a post-run `openTestResultsAfterRun`, `postPRVisualWalkthrough`, `autoCreatePR`, `autoWatchPR`, `suggestRelated*`), asked now and applied when its step arrives. A foreseeable `ask` gate is never defaulted in place of asking: its picker goes in the batch. A gate resolving to `always` or `never` asks nothing either way.
10
- 2. **Nothing after it.** Once the first long-running step starts, call no `AskUserQuestion` for the rest of the run. A question that surfaces anyway takes a best-effort default: the gate's shipped default, else the option the skill marks recommended, else the option that changes nothing outside this session. Record each as `Defaulted: <question> → <choice> (<reason>)`.
11
- 3. **Decisions only the user may make are never defaulted.** Merging, paying, posting publicly, deleting user data, waiving a failing test, choosing an E2E repair, approving a design before it is built: ask it in the batch when it is foreseeable. When it is not, leave it open, finish every part of the run that does not depend on it, and record it as `Open: <question>`.
12
- 4. **One-click follow-ups become report lines.** A non-blocking prompt a skill offers after a step — "did the agent miss anything on this run?", a suggestion to add related cases — is printed as a line with its one-click path (the slash command and its argument) instead of being asked.
13
- 5. **The final report lists them.** The run's closing message ends with a `Decisions` block: every `Defaulted:` line, then every `Open:` line, or `Decisions: none deferred`.
14
-
15
- ## Under `never`
16
-
17
- Each question is asked at the step that raises it, as the skill describes.
18
-
19
- **Picker 1** — header `Question timing`, question `"Ask every question up front, then run without stopping?"`
20
- - `All up front` — `One batch before the run starts; later decisions take a default listed in the report.` → `always`
21
- - `As they come up` — `The run stops and waits at each question.` → `never`
22
-
23
- **Silent action**
24
- - `always` → `Asking everything up front — the run won't stop for questions after this`
25
- - `never` → `Asking each question when its step comes up`
26
-
27
- Print the silent footer once, after the up-front batch, not at every step.
1
+ # `frontloadQuestions`
2
+
3
+ When a run asks its questions. Allowed values: `always` / `never` — there is no `ask`. Default `always`.
4
+
5
+ `always` moves every question a run can foresee into one up-front batch, then lets the run finish unattended. `never` keeps each question at the step that raises it.
6
+
7
+ ## Under `always`
8
+
9
+ 1. **One up-front batch.** Before the run's first long-running step — invoking `muggle-test-prepare`, any `muggle-local-execute-*` call, a remote generation, replay or bulk dispatch, a build, or a wait on a remote workflow — ask every question the run can foresee, in `AskUserQuestion` calls sent back to back with no work between them. Foreseeable includes every gate the run will fire later that resolves to `ask` (a post-run `openTestResultsAfterRun`, `postPRVisualWalkthrough`, `autoCreatePR`, `autoWatchPR`, `suggestRelated*`), asked now and applied when its step arrives. A foreseeable `ask` gate is never defaulted in place of asking: its picker goes in the batch. A gate resolving to `always` or `never` asks nothing either way.
10
+ 2. **Nothing after it.** Once the first long-running step starts, call no `AskUserQuestion` for the rest of the run. A question that surfaces anyway takes a best-effort default: the gate's shipped default, else the option the skill marks recommended, else the option that changes nothing outside this session. Record each as `Defaulted: <question> → <choice> (<reason>)`.
11
+ 3. **Decisions only the user may make are never defaulted.** Merging, paying, posting publicly, deleting user data, waiving a failing test, choosing an E2E repair, approving a design before it is built: ask it in the batch when it is foreseeable. A decision a run takes as a merge rather than an answer — approving a design by merging its design PR — is never asked at all. When it is not, leave it open, finish every part of the run that does not depend on it, and record it as `Open: <question>`.
12
+ 4. **One-click follow-ups become report lines.** A non-blocking prompt a skill offers after a step — "did the agent miss anything on this run?", a suggestion to add related cases — is printed as a line with its one-click path (the slash command and its argument) instead of being asked.
13
+ 5. **The final report lists them.** The run's closing message ends with a `Decisions` block: every `Defaulted:` line, then every `Open:` line, or `Decisions: none deferred`.
14
+
15
+ ## Under `never`
16
+
17
+ Each question is asked at the step that raises it, as the skill describes.
18
+
19
+ **Picker 1** — header `Question timing`, question `"Ask every question up front, then run without stopping?"`
20
+ - `All up front` — `One batch before the run starts; later decisions take a default listed in the report.` → `always`
21
+ - `As they come up` — `The run stops and waits at each question.` → `never`
22
+
23
+ **Silent action**
24
+ - `always` → `Asking everything up front — the run won't stop for questions after this`
25
+ - `never` → `Asking each question when its step comes up`
26
+
27
+ Print the silent footer once, after the up-front batch, not at every step.