Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

docs(workflows): clarify global failure recovery ownership

hugohe38dd461042d13
diff --git a/docs/technical-design.md b/docs/technical-design.md
index fb498a98..2d3da467 100644
--- a/docs/technical-design.md
+++ b/docs/technical-design.md
@@ -341,7 +341,7 @@ PPT Master uses **role switching within one main agent** rather than parallel su
The pipeline is enforced by a 10-rule set in [`SKILL.md` § Global Execution Discipline](../skills/ppt-master/SKILL.md) — that file is authoritative; the rules live there. They look bureaucratic but exist because LLMs default to "let me solve the whole problem in this turn", which is exactly the wrong shape for a serial pipeline where each step's output is bounded, checkpointed, and consumed by the next. The rules collectively close failure modes that surfaced repeatedly in practice: out-of-order execution, AI proxying user design decisions, cross-phase bundling, missing prerequisites, speculative pre-work, sub-agent context loss, page-batching drift, long-deck color/font drift, batch/script-generated SVG drift, and routing ambiguity.
-Common stop/continue recovery behavior is authoritative in [`failure-recovery.md`](../skills/ppt-master/workflows/governance/failure-recovery.md); this section does not duplicate that matrix.
+Global stop/continue policy is authoritative in [`failure-recovery.md`](../skills/ppt-master/workflows/governance/failure-recovery.md); its concrete recovery matrix and resume pointers currently cover Generate PPTX. This section does not duplicate those rules.
Two newer rules are especially important to the architecture. First, Executor page SVGs must be hand-authored by the current main agent, one page at a time; writing a Python/Node/shell generator to emit pages is prohibited because the resulting deck loses cross-page judgment and visual continuity. Second, routing is deterministic: raw PPTX template requests, beautify-profile requests, native enhancement, custom-animation stages, live-preview stages, and other registered triggers are not turned into open-ended user route questions when the repository already defines the boundary.
@@ -583,6 +583,6 @@ Supporting files stay separate only to keep route contracts focused and load opt
| Template child workflows | `create-brand`, `create-layout`, `create-deck` | Create Template dispatches exactly one based on identity-only, structure-only, or integrated intent |
| Generation stages | `topic-research`, `resume-execute`, `refine-spec`, `verify-charts`, `visual-review`, `live-preview`, `customize-animations` | Generate PPTX at their defined intake, planning, editing, quality, or post-processing points |
| Shared stage | `generate-audio` | Generate PPTX post-processing or Enhance Native PPTX narration integration |
-| Governance | `failure-recovery` | Stop/continue decisions across Generate PPTX stages |
+| Governance | `failure-recovery` | Global stop/continue policy for all four routes; concrete recovery matrix and resume pointers for Generate PPTX |
-This classification is a responsibility boundary, not a filename preference. A new top-level route is justified only by a distinct artifact lifecycle and mutation model; kind-specific execution inside Create Template remains a child workflow, while optional generation behavior remains a profile, stage, or governance document.
+This classification is a responsibility boundary, not a filename preference. A new top-level route is justified only by a distinct artifact lifecycle and mutation model; kind-specific execution inside Create Template remains a child workflow, optional route behavior remains a profile or stage, and cross-route policy remains governance.
diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.md
index f88fcae4..40591d90 100644
--- a/docs/zh/technical-design.md
+++ b/docs/zh/technical-design.md
@@ -343,7 +343,7 @@ PPT Master 用的是**单主代理内的角色切换**,不是并行子代理
流水线由 [`SKILL.md` § 全局执行纪律](../../skills/ppt-master/SKILL.md) 中的 10 条规则强制——那份文件是权威,规则住在那里。它们看起来很官僚,但存在的理由是:LLM 默认行为是“让我在这一 turn 里把整个问题搞定”,而这恰好是串行流水线最不该有的形状——串行流水线要求每一步的输出都是有界、过 checkpoint、被下一步消费的。这套规则共同关闭了实际反复出现的失败模式:乱序执行、AI 代为做用户设计决策、跨阶段打包、前置条件未满足、投机预先准备、子代理上下文丢失、分批漂移、长 deck 色彩字体漂移、脚本批量生成 SVG 漂移,以及路由歧义。
-常见失败的停 / 继续规则以 [`failure-recovery.md`](../../skills/ppt-master/workflows/governance/failure-recovery.md) 为准;本节不复制恢复矩阵。
+全路由通用的停止 / 继续规则以 [`failure-recovery.md`](../../skills/ppt-master/workflows/governance/failure-recovery.md) 为准;其中具体故障矩阵与续跑入口目前覆盖 Generate PPTX。本节不复制这些规则。
其中两条新边界尤其关键。第一,Executor 页面 SVG 必须由当前主代理逐页手写;禁止写 Python / Node / shell 生成器批量吐 SVG,因为这种输出会丢失跨页判断和视觉连续性。第二,路由是确定性的:原生 PPTX 模板、beautify、native enhancement、自定义动画、live preview 等触发条件已经在仓库里定义清楚时,不再额外抛给用户一个开放式路线选择题。
@@ -585,6 +585,6 @@ ChartEx 导入被有意限制为 7 个已验证数据模型:`treemap`、`sunbu
| 模板子工作流 | `create-brand`、`create-layout`、`create-deck` | Create Template 根据“仅身份 / 仅结构 / 身份与结构一体化”只分派其中一个 |
| 生成阶段 | `topic-research`、`resume-execute`、`refine-spec`、`verify-charts`、`visual-review`、`live-preview`、`customize-animations` | Generate PPTX 中各自定义的 intake、planning、editing、quality 或 post-processing 节点 |
| 共享阶段 | `generate-audio` | Generate PPTX 后处理,或 Enhance Native PPTX 的旁白集成 |
-| 治理文档 | `failure-recovery` | Generate PPTX 各阶段的停止 / 继续决策 |
+| 治理文档 | `failure-recovery` | 四条顶层路线的全局停止 / 继续规则;Generate PPTX 的具体故障矩阵与续跑入口 |
-这种分类是职责边界,不是文件命名偏好。只有出现不同的产物生命周期和修改模型时,才新增顶层路线;Create Template 内按模板类型区分的执行归入子工作流,生成路线内的可选行为归入 profile、stage 或 governance。
+这种分类是职责边界,不是文件命名偏好。只有出现不同的产物生命周期和修改模型时,才新增顶层路线;Create Template 内按模板类型区分的执行归入子工作流,路线内的可选行为归入 profile 或 stage,跨路线政策归入 governance。
diff --git a/skills/ppt-master/SKILL.md b/skills/ppt-master/SKILL.md
index f257cfb5..b040428e 100644
--- a/skills/ppt-master/SKILL.md
+++ b/skills/ppt-master/SKILL.md
@@ -75,7 +75,7 @@ description: >
| Route selection | [`workflows/routing.md`](workflows/routing.md) | Owns deterministic selection among the four top-level artifact routes |
| Workflow registry | [`workflows/index.md`](workflows/index.md) | Separates top-level routes from supporting child workflows, profiles, stages, and governance |
| Artifact ownership | [`references/artifact-ownership.md`](references/artifact-ownership.md) | Owns fact channels, source/derived artifact boundaries, and regeneration rules |
-| Failure recovery | [`workflows/governance/failure-recovery.md`](workflows/governance/failure-recovery.md) | Owns stop/continue decisions for common failures |
+| Failure recovery | [`workflows/governance/failure-recovery.md`](workflows/governance/failure-recovery.md) | Owns global stop/continue policy; its concrete matrix and resume pointers cover Generate PPTX |
| Confirm UI details | [`scripts/docs/confirm_ui.md`](scripts/docs/confirm_ui.md) | Owns schema, launcher behavior, port strategy, and chat fallback details |
## Main Pipeline Scripts
diff --git a/skills/ppt-master/workflows/governance/failure-recovery.md b/skills/ppt-master/workflows/governance/failure-recovery.md
index 18ce0990..cfed16ab 100644
--- a/skills/ppt-master/workflows/governance/failure-recovery.md
+++ b/skills/ppt-master/workflows/governance/failure-recovery.md
@@ -1,16 +1,16 @@
---
-description: Governance matrix for stop/continue and recovery decisions across Generate PPTX stages.
+description: Cross-route stop/continue governance with a concrete recovery matrix and resume map for Generate PPTX.
---
# Failure Recovery Governance
-Central recovery rules for common Generate PPTX failures. The route and stage documents may add narrower handling, but must not weaken these stop/continue decisions.
+Global stop/continue rules for all four top-level routes, plus concrete failure handling for Generate PPTX. Section 2 applies across routes; Sections 1 and 3 apply only to Generate PPTX. Owning route and stage documents may add narrower handling, but must not weaken the global rules or duplicate this matrix.
-**Hard rule**: A failed required artifact blocks the next gate. A failed convenience surface falls back to the canonical channel and does not block generation.
+**Hard rule**: A failed required artifact blocks the next gate. A failed convenience surface falls back to the canonical channel and does not block the active route.
---
-## 1. Recovery Matrix
+## 1. Generate PPTX Recovery Matrix
| Failure point | Blocking | Automatic recovery | User intervention | Resume entry |
|---|---:|---|---|---|
@@ -39,7 +39,7 @@ Central recovery rules for common Generate PPTX failures. The route and stage do
---
-## 2. Stop/Continue Rules
+## 2. Global Stop/Continue Rules
| Condition | Action |
|---|---|
@@ -47,14 +47,15 @@ Central recovery rules for common Generate PPTX failures. The route and stage do
| Optional stage not explicitly requested | Do not run it as recovery. |
| Convenience UI/server failure | Fall back to chat or continue without the surface. |
| Derived artifact stale | Regenerate it from its owning source. |
-| Manual image asset missing at Step 7 | Pause and list exact filenames; resume only after files exist. |
-| Checker/export error | Fix the source artifact, then rerun the failed command and downstream commands only. |
+| Required manual artifact missing | Pause and name the exact required artifacts; resume only after they exist. |
+| Validation or export failure | Fix the owning source artifact, then rerun the failed operation and affected downstream operations only. |
+| Confirmed execution choice cannot be honored | Retry the confirmed provider, mode, voice, effect, or path only as its owning workflow allows; if it remains unavailable, stop or request a new decision. Do not substitute another value or output semantics silently. |
-**Forbidden - silent downgrade**: Do not skip a required gate because a downstream command might tolerate the missing file. Fix or pause at the owning gate.
+**Forbidden — silent downgrade**: Do not skip a required gate because a downstream command might tolerate the missing file, and do not change a confirmed execution value merely to keep the route moving. Fix, pause, or request a new decision at the owning boundary.
---
-## 3. Resume Pointers
+## 3. Generate PPTX Resume Pointers
| Last good state | Resume from |
|---|---|
diff --git a/skills/ppt-master/workflows/index.md b/skills/ppt-master/workflows/index.md
index 1d496e1f..e3dcf45f 100644
--- a/skills/ppt-master/workflows/index.md
+++ b/skills/ppt-master/workflows/index.md
@@ -37,7 +37,7 @@ Registry for the route authorities and supporting runbooks referenced by [`SKILL
| Editor stage | `live-preview` | [`stages/live-preview.md`](./stages/live-preview.md) | Generate PPTX route for preview, element selection, or applying annotations |
| Post-processing stage | `customize-animations` | [`stages/customize-animations.md`](./stages/customize-animations.md) | Generate PPTX route on explicit object-animation request |
| Shared audio stage | `generate-audio` | [`stages/generate-audio.md`](./stages/generate-audio.md) | Generate PPTX post-processing or Enhance Native PPTX narration module |
-| Governance | `failure-recovery` | [`governance/failure-recovery.md`](./governance/failure-recovery.md) | Stop/continue decisions across generation stages |
+| Governance | `failure-recovery` | [`governance/failure-recovery.md`](./governance/failure-recovery.md) | Global stop/continue policy across all four routes; Generate PPTX recovery matrix and resume pointers |
---