Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
TypeScript
v1.25.0.0 fix: AskUserQuestion resolves to host MCP variant when native is disallowed (#1287)
Garry Tan6e1625c0d735
diff --git a/AGENTS.md b/AGENTS.mdindex a6d6de2de..bea9c7fd7 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -35,6 +35,8 @@ Invoke them by name (e.g., `/office-hours`).| `/devex-review` | Live developer experience audit (TTHW measured against the real flow). || `/qa` | Open a real browser, find bugs, fix them, re-verify. || `/qa-only` | Same methodology as /qa but report only — no code changes. |+| `/scrape` | Pull data from a web page. First call prototypes; codified call runs in ~200ms. |+| `/skillify` | Codify the most recent successful `/scrape` flow into a permanent browser-skill. |### Release + deploydiff --git a/CHANGELOG.md b/CHANGELOG.mdindex a27c7cd54..8a0c4cc18 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,77 @@# Changelog+## [1.25.0.0] - 2026-05-01++## **Plan-mode skills surface every decision again, even when the host disallows AskUserQuestion.**++Conductor launches Claude Code with `--disallowedTools AskUserQuestion --permission-mode default --permission-prompt-tool stdio` (verified by inspecting the live conductor claude process via `ps`). The native AskUserQuestion tool is removed from the model's tool registry, so when a plan-mode skill instructs the model to "call AskUserQuestion," the call silently fails: the model can't ask, the user never sees the question, and the skill auto-proceeds without input. The whole interactive premise of `/plan-ceo-review`, `/plan-eng-review`, `/plan-design-review`, `/plan-devex-review`, `/autoplan`, and `/office-hours` was broken in any Conductor session.++The fix is preamble guidance, not skill-template surgery. A new `Tool resolution` section in `scripts/resolvers/preamble/generate-ask-user-format.ts` tells the model to check its tool list and prefer any `mcp__*__AskUserQuestion` variant (e.g. `mcp__conductor__AskUserQuestion`) over the native tool. Hosts that disable native AskUserQuestion register their own MCP variant; the variant takes the same questions/options shape and the host renders the prompt through its own UI surface. If neither variant is callable, the model falls back to writing a `## Decisions to confirm` section into the plan file and calling ExitPlanMode — plan-mode's native "Ready to execute?" confirmation surfaces the decisions through TTY UI. **Never silently auto-decide.**++Six gate-tier real-PTY regression tests reproduce the exact Conductor flag set (`extraArgs: ['--disallowedTools', 'AskUserQuestion']`) for every plan-mode skill, plus a periodic-tier eval that protects the legitimate `/plan-tune` AUTO_DECIDE opt-in path from being broken by the fix. The harness gains a new `'auto_decided'` outcome and whitespace-tolerant detectors that survive TTY cursor-positioning escape sequences (which `stripAnsi` removes without leaving spaces, collapsing "ready to execute" to "readytoexecute").++### What you can now do++- **Use plan-mode review skills in Conductor.** Open a Conductor workspace, run `/plan-ceo-review` against a plan, and the scope-mode question actually appears for you to answer. Same for `/plan-eng-review`, `/plan-design-review`, `/plan-devex-review`, `/autoplan`'s premise gate, and `/office-hours`.+- **Stay in control under `--disallowedTools` without writing template overrides.** The Tool resolution section sits at preamble position 1 in every tier-≥2 skill; new hosts that disable native AUQ via the same pattern get the fix transparently as long as they register an MCP variant.+- **Opt-in to AUTO_DECIDE without losing the regression guard.** `/plan-tune` users who set `never-ask` for specific questions keep auto-pick under Conductor flags; the periodic-tier `auto-decide-preserved` eval protects this path.++### The numbers that matter++Source: `ps -p <conductor-claude-pid> -o args=` for the regression mechanism (verified primary source). 6 new gate-tier regression cases + 1 periodic-tier AUTO_DECIDE eval; coverage in `test/skill-e2e-plan-{ceo,eng,design,devex}-plan-mode.test.ts` (parameterized inline) + `test/skill-e2e-{autoplan,office-hours}-auto-mode.test.ts` (standalone) + `test/skill-e2e-auto-decide-preserved.test.ts` (periodic).++| Surface | Shape |+|---|---|+| Skills that regain interactivity in Conductor | 6 (`/plan-ceo-review`, `/plan-eng-review`, `/plan-design-review`, `/plan-devex-review`, `/autoplan`, `/office-hours`) |+| New gate-tier regression test cases | 6 (one per skill; `--disallowedTools AskUserQuestion` parameterized) |+| New periodic-tier eval | 1 (`auto-decide-preserved`, protects `/plan-tune` opt-in path) |+| New `ClassifyResult` outcome | `auto_decided` — TTY shows "Auto-decided … (your preference)" |+| New `runPlanSkillObservation` parameter | `extraArgs?: string[]` — plumbs raw flags to spawned `claude` |+| Preamble resolvers touched | 2 (`generate-ask-user-format.ts`, `generate-completion-status.ts`) |+| SKILL.md files regenerated | 41 |+| `classifyVisible` branch order | `silent_write` → `auto_decided` → `plan_ready` → `asked` (each more specific than the next) |+| Whitespace-tolerant detectors | `isPlanReadyVisible`, `isAutoDecidedVisible` (defeats stripAnsi cursor-positioning collapse) |+| Verified by | `ps -p <conductor-claude-pid> -o args=` showing `--disallowedTools AskUserQuestion --permission-mode default` |++### What this means for builders++If you ran `/plan-ceo-review` or any plan-mode review skill in Conductor before this release, the skill silently produced a plan you didn't shape — the scope-mode question, expansion proposals, and per-section STOPs never reached you. After upgrading, the skill stops for every gate the template defines. The fix is in the preamble, so you don't update skill templates yourself — just upgrade gstack and the next plan review you run honors your input.++If you opted into auto-deciding specific questions via `/plan-tune`, the periodic eval guards that path. The fix is "prefer MCP variant when registered," not "force every question to surface" — your `never-ask` preferences still auto-pick, the AUTO_DECIDE annotation still renders, nothing changes for opt-in users.++The gstack-side regression test surface now mirrors what real users hit. Each plan-mode test file gained a second `test()` block that sets `extraArgs: ['--disallowedTools', 'AskUserQuestion']` and asserts the AskUserQuestion still surfaces. Builds on v1.21.1.0's `classifyVisible()` extraction — the new auto-decided branch slots in cleanly between silent_write and plan_ready.++### Itemized changes++#### Added — Tool resolution preamble++- `scripts/resolvers/preamble/generate-ask-user-format.ts` gets a new `### Tool resolution (read first)` section at the top of the AskUserQuestion Format block. Tells the model: AskUserQuestion can resolve to two tools at runtime (host MCP variant or native); prefer any `mcp__*__AskUserQuestion` variant in the tool list over native; hosts may disable native via `--disallowedTools AskUserQuestion` (Conductor does this by default); same questions/options shape and decision-brief format applies to the MCP variant. Includes a fallback path when neither variant is callable: write the decision into the plan file as `## Decisions to confirm` + ExitPlanMode.+- `scripts/resolvers/preamble/generate-completion-status.ts` (the plan-mode-info block at preamble position 1) updated to point at the Tool resolution section: AskUserQuestion satisfies plan mode's end-of-turn requirement for "any variant," with the plan-file fallback for the no-variant case.++#### Added — regression tests++- 4 inline `test()` blocks added to `test/skill-e2e-plan-{ceo,eng,design,devex}-plan-mode.test.ts`. Each spawns claude with `extraArgs: ['--disallowedTools', 'AskUserQuestion']` and asserts the skill still surfaces the question — pass envelope `['asked', 'plan_ready']` (the latter covers the plan-file fallback flow), failure signals are `'auto_decided'` (caught explicitly) plus the standard silent_write/exited/timeout.+- `test/skill-e2e-autoplan-auto-mode.test.ts` (new). Asserts autoplan's first non-auto-decided gate (Phase 1 premise confirmation) still surfaces. Autoplan auto-decides intermediate questions BY DESIGN, so the test scopes to gates the user MUST see.+- `test/skill-e2e-office-hours-auto-mode.test.ts` (new). Asserts office-hours' startup-vs-builder mode AskUserQuestion still surfaces.+- `test/skill-e2e-auto-decide-preserved.test.ts` (new, periodic-tier). Sets up an isolated `GSTACK_HOME` tmpdir, writes `question_tuning=true` + a `never-ask` preference for `plan-ceo-review-mode` (source `'plan-tune'`), runs `/plan-ceo-review` under `--disallowedTools AskUserQuestion`, asserts outcome is NOT `'asked'` (the model honored the opt-in).++#### Changed — PTY harness++- `test/helpers/claude-pty-runner.ts`: `runPlanSkillObservation` accepts new optional `extraArgs?: string[]` (plumbs straight through to `launchClaudePty`, which already supported the field). `ClassifyResult` gains `'auto_decided'` outcome plus `isAutoDecidedVisible(visible)` detector that matches the AUTO_DECIDE preamble template (`Auto-decided … (your preference)`). `classifyVisible` branch order extended to `silent_write → auto_decided → plan_ready → asked` so an upstream auto-decide isn't masked by a downstream plan-mode confirmation.+- Whitespace-tolerant detection: `isPlanReadyVisible` and `isAutoDecidedVisible` now test both spaced and whitespace-collapsed forms of their target phrases. `stripAnsi` removes cursor-positioning escapes (`\x1b[40C`) without replacing them with spaces, so "ready to execute" can come through as "readytoexecute" — the spaced regex would miss it.++#### Changed — touchfiles++- `test/helpers/touchfiles.ts`: existing `plan-X-review-plan-mode` entries gain `scripts/resolvers/question-tuning.ts` and `scripts/resolvers/preamble/generate-ask-user-format.ts` as touchfile dependencies, so AUTO_DECIDE-bearing resolver changes correctly invalidate the regression cases.+- New entries: `autoplan-auto-mode` (gate), `office-hours-auto-mode` (gate), `auto-decide-preserved` (periodic).+- `test/touchfiles.test.ts`: count of tests selected by `plan-ceo-review/SKILL.md` updates from 19 to 21 to cover the new entries that depend on `plan-ceo-review/**`.++#### For contributors++- The PTY harness's `auto_decided` outcome is a defense-in-depth signal: it fires on the AUTO_DECIDE preamble template wording, which is non-deterministic. Treat it as evidence of a regression, not a hard contract.+- The Tool resolution section is the surgical fix site for any future host that disables native AUQ similarly. The pattern: register a `mcp__<host>__AskUserQuestion` MCP tool; the gstack preamble already tells the model to prefer it. No skill-template changes needed per-host.+- `auto-decide-preserved` runs in an isolated `GSTACK_HOME` tmpdir to avoid mutating the developer's real `~/.gstack` state. When debugging, set `GSTACK_HOME` manually to a scratch dir and run the same setup the test does (`gstack-config set question_tuning true`, then `gstack-question-preference --write`).+## [1.24.0.0] - 2026-04-30## **Cross-platform hardening. Mac + Linux full, curated Windows lane added.**@@ -168,7 +240,6 @@ For `/plan-ceo-review` specifically: any future preamble slim-down or template e- The runner change is additive and the existing sibling smokes (`plan-eng`, `plan-design`, `plan-devex`, `plan-mode-no-op`) keep their loose `['asked', 'plan_ready']` assertion. Their behavior is unchanged.- Post-merge follow-ups captured in `TODOS.md`: per-finding AskUserQuestion count assertion (V2), env-driven gstack-config overrides (so `QUESTION_TUNING=false` actually isolates the test), path-confusion hardening on `SANCTIONED_WRITE_SUBSTRINGS`.-## [1.20.0.0] - 2026-04-28## **Browser-skills land. `/scrape <intent>` first call drives the page; second call runs the codified script in 200ms.**diff --git a/SKILL.md b/SKILL.mdindex 4269f6f4d..4f428fb8b 100644--- a/SKILL.md+++ b/SKILL.md@@ -107,7 +107,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"diff --git a/VERSION b/VERSIONindex c6a4766c1..138e1661b 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-1.24.0.0+1.25.0.0diff --git a/autoplan/SKILL.md b/autoplan/SKILL.mdindex 6a8ad3b27..628c36ee7 100644--- a/autoplan/SKILL.md+++ b/autoplan/SKILL.md@@ -116,7 +116,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -281,6 +281,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/benchmark-models/SKILL.md b/benchmark-models/SKILL.mdindex b152301ba..6f52cdeae 100644--- a/benchmark-models/SKILL.md+++ b/benchmark-models/SKILL.md@@ -109,7 +109,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"diff --git a/benchmark/SKILL.md b/benchmark/SKILL.mdindex 0a01897b0..3f0d4fff9 100644--- a/benchmark/SKILL.md+++ b/benchmark/SKILL.md@@ -109,7 +109,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"diff --git a/browse/SKILL.md b/browse/SKILL.mdindex 22c270819..8aa6ac2f1 100644--- a/browse/SKILL.md+++ b/browse/SKILL.md@@ -108,7 +108,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"diff --git a/canary/SKILL.md b/canary/SKILL.mdindex 4f79a0210..55837e01f 100644--- a/canary/SKILL.md+++ b/canary/SKILL.md@@ -108,7 +108,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -273,6 +273,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/codex/SKILL.md b/codex/SKILL.mdindex 55db57f4b..01bf09b1a 100644--- a/codex/SKILL.md+++ b/codex/SKILL.md@@ -110,7 +110,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -275,6 +275,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/context-restore/SKILL.md b/context-restore/SKILL.mdindex a775f4f6a..a510adbfb 100644--- a/context-restore/SKILL.md+++ b/context-restore/SKILL.md@@ -112,7 +112,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -277,6 +277,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/context-save/SKILL.md b/context-save/SKILL.mdindex a3b0385c9..45f7a33aa 100644--- a/context-save/SKILL.md+++ b/context-save/SKILL.md@@ -112,7 +112,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -277,6 +277,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/cso/SKILL.md b/cso/SKILL.mdindex f4ce42d54..44850ff75 100644--- a/cso/SKILL.md+++ b/cso/SKILL.md@@ -113,7 +113,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -278,6 +278,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/design-consultation/SKILL.md b/design-consultation/SKILL.mdindex 3ccd0140f..3027b3eae 100644--- a/design-consultation/SKILL.md+++ b/design-consultation/SKILL.md@@ -113,7 +113,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -278,6 +278,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/design-html/SKILL.md b/design-html/SKILL.mdindex 844b9d9c9..ec9f84033 100644--- a/design-html/SKILL.md+++ b/design-html/SKILL.md@@ -115,7 +115,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -280,6 +280,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/design-review/SKILL.md b/design-review/SKILL.mdindex 43aec13e0..96f232350 100644--- a/design-review/SKILL.md+++ b/design-review/SKILL.md@@ -113,7 +113,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -278,6 +278,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/design-shotgun/SKILL.md b/design-shotgun/SKILL.mdindex a9f1625b2..41f85c8e4 100644--- a/design-shotgun/SKILL.md+++ b/design-shotgun/SKILL.md@@ -110,7 +110,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -275,6 +275,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/devex-review/SKILL.md b/devex-review/SKILL.mdindex 57bcba04a..2854789d3 100644--- a/devex-review/SKILL.md+++ b/devex-review/SKILL.md@@ -113,7 +113,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -278,6 +278,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/docs/skills.md b/docs/skills.mdindex 025ee229d..05c2209ca 100644--- a/docs/skills.md+++ b/docs/skills.md@@ -16,6 +16,8 @@ Detailed guides for every gstack skill — philosophy, workflow, and examples.| [`/design-html`](#design-html) | **Design Engineer** | Generates production-quality Pretext-native HTML. Works with approved mockups, CEO plans, design reviews, or from scratch. Text reflows on resize, heights adjust to content. Smart API routing per design type. Framework detection for React/Svelte/Vue. || [`/qa`](#qa) | **QA Lead** | Test your app, find bugs, fix them with atomic commits, re-verify. Auto-generates regression tests for every fix. || [`/qa-only`](#qa) | **QA Reporter** | Same methodology as /qa but report only. Use when you want a pure bug report without code changes. |+| [`/scrape`](#scrape) | **Browser Data Extractor** | Pull data from a web page. First call prototypes via `$B`; subsequent calls on a matching intent run a codified browser-skill in ~200ms. |+| [`/skillify`](#skillify) | **Skill Codifier** | Walks back through your conversation, finds the last `/scrape` prototype, synthesizes script + test + fixture, runs the test, asks before committing. || [`/ship`](#ship) | **Release Engineer** | Sync main, run tests, audit coverage, push, open PR. Bootstraps test frameworks if you don't have one. One command. || [`/land-and-deploy`](#land-and-deploy) | **Release Engineer** | Merge the PR, wait for CI and deploy, verify production health. One command from "approved" to "verified in production." || [`/canary`](#canary) | **SRE** | Post-deploy monitoring loop. Watches for console errors, performance regressions, and page failures using the browse daemon. |diff --git a/document-release/SKILL.md b/document-release/SKILL.mdindex 575c3501a..3394ce40c 100644--- a/document-release/SKILL.md+++ b/document-release/SKILL.md@@ -110,7 +110,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -275,6 +275,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/health/SKILL.md b/health/SKILL.mdindex f9ab5c225..a4c63c00f 100644--- a/health/SKILL.md+++ b/health/SKILL.md@@ -110,7 +110,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -275,6 +275,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/investigate/SKILL.md b/investigate/SKILL.mdindex da7305dd7..d96c9ae64 100644--- a/investigate/SKILL.md+++ b/investigate/SKILL.md@@ -127,7 +127,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -292,6 +292,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/land-and-deploy/SKILL.md b/land-and-deploy/SKILL.mdindex 55a86d2d4..04ed85c06 100644--- a/land-and-deploy/SKILL.md+++ b/land-and-deploy/SKILL.md@@ -107,7 +107,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -272,6 +272,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/landing-report/SKILL.md b/landing-report/SKILL.mdindex 4a04d77f7..3aec38e71 100644--- a/landing-report/SKILL.md+++ b/landing-report/SKILL.md@@ -108,7 +108,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -273,6 +273,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/learn/SKILL.md b/learn/SKILL.mdindex 6cd8f15ed..c921c5f93 100644--- a/learn/SKILL.md+++ b/learn/SKILL.md@@ -110,7 +110,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -275,6 +275,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/make-pdf/SKILL.md b/make-pdf/SKILL.mdindex 538797ff7..4e9a3c398 100644--- a/make-pdf/SKILL.md+++ b/make-pdf/SKILL.md@@ -108,7 +108,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"diff --git a/office-hours/SKILL.md b/office-hours/SKILL.mdindex 41052a2fc..70d021dff 100644--- a/office-hours/SKILL.md+++ b/office-hours/SKILL.md@@ -118,7 +118,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -283,6 +283,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/open-gstack-browser/SKILL.md b/open-gstack-browser/SKILL.mdindex 5c91e63d2..86ce4ece2 100644--- a/open-gstack-browser/SKILL.md+++ b/open-gstack-browser/SKILL.md@@ -107,7 +107,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -272,6 +272,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/package.json b/package.jsonindex 436a07c9a..fd7251c2c 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "gstack",- "version": "1.24.0.0",+ "version": "1.25.0.0","description": "Garry's Stack — Claude Code skills + fast headless browser. One repo, one install, entire AI engineering workflow.","license": "MIT","type": "module",diff --git a/pair-agent/SKILL.md b/pair-agent/SKILL.mdindex 335191507..0fa3f98eb 100644--- a/pair-agent/SKILL.md+++ b/pair-agent/SKILL.md@@ -108,7 +108,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -273,6 +273,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/plan-ceo-review/SKILL.md b/plan-ceo-review/SKILL.mdindex 1a745695c..1adfd02f8 100644--- a/plan-ceo-review/SKILL.md+++ b/plan-ceo-review/SKILL.md@@ -115,7 +115,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -280,6 +280,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/plan-design-review/SKILL.md b/plan-design-review/SKILL.mdindex 6a2807d95..5afbedbec 100644--- a/plan-design-review/SKILL.md+++ b/plan-design-review/SKILL.md@@ -112,7 +112,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -277,6 +277,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/plan-devex-review/SKILL.md b/plan-devex-review/SKILL.mdindex 5c00d0075..ff059c4ab 100644--- a/plan-devex-review/SKILL.md+++ b/plan-devex-review/SKILL.md@@ -116,7 +116,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -281,6 +281,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/plan-eng-review/SKILL.md b/plan-eng-review/SKILL.mdindex a5a5f4fc2..53da6b237 100644--- a/plan-eng-review/SKILL.md+++ b/plan-eng-review/SKILL.md@@ -114,7 +114,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -279,6 +279,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/plan-tune/SKILL.md b/plan-tune/SKILL.mdindex 9ed1de30d..bfdfbaeea 100644--- a/plan-tune/SKILL.md+++ b/plan-tune/SKILL.md@@ -121,7 +121,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -286,6 +286,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/qa-only/SKILL.md b/qa-only/SKILL.mdindex 17d766dea..bfa697642 100644--- a/qa-only/SKILL.md+++ b/qa-only/SKILL.md@@ -109,7 +109,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -274,6 +274,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/qa/SKILL.md b/qa/SKILL.mdindex 1f8e3116a..85b1598a5 100644--- a/qa/SKILL.md+++ b/qa/SKILL.md@@ -115,7 +115,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -280,6 +280,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/retro/SKILL.md b/retro/SKILL.mdindex 08361de4a..6703aeb96 100644--- a/retro/SKILL.md+++ b/retro/SKILL.md@@ -108,7 +108,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -273,6 +273,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/review/SKILL.md b/review/SKILL.mdindex f21a40121..663bf920b 100644--- a/review/SKILL.md+++ b/review/SKILL.md@@ -112,7 +112,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -277,6 +277,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/scrape/SKILL.md b/scrape/SKILL.mdindex 9885a8b88..1a7c9072b 100644--- a/scrape/SKILL.md+++ b/scrape/SKILL.md@@ -108,7 +108,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -273,6 +273,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/scripts/resolvers/preamble/generate-ask-user-format.ts b/scripts/resolvers/preamble/generate-ask-user-format.tsindex 7ff9a5d9e..6fa3055da 100644--- a/scripts/resolvers/preamble/generate-ask-user-format.ts+++ b/scripts/resolvers/preamble/generate-ask-user-format.ts@@ -3,6 +3,16 @@ import type { TemplateContext } from '../types';export function generateAskUserFormat(_ctx: TemplateContext): string {return `## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. \`mcp__conductor__AskUserQuestion\` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any \`mcp__*__AskUserQuestion\` variant is in your tool list, prefer it. Hosts may disable native AUQ via \`--disallowedTools AskUserQuestion\` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a \`## Decisions to confirm\` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only \`/plan-tune\` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.\`\`\`diff --git a/scripts/resolvers/preamble/generate-completion-status.ts b/scripts/resolvers/preamble/generate-completion-status.tsindex 8ca450f0e..129099229 100644--- a/scripts/resolvers/preamble/generate-completion-status.ts+++ b/scripts/resolvers/preamble/generate-completion-status.ts@@ -26,7 +26,7 @@ In plan mode, allowed because they inform the plan: \`$B\`, \`$D\`, \`codex exec## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.`;+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — \`mcp__*__AskUserQuestion\` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a \`## Decisions to confirm\` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.`;}export function generateCompletionStatus(ctx: TemplateContext): string {diff --git a/setup-browser-cookies/SKILL.md b/setup-browser-cookies/SKILL.mdindex 8c2b65a39..5cf4d4a6d 100644--- a/setup-browser-cookies/SKILL.md+++ b/setup-browser-cookies/SKILL.md@@ -105,7 +105,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"diff --git a/setup-deploy/SKILL.md b/setup-deploy/SKILL.mdindex 415181f4d..f28b9914e 100644--- a/setup-deploy/SKILL.md+++ b/setup-deploy/SKILL.md@@ -111,7 +111,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -276,6 +276,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/setup-gbrain/SKILL.md b/setup-gbrain/SKILL.mdindex 1ee78dac5..f987ffe5c 100644--- a/setup-gbrain/SKILL.md+++ b/setup-gbrain/SKILL.md@@ -112,7 +112,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -277,6 +277,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/ship/SKILL.md b/ship/SKILL.mdindex 9a884b142..b64b5c3ef 100644--- a/ship/SKILL.md+++ b/ship/SKILL.md@@ -113,7 +113,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -278,6 +278,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/skillify/SKILL.md b/skillify/SKILL.mdindex 70a14fe14..feb765d91 100644--- a/skillify/SKILL.md+++ b/skillify/SKILL.md@@ -109,7 +109,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -274,6 +274,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/test/fixtures/golden/claude-ship-SKILL.md b/test/fixtures/golden/claude-ship-SKILL.mdindex 9a884b142..b64b5c3ef 100644--- a/test/fixtures/golden/claude-ship-SKILL.md+++ b/test/fixtures/golden/claude-ship-SKILL.md@@ -113,7 +113,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -278,6 +278,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/test/fixtures/golden/codex-ship-SKILL.md b/test/fixtures/golden/codex-ship-SKILL.mdindex 32d687107..fbbde29fe 100644--- a/test/fixtures/golden/codex-ship-SKILL.md+++ b/test/fixtures/golden/codex-ship-SKILL.md@@ -102,7 +102,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -267,6 +267,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/test/fixtures/golden/factory-ship-SKILL.md b/test/fixtures/golden/factory-ship-SKILL.mdindex 8b8e479ec..e7914dd9a 100644--- a/test/fixtures/golden/factory-ship-SKILL.md+++ b/test/fixtures/golden/factory-ship-SKILL.md@@ -104,7 +104,7 @@ In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`co## Skill Invocation During Plan Mode-If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion satisfies plan mode's end-of-turn requirement. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.+If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, fall back to writing the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode — never silently auto-decide. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode.If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?"@@ -269,6 +269,16 @@ AI orchestrator (e.g., OpenClaw). In spawned sessions:## AskUserQuestion Format+### Tool resolution (read first)++"AskUserQuestion" can resolve to two tools at runtime: the **host MCP variant** (e.g. `mcp__conductor__AskUserQuestion` — appears in your tool list when the host registers it) or the **native** Claude Code tool.++**Rule:** if any `mcp__*__AskUserQuestion` variant is in your tool list, prefer it. Hosts may disable native AUQ via `--disallowedTools AskUserQuestion` (Conductor does, by default) and route through their MCP variant; calling native there silently fails. Same questions/options shape; same decision-brief format applies.++**Fallback when neither variant is callable:** in plan mode, write the decision brief into the plan file as a `## Decisions to confirm` section + ExitPlanMode (the native "Ready to execute?" surfaces it). Outside plan mode, output the brief as prose and stop. **Never silently auto-decide** — only `/plan-tune` AUTO_DECIDE opt-ins authorize auto-picking.++### Format+Every AskUserQuestion is a decision brief and must be sent as tool_use, not prose.```diff --git a/test/helpers/claude-pty-runner.ts b/test/helpers/claude-pty-runner.tsindex 790e8587d..58a17b51e 100644--- a/test/helpers/claude-pty-runner.ts+++ b/test/helpers/claude-pty-runner.ts@@ -133,9 +133,104 @@ export function isTrustDialogVisible(visible: string): boolean {return visible.includes('trust this folder');}-/** Detect plan-mode's native "ready to execute" confirmation. */+/**+ * Detect plan-mode's native "ready to execute" confirmation. Tests both the+ * spaced and whitespace-collapsed forms because stripAnsi removes cursor-+ * positioning escapes (e.g. `\x1b[40C`) that render visually as spaces but+ * leave no character behind — so "ready to execute" can come through as+ * "readytoexecute" depending on the rendering path.+ */export function isPlanReadyVisible(visible: string): boolean {- return /ready to execute|Would you like to proceed/i.test(visible);+ if (/ready to execute|Would you like to proceed/i.test(visible)) return true;+ const collapsed = visible.replace(/\s+/g, '');+ return /readytoexecute|Wouldyouliketoproceed/i.test(collapsed);+}++/**+ * Detect the AUTO_DECIDE preamble template firing. The model prints+ * "Auto-decided <summary> → <option> (your preference). Change with /plan-tune."+ * when it short-circuits an AskUserQuestion via the question-tuning resolver+ * (`scripts/resolvers/question-tuning.ts:26`). The "Auto-decided ..." stem ++ * "(your preference)" tail combination is the tightest signal. Whitespace-+ * collapsed forms covered for the same TTY-rendering reason as+ * isPlanReadyVisible.+ */+export function isAutoDecidedVisible(visible: string): boolean {+ const stemMatch =+ /Auto-decided\b/i.test(visible) || /Auto-decided/i.test(visible.replace(/\s+/g, ''));+ if (!stemMatch) return false;+ if (/\(your preference\)/i.test(visible)) return true;+ return /\(yourpreference\)/i.test(visible.replace(/\s+/g, ''));+}++/**+ * Extract the plan file path from rendered TTY output. Plan-mode's native+ * confirmation includes one of these formats near the "Ready to execute?"+ * prompt:+ * - `Plan saved to: /path/to/plan.md`+ * - `Plan file: /path/to/plan.md`+ * - `ctrl-g to edit in VSCode · ~/.claude/plans/<name>.md`+ *+ * stripAnsi may collapse whitespace via cursor-positioning escape removal,+ * so the regex tolerates variable spacing. Returns the resolved absolute+ * path with `~` expanded, or null if no path was rendered.+ *+ * Used by v1.22 AskUserQuestion-blocked regression tests to read the plan+ * file post-`plan_ready` and verify it contains a decisions section, which+ * distinguishes the legitimate fallback flow ("write decision brief into+ * plan file") from the silent-skip regression ("write a plan that didn't+ * surface any decisions").+ */+export function extractPlanFilePath(visible: string): string | null {+ // Patterns checked in order of specificity. Each captures the .md path.+ // The visible buffer may have stripAnsi-collapsed whitespace ("yet at" can+ // become "yetat"), so the captured path MUST start at a clear path-anchor+ // character: `~/`, `/Users/`, `/home/`, `/var/`, or `/tmp/`. Anchoring on+ // these prefixes prevents earlier non-whitespace characters from being+ // glommed into the path (real bug seen in the wild: `yetat/Users/...`).+ const PATH_ANCHOR = '(~\\/|\\/Users\\/|\\/home\\/|\\/var\\/|\\/tmp\\/|\\.\\/)';+ const patterns: RegExp[] = [+ new RegExp(`Plan\\s*saved\\s*to\\s*:?\\s*(${PATH_ANCHOR}\\S+\\.md)`, 'i'),+ new RegExp(`Plan\\s*file\\s*:?\\s*(${PATH_ANCHOR}\\S+\\.md)`, 'i'),+ new RegExp(`·\\s*(${PATH_ANCHOR}\\S*\\.claude\\/plans\\/\\S+\\.md)`, 'i'),+ // Fallback: any path-anchored reference to a .claude/plans .md file.+ new RegExp(`(${PATH_ANCHOR}\\S*\\.claude\\/plans\\/[\\w-]+\\.md)`, 'i'),+ ];+ for (const p of patterns) {+ const m = visible.match(p);+ if (m && m[1]) {+ let raw = m[1];+ // Strip trailing punctuation that some patterns may capture.+ raw = raw.replace(/\.+$/, '.md').replace(/\.md\.+$/, '.md');+ // Tilde expansion to absolute path.+ if (raw.startsWith('~')) {+ const home = process.env.HOME ?? '';+ raw = home + raw.slice(1);+ }+ return raw;+ }+ }+ return null;+}++/**+ * Read a plan file written by a plan-mode skill and verify it contains a+ * "decisions" section — evidence the skill surfaced the decisions it was+ * supposed to gate on, even when AskUserQuestion is --disallowedTools and+ * the model used the plan-file fallback flow instead of a numbered prompt.+ *+ * Accepts any `## Decisions ...` heading (the canonical form from the+ * preamble is `## Decisions to confirm`, but small variants like+ * `## Decisions needed` or `## Decisions for review` are common). Returns+ * false if the file is unreadable, missing, or has no decisions section.+ */+export function planFileHasDecisionsSection(planFile: string): boolean {+ try {+ const content = fs.readFileSync(planFile, 'utf-8');+ return /^##\s+Decisions\b/im.test(content);+ } catch {+ return false;+ }}/**@@ -359,6 +454,7 @@ export function optionsSignature(*/export type ClassifyResult =| { outcome: 'silent_write'; summary: string }+ | { outcome: 'auto_decided'; summary: string }| { outcome: 'plan_ready'; summary: string }| { outcome: 'asked'; summary: string }| null;@@ -388,6 +484,17 @@ export function classifyVisible(visible: string): ClassifyResult {};}}+ // 'auto_decided' must beat 'plan_ready': when AUTO_DECIDE fires upstream of+ // plan-ready, both signals are visible by the time the polling loop checks.+ // The annotation text is the more informative outcome — it explains WHY+ // we got to plan_ready without surfacing the question.+ if (isAutoDecidedVisible(visible)) {+ return {+ outcome: 'auto_decided',+ summary:+ 'skill auto-decided an AskUserQuestion via the AUTO_DECIDE preamble (the user never saw the prompt)',+ };+ }if (isPlanReadyVisible(visible)) {return {outcome: 'plan_ready',@@ -903,22 +1010,38 @@ export async function invokeAndObserve(export interface PlanSkillObservation {/*** What happened first. One of:- * - 'asked' — skill emitted a numbered-option prompt (its Step 0- * AskUserQuestion or the routing-injection prompt)- * - 'plan_ready' — claude wrote a plan and emitted its native- * "Ready to execute" confirmation+ * - 'asked' — skill emitted a numbered-option prompt (its Step 0+ * AskUserQuestion or the routing-injection prompt)+ * - 'auto_decided' — visible TTY shows "Auto-decided ... → ..." (the+ * AUTO_DECIDE preamble template fired). Distinguishes+ * "the regression we're tracking" (auto-mode silently+ * auto-deciding questions the user wanted to see) from+ * "skill legitimately reached plan_ready". Detected+ * before plan_ready/silent_write so the auto-decide+ * evidence wins when both are present.+ * - 'plan_ready' — claude wrote a plan and emitted its native+ * "Ready to execute" confirmation* - 'silent_write' — a Write/Edit landed BEFORE any prompt, to a path- * outside the sanctioned plan/project directories- * - 'exited' — claude process died before any of the above- * - 'timeout' — none of the above within budget+ * outside the sanctioned plan/project directories+ * - 'exited' — claude process died before any of the above+ * - 'timeout' — none of the above within budget*/- outcome: 'asked' | 'plan_ready' | 'silent_write' | 'exited' | 'timeout';+ outcome: 'asked' | 'auto_decided' | 'plan_ready' | 'silent_write' | 'exited' | 'timeout';/** Human-readable summary. */summary: string;/** Visible terminal text since the slash command was sent (last 2KB). */evidence: string;/** Wall time (ms) until the outcome was decided. */elapsedMs: number;+ /**+ * Path to the plan file the skill wrote (if outcome is 'plan_ready').+ * Extracted from the visible TTY via {@link extractPlanFilePath}. Lets the+ * v1.22 AskUserQuestion-blocked regression tests verify the plan file+ * contains a `## Decisions to confirm` section under --disallowedTools —+ * a model that silently skips Step 0 reaches plan_ready WITHOUT writing+ * the section, and that's the regression we want to catch.+ */+ planFile?: string;}/**@@ -948,6 +1071,12 @@ export async function runPlanSkillObservation(opts: {cwd?: string;/** Total budget for skill to reach a terminal outcome. Default 180000. */timeoutMs?: number;+ /** Extra CLI args appended after --permission-mode. Used by the v1.22++ * AskUserQuestion-blocked regression tests to pass+ * `['--disallowedTools', 'AskUserQuestion']` (the flag set Conductor+ * uses to remove native AskUserQuestion in favor of its MCP variant).+ * Plumbs straight through to launchClaudePty. */+ extraArgs?: string[];/*** Extra env merged into the spawned `claude` process. `launchClaudePty`* already supports this; exposing it here lets per-skill tests isolate@@ -962,6 +1091,7 @@ export async function runPlanSkillObservation(opts: {permissionMode: opts.inPlanMode === false ? null : 'plan',cwd: opts.cwd,timeoutMs: (opts.timeoutMs ?? 180_000) + 30_000,+ extraArgs: opts.extraArgs,env: opts.env,});@@ -995,11 +1125,19 @@ export async function runPlanSkillObservation(opts: {}const classified = classifyVisible(visible);if (classified) {- return {+ const obs: PlanSkillObservation = {...classified,evidence: visible.slice(-2000),elapsedMs: Date.now() - startedAt,};+ // For plan_ready outcomes, capture the plan file path from the full+ // visible buffer — tests under --disallowedTools verify the file's+ // contents to distinguish legitimate fallback flow from silent-skip.+ if (classified.outcome === 'plan_ready') {+ const planFile = extractPlanFilePath(visible);+ if (planFile) obs.planFile = planFile;+ }+ return obs;}}diff --git a/test/helpers/touchfiles.ts b/test/helpers/touchfiles.tsindex a62d93602..37a97f1b7 100644--- a/test/helpers/touchfiles.ts+++ b/test/helpers/touchfiles.ts@@ -82,17 +82,36 @@ export const E2E_TOUCHFILES: Record<string, string[]> = {'plan-eng-review-artifact': ['plan-eng-review/**'],'plan-review-report': ['plan-eng-review/**', 'scripts/gen-skill-docs.ts'],- // Plan-mode smoke tests — gate-tier safety regression tests. Each fires when- // any of: the interactive skill's template, the plan-mode resolver- // (completion-status owns generatePlanModeInfo), preamble composition, or- // the real-PTY runner (which the tests now use instead of the SDK harness)- // change.- 'plan-ceo-review-plan-mode': ['plan-ceo-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],- 'plan-eng-review-plan-mode': ['plan-eng-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],- 'plan-design-review-plan-mode': ['plan-design-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],- 'plan-devex-review-plan-mode': ['plan-devex-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],+ // Plan-mode smoke tests — gate-tier safety regression tests. Each test file+ // contains TWO test cases as of v1.21: the baseline plan-mode case and the+ // AskUserQuestion-blocked regression case (--disallowedTools AskUserQuestion+ // parameterized — the flag set Conductor uses by default). Touchfiles+ // include question-tuning.ts and generate-ask-user-format.ts because the+ // AUTO_DECIDE preamble injection lives there and changes can flip the+ // regression test outcome between 'asked' and 'auto_decided'.+ 'plan-ceo-review-plan-mode': ['plan-ceo-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/question-tuning.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],+ 'plan-eng-review-plan-mode': ['plan-eng-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/question-tuning.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],+ 'plan-design-review-plan-mode': ['plan-design-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/question-tuning.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],+ 'plan-devex-review-plan-mode': ['plan-devex-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/question-tuning.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],'plan-mode-no-op': ['plan-ceo-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],+ // v1.21+ AskUserQuestion-blocked regression tests — Conductor launches+ // claude with `--disallowedTools AskUserQuestion --permission-mode default`+ // (verified via `ps`); skills must still surface user-decisions through a+ // fallback path (mcp__conductor__AskUserQuestion or plan-file flow) rather+ // than silently auto-deciding. Parameterized regression test cases live+ // INSIDE the existing 4 plan-X-review-plan-mode test files (covered+ // transitively by the entries above). Two new standalone files exist for+ // skills with no prior plan-mode test:+ 'autoplan-auto-mode': ['autoplan/**', 'plan-ceo-review/**', 'plan-design-review/**', 'plan-eng-review/**', 'plan-devex-review/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/question-tuning.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],+ 'office-hours-auto-mode': ['office-hours/**', 'scripts/resolvers/preamble/generate-completion-status.ts', 'scripts/resolvers/question-tuning.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble.ts', 'test/helpers/claude-pty-runner.ts'],+ // v1.21+ AUTO_DECIDE preserve eval (periodic). Verifies the Tool resolution+ // fix doesn't trip the legitimate /plan-tune opt-in path: when the user has+ // written a never-ask preference, AUQ should still auto-decide rather than+ // surfacing the question. Touches the question-tuning + preference+ // infrastructure plus the resolvers that own the AUTO_DECIDE preamble.+ 'auto-decide-preserved': ['scripts/resolvers/question-tuning.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble/generate-completion-status.ts', 'plan-ceo-review/**', 'bin/gstack-question-preference', 'bin/gstack-config', 'bin/gstack-slug', 'test/helpers/claude-pty-runner.ts'],+// Real-PTY E2E batch (#6 new tests on the harness).// Each one tests behavior the SDK harness can't observe (rendered TTY,// numbered-option lists, multi-phase ordering, idempotency state echo).@@ -378,6 +397,10 @@ export const E2E_TIERS: Record<string, 'gate' | 'periodic'> = {'plan-design-review-plan-mode': 'gate','plan-devex-review-plan-mode': 'gate','plan-mode-no-op': 'gate',+ // v1.21+ auto-mode regression tests+ 'autoplan-auto-mode': 'gate',+ 'office-hours-auto-mode': 'gate',+ 'auto-decide-preserved': 'periodic','e2e-harness-audit': 'gate',// Real-PTY E2E batch — tier classification:diff --git a/test/skill-e2e-auto-decide-preserved.test.ts b/test/skill-e2e-auto-decide-preserved.test.tsnew file mode 100644index 000000000..8b773d5fc--- /dev/null+++ b/test/skill-e2e-auto-decide-preserved.test.ts@@ -0,0 +1,131 @@+/**+ * AUTO_DECIDE opt-in preserved under Conductor flags (periodic-tier, paid, real-PTY).+ *+ * Regression test for v1.21+ fix: the new "Tool resolution" preamble+ * (scripts/resolvers/preamble/generate-ask-user-format.ts) tells the model+ * to prefer mcp__*__AskUserQuestion variants and fall back to plan-file+ * decisions when neither is callable. This must NOT break the legitimate+ * `/plan-tune` AUTO_DECIDE path: when the user has explicitly opted into+ * auto-deciding a specific question via `gstack-question-preference --write+ * never-ask`, the model is supposed to honor that — it should still+ * auto-pick the recommended option and emit the AUTO_DECIDE annotation+ * ("Auto-decided <summary> → <option> (your preference). Change with+ * /plan-tune.") instead of opening a question prompt.+ *+ * Periodic tier: AUTO_DECIDE behavior depends on the model adhering to+ * the QUESTION_TUNING preamble injection. Non-deterministic; runs weekly+ * or manually rather than gating CI.+ *+ * Set up:+ * - tmpDir as GSTACK_HOME (isolated state, doesn't touch the user's+ * real ~/.gstack)+ * - question_tuning=true in the tmp config+ * - preference for plan-ceo-review-mode → never-ask (source: plan-tune)+ *+ * Spawn:+ * claude --permission-mode plan --disallowedTools AskUserQuestion+ * /plan-ceo-review+ *+ * Expected:+ * - outcome === 'auto_decided' (the AUTO_DECIDE preamble fired and the+ * "Auto-decided ... (your preference)" text rendered)+ *+ * If outcome is 'asked', the model ignored the user's `/plan-tune`+ * preference — that's a regression against the opt-in feature. If outcome+ * is 'plan_ready' with no AUTO_DECIDE text, the model auto-decided BUT+ * skipped the annotation (acceptable; AUTO_DECIDE annotation is good+ * practice but not the load-bearing behavior).+ */++import { describe, test, expect } from 'bun:test';+import { runPlanSkillObservation } from './helpers/claude-pty-runner';+import * as fs from 'fs';+import * as os from 'os';+import * as path from 'path';+import { spawnSync } from 'child_process';++const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'periodic';+const describeE2E = shouldRun ? describe : describe.skip;++const ROOT = path.resolve(import.meta.dir, '..');++describeE2E('AUTO_DECIDE opt-in preserved under Conductor flags (periodic)', () => {+ test('user-opted-in question still auto-decides when AskUserQuestion is --disallowedTools', async () => {+ const tmpHome = fs.mkdtempSync(path.join(os.tmpdir(), 'gstack-auto-decide-'));+ try {+ // 1. Bootstrap the tmp GSTACK_HOME with question_tuning=true.+ const configBin = path.join(ROOT, 'bin', 'gstack-config');+ const setRes = spawnSync(configBin, ['set', 'question_tuning', 'true'], {+ env: { ...process.env, GSTACK_HOME: tmpHome },+ encoding: 'utf-8',+ });+ if (setRes.status !== 0) {+ throw new Error(`gstack-config set failed: ${setRes.stderr || setRes.stdout}`);+ }++ // 2. Resolve slug for the project (uses git remote — same as the spawned+ // claude would resolve). The preference file path keys on this slug.+ const slugBin = path.join(ROOT, 'bin', 'gstack-slug');+ const slugRes = spawnSync(slugBin, [], {+ cwd: ROOT,+ env: { ...process.env, GSTACK_HOME: tmpHome },+ encoding: 'utf-8',+ });+ // gstack-slug emits `eval`-able shell exports like `SLUG=garrytan-gstack`.+ const slug = (slugRes.stdout.match(/SLUG=([^\s;]+)/)?.[1] ?? 'unknown').replace(/['"]/g, '');++ // 3. Write the preference: plan-ceo-review-mode → never-ask. The+ // 'plan-tune' source bypasses the inline-user origin gate.+ const prefBin = path.join(ROOT, 'bin', 'gstack-question-preference');+ const writeRes = spawnSync(+ prefBin,+ ['--write', JSON.stringify({+ question_id: 'plan-ceo-review-mode',+ preference: 'never-ask',+ source: 'plan-tune',+ })],+ {+ env: { ...process.env, GSTACK_HOME: tmpHome },+ encoding: 'utf-8',+ },+ );+ if (writeRes.status !== 0) {+ throw new Error(`gstack-question-preference --write failed: ${writeRes.stderr || writeRes.stdout}`);+ }++ // Sanity: the preference file landed where we expect.+ const prefFile = path.join(tmpHome, 'projects', slug, 'question-preferences.json');+ if (!fs.existsSync(prefFile)) {+ throw new Error(`expected preference file at ${prefFile}; not found. slug=${slug}`);+ }++ // 4. Run /plan-ceo-review with the Conductor flag set + isolated state.+ const obs = await runPlanSkillObservation({+ skillName: 'plan-ceo-review',+ inPlanMode: true,+ extraArgs: ['--disallowedTools', 'AskUserQuestion'],+ timeoutMs: 300_000,+ });++ // 5. Pass: 'auto_decided' (the strongest signal) or 'plan_ready' with+ // no question rendered. Fail: 'asked' (model ignored the opt-in).+ if (obs.outcome === 'asked') {+ throw new Error(+ `AUTO_DECIDE regression: the model surfaced an AskUserQuestion despite the user's never-ask preference.\n` ++ `summary: ${obs.summary}\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ if (obs.outcome === 'silent_write' || obs.outcome === 'exited' || obs.outcome === 'timeout') {+ throw new Error(+ `AUTO_DECIDE preserve test inconclusive: outcome=${obs.outcome}\n` ++ `summary: ${obs.summary}\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ expect(['auto_decided', 'plan_ready']).toContain(obs.outcome);+ } finally {+ try { fs.rmSync(tmpHome, { recursive: true, force: true }); } catch { /* best-effort */ }+ }+ }, 360_000);+});diff --git a/test/skill-e2e-autoplan-auto-mode.test.ts b/test/skill-e2e-autoplan-auto-mode.test.tsnew file mode 100644index 000000000..f5fe84dbd--- /dev/null+++ b/test/skill-e2e-autoplan-auto-mode.test.ts@@ -0,0 +1,67 @@+/**+ * autoplan AskUserQuestion-blocked regression (gate, paid, real-PTY).+ *+ * v1.21+ regression: Conductor launches Claude Code with+ * `--disallowedTools AskUserQuestion --permission-mode default` (verified+ * by inspecting the parent claude process via `ps`). The native+ * AskUserQuestion tool is removed from the model's tool registry; without+ * fallback guidance the model can't ask the user and silently proceeds.+ *+ * Autoplan auto-decides INTERMEDIATE questions BY DESIGN+ * (autoplan/SKILL.md.tmpl:45), but Phase 1's premise confirmation gate is+ * one of the few non-auto-decided AskUserQuestions and MUST surface to the+ * user. This test asserts that gate still surfaces when AskUserQuestion is+ * disallowed at the tool-registry level — the fix must route the question+ * through a Conductor-side variant (mcp__conductor__AskUserQuestion) or+ * through the plan-file + ExitPlanMode flow.+ *+ * Filename keeps `auto-mode` for branch-history continuity. Auto-mode (the+ * AUTO_DECIDE preamble path when QUESTION_TUNING=true) is a related but+ * distinct silencing mechanism; both share the same fix surface.+ */++import { describe, test, expect } from 'bun:test';+import { runPlanSkillObservation, planFileHasDecisionsSection } from './helpers/claude-pty-runner';++const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'gate';+const describeE2E = shouldRun ? describe : describe.skip;++describeE2E('autoplan AskUserQuestion-blocked smoke (gate)', () => {+ // Pass envelope is ['asked', 'plan_ready']: model either renders the+ // first non-auto-decided gate (Phase 1 premise confirmation) as numbered+ // prose or surfaces it through the plan file + ExitPlanMode flow.+ // Autoplan auto-decides intermediate questions BY DESIGN; the failure+ // signal we care about is the AUTO_DECIDE preamble firing on a gate it+ // shouldn't (caught explicitly via the 'auto_decided' outcome).+ test('a non-auto-decided gate surfaces when AskUserQuestion is --disallowedTools', async () => {+ const obs = await runPlanSkillObservation({+ skillName: 'autoplan',+ inPlanMode: true,+ extraArgs: ['--disallowedTools', 'AskUserQuestion'],+ timeoutMs: 300_000,+ });++ if (+ obs.outcome === 'auto_decided' ||+ obs.outcome === 'silent_write' ||+ obs.outcome === 'exited' ||+ obs.outcome === 'timeout'+ ) {+ throw new Error(+ `autoplan AskUserQuestion-blocked regression: outcome=${obs.outcome}\n` ++ `summary: ${obs.summary}\n` ++ `elapsed: ${obs.elapsedMs}ms\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ if (obs.outcome === 'plan_ready') {+ if (!obs.planFile || !planFileHasDecisionsSection(obs.planFile)) {+ throw new Error(+ `autoplan AskUserQuestion-blocked regression: plan_ready without a "## Decisions" section in ${obs.planFile ?? '<no plan file detected>'} — Phase 1 premise gate was silently skipped.\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ }+ expect(['asked', 'plan_ready']).toContain(obs.outcome);+ }, 360_000);+});diff --git a/test/skill-e2e-office-hours-auto-mode.test.ts b/test/skill-e2e-office-hours-auto-mode.test.tsnew file mode 100644index 000000000..5e1a29489--- /dev/null+++ b/test/skill-e2e-office-hours-auto-mode.test.ts@@ -0,0 +1,59 @@+/**+ * office-hours AskUserQuestion-blocked regression (gate, paid, real-PTY).+ *+ * v1.21+ regression: Conductor launches Claude Code with+ * `--disallowedTools AskUserQuestion --permission-mode default` (verified+ * by inspecting the parent claude process via `ps`). office-hours' first+ * step issues a startup-vs-builder mode AskUserQuestion+ * (office-hours/SKILL.md.tmpl:69); when AskUserQuestion is disallowed at+ * the tool-registry level the model cannot ask and silently picks one mode,+ * breaking the whole interactive premise. This test asserts that question+ * still surfaces — fix must route through mcp__conductor__AskUserQuestion+ * (when present) or plan-file + ExitPlanMode flow.+ *+ * Filename keeps `auto-mode` for branch-history continuity. Auto-mode (the+ * AUTO_DECIDE preamble path when QUESTION_TUNING=true) is a related but+ * distinct silencing mechanism; both share the same fix surface.+ */++import { describe, test, expect } from 'bun:test';+import { runPlanSkillObservation, planFileHasDecisionsSection } from './helpers/claude-pty-runner';++const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'gate';+const describeE2E = shouldRun ? describe : describe.skip;++describeE2E('office-hours AskUserQuestion-blocked smoke (gate)', () => {+ // Pass envelope is ['asked', 'plan_ready']; failure signals are+ // 'auto_decided' + silent_write/exited/timeout.+ test('AskUserQuestion surfaces when --disallowedTools AskUserQuestion is set', async () => {+ const obs = await runPlanSkillObservation({+ skillName: 'office-hours',+ inPlanMode: true,+ extraArgs: ['--disallowedTools', 'AskUserQuestion'],+ timeoutMs: 300_000,+ });++ if (+ obs.outcome === 'auto_decided' ||+ obs.outcome === 'silent_write' ||+ obs.outcome === 'exited' ||+ obs.outcome === 'timeout'+ ) {+ throw new Error(+ `office-hours AskUserQuestion-blocked regression: outcome=${obs.outcome}\n` ++ `summary: ${obs.summary}\n` ++ `elapsed: ${obs.elapsedMs}ms\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ if (obs.outcome === 'plan_ready') {+ if (!obs.planFile || !planFileHasDecisionsSection(obs.planFile)) {+ throw new Error(+ `office-hours AskUserQuestion-blocked regression: plan_ready without a "## Decisions" section in ${obs.planFile ?? '<no plan file detected>'} — startup-vs-builder mode question was silently skipped.\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ }+ expect(['asked', 'plan_ready']).toContain(obs.outcome);+ }, 360_000);+});diff --git a/test/skill-e2e-plan-ceo-plan-mode.test.ts b/test/skill-e2e-plan-ceo-plan-mode.test.tsindex 86409e6ff..8ee1efdb8 100644--- a/test/skill-e2e-plan-ceo-plan-mode.test.ts+++ b/test/skill-e2e-plan-ceo-plan-mode.test.ts@@ -34,7 +34,7 @@*/import { describe, test, expect } from 'bun:test';-import { runPlanSkillObservation } from './helpers/claude-pty-runner';+import { runPlanSkillObservation, planFileHasDecisionsSection } from './helpers/claude-pty-runner';const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'gate';const describeE2E = shouldRun ? describe : describe.skip;@@ -69,4 +69,65 @@ describeE2E('plan-ceo-review plan-mode smoke (gate)', () => {);}}, 360_000);++ // v1.21+ regression: Conductor launches Claude Code with+ // `--disallowedTools AskUserQuestion --permission-mode default` (verified+ // via `ps` on the live Conductor claude process). Native AskUserQuestion+ // is removed from the model's tool registry; without fallback guidance+ // the model can't ask and silently proceeds.+ //+ // The fix (Tool resolution preamble) accepts two surface paths under+ // --disallowedTools:+ // - 'asked' — model emits a numbered-option prompt as prose (with+ // the same D<N> + Pros/cons format as a real AUQ)+ // - 'plan_ready' — model writes the question into the plan file as a+ // "## Decisions to confirm" section + ExitPlanMode;+ // the native plan-mode "Ready to execute?" surfaces+ // it through the TTY confirmation+ //+ // Both let the user see the decision. Failure signals are+ // silent_write/exited/timeout (model never surfaced the question) and+ // 'auto_decided' (the AUTO_DECIDE preamble fired without a /plan-tune+ // opt-in — caught explicitly).+ test('AskUserQuestion surfaces when --disallowedTools AskUserQuestion is set', async () => {+ const obs = await runPlanSkillObservation({+ skillName: 'plan-ceo-review',+ inPlanMode: true,+ extraArgs: ['--disallowedTools', 'AskUserQuestion'],+ timeoutMs: 300_000,+ });++ if (+ obs.outcome === 'auto_decided' ||+ obs.outcome === 'silent_write' ||+ obs.outcome === 'exited' ||+ obs.outcome === 'timeout'+ ) {+ throw new Error(+ `plan-ceo-review AskUserQuestion-blocked regression: outcome=${obs.outcome}\n` ++ `summary: ${obs.summary}\n` ++ `elapsed: ${obs.elapsedMs}ms\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ // plan_ready under --disallowedTools is only a pass when the model used+ // the plan-file fallback (wrote a `## Decisions to confirm` section).+ // Without that section, plan_ready means the model silently skipped Step 0+ // and went straight to ExitPlanMode — the regression we're catching.+ if (obs.outcome === 'plan_ready') {+ if (!obs.planFile) {+ throw new Error(+ `plan-ceo-review AskUserQuestion-blocked regression: outcome=plan_ready but no plan file path detected in TTY output. Cannot verify the model used the fallback flow.\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ if (!planFileHasDecisionsSection(obs.planFile)) {+ throw new Error(+ `plan-ceo-review AskUserQuestion-blocked regression: model wrote ${obs.planFile} without a "## Decisions" section. Step 0 was silently skipped.\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ }+ expect(['asked', 'plan_ready']).toContain(obs.outcome);+ }, 360_000);});diff --git a/test/skill-e2e-plan-design-plan-mode.test.ts b/test/skill-e2e-plan-design-plan-mode.test.tsindex 6fd7881a7..0f2bd69ac 100644--- a/test/skill-e2e-plan-design-plan-mode.test.ts+++ b/test/skill-e2e-plan-design-plan-mode.test.ts@@ -10,7 +10,7 @@*/import { describe, test, expect } from 'bun:test';-import { runPlanSkillObservation } from './helpers/claude-pty-runner';+import { runPlanSkillObservation, planFileHasDecisionsSection } from './helpers/claude-pty-runner';const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'gate';const describeE2E = shouldRun ? describe : describe.skip;@@ -33,4 +33,40 @@ describeE2E('plan-design-review plan-mode smoke (gate)', () => {}expect(['asked', 'plan_ready']).toContain(obs.outcome);}, 360_000);++ // v1.21+ regression: see skill-e2e-plan-ceo-plan-mode.test.ts for the+ // contract. plan-design-review legitimately short-circuits on no-UI-scope+ // branches, so this case keeps the same ['asked', 'plan_ready'] envelope+ // as the baseline. The discriminating regression signals are+ // 'auto_decided' (AUTO_DECIDE preamble fired upstream) or any failure+ // outcome — both mean the user never saw a question they should have.+ test('does not silently auto-decide when --disallowedTools AskUserQuestion is set', async () => {+ const obs = await runPlanSkillObservation({+ skillName: 'plan-design-review',+ inPlanMode: true,+ extraArgs: ['--disallowedTools', 'AskUserQuestion'],+ timeoutMs: 300_000,+ });++ if (+ obs.outcome === 'auto_decided' ||+ obs.outcome === 'silent_write' ||+ obs.outcome === 'exited' ||+ obs.outcome === 'timeout'+ ) {+ throw new Error(+ `plan-design-review AskUserQuestion-blocked regression: outcome=${obs.outcome}\n` ++ `summary: ${obs.summary}\n` ++ `elapsed: ${obs.elapsedMs}ms\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ // plan-design-review legitimately short-circuits to plan_ready on no-UI+ // branches. Allow plan_ready WITHOUT a decisions section ONLY if the+ // plan file genuinely has no UI scope (we don't have a deterministic way+ // to check this from the test, so this skill keeps the looser envelope).+ // Other plan-mode skills require the decisions section under+ // --disallowedTools; design is the special case.+ expect(['asked', 'plan_ready']).toContain(obs.outcome);+ }, 360_000);});diff --git a/test/skill-e2e-plan-devex-plan-mode.test.ts b/test/skill-e2e-plan-devex-plan-mode.test.tsindex 05f1abb3b..5ecad5aaf 100644--- a/test/skill-e2e-plan-devex-plan-mode.test.ts+++ b/test/skill-e2e-plan-devex-plan-mode.test.ts@@ -6,7 +6,7 @@*/import { describe, test, expect } from 'bun:test';-import { runPlanSkillObservation } from './helpers/claude-pty-runner';+import { runPlanSkillObservation, planFileHasDecisionsSection } from './helpers/claude-pty-runner';const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'gate';const describeE2E = shouldRun ? describe : describe.skip;@@ -29,4 +29,40 @@ describeE2E('plan-devex-review plan-mode smoke (gate)', () => {}expect(['asked', 'plan_ready']).toContain(obs.outcome);}, 360_000);++ // v1.21+ regression: see skill-e2e-plan-ceo-plan-mode.test.ts for the+ // contract. Pass envelope is ['asked', 'plan_ready']; failure signals+ // are 'auto_decided' (AUTO_DECIDE without opt-in) plus the standard+ // silent_write/exited/timeout.+ test('AskUserQuestion surfaces when --disallowedTools AskUserQuestion is set', async () => {+ const obs = await runPlanSkillObservation({+ skillName: 'plan-devex-review',+ inPlanMode: true,+ extraArgs: ['--disallowedTools', 'AskUserQuestion'],+ timeoutMs: 300_000,+ });++ if (+ obs.outcome === 'auto_decided' ||+ obs.outcome === 'silent_write' ||+ obs.outcome === 'exited' ||+ obs.outcome === 'timeout'+ ) {+ throw new Error(+ `plan-devex-review AskUserQuestion-blocked regression: outcome=${obs.outcome}\n` ++ `summary: ${obs.summary}\n` ++ `elapsed: ${obs.elapsedMs}ms\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ if (obs.outcome === 'plan_ready') {+ if (!obs.planFile || !planFileHasDecisionsSection(obs.planFile)) {+ throw new Error(+ `plan-devex-review AskUserQuestion-blocked regression: plan_ready without a "## Decisions" section in ${obs.planFile ?? '<no plan file detected>'} — Step 0 was silently skipped.\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ }+ expect(['asked', 'plan_ready']).toContain(obs.outcome);+ }, 360_000);});diff --git a/test/skill-e2e-plan-eng-plan-mode.test.ts b/test/skill-e2e-plan-eng-plan-mode.test.tsindex 93d55ece0..d4a635e2c 100644--- a/test/skill-e2e-plan-eng-plan-mode.test.ts+++ b/test/skill-e2e-plan-eng-plan-mode.test.ts@@ -6,7 +6,7 @@*/import { describe, test, expect } from 'bun:test';-import { runPlanSkillObservation } from './helpers/claude-pty-runner';+import { runPlanSkillObservation, planFileHasDecisionsSection } from './helpers/claude-pty-runner';const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'gate';const describeE2E = shouldRun ? describe : describe.skip;@@ -29,4 +29,40 @@ describeE2E('plan-eng-review plan-mode smoke (gate)', () => {}expect(['asked', 'plan_ready']).toContain(obs.outcome);}, 360_000);++ // v1.21+ regression: see skill-e2e-plan-ceo-plan-mode.test.ts for the+ // contract. Pass envelope is ['asked', 'plan_ready']; failure signals+ // are 'auto_decided' (AUTO_DECIDE without opt-in) plus the standard+ // silent_write/exited/timeout.+ test('AskUserQuestion surfaces when --disallowedTools AskUserQuestion is set', async () => {+ const obs = await runPlanSkillObservation({+ skillName: 'plan-eng-review',+ inPlanMode: true,+ extraArgs: ['--disallowedTools', 'AskUserQuestion'],+ timeoutMs: 300_000,+ });++ if (+ obs.outcome === 'auto_decided' ||+ obs.outcome === 'silent_write' ||+ obs.outcome === 'exited' ||+ obs.outcome === 'timeout'+ ) {+ throw new Error(+ `plan-eng-review AskUserQuestion-blocked regression: outcome=${obs.outcome}\n` ++ `summary: ${obs.summary}\n` ++ `elapsed: ${obs.elapsedMs}ms\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ if (obs.outcome === 'plan_ready') {+ if (!obs.planFile || !planFileHasDecisionsSection(obs.planFile)) {+ throw new Error(+ `plan-eng-review AskUserQuestion-blocked regression: plan_ready without a "## Decisions" section in ${obs.planFile ?? '<no plan file detected>'} — Step 0 was silently skipped.\n` ++ `--- evidence (last 2KB visible) ---\n${obs.evidence}`,+ );+ }+ }+ expect(['asked', 'plan_ready']).toContain(obs.outcome);+ }, 360_000);});diff --git a/test/touchfiles.test.ts b/test/touchfiles.test.tsindex 7f6ad22bc..8fb661614 100644--- a/test/touchfiles.test.ts+++ b/test/touchfiles.test.ts@@ -99,8 +99,12 @@ describe('selectTests', () => {expect(result.selected).toContain('autoplan-chain-pty');// Per-finding count + review-report-at-bottom (v1.21.x)expect(result.selected).toContain('plan-ceo-finding-count');- expect(result.selected.length).toBe(19);- expect(result.skipped.length).toBe(Object.keys(E2E_TOUCHFILES).length - 19);+ // v1.22+ AskUserQuestion-blocked regression: autoplan-auto-mode ++ // auto-decide-preserved also depend on plan-ceo-review/**+ expect(result.selected).toContain('autoplan-auto-mode');+ expect(result.selected).toContain('auto-decide-preserved');+ expect(result.selected.length).toBe(21);+ expect(result.skipped.length).toBe(Object.keys(E2E_TOUCHFILES).length - 21);});test('global touchfile triggers ALL tests', () => {