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(skill): align staged confirmation and image color policy
hugohe383ab6acd4c76
diff --git a/docs/faq.md b/docs/faq.mdindex 118ee3dc..f707ac4a 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -101,9 +101,9 @@ PPT Master works in **unitless px end-to-end** — the confirm page, `spec_lock.PowerPoint displays pt, so the **export** converts px → pt automatically (`pt = px × 0.75`, kept to one decimal). For example a `24px` body becomes `18pt`, a `42px` title becomes `31.5pt`. So a non-integer like `13.5pt` or `31.5pt` in PowerPoint is **expected and intentional**, not a bug — the size is whatever the px works out to, no longer forced onto whole or half-point values.-The body baseline is a fixed value per **delivery purpose** (not a range):+The body baseline is a fixed value per **reading mode** (not a range). This controls reading distance and density; it is separate from the open-ended communication intent:-| Delivery purpose | Body px | ≈ exported pt |+| Reading mode | Body px | ≈ exported pt ||---|---|---|| `text` (read-close: report / leave-behind) | 20px | 15pt || `balanced` (default: roadshow / review) | 24px | 18pt |diff --git a/docs/roadmap.md b/docs/roadmap.mdindex c9e9b1b3..d838b794 100644--- a/docs/roadmap.md+++ b/docs/roadmap.md@@ -60,7 +60,7 @@ Structural capability growth since March 2026. Single flags and incremental poli- **Multi-deck PPTX intake + `analysis/` source-name prefixing** — a main-pipeline project can now combine several source decks: each writes its own `<stem>.identity.json` / `<stem>.slide_library.json`, with every deck's digest inlined under `decks[]` in the single index `source_profile.json` (preserving the "Strategist must-read `source_profile.json`" single-entry contract — one entry for a one-deck project, several for a combined one; re-importing the same stem replaces its entry). `beautify` / `template-fill` stay single-deck (1:1) and read their own `<stem>.*` artifacts-- **Material divergence (a free-text field under §c Audience)** — a main-pipeline content-strategy question added as a **free-text box** under the audience field: the user states in their own words how closely to follow the source vs how freely to reshape it (blank = balanced default). Deliberately not a fixed set of options, not recommended from analyzing the source, and not coupled to page count — it is purely the user's stated intent. However freely they ask, facts **stay sourced** — reorganize / reframe / expand / connect what is in the source, never import facts from outside it (that is the `topic-research` stage's job). The Strategist reads the prose when authoring the §IX outline and records it in `design_spec §I`; it is **not** written to `spec_lock` (the Executor never reads it). `mode` and divergence are orthogonal. Beautify / template-fill freeze content and do not surface this field+- **Material divergence (a Stage-1 free-text source-treatment field)** — a main-pipeline content-strategy question added to the delivery / source-treatment section: the user states in their own words how closely to follow the source vs how freely to reshape it (blank = balanced default). Deliberately not a fixed set of options, not recommended from analyzing the source, and not coupled to page count — it is purely the user's stated intent. However freely they ask, facts **stay sourced** — reorganize / reframe / expand / connect what is in the source, never import facts from outside it (that is the `topic-research` stage's job). The Strategist reads the prose when authoring the §IX outline and records it in `design_spec §I`; it is **not** written to `spec_lock` (the Executor never reads it). `mode` and divergence are orthogonal. Beautify seeds verbatim preservation and surfaces the field as locked/read-only; template-fill does not surface it because that route bypasses this confirmation flow- **A batch of default-behavior and intake standardizations** — per-element entrance animation now defaults off (page transition `fade` only; element builds are opt-in via `-a auto` / `animations.json`), removing the auto-cascade "AI deck" tell; per-project `icons/` copies chosen icons into the project at selection time and embeds project-first; `analysis/` is established as the canonical must-read layer for machine-extracted facts (PPTX intake bundle + `image_analysis.csv`); the main pipeline treats a source deck's identity (palette / fonts / layout) as **reference, not constraint** (inherit or redesign by Strategist judgment, defaulting to fresh design); the confirm page gains a custom color input@@ -78,7 +78,8 @@ Structural capability growth since March 2026. Single flags and incremental poli### 2026-07 — Staged confirmation UI + native objects + motion hardening-- **Step 4 confirmation gate restaged into a three-pass wizard + visual previews** — the single Eight-Confirmations gate became a three-stage flow in one browser session (direction anchors → design system → images / execution), each downstream stage re-derived from the user's **actual** confirmed upstream choices instead of the AI's originals — so, e.g., the image strategy fits the confirmed color system by construction. The confirm page adds visual aids for the hard-to-name picks: a bespoke real-SVG page thumbnail for each of the 18 `visual_style` options, real icon-library samples, and AI-image reference previews. `recommendations.json` now carries a canonical `stage` selector (`tier` retained only as an internal back-compat read) and user-facing wording is unified on "stage"; the chat fallback mirrors the same staged order+- **Step 4 confirmation gate restaged into a three-pass wizard + visual previews** — the single Eight-Confirmations gate became a dependency-ordered flow in one browser session: open communication contract → complete deck solution → resources / production. Communication purpose is free prose that can preserve several goals and their relationship; common purpose names are hints, never a `primary_job` selector. Every editable Stage-1 prose box contains a recommendation rather than a required answer: confirmation persists its current value exactly, so a user-cleared field stays empty through the final result. Stage 2 keeps mutually dependent visual choices together as coordinated safe / shifted / bold directions, while Stage 3 contains no aesthetic choices. Generated images confirm rendering only and inherit the selected deck colors directly. Each downstream stage is derived from the user's **actual** confirmed upstream answers. `recommendations.json` uses the canonical `stage` selector (`tier` remains read-only compatibility input); the chat fallback mirrors the same staged order+- **Independent AI-image palette confirmation retired** — the May rendering × palette × type model remains readable for legacy projects and comparison assets, but new recommendations / locks no longer author `image_palette`. Stage 2 confirms generated-image rendering inside each coordinated deck direction; Image_Generator consumes the selected deck color roles directly. This removes a duplicate color decision and prevents same-stage palette / HEX mismatch- **Transitions and entrance-animation export hardened against silent downgrade** — the current defaults stay `fade` / 0.4 s for page transitions and `none` for element entrances; object motion remains opt-in through `-a` or `animations.json`. Unknown effects / Start modes, non-finite or out-of-range timing, invalid order values, and missing slide/group references now fail instead of falling back to `fade`, another Start mode, or inherited timing. Export reads the candidate PPTX back before replacement and validates root timing placement, unique time-node IDs, live shape targets, effect/duration/Start semantics, and narration timing merges. Direct-PPTX routes preserve existing object animation rather than translating it into the generated animation model. Microsoft PowerPoint is the primary behavior-validation target; other presentation apps remain compatibility targets without an identical-motion guarantee@@ -94,7 +95,7 @@ Structural capability growth since March 2026. Single flags and incremental poliDirections actively underway or up next, with no committed timeline.-- **Real-usage calibration of multi-deck intake and material divergence (just landed)** — multi-deck combined intake (`<stem>` prefixing + a `decks[]` merge index) and the material-divergence free-text field (under §c audience) both shipped (see "2026-06" above); next is calibration from real usage: same-stem collisions across decks currently let the later one overwrite the former — whether dedupe / numbering is needed awaits signal; and whether the Strategist reads the free-text intent accurately, and whether the "facts stay sourced" line holds when the user asks for free reshaping, awaits real generation. Neither gets a mechanical threshold added pre-emptively+- **Real-usage calibration of multi-deck intake and material divergence (just landed)** — multi-deck combined intake (`<stem>` prefixing + a `decks[]` merge index) and the Stage-1 material-divergence free-text field both shipped (see "2026-06" above); next is calibration from real usage: same-stem collisions across decks currently let the later one overwrite the former — whether dedupe / numbering is needed awaits signal; and whether the Strategist reads the free-text intent accurately, and whether the "facts stay sourced" line holds when the user asks for free reshaping, awaits real generation. Neither gets a mechanical threshold added pre-emptively- **Real-deck calibration of the illustration capability (mechanism + deployment layer, just landed)** — the slice pipeline, the edge-quality hardening, and the decision layer (style propensity / motif through-line / roles map — see "2026-06" above) have all shipped; next is calibration from real usage: whether one sheet sliced into many cells holds style / palette consistency and how robust the `--alpha` soft mask is against irregular composition inside a cell, the offline readiness-gate manual-place + re-slice experience, whether propensity flips the styles it should, whether the motif reads as a designed system rather than over-decoration on real decks, and whether the source boundary holds (no silent AI on `provided` / `web`). No mechanical threshold / quota added pre-emptively; if same-size tiles really recur, consider a narrower lint then- **Native drop-shadow on authored presets — deferred as a separate enhancement** — the compact authored-preset `<g>` is a closed semantic atom and currently admits only its registered preset metadata, base paint, and direct registry paths; `filter` / effect metadata is not part of that authoring contract. The converter may expand the atom into its established carrier/preview transport internally, but that implementation detail is not a source-SVG API. Imported PPTX and `mirror` may retain supported source effects in the separate expanded lossless representation; that does not widen new authoring. Until a precise preset-effect contract and matching checker coverage exist, a stock shape that needs a shadow conservatively stays ordinary SVG. This remains signal-driven rather than an implied capability- Otherwise: the mode / visual-style validation and calibration is settled (see "2026-06" above) — the structure (5 modes + 18 visual-styles + custom) is locked, the four adjacent pairs are consolidated into one Close-calls table, and the four calibration tightenings have landed. Future direction is driven by real usage signal and feedback; long-running improvements are under "Ongoing maintenance" below, and evaluated-out directions under "Non-goals"diff --git a/docs/technical-design.md b/docs/technical-design.mdindex 75b349d5..25944d21 100644--- a/docs/technical-design.md+++ b/docs/technical-design.md@@ -140,7 +140,7 @@ Ambiguous "optimize this PPT" requests reduce to one discriminator: preserve theThe full flow breaks into three stages:**Stage 1 — Content Understanding & Design Planning**-Source documents (PDF/DOCX/XLSX/PPTX/URL/Markdown/topic text) are converted into the content and analysis facts the Strategist needs. The Strategist role analyzes the material, reads relevant `analysis/` artifacts, plans the slide structure, and confirms the visual style, producing a complete design specification.+Source documents (PDF/DOCX/XLSX/PPTX/URL/Markdown/topic text) are converted into the content and analysis facts the Strategist needs. The Strategist confirms an open communication contract, derives a complete deck solution from it, resolves production mechanics, and produces the design specification.**Stage 2 — AI Visual Generation**The Executor role generates each slide as an SVG file. The output of this stage is a **design draft**, not a finished product.@@ -336,7 +336,7 @@ PPT Master uses **role switching within one main agent** rather than parallel su**Why role-specialized references, not one mega prompt.** Strategist runs in "negotiate with user" mode (open-ended, conversational, willing to back up); Executor runs in "produce strict XML" mode (no improvisation, no missing attributes). Mixing both into one prompt forces the model to hold incompatible discipline in the same turn — every prompt-engineering pathology of mode-mixing shows up. Splitting into per-role files lets each role load only what it needs and discard the rest.-**Strategist confirmation stage as the only blocking gate.** Strategist ends with a single confirmation gate delivered in three stages: Stage 1 confirms direction anchors (canvas, audience, divergence, delivery purpose, mode, visual style, plus `template_reuse_scope` when Step 3 loaded a deck/layout template and `template_adherence` only for `mirror` / `layout`); Stage 2 is re-derived from those anchors and confirms the design system (page count, palette, typography, icons, formula policy); Stage 3 is re-derived from the confirmed design system and confirms images / execution (image usage, generated-image style, AI image path, generation mode, refine-spec). Reuse scope defaults to `layout`; `style` selects the flat free-design route, while structured `mirror` / `layout` defaults adherence to `adaptive`, which may create a new explicit Layout under the same Master. `strict` keeps every selected Layout contract unchanged. The final `confirm_ui/result.json` is authoritative.+**Strategist confirmation stage as the only blocking gate.** Strategist ends with one gate delivered in three dependency-ordered stages. Stage 1 confirms an open communication contract and canvas. Its prose boxes contain editable recommendations, but none requires a non-empty answer: confirmation persists the current text exactly, and a cleared value stays empty instead of falling back to the recommendation. Stage 2 derives and confirms the complete deck solution: reading mode, narrative mode, page count, template strategy, coordinated visual system, image sources, and generated-image rendering. Stage 3 contains production mechanics only: conditional AI acquisition, formula policy, generation mode, and spec refinement. The compatibility key `delivery_purpose` means reading mode. Generated images inherit the selected deck color roles directly; there is no independent image-palette choice. The final `confirm_ui/result.json` is authoritative, and project validation requires the six contract key lines under `spec_lock.md ## communication` (any prose value may be blank) plus an `Audience move` in every §IX Slide block.**Image analysis goes through regenerated metadata, not pixels.** When images exist, Strategist and Executor use `analyze_images.py` output (`analysis/image_analysis.csv`) rather than directly opening image files. The CSV is a regenerated view over the live `images/` folder, not a durable cache. Re-running it before image-sensitive decisions is the staleness strategy: user images, extracted images, web images, AI outputs, formulas, and sliced elements all converge into the same measured fact table.@@ -360,8 +360,8 @@ The Role Switching Protocol (mandated read of `references/<role>.md` before modeThe Strategist phase produces two artifacts that look redundant but serve different masters:-- `design_spec.md` — human-readable narrative; the "why" of the design (target audience, style objective, color rationale, page outline)-- `spec_lock.md` — machine-readable execution contract; the "what" Executor must literally use (HEX colors, exact font family string, icon library choice, image resource list with status)+- `design_spec.md` — human-readable narrative; the "why" of the deck (communication intent, audience outcome, narrative / template / visual rationale, page outline)+- `spec_lock.md` — machine-readable execution contract; the compact communication trace plus the exact values Executor must literally use (HEX colors, font stacks, icon library, image resources, and structure mappings)Why both? Without `spec_lock.md`, the Executor would re-read `design_spec.md` per page during long decks and the LLM's context-compression drift would gradually mutate colors and fonts mid-deck. `spec_lock.md` is the **anti-drift mechanism** — the SKILL.md mandates `read_file <project>/spec_lock.md` before every page, so values stay verbatim across 20+ slides.@@ -389,7 +389,7 @@ Several architectural decisions shape this phase:**External refs during development, two divergent embedding strategies for derived outputs.** While editing in `svg_output/`, images are external file references — fast iteration, single-source-of-truth replacement. Step 7 always creates both downstream forms: `svg_final/` Base64-inlines assets into self-contained SVGs that an IDE or browser can inspect and users may manually insert as SVG pictures; native pptx instead reads `svg_output/`, copies bitmaps into the PPTX media folder, and uses `<a:srcRect>` to express cropping. The split exists because Base64 inside DrawingML works but bloats file size 3-4×, while file-referenced bitmaps are PowerPoint's native idiom for which `<a:srcRect>` is the canonical crop expression. Manual PowerPoint Convert to Shape is not a third conversion route and is not covered by the project contract.-**Three-dimensional AI image lock at Strategist time.** When the deck includes AI-generated images, Strategist decides three orthogonal dimensions up front — `rendering` (visual style family: vector-illustration / editorial / 3d-isometric / sketch-notes / …), `palette` (how the deck's HEX values are *used*: proportion + role + temperament), `type` (per-image internal composition: background / hero / framework / comparison / …). The first two are deck-wide and written into `spec_lock.md`; Image_Generator then assembles every per-image prompt from the single locked rendering + palette plus a per-image type, instead of re-deciding style per image. Without this, every image gets its own style drift and the deck reads as a stack of unrelated illustrations. This is the visual-cohesion dual of `spec_lock`'s typography/color anti-drift mechanism, just one level upstream of pixels. Strategist surfaces ≥3 candidate `rendering × palette` combinations to the user during the Strategist confirmation stage — never auto-locking a single combination silently, because the choice has far-reaching deck-wide consequences and the user's taste is the only oracle for it.+**One rendering lock, inherited deck colors, and per-image composition.** When a deck includes AI-generated images, Stage 2 confirms the deck-wide `rendering` inside each coordinated design direction. Exact image colors are not a second decision: Image_Generator reads the ordinary HEX roles already locked in `spec_lock.md colors`. It then combines that single rendering and shared color truth with a per-image `type` or hero-page composition derived from each resource's purpose. This keeps style and color coherent without asking the user to approve the same color system twice. A rendering whose material language cannot work with the selected deck roles should not be offered; after confirmation it may change texture, lighting, and color proportions, but it must not replace, tint, warm-grade, or invent HEX values.---diff --git a/docs/templates-architecture.md b/docs/templates-architecture.mdindex 9914ccc4..65629fcb 100644--- a/docs/templates-architecture.md+++ b/docs/templates-architecture.md@@ -342,9 +342,9 @@ This lets both AI and humans trace which segment came from where.Bitmaps share the workspace `images/` pool and template SVGs reference them through `../images/`. If the explicit input root is already the target project's root, Step 3 consumes the workspace in place: do not copy it onto itself and do not move its assets again. Otherwise, the complete core workspace is portable: it may be copied from a project root to a library root, from the library to a project, or reused from another workspace without changing its internal structure. Registration is the only scope-specific step.-### Strategist confirmation stage narrowing per kind+### Strategist confirmation stage behavior per kind-When a deck path is supplied, the user already has a complete solution; the Strategist confirmation stage narrows to "target audience / page count / outline / tone tweaks" — deck-content fields. Other fields reuse the locked values directly. The narrowing rules live in `references/strategist.md` and `spec_lock_reference.md`.+Installing a template does not narrow away the communication question. Stage 1 always confirms the same open communication contract. Brand supplies identity constraints while structure stays free; Layout and Deck expose structural capabilities, but Stage 2 still decides whether the project should consume them as `mirror`, `layout`, or `style` where legal. A mirror-authored workspace therefore enables literal reuse but never selects it automatically. Stage 3 realizes the confirmed direction with the identity and structure actually retained by that scope. The detailed rules live in `references/strategist.md` and `spec_lock_reference.md`.---diff --git a/docs/templates-guide.md b/docs/templates-guide.mdindex a52683d2..bb6feebe 100644--- a/docs/templates-guide.md+++ b/docs/templates-guide.md@@ -221,7 +221,7 @@ the designer writes that brief against the published roster.**Mirror graph boundary**: mirror preserves the complete supported source Master/Layout graph. It emits one complete prototype per source slide and one definition-only `layout_<layout_key>.svg` prototype for every source Layout unused by those slides. The latter registers in PowerPoint through the independent Layout roster without becoming a published page; its parent Master is retained with it. Preflight stops only when required source facts or supported geometry are missing, never merely because a Layout is unused.-**How mirror is consumed**: the Strategist picks one mirror page per project page, and the Executor copies that complete SVG and edits visible text in place while preserving decoration, sprite crops, geometry, and the normalized structured declarations. Mirror preserves supported appearance, not the source PPTX group-editing hierarchy.+**How a mirror-authored workspace is consumed**: source-to-workspace `replication_mode: mirror` is a capability, not the project choice. After the open communication contract is confirmed, Stage 2 recommends `mirror` only for a recurring artifact whose new content fits the existing page roles and text topology; use `layout` when the structure should continue but content needs reflow, and `style` when only identity should carry over or the argument needs a different structure. If `mirror` is confirmed, the Strategist picks one prototype per project page and the Executor copies that complete SVG and edits only allowed visible text values while preserving decoration, sprite crops, geometry, and normalized structured declarations. This still does not require the source page count or order. Mirror preserves supported appearance, not the source PPTX group-editing hierarchy.### Step 4 — Validation, review export, registration, and discoverydiff --git a/docs/what-is-ppt.md b/docs/what-is-ppt.mdindex 2eda7958..b8fc8fd8 100644--- a/docs/what-is-ppt.md+++ b/docs/what-is-ppt.md@@ -62,7 +62,7 @@ Source material + intent| Mobilize | People move from awareness to action || Record and hand off | The organization retains an approvable, auditable, reusable artifact |-A single deck may serve several jobs, but it still needs a primary job. A “status update,” for example, may appear to inform while its real purpose is to secure a decision, expose risk, or assign responsibility.+A single deck may serve several jobs. The useful question is not which one label wins, but how those jobs relate: whether any outcome leads, which ones support one another, and in what sequence. A “status update,” for example, may report progress, expose risk, and request a decision in the same flow.Organizational-communication research treats recurring forms such as proposals, meetings, and reports as socially recognized responses to recurring situations and purposes. That framing is useful here: a deck is not a neutral container; it participates in an organizational communication practice. See Yates and Orlikowski, [“Genres of Organizational Communication”](https://doi.org/10.5465/amr.1992.4279545).diff --git a/docs/zh/faq.md b/docs/zh/faq.mdindex 9a1ad8c5..a97a7ed7 100644--- a/docs/zh/faq.md+++ b/docs/zh/faq.md@@ -103,9 +103,9 @@ PPT Master 内部**全程只用 px**(无单位像素)——确认页、`specPowerPoint 最终显示的是 pt,所以**导出时**自动把 px 换成 pt(`pt = px × 0.75`,保留 1 位小数)。例如正文 `24px` 导出后是 `18pt`、标题 `42px` 是 `31.5pt`。所以你在 PowerPoint 里看到 `13.5pt`、`31.5pt` 这种非整数是**正常的、有意的**,不是 bug——字号算出来是多少就是多少,不再强行凑成整数或半磅。-正文基准按**交付目的**固定取值(不是区间):+正文基准按**阅读模式**固定取值(不是区间)。它控制阅读距离与信息密度,与开放式沟通意图是两条独立轴:-| 交付目的 | 正文 px | ≈ 导出 pt |+| 阅读模式 | 正文 px | ≈ 导出 pt ||---|---|---|| `text` 文字型(近读:报告 / 资料) | 20px | 15pt || `balanced` 均衡(默认:路演 / 评审) | 24px | 18pt |diff --git a/docs/zh/roadmap.md b/docs/zh/roadmap.mdindex 90b25cf2..b5e68b04 100644--- a/docs/zh/roadmap.md+++ b/docs/zh/roadmap.md@@ -60,7 +60,7 @@- **PPTX intake 多 deck 支持 + `analysis/` 源名前缀** — 主管线项目现在可把多份源 deck 合并进来:每份写 `<stem>.identity.json` / `<stem>.slide_library.json`,各自 digest 内联进单一索引 `source_profile.json` 的 `decks[]`(保住"Strategist 必读 `source_profile.json`"单入口契约,单 deck 即一条、多 deck 列多条;同 stem 重导覆盖该条)。`beautify` / `template-fill` 仍是 1:1 单 deck,按 stem 读自己那份 `<stem>.*`-- **材料发散度(§c 受众下的自由文字项)** — 主管线在 §c 受众文本框下加一个**纯文字**小问:用户用自己的话写要多贴源、还是多放开重塑(留空=平衡默认)。刻意不做固定档位、不按源信号替用户推荐、不联动页数——就是问用户本人意图。无论写得多放开都**事实守源**:只对源内内容重组 / 重框 / 展开 / 连结,绝不引入源外事实(那是 `topic-research` 阶段的职责)。Strategist 写 §IX 大纲时读这段 prose 消费、记 `design_spec §I`,**不进 spec_lock**(Executor 不读);`mode` 与发散度正交。beautify / template-fill 内容冻结,不暴露此项+- **材料发散度(Stage 1 的自由文字材料处理项)** — 主管线在使用情境 / 材料处理区加一个**纯文字**小问:用户用自己的话写要多贴源、还是多放开重塑(留空=平衡默认)。刻意不做固定档位、不按源信号替用户推荐、不联动页数——就是问用户本人意图。无论写得多放开都**事实守源**:只对源内内容重组 / 重框 / 展开 / 连结,绝不引入源外事实(那是 `topic-research` 阶段的职责)。Strategist 写 §IX 大纲时读这段 prose 消费、记 `design_spec §I`,**不进 spec_lock**(Executor 不读);`mode` 与发散度正交。beautify 会写入「原文与页序原样保留」并以锁定只读方式展示;template-fill 不进入这套确认流程,因此不展示此项- **一批默认行为与入口标准化** — 逐元素入场动画默认关(只留转场 `fade`;元素动画改 opt-in `-a auto` / `animations.json`),消除"自动级联入场"的 AI 味;per-project `icons/` 在选择时把选中图标复制进项目、嵌入优先本地;`analysis/` 确立为机器抽取事实的 canonical 必读层(PPTX intake bundle + `image_analysis.csv`);主管线把源 deck 的身份(配色 / 字体 / 版式)当**参考而非约束**(可继承可重设,由策略师判断,默认从零设计);confirm 页支持自定义配色输入@@ -78,7 +78,8 @@### 2026-07(分阶段确认 UI + 原生对象 + 动效加固)-- **Step 4 确认 gate 重构为三阶段向导 + 可视化预览** — 原来单次「八项确认」gate 拆成一个浏览器会话内的三阶段流程(方向锚点 → 设计系统 → 图片 / 执行方式),每个下游阶段都从用户**实际已确认**的上游选择重新推导,而非 AI 原始推荐——于是图片策略天然吻合已确认的配色系统。确认页为难以凭名字判断的选项补上视觉辅助:18 个 `visual_style` 每个一张专属 real-SVG 页面缩略图、真实图标库样本、AI 图参考图预览。`recommendations.json` 改用规范的 `stage` 选择器(`tier` 仅作内部向后兼容读取),用户可见措辞统一为「阶段」;聊天 fallback 镜像同样的分阶段顺序+- **Step 4 确认 gate 重构为三阶段向导 + 可视化预览** — 原来单次「八项确认」gate 拆成一个浏览器会话内按依赖排序的流程:开放式沟通契约 → 完整 PPT 方案 → 资源与生产执行。沟通目的用自然语言保留多个目标及其关系;常见目的只作提示,不设 `primary_job` 点选项。Stage 1 每个可编辑文本框里都是推荐,不是必填答案;确认时按当前值原样落盘,用户清空的字段会一直保持为空,直到最终结果。Stage 2 用稳妥 / 偏移 / 大胆三套成套方向协调视觉风格、色彩、字体、图标与生成图渲染;Stage 3 不再出现审美选择。生成图只确认渲染风格,颜色直接继承已选的整套 PPT 配色。每个下游阶段都从用户**实际已确认**的上游答案推导。`recommendations.json` 使用规范的 `stage` 选择器(`tier` 只作只读兼容输入);聊天 fallback 镜像同样的分阶段顺序+- **取消独立的 AI 图调色确认** — 五月建立的 rendering × palette × type 结构继续兼容旧项目和历史对比资产,但新推荐与新锁不再写 `image_palette`。Stage 2 在每套完整设计方向里只确认生成图渲染;Image_Generator 直接消费已选 PPT 的色彩角色,从根上去掉重复色彩决策和同阶段 palette / HEX 失配- **页间转场与元素入场动画完成无静默降级加固** — 当前默认保持页间 `fade` / 0.4 秒、元素入场 `none`,对象动画仍通过 `-a` 或 `animations.json` 按需开启。未知效果 / Start 模式、非有限或越界时长、非法顺序,以及缺失 slide/group 引用都会直接失败,不再偷换为 `fade`、其它 Start 模式或继承值。公开产物替换前会回读候选 PPTX,校验根级 timing 位置、时间节点 ID 唯一性、shape 引用、效果 / 时长 / Start 语义及旁白 timing 合并。直接 PPTX 路线只保留源对象动画,不把它翻译成生成路线的动画模型。Microsoft PowerPoint 是动效行为的主要验证目标;其它演示软件仅作为兼容目标,不承诺完全相同的播放结果@@ -94,7 +95,7 @@明确在做或下一步要做的方向,不承诺时间窗口。-- **多 deck intake 与材料发散度的真实使用校准(刚落地)** — 多 deck 合并 intake(`<stem>` 前缀 + `decks[]` 合并索引)与材料发散度自由文字项(§c 受众下)均已上线(见上「2026-06」),接下来按真实使用信号校准:多份源 deck 同名(stem 冲突)的处理目前是后者覆盖前者,是否需要去重 / 加序号待信号;发散度的自由文字让 Strategist 判得准不准、放开写时「事实守源」边界守不守得住,待真实生成验证。两者都不预先加机械阈值+- **多 deck intake 与材料发散度的真实使用校准(刚落地)** — 多 deck 合并 intake(`<stem>` 前缀 + `decks[]` 合并索引)与 Stage 1 的材料发散度自由文字项均已上线(见上「2026-06」),接下来按真实使用信号校准:多份源 deck 同名(stem 冲突)的处理目前是后者覆盖前者,是否需要去重 / 加序号待信号;发散度的自由文字让 Strategist 判得准不准、放开写时「事实守源」边界守不守得住,待真实生成验证。两者都不预先加机械阈值- **插画能力(机制 + 部署层)的真实 deck 校准(刚落地)** — 切片管线、边缘质量收紧,以及决策层(风格倾向 / 贯穿母题 / 角色地图,见上「2026-06」)均已上线,接下来按真实使用信号校准:一次大图切多格的风格 / 色板一致性与 `--alpha` 软蒙版对格内不规则构图的鲁棒性、离线 readiness gate 的手动放图 + 重切体验、风格倾向是否翻对了该翻的风格、母题在真实 deck 上读成「设计系统」还是「过度装饰」、以及 source 边界(provided/web 不静默生成 AI)守得住否。不预先加机械阈值 / 配额;同尺寸瓷砖若真反复出现再考虑更窄的 lint- **创作预设上的原生投影——作为独立增强延后** — compact authored-preset `<g>` 是封闭的语义原子,当前只允许已登记的 preset metadata、基础 paint 和直接 registry path;`filter` / effect metadata 不在创作合同内。转换器可能在内部把该原子展开为既有 carrier/preview 传输结构,但那是实现细节,不是源 SVG 接口。PPTX 导入与 `mirror` 可以在另一套 expanded 无损表达中保留受支持的来源效果,但这不会放宽新创作合同。在形成精确的 preset-effect 合同并补齐 checker 覆盖前,需要阴影的库存形状保守留普通 SVG;是否扩展继续以真实需求为依据,不把它表述成现有能力- 其余:mode / visual-style 体系的验证与校准已收口(见上「2026-06」),结构(5 mode + 18 visual-style + custom)定型、四对近邻消歧并成一张 Close-calls 表、四项校准收紧已落地。后续方向由真实使用信号与反馈驱动;长期改进见下「持续维护方向」,已评估不做的见「明确不做」diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.mdindex f3cf0149..5f2f22e6 100644--- a/docs/zh/technical-design.md+++ b/docs/zh/technical-design.md@@ -141,7 +141,7 @@ PPT Master 不以“任意 SVG 都能转成 PPTX”为目标。`svg_output/` 使整个流程分为三个阶段:**第一阶段:内容理解与设计规划**-源文档(PDF/DOCX/XLSX/PPTX/URL/Markdown/主题文本)会被转换成 Strategist 所需的内容事实与分析事实。Strategist 角色分析材料、读取相关 `analysis/` artifact、规划页面结构,并确认视觉风格,最终输出完整设计规格。+源文档(PDF/DOCX/XLSX/PPTX/URL/Markdown/主题文本)会被转换成 Strategist 所需的内容事实与分析事实。Strategist 先确认开放式沟通契约,再由此推导完整 PPT 方案、解决生产机制,最终输出完整设计规格。**第二阶段:AI 视觉生成**Executor 角色逐页生成演示文稿的视觉内容,输出为 SVG 文件。这个阶段的产物是**设计稿**,而非成品。@@ -338,7 +338,7 @@ PPT Master 用的是**单主代理内的角色切换**,不是并行子代理**为什么是角色专属 reference 而不是一个超大 prompt。** Strategist 跑的是「跟用户协商」模式(开放式、对话式、可以回退),Executor 跑的是「产出严格 XML」模式(不准即兴、不准漏属性)。把两者塞进同一个 prompt,强迫模型在同一个 turn 里持守相互矛盾的纪律——所有混合模式的 prompt 工程病灶都会出现。按角色拆开,每个角色只加载它需要的、扔掉其他。-**策略师确认阶段是唯一的阻塞 gate。** Strategist 阶段以一个三阶段确认 gate 作为核心阻塞决策点:第一阶段确认方向锚点(画布、受众、改写幅度、交付目的、mode、visual style,以及 Step 3 加载 Deck/Layout 模板时出现的 `template_reuse_scope`;`template_adherence` 只在 `mirror` / `layout` 下出现);第二阶段基于已确认锚点重新推导并确认设计系统(页数、调色板、字体、图标、公式策略);第三阶段基于已确认设计系统重新推导并确认图片与执行方式(图片来源、生成图风格、AI 图片路径、生成模式、refine-spec)。复用范围默认推荐 `layout`;`style` 选择 flat 自由设计路线,structured 的 `mirror` / `layout` 默认推荐 `adaptive`,允许无匹配构图时在同一 Master 下创建新 Layout;`strict` 则保持所选 Layout 契约不变。最终的 `confirm_ui/result.json` 是权威输入。+**策略师确认阶段是唯一的阻塞 gate。** Strategist 阶段以一个按依赖排序的三阶段 gate 作为核心决策点。第一阶段确认开放式沟通契约与画布。其中的文本框承载可编辑推荐,但没有任何一项要求非空:确认时按当前文本原样保存,清空后的值保持为空,不会回退到推荐内容。第二阶段从契约推导并确认完整 PPT 方案:阅读模式、叙事 mode、页数、模板策略、成套视觉系统、图片来源和生成图渲染。第三阶段只处理生产机制:条件式 AI 图片获取路径、公式策略、生成模式与规范精修。JSON 为兼容保留 `delivery_purpose` 键,但用户侧统一称为阅读模式。生成图直接继承已选 PPT 色彩角色,不再单设图片调色选择。最终 `confirm_ui/result.json` 是权威输入;项目校验还会要求 `spec_lock.md ## communication` 下存在六个沟通契约键(任一文本值都允许留空),并要求 §IX 每个 Slide block 都有 `Audience move`。**图片分析走重算元数据,不读像素。** 当项目里存在图片时,Strategist 和 Executor 使用 `analyze_images.py` 的输出(`analysis/image_analysis.csv`),而不是直接打开图片文件。这个 CSV 是基于当前 `images/` 目录重算出来的视图,不是持久缓存。每次做图片敏感决策前重跑分析,就是它的防陈旧策略:用户图、抽取图、网络图、AI 图、公式图和切片图最终都会汇入同一张可度量事实表。@@ -362,8 +362,8 @@ PPT Master 用的是**单主代理内的角色切换**,不是并行子代理Strategist 阶段产出两份看起来冗余但服务不同对象的产物:-- `design_spec.md` —— 人类可读叙述;设计的「为什么」(目标受众、风格目标、配色理由、页面大纲)-- `spec_lock.md` —— 机器可读执行契约;Executor 必须**字面照搬**的「是什么」(HEX 颜色、确切的 font family 字符串、图标库选择、带状态的图片资源列表)+- `design_spec.md` —— 人类可读叙述;deck 的「为什么」(沟通意图、受众变化、叙事 / 模板 / 视觉理由、页面大纲)+- `spec_lock.md` —— 机器可读执行契约;包含紧凑沟通追踪,以及 Executor 必须**字面照搬**的精确值(HEX 颜色、字体栈、图标库、图片资源与结构映射)为什么两份都要?没有 `spec_lock.md` 的话,Executor 在长 deck 里会逐页重读 `design_spec.md`,LLM 上下文压缩漂移会逐渐扭曲色值和字体。`spec_lock.md` 是**抗漂移机制**——SKILL.md 强制要求生成每一页前 `read_file <project>/spec_lock.md`,让数值在 20+ 页里保持字面一致。@@ -391,7 +391,7 @@ Strategist 阶段产出两份看起来冗余但服务不同对象的产物:**开发期外部引用,下游分叉成预览与原生导出两套嵌入策略。** 在 `svg_output/` 里编辑时,图片是外部文件引用——快速迭代、单点替换。随后分成两种表达:`svg_final/` 走 Base64 内联,产出一组不依赖外部位图文件的自包含 SVG,供 IDE、浏览器和手工插入为 SVG 图片;native PPTX 则把位图复制进 PPTX 的 media 文件夹,用 `<a:srcRect>` 表达裁剪。分叉的理由是职责不同:前者服务视觉预览,后者服务项目转换器生成的可编辑 DrawingML。`svg_final/` 不作为 PowerPoint 手工“转换为形状”的兼容源。-**AI 图片三维系统:Strategist 阶段就锁定。** 当 deck 包含 AI 生成图片时,Strategist 在前置阶段一次性确定三个正交维度——`rendering`(视觉风格家族:vector-illustration / editorial / 3d-isometric / sketch-notes / ……)、`palette`(deck 的 HEX 在图里**怎么用**:比例 + 角色 + 气质)、`type`(每张图的内部构图:background / hero / framework / comparison / ……)。前两个是 deck 级、写进 `spec_lock.md`;Image_Generator 此后每张图的 prompt 都从同一份锁定的 rendering + palette 加上该图的 type 组装出来,而不是逐图重决风格。没有这层锁定,每张图都会自己风格漂移,整套 deck 读起来就是一摞互不相关的插画。这是 `spec_lock` 字体/色彩抗漂移机制在像素上游的对偶——同一思路,往前推一层。Strategist 在策略师确认阶段会向用户呈现 **≥3 个 `rendering × palette` 候选**,绝不静默地自动锁定单一组合,因为这是一个会牵动全 deck 视觉的选择,唯一权威只有用户的品味。+**一份渲染锁、直接继承 PPT 色彩、逐图确定构图。** 当 deck 包含 AI 生成图片时,Stage 2 会在每套成套设计方向中确认 deck 级 `rendering`。图片颜色不再形成第二次决策:Image_Generator 直接读取 `spec_lock.md colors` 已锁定的普通 PPT 色彩角色,再把统一渲染、统一色彩真相与每项资源按用途推导的 `type` 或 hero-page 构图组合起来。这样既能保持风格与色彩一致,也不会让用户重复确认同一套颜色。若某种渲染的材质语言无法由已选 PPT 色彩角色支撑,就不应成为候选;一旦确认,它可以改变纹理、光照与颜色占比,但不得替换、调暖、调冷或另造 HEX。---diff --git a/docs/zh/templates-architecture.md b/docs/zh/templates-architecture.mdindex d05897f3..36bc1ae3 100644--- a/docs/zh/templates-architecture.md+++ b/docs/zh/templates-architecture.md@@ -332,9 +332,9 @@ AI: 你给了两个 brand,检测到段级冲突:位图统一进入工作区 `images/`,模板 SVG 通过 `../images/` 引用。如果显式输入根目录本来就是目标项目根目录,Step 3 原地消费:不得复制到自身,也不得再次移动素材。除此之外,完整核心工作区是可移植的:可以从项目根复制到全局库根、从全局库复制到项目,或从另一个工作区直接复用,而不改变内部结构。注册是唯一与范围相关的步骤。-### 策略师确认阶段在不同 kind 下的收窄+### 策略师确认阶段在不同 kind 下的行为-Deck 路径下用户已经拿到完整方案,策略师确认阶段收窄到"目标受众 / 页数 / 大纲 / 调性微调"等 deck 内容相关字段;其他字段直接从锁定值复用。具体收窄规则落在 `references/strategist.md` 与 `spec_lock_reference.md`。+安装模板不会让沟通问题消失。Stage 1 始终确认同一份开放式沟通契约。Brand 提供身份约束、结构仍然自由;Layout 与 Deck 提供可用的结构能力,但 Stage 2 仍要根据场景判断,在合法范围内选择 `mirror`、`layout` 或 `style`。因此,按 mirror 创建的工作区只是允许原样复用,不会自动选中原样复用。Stage 3 再用该消费范围实际保留的身份与结构实现已确认方向。具体规则落在 `references/strategist.md` 与 `spec_lock_reference.md`。---diff --git a/docs/zh/templates-guide.md b/docs/zh/templates-guide.mdindex 83a2f8f5..aa73d554 100644--- a/docs/zh/templates-guide.md+++ b/docs/zh/templates-guide.md@@ -219,7 +219,7 @@ python3 skills/ppt-master/scripts/mirror_template_materialize.py \**Mirror 图谱边界**:mirror 保留完整且受支持的来源 Master/Layout 图谱。它为每张来源 Slide 输出一个完整原型,并为未被任何来源 Slide 使用的 Layout 额外输出一个定义专用的 `layout_<layout_key>.svg`。后者通过独立 Layout roster 注册进 PowerPoint,不会变成发布页面;其父 Master 也随之保留。预检只在必要来源事实或受支持几何缺失时停止,不会仅因 Layout 未使用而停止。-**`mirror` 模板怎么消费**:Strategist 为每个项目页选择一张 mirror 参考,Executor 复制完整 SVG 并原位修改可见文字,同时保留装饰、精灵图裁剪、几何坐标和全部 `data-pptx-*` 结构声明。+**按 mirror 创建的工作区怎么消费**:从来源到工作区的 `replication_mode: mirror` 是能力,不是项目选择。开放式沟通契约确认后,Stage 2 只在“重复制作已知固定成果、且新内容适配现有页面角色与文字拓扑”时推荐 `mirror`;结构应延续但内容需要重排时用 `layout`;只需身份语言或论证必须换结构时用 `style`。确认 `mirror` 后,Strategist 为每个项目页选择一张原型,Executor 复制完整 SVG,只修改允许变更的可见文字,同时保留装饰、精灵图裁剪、几何坐标和规范化结构声明;这仍不要求沿用来源页数或页序。Mirror 保留受支持的画面外观,不承诺保留来源 PPTX 的分组编辑层级。### 第四步:验证、预览导出、注册与发现diff --git a/docs/zh/what-is-ppt.md b/docs/zh/what-is-ppt.mdindex 4d34953e..acd4a3f5 100644--- a/docs/zh/what-is-ppt.md+++ b/docs/zh/what-is-ppt.md@@ -62,7 +62,7 @@ Microsoft 将 PowerPoint 描述为一种可以从空白或模板创建演示、| 动员 | 人们从意识到问题转向采取行动 || 留档与交接 | 组织获得可审批、可审计、可复用的正式成果 |-一份 deck 可以同时承担多种任务,但仍然需要一个主要任务。例如,“进展汇报”表面上是在告知,真正目的可能是获得决策、暴露风险或明确责任。+一份 deck 可以同时承担多种任务。真正需要澄清的不是“哪一个标签胜出”,而是这些任务之间的关系:是否存在主导结果、它们如何互相支撑,以及按什么顺序发生。例如,一次“进展汇报”可以在同一条沟通链中汇报进展、暴露风险并请求决策。组织沟通研究把提案、会议、报告等反复出现的形式视为组织针对反复出现的场景和目的形成的社会惯例。这个视角对 PPT 很重要:deck 不是中性容器,而是组织沟通实践的一部分。参见 Yates 和 Orlikowski 的 [《组织沟通类型》](https://doi.org/10.5465/amr.1992.4279545)。diff --git a/skills/ppt-master/SKILL.md b/skills/ppt-master/SKILL.mdindex a831259d..f9d5f221 100644--- a/skills/ppt-master/SKILL.md+++ b/skills/ppt-master/SKILL.md@@ -38,7 +38,7 @@ description: >> 5. **NO SPECULATIVE EXECUTION** — "Pre-preparing" content for subsequent Steps is FORBIDDEN (e.g., writing SVG code during the Strategist phase)> 6. **NO SUB-AGENT SVG GENERATION** — Executor Step 6 SVG generation is context-dependent and MUST be completed by the current main agent end-to-end. Delegating page SVG generation to sub-agents is FORBIDDEN> 7. **SEQUENTIAL PAGE GENERATION ONLY** — In Executor Step 6, after the global design context is confirmed, SVG pages MUST be generated sequentially page by page in one continuous pass. Grouped page batches (for example, 5 pages at a time) are FORBIDDEN-> 8. **SPEC_LOCK RE-READ PER PAGE** — Before generating each SVG page, Executor MUST `read_file <project_path>/spec_lock.md`. All colors / fonts / icons / images MUST come from this file — no values from memory or invented on the fly. Executor MUST also read `pptx_structure.mode`, `template_reuse_scope`, the current page's `page_rhythm` (`anchor` / `dense` / `breathing`), and `page_charts`. `template_reuse_scope: mirror|layout` uses `mode: structured` and looks up `page_layouts` (the input template SVG), `page_pptx_layouts` (the page assignment), `pptx_masters`, `pptx_layouts` (the unique reusable roster), and `template_adherence`; `template_reuse_scope: style`, free-design, and brand-only routes use `mode: flat` and omit those sections. This rule exists to resist context-compression drift on long decks and to break the uniform "every page is a card grid" default+> 8. **SPEC_LOCK RE-READ PER PAGE** — Before generating each SVG page, Executor MUST `read_file <project_path>/spec_lock.md`. Re-read the global `communication` contract and use only the locked colors / fonts / icons / images — no values from memory or invented on the fly. Executor MUST also read `pptx_structure.mode`, `template_reuse_scope`, the current page's `page_rhythm` (`anchor` / `dense` / `breathing`), and `page_charts`; pair the global contract with the current §IX `Core message` + `Audience move`. `template_reuse_scope: mirror|layout` uses `mode: structured` and looks up `page_layouts` (the input template SVG), `page_pptx_layouts` (the page assignment), `pptx_masters`, `pptx_layouts` (the unique reusable roster), and `template_adherence`; `template_reuse_scope: style`, free-design, and brand-only routes use `mode: flat` and omit those sections. This rule exists to resist both purpose drift and visual drift on long decks> 9. **SVG MUST BE HAND-WRITTEN, NOT SCRIPT-GENERATED** — Every SVG page is written by the main agent directly, one page at a time (see rules 6 and 7). Writing or running a Python / Node / shell script that produces the SVG files in batch — looping over pages, templating from data, or emitting them via a generator — is FORBIDDEN, including under "save tokens", "quick draft", or "user is in a hurry" pretexts. The script-generation path was tried on a feature branch and abandoned: cross-page visual consistency depends on per-page authoring with full upstream context, which a generator script cannot reproduce. **Narrow exception**: `preset_shape_svg.py` may print one deterministic stock-shape fragment to stdout after the main agent has selected its semantic role, frame, and paint. It cannot write `svg_output/`, choose layout, batch shapes, or generate a page; the main agent reads the fragment and inserts it through the normal hand-authored page edit> 10. **FOLLOW DETERMINISTIC ROUTING RULES** — Do not add blocking routing questions when this skill defines a route. If the user request violates a route precondition, state the required prerequisite and stop that route instead of asking the user to choose around the rule. Ordinary finite options, stylistic preferences, and recoverable details are surfaced with a recommended value plus alternatives at the next existing confirmation gate.@@ -307,9 +307,9 @@ Summary:| User path's `kind` | Step 3 action ||---|---|-| `kind: brand` | Install `templates/` plus any existing `images/` and `icons/` into the matching project roots; ignore `exports/`. Strategist locks identity; structure stays free. |-| `kind: layout` | Install `templates/` plus any existing `images/` and `icons/` into the matching project roots; ignore `exports/`. Strategist locks structure; identity is decided in confirmation fields e–g. |-| `kind: deck` | Install `templates/` plus any existing `images/` and `icons/` into the matching project roots; ignore `exports/`. Strategist locks all segments; confirmation narrows to deck-content fields. |+| `kind: brand` | Install `templates/` plus any existing `images/` and `icons/` into the matching project roots; ignore `exports/`. Identity is constrained by the brand; structure stays free. |+| `kind: layout` | Install `templates/` plus any existing `images/` and `icons/` into the matching project roots; ignore `exports/`. The workspace exposes reusable structure; Stage 2 decides from scenario fit whether to consume it as `mirror` / `layout` / `style` where legal, then confirms the complete visual system. |+| `kind: deck` | Install `templates/` plus any existing `images/` and `icons/` into the matching project roots; ignore `exports/`. The workspace exposes both identity and structure; Stage 2 still decides the legal reuse scope from the confirmed communication contract. |Normalize every explicit path before any write:@@ -410,44 +410,46 @@ Read references/strategist.md**Strategist confirmation stage** (full template: `templates/design_spec_reference.md`):-⛔ **BLOCKING**: present the Strategist confirmation stage and **wait for explicit user confirmation or modification** before outputting Design Specification & Content Outline. This is the single core confirmation gate — once the final confirmation lands, all subsequent steps proceed automatically. The default Confirm UI delivers the gate in **three stages** (direction → design system → images / execution; see below); the chat fallback mirrors the same staged order.+⛔ **BLOCKING**: present the Strategist confirmation stage and **wait for explicit user confirmation or modification** before outputting Design Specification & Content Outline. This is the single core confirmation gate — once the final confirmation lands, all subsequent steps proceed automatically. The default Confirm UI delivers the gate in **three stages** (communication contract → complete deck solution → resources / production; see below); the chat fallback mirrors the same staged order.-1. Canvas format-2. Page count range-3. Target audience-4. Style objective-5. Template reuse scope — `mirror` / `layout` / `style`; then template adherence — `strict` / `adaptive` only for `mirror` / `layout` (deck/layout templates only)-6. Color scheme-7. Icon usage approach-8. Typography plan, including formula rendering policy-9. Image usage approach+1. Communication contract — target audience; open-ended `communication_intent` (one or several purposes, with priority / sequence when useful); desired `audience_outcome`; `core_message` / decision ask / action; delivery context; artifact afterlife+2. Source-treatment intent — open-ended `content_divergence`; facts remain sourced at every level+3. Canvas format+4. Complete deck solution — reading mode (JSON compatibility key `delivery_purpose`); narrative mode; page count; visual / template direction; color; icons; typography; image sources and generated-image rendering+5. Production plan — conditional AI-image acquisition path; formula rendering policy; execution mode; optional spec-refinement toggle-**Confirm UI Auto-Launch (Mandatory — default visual confirmation surface)**: by default the Strategist confirmation stage is presented through an interactive local page in **three stages within one browser session** — Stage 1 confirms the direction anchors; the AI then re-derives the design-system layer from the **user's actual** anchors; Stage 2 confirms that layer; the AI then re-derives image and execution choices from the confirmed direction + design system; Stage 3 confirms the final operational layer. Color swatches, live font previews, icon samples, image-style reference previews, and candidate picks appear where they help judgment; the chat path is the always-valid fallback. [`scripts/docs/confirm_ui.md`](scripts/docs/confirm_ui.md) owns the schema, server lifecycle, port strategy, and fallback details; this section keeps the orchestration contract. The split:+**Confirm UI Auto-Launch (Mandatory — default visual confirmation surface)**: by default the Strategist confirmation stage is presented through an interactive local page in **three stages within one browser session**. Stage 1 confirms the scene and communication contract before asking the user to select tools. The AI then derives Stage 2's **complete deck solution** from the user's actual contract: argument structure, reading density, template use, visual system, and image direction are judged together. After Stage 2 is confirmed, Stage 3 asks only how to produce the already-decided solution. Color swatches, live font previews, icon samples, rendering references, and coordinated direction candidates appear where they help judgment; the chat path is the always-valid fallback. [`scripts/docs/confirm_ui.md`](scripts/docs/confirm_ui.md) owns the schema, server lifecycle, port strategy, and fallback details; this section keeps the orchestration contract. The split:| Stage | Confirms | Driven by ||---|---|---|-| **1 — direction anchors** | canvas · audience + core message + `content_divergence` + `delivery_purpose` *(PPT only — omitted on non-PPT canvases)* (all §c key info) · `mode` + `visual_style` · `template_reuse_scope`, then `template_adherence` for `mirror` / `layout` *(only when Step 3 loaded a deck/layout template)* | the source + user intent |-| **2 — design system** (re-derived from Stage 1) | page count · color · typography (font + size) · icons · formula policy | the confirmed Stage 1 |-| **3 — images / execution** (re-derived from Stage 1 + Stage 2) | image usage · generated-image style · AI-image generation path · generation mode · refine-spec toggle | the confirmed direction + design system |+| **1 — communication contract** | audience · open-ended `communication_intent` (may combine several purposes) · `audience_outcome` · `core_message` / delivery context / artifact afterlife · `content_divergence` (all prose fields may be blank) · canvas | the source + user intent |+| **2 — complete deck solution** (re-derived from Stage 1) | reading mode (`delivery_purpose`, PPT only) · narrative `mode` · page count · `visual_style` · conditional template reuse / adherence · color · typography · icons · image usage · generated-image rendering | the confirmed communication contract |+| **3 — resources / production** (re-derived from Stage 1 + Stage 2) | conditional AI-image acquisition path · formula policy · generation mode · refine-spec toggle | the confirmed solution |-> **Why three stages.** Design-system fields are anchored by the same few choices (`visual_style` anchors color / icon / typography; `delivery_purpose` sets the body size, page density, **and** the page-count recommendation). Image strategy depends on both the confirmed visual direction and the confirmed color system — its palette is color behavior only, while final HEX values follow Stage 2. Confirming direction first, then design system, then image / execution choices means each downstream stage fits the user's *real* choices instead of the AI's original assumptions. Page count is a **derived** field (content volume × `delivery_purpose`), which is why it lives in Stage 2, not up front.+> **Why three stages.** A presentation may serve several purposes at once (for example, report progress, expose risk, and request a decision), so Stage 1 uses open prose rather than a purpose enum. Every editable Stage-1 prose field is non-blocking: the user may retain, revise, or clear the recommendation, and confirmation makes the field's current value authoritative, including an empty string. Blank means no explicit user constraint; derive downstream defaults from the source and request without writing the old recommendation back into `result.json`. Stage 2 chooses tools only after that contract is known and keeps mutually dependent choices together: `mode` is the argument strategy, template reuse is the inheritance strategy, reading mode sets density, and the visual / image fields form one deck system. `delivery_purpose` remains the compatibility key for **reading mode**, not communication purpose. Page count is derived from content volume × audience outcome × reading mode. Generated images inherit the chosen deck color roles directly; the user confirms rendering, not a second image palette. Stage 3 therefore contains production mechanics only, never another aesthetic decision.Steps:> ⛔ **Steps 2 → 3 → 4 are ONE uninterrupted run — do NOT yield to the user mid-flow.** When an intermediate `--wait` returns, the AI **immediately and autonomously** re-derives and writes the next stage in the **same turn**: do **not** summarize, ask a question, report progress, or end the turn in between. The browser is sitting on a "deriving…" spinner polling for the next stage you must write — stopping here strands the page and the user must prod you in chat to finish (a bug, not the intended flow). **Stage-1 and Stage-2 confirmations are intermediate machine handoffs, not stopping points.** The single ⛔ BLOCKING wait is the **final** confirmation at the end of step 4. (Chat-fallback path — only when the page never opened — is the exception: there you do present each stage in chat and wait for a reply.)-1. **Write Stage 1** to `<project_path>/confirm_ui/recommendations.json` with `"stage": "stage1"` and only the anchor fields. New recommendations MUST use the canonical `stage` selector. Enumerable anchors (`canvas` / `mode` / `visual_style` / `delivery_purpose`) name a recommended canonical `id` in a `recommend` block (the page lists common options from `confirm_ui/static/catalogs.json`); `visual_style` also carries the ≥3-style `visual_style_spectrum` (safe / shifted / bold — same hard rule as h.5). When Step 3 loaded a deck/layout template, set `recommend.template_reuse_scope` to `mirror`, `layout`, or `style`; `mirror` is valid only when the installed workspace declares `replication_mode: mirror`. Set `recommend.template_adherence` to `strict` or `adaptive` only when the reuse scope is `mirror` or `layout`; `style` hides adherence and later writes `pptx_structure.mode: flat`. Omit both fields entirely for free design and brand-only templates. `audience` and `content_divergence` are plain `{ "value": "<free text>" }`. `content_divergence` is the **free-text** field shown under audience in §c — how closely to follow the source vs how freely to reshape it (blank = balanced; facts stay sourced at every level); it is consumed by Strategist when authoring `§IX`, recorded in `design_spec.md §I`, carries no page-count coupling, and is **not** written to `spec_lock.md`. Set `lang` to the page language (`zh` / `en` / `ja`); visible text matches `lang`, or provide multilingual `name_zh` / `name_en` / `name_ja` + `note_zh` / `note_en` / `note_ja` — when the user's language is Japanese, set `lang: "ja"` and always include the `_ja` variants (labels resolve in the page language first — a `ja` page falls back ja → en → zh, so missing `_ja` labels silently render in English; zh/en pages keep their zh↔en fallback and only try `_ja` last).+1. **Write Stage 1** to `<project_path>/confirm_ui/recommendations.json` with `"stage": "stage1"` and only the communication-contract fields. New recommendations MUST use the canonical `stage` selector. Put only the recommended `canvas` id in `recommend`. Write `audience`, `communication_intent`, `audience_outcome`, `core_message`, `delivery_context`, `artifact_afterlife`, and `content_divergence` as `{ "value": "<free text>" }`. Seed concrete editable recommendations where the source and request support them; all seven prose values may be blank and none blocks confirmation. The submitted current value is the sole truth: preserve a user-cleared field as `""` through every later stage and the final `result.json`; never restore the earlier recommendation. `communication_intent` is deliberately open prose: it may combine several purposes and state their priority or sequence; the nine common paths are prompt examples only and MUST NOT become a checkbox / enum. `content_divergence` asks how closely to follow the source vs how freely to reshape it (blank = balanced; facts stay sourced at every level); it is consumed while authoring `§IX`, recorded in `design_spec.md §I`, and is not written to `spec_lock.md`. A profile may make this field read-only with `{ "value": "...", "locked": true }`; Beautify uses that contract and is the only exception to user editing. Do **not** include reading mode, `mode`, `visual_style`, page count, template, color, typography, icon, or image fields in Stage 1. Set `lang` to the page language (`zh` / `en` / `ja`); visible text matches `lang`, or provide multilingual name / note variants as documented by the Confirm UI.2. **Launch + wait for Stage 1.** Background launch; the parent returns when the page writes the stage-1 `result.json`. **Long tool timeout — 600000 ms** (the `--wait` ≈590 s budget):```bashpython3 ${SKILL_DIR}/scripts/confirm_ui/server.py <project_path> --daemon --wait```Page opens at the launch-log URL such as `http://127.0.0.1:5050` — the **same port as the Step 6 live preview** (they never run at once: this page shuts down at the end of Step 4). If 5050 is held, the launcher **auto-advances** (5051, …) — read the actual URL from the launch log and report it. The page does **not** close after Stage 1: it shows a "deriving…" state and polls for Stage 2. **Launch or wait failure is non-fatal**: if it fails or times out (flask missing, port blocked, no GUI / remote / web host), do **NOT** troubleshoot — **on any non-zero exit, re-check `result.json` once** for a fresh `status: stage1-confirmed` before dropping to the chat fallback. **On success (exit 0 with a stage-1 result), do not pause or report — go straight to step 3 in the same turn.**-3. **Re-derive Stage 2 from the confirmed anchors, write it, then wait for the design-system handoff — immediately, same turn (the page is polling for it).** Read the stage-1 `result.json` (`status: stage1-confirmed`). Using the user's **actual** confirmed anchors (not your originals), author the design-system candidates and **overwrite** `recommendations.json` with `"stage": "stage2"`: page count (content volume × `delivery_purpose`); color and typography as **generative ≥3-candidate** fields (creative recommendations always offer real choice; fewer than 3 only on the honest-shortfall exception, with a stated reason; color: core `palette` with background/secondary_bg/primary/accent/secondary_accent/body_text; typography: CJK + Latin for `heading` and `body` with `css` preview stacks + `body_size` as the body baseline in **px** (every canvas) — **one fixed value per confirmed `delivery_purpose`** (`text` 20 / `balanced` 24 / `presentation` 32), not a range; each typography candidate must include topic-matched `sample_heading` / `sample_heading_latin` / `sample_body` / `sample_body_latin` preview text, never a fixed unrelated industry sample); enumerable `icons` / `formula_policy` (recommended `id`). **Stage 2 is never skipped** — an active deck/layout template (`strict` adherence included) does not exempt it: the template skin becomes the recommended color / typography candidate and real alternatives fill the remaining cards. Never jump `recommendations.json` from `stage1` to `stage3`: the server refuses to render a skipped stage (the page stays on "deriving…") and the waits exit non-zero until the stages are written in order. The still-open page polls, renders Stage 2, and preserves the user's Stage 1 picks. Then attach to the already-running page; if Windows cleaned up the server, `--wait-only` auto-recovers it on the recorded/default port so the browser reconnects:+3. **Re-derive Stage 2 from the confirmed communication contract, write it, then wait for the solution handoff — immediately, same turn (the page is polling for it).** Read the stage-1 `result.json` (`status: stage1-confirmed`). Using the user's **actual** contract (not your originals), **overwrite** `recommendations.json` with `"stage": "stage2"` and author the complete deck solution:+ - Recommend PPT-only reading mode through the compatibility key `recommend.delivery_purpose` (`text` / `balanced` / `presentation`), one narrative `mode`, and page count from source volume × desired audience outcome × reading mode.+ - When Step 3 loaded a deck/layout template, recommend `template_reuse_scope` now: `mirror`, `layout`, or `style`; `mirror` is legal only for `replication_mode: mirror`. Include `template_adherence: strict|adaptive` only for `mirror|layout`; `style` hides it and later writes `pptx_structure.mode: flat`. Select from scenario fit: literal recurring artifact → consider `mirror`; reusable structure with new content → `layout`; identity only or a contract that needs a different structure → `style`. Omit both fields for free design and brand-only templates.+ - Author `design_directions` with ≥3 coordinated candidates (safe / shifted / bold; honest-shortfall exception unchanged). Each candidate carries one compatible `visual_style`, color object, typography object, icon id, and—when `image_usage` includes `ai`—one generated-image **rendering** object. The page applies a candidate as one coherent starting point and then exposes the component fields for deliberate override. Do not generate Cartesian combinations or random mix-and-match defaults.+ - Color candidates carry background / secondary_bg / primary / accent / secondary_accent / body_text. Typography splits CJK + Latin for heading/body, includes topic-matched sample text, and uses one fixed body baseline per reading mode (`text` 20 / `balanced` 24 / `presentation` 32 on PPT). Recommend one or more `image_usage` source ids (`["ai"]`, `["ai","provided"]`, `["web","placeholder"]`, or `["none"]`; `none` is exclusive) and keep mixed-source / page-role guidance in `image_notes`. When AI is included, each direction's `image_strategy` contains rendering / visual / mood only; **never offer or submit a separate image palette**. Image HEX and role behavior come directly from that direction's deck color object. Spot-illustration lean remains rationale, not a field.++ **Stage 2 is never skipped** — an installed template is an input to the decision, not a substitute for deciding how it serves the contract. Never jump `recommendations.json` from `stage1` to `stage3`: the server refuses to render a skipped stage. The still-open page polls, renders Stage 2, and preserves Stage 1. Then attach to the already-running page; if Windows cleaned up the server, `--wait-only` auto-recovers it on the recorded/default port so the browser reconnects:```bashpython3 ${SKILL_DIR}/scripts/confirm_ui/server.py <project_path> --wait-only --wait-stage stage2```This returns when the page writes the stage-2 `result.json` (`status: stage2-confirmed`). On a non-zero exit, re-check `result.json` once before falling back to chat — except a `stage skip detected` error, which is not a page failure: you wrote a stage out of order; rewrite `recommendations.json` with the stage the error names and re-attach.-4. **Re-derive Stage 3 from the confirmed anchors + design system, then wait for the final confirmation.** Read the stage-2 `result.json`. Author the image and execution recommendations and **overwrite** `recommendations.json` with `"stage": "stage3"`: `image_usage` as one or more source ids (`["ai"]`, `["ai","provided"]`, `["web","placeholder"]`, or `["none"]`; `none` is exclusive); `image_strategy.candidates` as **exactly three non-custom** rendering × palette recommendations from h.5 when `image_usage` includes `ai` (the page adds the fourth Custom card itself); enumerable `image_ai_path` / `generation_mode` and `refine_spec` (recommended `id` / boolean). If the recommendation involves several image sources, keep the source list structured in `recommend.image_usage` and write the usage rationale / page-role guidance into `image_notes` (for example, "封面和章节页用 AI 主视觉,产品页优先用户素材,行业背景页可用网络参考"). Write `image_ai_path` only when `image_usage` includes `ai`. Spot-illustration lean is **not** a candidate field here: it derives from the locked `visual_style`'s illustration propensity and is expressed only in the recommendation rationale / `image_notes`, never as a new confirmation field. Generated-image style palettes are **color behavior only**; final image colors follow the confirmed Stage-2 `color`. Custom image-strategy dimensions are handled by the built-in Custom card, are prose-only, and should not promise a gallery reference image. Then attach to the already-running page; `--wait-only` auto-recovers a dead server as above (same 600000 ms budget):+4. **Re-derive Stage 3 from the confirmed solution, then wait for the final confirmation.** Read the stage-2 `result.json`. **Do not reopen aesthetic choices.** Overwrite `recommendations.json` with `"stage": "stage3"` and recommend only production mechanics: enumerable `formula_policy`; conditional `image_ai_path` when confirmed `image_usage` includes `ai`; `generation_mode`; and `refine_spec`. The page shows the confirmed image-source summary as read-only context. Then attach to the already-running page; `--wait-only` auto-recovers a dead server as above (same 600000 ms budget):```bashpython3 ${SKILL_DIR}/scripts/confirm_ui/server.py <project_path> --wait-only```@@ -458,7 +460,7 @@ Steps:```**Idempotent and required regardless of whether Confirm was clicked**: clicking the final Confirm already shuts the page down (then a no-op); the chat-fallback path leaves it running. Run it after reading the confirmation, before Step 5.-**Always also print each stage's recommendations + URL in chat** as the always-valid fallback. **The chat fallback is staged too**: if the page never opens or a wait times out with no fresh result, present Stage 1 in chat → get confirmation → re-derive → present Stage 2 → get confirmation → re-derive → present Stage 3 → get confirmation → take those values. Either path converges.+**Always also print each stage's recommendations + URL in chat** as the always-valid fallback. **The chat fallback is staged too**: if the page never opens or a wait times out with no fresh result, present Stage 1 as open communication questions (the common purposes are examples, never a numbered pick-list) → get confirmation → derive and present Stage 2 → get confirmation → derive and present Stage 3 → get confirmation → take those values. Either path converges.**Honoring the confirmation (result.json is authoritative — Mandatory)**: the confirmed values **override your own recommendations** when you write `design_spec.md` / `spec_lock.md`. A user who changed any field changed it on purpose. In particular, map `image_usage` to §VIII `Acquire Via` (its value names differ from §h options — translate). `image_usage` may be either a legacy single string or a Confirm UI multi-select array; for arrays, apply every selected source. `image_notes`, when present, is a user-authored image intent note that Strategist must honor while assigning per-page §VIII rows:@@ -466,7 +468,7 @@ For a confirmed template route, map `template_reuse_scope` mechanically: `style`| `result.json.image_usage` | §VIII `Acquire Via` | h.5 + Step 5 generation ||---|---|---|-| `ai` | `ai` rows | Run h.5 (lock rendering + palette); Step 5 generates |+| `ai` | `ai` rows | Run h.5 (lock rendering; inherit deck colors); Step 5 generates || `web` | `web` rows | None || `provided` | **`user`** rows | None — never generate || `placeholder` | `placeholder` rows | None |@@ -477,15 +479,17 @@ When the confirmed `image_usage` does not include `ai` (and no legacy custom pro**Small spot illustrations are a Strategist judgment, not a confirmation field.** The user chooses image *source* through `image_usage`; whether the deck leans into decorative illustrations is anchored by the locked `visual_style`'s **illustration propensity** (`core` / `supportive` / `sparse`), expressed only in the `image_notes` rationale — never a new confirmation control. An explicit user request to use or skip illustrations overrides that default either way; `image_usage: none` still wins (write no illustration rows); and source still comes from `image_usage` — a `core` style does not silently generate AI spots when the user did not pick AI. They are ordinary §VIII image rows (`Type: Illustration` / `Illustration Sheet`) using normal `Acquire Via` values. If the plan needs ≥3 same-family AI spot illustrations, use the `ai` Illustration Sheet + `slice` workflow by default; do not generate one AI image per spot. Full rule + precedence: [`references/strategist.md`](references/strategist.md) §h. Use them on suitable pages and omit them where they would weaken clarity.-**Upstream override → re-derive untouched downstream (Mandatory — chat-fallback / single-pass path).** On the **three-stage page path this is already handled** (Step 3 re-derives Stage 2 from the user's actual anchors; Step 4 re-derives Stage 3 from the confirmed anchors + design system). It still applies whenever anchors and downstream fields are confirmed **together** — the staged chat fallback collapsed into one bundle, or a legacy single-pass `result.json`. "Confirmed value wins" governs each field's *own* value — never recompute a value the user set (a size, canvas, or palette they edited stays verbatim). But a single-pass `result.json` can carry a changed **anchor** beside downstream fields still holding your original — now incoherent — recommendation (e.g. switched to `dark-tech` while the light palette you proposed is untouched). Before writing the spec, reconcile: when the user changed an anchor, re-derive the downstream fields the user did **not** themselves edit so they realize the new anchor; fields the user pinned stay as confirmed.+**Upstream override → re-derive untouched downstream (Mandatory).** The staged page normally handles this by deriving Stage 2 from the confirmed contract and Stage 3 from the confirmed solution. Re-derivation is still required when mutually dependent Stage-2 fields are changed in the same pass (including an advanced override after applying a direction bundle), a collapsed chat bundle, or a legacy single-pass `result.json`. "Confirmed value wins" governs each field's own value — never recompute a value the user set. Re-derive only untouched dependent fields that still carry the old recommendation.| Anchor the user changed | Re-derive (only the downstream fields the user left at your recommendation) ||---|---|+| `communication_intent` / `audience_outcome` / `core_message` | narrative mode, page-count rationale, template fit, outline obligations, visual / image tone |+| `delivery_context` / `artifact_afterlife` | reading mode recommendation, standalone completeness, notes / citation depth, hand-off structure || `visual_style` (§d Layer 2 — anchors e–h) | color neutral tiers (§e), icon library / stroke (§f), typography character (§g), image rendering (§h.5) || `mode` (§d Layer 1) | outline structure + register (§IX) |-| `delivery_purpose` (§g) | body baseline + per-page density / rhythm (§6.1) |-| `audience` / core message (§c) | tone across e–h, outline emphasis (§IX) |-| `color` HEX (§e) | h.5 palette (re-filter for the new HEX) |+| `delivery_purpose` compatibility key (reading mode, §g) | body baseline + per-page density / rhythm (§6.1) |+| `audience` (§c) | tone across e–h, evidence depth, outline emphasis (§IX) |+| `color` HEX (§e) | AI prompt color-role instructions (use the new deck colors directly; never restore an image-palette choice) |Reconcile **without a new blocking wait** — fold the coherent values into `design_spec.md` / `spec_lock.md` and state the adjustment in the §8 next-step handoff (e.g. "you switched to `dark-tech`; the light palette you had left no longer fit, so background / accent were re-derived — tell me if you wanted the original"). Canvas is the explicit exception: font sizes are deliberately **not** rescaled on a canvas change (see strategist §g).@@ -535,7 +539,7 @@ python3 ${SKILL_DIR}/scripts/analyze_images.py <project_path>/images**Output**:- `<project_path>/design_spec.md` — human-readable design narrative-- `<project_path>/spec_lock.md` — machine-readable execution contract (skeleton: `templates/spec_lock_reference.md`); Executor re-reads before every page+- `<project_path>/spec_lock.md` — machine-readable communication + execution contract (skeleton: `templates/spec_lock_reference.md`); Executor re-reads before every page**✅ Checkpoint — Phase deliverables complete, auto-proceed to next step**:```markdown@@ -546,6 +550,7 @@ python3 ${SKILL_DIR}/scripts/analyze_images.py <project_path>/images- [x] Spec-refinement opt-in line appended (default OFF; only the user's explicit request enters the refine-spec stage)- [x] Design Specification & Content Outline generated- [x] Execution lock (spec_lock.md) generated+- [x] Communication trace validated: `spec_lock.md ## communication` contains all six contract key lines (optional values may be blank), and every `design_spec.md §IX` Slide block has an `Audience move`- [ ] **Next**: Auto-proceed to [Image_Generator / Executor] phase```@@ -650,7 +655,7 @@ python3 ${SKILL_DIR}/scripts/svg_editor/server.py <project_path> --live --daemon> Image facts: trust the `analysis/image_analysis.csv` regenerated at the end of Step 5. If `images/` changed since (the user swapped or added files), re-run `python3 ${SKILL_DIR}/scripts/analyze_images.py <project_path>/images` before laying images out — facts are re-derived on use, never a stale store (Step 4 image-facts note).-**Per-page spec_lock re-read (Mandatory)**: before **each** SVG page, `read_file <project_path>/spec_lock.md` and use only its colors / fonts / icons / images, plus `pptx_structure.mode`, `template_reuse_scope`, and the per-page `page_rhythm` / `page_charts` lookups. Read `page_layouts` / `page_pptx_layouts` / `pptx_masters` / `pptx_layouts` only on a structured `template_reuse_scope: mirror|layout` route; they are absent in flat `style`, free-design, and brand-only projects. Resists context-compression drift on long decks. See executor-base.md §2.1.+**Per-page spec_lock re-read (Mandatory)**: before **each** SVG page, `read_file <project_path>/spec_lock.md`; check the global `communication` contract against the current §IX `Core message` + `Audience move`, and use only the lock's colors / fonts / icons / images, plus `pptx_structure.mode`, `template_reuse_scope`, and the per-page `page_rhythm` / `page_charts` lookups. Read `page_layouts` / `page_pptx_layouts` / `pptx_masters` / `pptx_layouts` only on a structured `template_reuse_scope: mirror|layout` route; they are absent in flat `style`, free-design, and brand-only projects. Resists purpose and design drift on long decks. See executor-base.md §2.1.> ⚠️ **Main-agent only**: SVG generation MUST stay in the current main agent — page design depends on full upstream context. Do NOT delegate to sub-agents.> ⚠️ **Generation rhythm**: generate pages sequentially, one at a time, in the same continuous context. Do NOT batch (e.g., 5 per group).diff --git a/skills/ppt-master/references/ai-image-comparison/README.md b/skills/ppt-master/references/ai-image-comparison/README.mdindex 96706d83..7243f9b1 100644--- a/skills/ppt-master/references/ai-image-comparison/README.md+++ b/skills/ppt-master/references/ai-image-comparison/README.md@@ -1,9 +1,9 @@-# AI Image Comparison — Three-Dimension Reference Gallery+# AI Image Comparison — Reference Gallery-PPT Master's AI images are governed by three orthogonal dimensions: **rendering (visual style) × palette (color behavior) × type (internal composition)**.+This directory preserves rendering, legacy palette, and type comparison assets. The current Confirm UI displays **rendering only**; deck colors come directly from the selected PPT color system. The palette gallery remains for legacy diagnostics and must not become a second confirmation control.This directory uses **controlled-variable comparison** — vary one dimension while holding the other two fixed — so you can see exactly what each dimension contributes.-> This is **not** an example project. It is a dimension-selection reference for the Strategist role and end users when picking AI image parameters.+> This is **not** an example project. The rendering set remains a selection reference; the palette set is legacy diagnostic material, and the type set is an internal composition reference.## The three comparison sets@@ -59,7 +59,7 @@ Generated images land in the corresponding subdirectory. Each item's `status` in| If you are deciding... | Look at ||---|---|| Which rendering to lock in Strategist h.5 | `rendering/` — scan all 20 side by side; pick the visual temperament that matches the deck |-| Which palette pairs best with your chosen rendering | `palette/` — see how color behavior shifts the same subject |+| Diagnosing a legacy palette lock or comparison asset | `palette/` — see how historical color behaviors shift the same subject; do not expose it as a new-flow choice || Which type fits a specific image's purpose | `type/` — match the internal composition to the page's content shape |-> The three sets are intentionally independent. When deciding rendering, do not look at the palette set — its varying colors will distort your judgment of pure rendering style.+> The three sets are intentionally independent. When deciding rendering in the current flow, use only `rendering/`; the legacy palette set must not influence or reintroduce a separate color decision.diff --git a/skills/ppt-master/references/canvas-formats.md b/skills/ppt-master/references/canvas-formats.mdindex 318a25ea..fa6b8d61 100644--- a/skills/ppt-master/references/canvas-formats.md+++ b/skills/ppt-master/references/canvas-formats.md@@ -71,7 +71,7 @@ Content purpose?| Story | — | Middle 1500px | Top safe zone 120px, bottom 180px || WeChat Article Header | Center/left-aligned 48-72px | — | Image on right or as background |-> **Body font baseline scales with canvas and delivery purpose** — a PPT 16:9 baseline confirmed for read-close / business / projection cannot be carried onto tall canvases (Xiaohongshu / Story / A4). Pick the baseline from the confirmed canvas, not the recommended one; see the per-canvas px anchors in [`strategist.md`](strategist.md) §g "Font Size Ramp" (the system is px-only — all sizes are unitless px on every canvas).+> **Body font baseline scales with canvas and reading mode** — a PPT 16:9 baseline confirmed for read-close / business / projection cannot be carried onto tall canvases (Xiaohongshu / Story / A4). Pick the baseline from the confirmed canvas, not the recommended one; see the per-canvas px anchors in [`strategist.md`](strategist.md) §g "Font Size Ramp" (the system is px-only — all sizes are unitless px on every canvas).## ViewBox Examplesdiff --git a/skills/ppt-master/references/executor-base.md b/skills/ppt-master/references/executor-base.mdindex da063da8..a81aaf6e 100644--- a/skills/ppt-master/references/executor-base.md+++ b/skills/ppt-master/references/executor-base.md@@ -137,13 +137,15 @@ The exporter writes these solid fills as real Master/Layout/Slide `p:bg`, not se## 2. Design Parameter Confirmation (Mandatory Step)-Before the first SVG page, output a confirmation listing: canvas dimensions, body font size, color scheme (primary/secondary/accent HEX), font plan, and the live-preview URL reported by the launcher. If the preview launch failed, state that failure before generating SVGs instead of silently proceeding. Prevents spec/execution drift.+Before the first SVG page, output a confirmation listing: the compact communication intent + desired audience outcome, canvas dimensions, body font size, color scheme (primary/secondary/accent HEX), font plan, and the live-preview URL reported by the launcher. If the preview launch failed, state that failure before generating SVGs instead of silently proceeding. Prevents purpose/spec/execution drift.### 2.1 Per-page spec_lock re-read (Mandatory)> Long decks drift off the declared palette/icons mid-deck due to context compression. `spec_lock.md` is the canonical execution reference — re-read it per page to bypass model memory.-**Hard rule**: Before generating **each** SVG page, `read_file <project_path>/spec_lock.md`. Use only values from this file, not from memory. If context was auto-compacted, also `read_file <project_path>/design_spec.md` for the current page's §IX brief.+**Hard rule**: Before generating **each** SVG page, `read_file <project_path>/spec_lock.md`. Use only values from this file, not from memory. Re-read the global `communication` section along with the technical locks. The current page's `design_spec.md §IX` brief must be in immediate context; if context was auto-compacted or the brief is not immediately available, re-read `design_spec.md` for that page before drawing.++**Per-page communication trace**: Read the current §IX `Core message` and `Audience move` before choosing composition. The page must advance at least one purpose named in `communication.communication_intent` and move the audience toward `communication.audience_outcome`; `communication.core_message` remains the deck-wide north star. A page that cannot state this movement is an upstream outline defect — surface `warning: P<NN> has no communication move` instead of compensating with decorative layout. Do not invent a new purpose, ask, or outcome at execution time. Structural pages may advance the contract by establishing relevance / tension / decision frame or by completing the final commitment; they are not exempt from having a reason to exist.**Per-block expression**: render each `design_spec.md §IX Content` block in its written texture — a full-sentence block as wrapped prose, a fragment/label block as bullets/keywords. **Never split a full-sentence block into a bullet list** — splitting loses the information that the block was continuous reasoning, not a set of parallel points; not because a bullet lays out easier, and not because an inherited template slot is shaped as a list. If a block carries no clear texture, infer the mode from its wording and the page layout.diff --git a/skills/ppt-master/references/image-generator.md b/skills/ppt-master/references/image-generator.mdindex 6b6fba48..20266f2f 100644--- a/skills/ppt-master/references/image-generator.md+++ b/skills/ppt-master/references/image-generator.md@@ -28,7 +28,7 @@ AI images exist to serve the deck's communication goal. Pick whatever combinatio**Hard rule — only what's actually hard**:-- Same `deck_rendering` + same `deck_palette` for every image in the deck+- Same `deck_rendering` + same locked deck color roles for every image in the deck- HEX codes and color names are rendering guidance — never visible text in the image- Long body copy / data points / bulleted lists / long quotes stay in SVG (improving them later means regenerating the image, which is expensive)- **In-image text is only for words that will not need editing later** — visual keywords, decorative lettering, mood words. Editable text (titles that may be reworded, subtitles, dates, authors, captions, body) belongs in SVG. Changing one in-image word costs an image regeneration; one SVG word costs a keystroke.@@ -38,33 +38,31 @@ Everything else is the AI's judgment per page. No mandated padding, no type-lock----## 2. Three Dimensions+## 2. Style and Composition Inputs-Every AI image is described by three orthogonal dimensions. Lock them in this order: **Rendering** (deck-wide) → **Palette** (deck-wide) → **Type** (per image).+Every AI image uses one deck-wide rendering, the deck's already-locked color roles, and a per-image type / composition. Only rendering is a separate image-direction decision.| Dimension | Decides | When fixed ||---|---|---|| **Rendering** | Visual style family (vector / sketch-notes / 3d-isometric / corporate-photo / …) | Once per deck — every AI image in the deck shares one rendering |-| **Palette** | How the deck's HEX colors are *used* (proportion + role + temperament). HEX values come from `design_spec.colors`, not from the palette | Once per deck |+| **Deck colors** | The exact background / primary / accent / secondary-accent / text roles from `spec_lock.md colors`; these are consumed directly, not reconfirmed | Already locked in Stage 2 || **Type** | What the image's internal composition skeleton looks like — geometric layout of a local infographic block (infographic / flowchart / framework / matrix / cycle / funnel / pyramid / comparison / timeline / map / scene). Only applies to `page_role: local`; for `page_role: hero_page`, describe composition with §4.1 primitives instead of picking a type. | Per image |-> **What rendering vs palette means**: rendering is *how the image is drawn* (line quality, texture, depth). Palette is *how colors are distributed and behave* (which color dominates, which is accent, what proportion). The HEX values come from Strategist; palette is the **usage contract** for those HEX values.+> Rendering decides *how the image is drawn* (line quality, texture, depth). Color instructions come from the deck roles: background / secondary background usually dominate, primary carries main forms, and accents stay scarce. Adjust those proportions to the page role, but never invent or substitute HEX.### 2.1 Where to find each dimension| Reference | Loaded ||---|---|| [`image-renderings/_index.md`](./image-renderings/_index.md) — rendering catalog + auto-selection table | Always (Step 1 below) |-| [`image-palettes/_index.md`](./image-palettes/_index.md) — palette catalog + auto-selection table | Always (Step 1 below) || [`image-type-templates/_index.md`](./image-type-templates/_index.md) — type catalog + auto-selection table | Always (Step 1 below) || `image-renderings/<chosen>.md` | After Step 2 picks the rendering — only the chosen one |-| `image-palettes/<chosen>.md` | After Step 2 picks the palette — only the chosen one || `image-type-templates/<chosen>.md` | After Step 3 picks the type per image — only the types actually used |**Hard rule — on-demand loading**:-- Read the three `_index.md` files once at role entry.-- After locking dimensions, read **only** the specific rendering / palette / type files you selected.+- Read the rendering and type `_index.md` files once at role entry.+- After locking inputs, read **only** the specific rendering / type files selected.- **Never** glob-read an entire subdirectory (`image-renderings/*.md` is forbidden). Token cost balloons and the AI loses focus.---@@ -73,44 +71,46 @@ Every AI image is described by three orthogonal dimensions. Lock them in this or### Step 1 — Load the dimension indices-Read all three index files. They are short (~50 lines each) and contain auto-selection tables that let you map `design_spec` signals → dimension values without reading every detail file.+Read the two index files that own user-visible image direction and per-image composition.```read_file references/image-renderings/_index.md-read_file references/image-palettes/_index.mdread_file references/image-type-templates/_index.md```-### Step 2 — Resolve deck-wide rendering + palette+### Step 2 — Resolve deck-wide rendering + deck colors-**Primary path — Strategist already locked these in `spec_lock.md colors`**:+**Primary path — Strategist already locked rendering and ordinary deck colors in `spec_lock.md colors`**:```image_rendering: vector-illustration-image_palette: cool-corporate+background: #F8F9FA+primary: #1E3A5F+accent: #D4AF37```-If both fields are present, use them directly — Strategist made the decision in h.5 with full d-e-f-g-h linkage context. Do NOT re-decide.+Use them directly. Do not create another image-color choice and do not change HEX to suit a rendering.-**Hard rule — `custom` escape hatch**: when either value is the literal string `custom`, do NOT `read_file` the preset library for that dimension. Read the sibling `*_behavior` line from `spec_lock.md colors` and splice that prose into the prompt in place of the preset's fewshot snippet. The behavior prose owns the style paragraph (for `custom` rendering) or the proportion/role rules (for `custom` palette). See [`image-renderings/_index.md`](./image-renderings/_index.md) §1.5 / [`image-palettes/_index.md`](./image-palettes/_index.md) §2 for the invocation rules.+**Hard rule — `custom` escape hatch**: when `image_rendering` is `custom`, do not read a preset rendering file. Splice `image_rendering_behavior` into the prompt. The deck color-role rows remain authoritative.-**Fallback path — when `spec_lock.md` lacks both fields** (legacy decks or pipelines that skipped h.5):+**Fallback path — when `spec_lock.md` lacks rendering** (legacy decks or pipelines that skipped h.5):| Signal | Maps to ||---|---|| `design_spec.md d. Style` mode + descriptor | Rendering (consult renderings `_index.md` auto-selection table) |-| `design_spec.md e. Color Scheme` (HEX) + content vibe | Palette (consult palettes `_index.md` auto-selection table) |+| `design_spec.md e. Color Scheme` (HEX) | Deck color-role source; never turn it into a second user choice || `design_spec.md f. Icon library` | Sanity check: chosen rendering should be compatible with the icon library's visual weight |-If the auto-selection table surfaces multiple candidates, pick the first; do not present a choice to the user.+If rendering inference surfaces multiple candidates, pick the first; do not present another choice after confirmation.-> **Tell the user**: when falling back, print one line "spec_lock.md missing `image_rendering`/`image_palette` — inferring `<X>` / `<Y>` from design_spec. For optimal deck consistency, lock these in Strategist h.5." Then proceed.+> **Tell the user**: when falling back, print one line "spec_lock.md missing `image_rendering`—inferring `<X>` from design_spec; image colors still use the locked deck roles." Then proceed.-Then `read_file` the **single resolved** rendering file and the **single resolved** palette file. These two files give you:+Then read the **single resolved** rendering file. It gives you:- The 80-120 word style paragraph (rendering)-- The proportion / role / temperament rules for the deck's three HEX values (palette)-- Two ready-to-paste prompt snippets per file (fewshot)+- Two ready-to-paste rendering snippets (fewshot)++Derive color behavior directly from the available roles: background / secondary background carry roughly 55–70% of the image field, primary carries main forms, and accent / secondary accent together usually stay below 10%. A rendering may justify a different balance, but all colors still come from the lock and decorative text colors must remain readable.### Step 3 — Per-image type + assembly@@ -122,7 +122,7 @@ For each `Acquire Via: ai` row in `design_spec.md §VIII`:4. `read_file references/image-type-templates/<type>.md` (only if not already read — types are commonly reused across images in one deck)5. **Assemble the prompt** by combining:- The rendering's style paragraph (from Step 2)- - The palette's proportion + role rules applied to the deck's HEX values (from Step 2)+ - Color-role instructions derived directly from the locked deck HEX values (from Step 2)- The type's structural layout (from Step 3)- The image's specific `Reference` intent (from `design_spec.md §VIII`)- The container sizing guidance from the type file (so the model knows it's painting a local block, not a full canvas)@@ -142,7 +142,7 @@ Every assembled prompt follows this paragraph structure. **Write prose, not tag```[Rendering style paragraph — 80-120 words from the chosen rendering file].-[Palette behavior — apply the chosen palette's proportion + role rules to the deck's HEX values, e.g. "primary #1E3A5F dominates as the main shape, secondary #F8F9FA provides 60% breathing space, accent #D4AF37 appears in one or two emphasis points only"].+[Deck color behavior — apply the locked color roles directly, e.g. "secondary background #F8F9FA provides 60% breathing space, primary #1E3A5F carries main forms, accent #D4AF37 appears in one or two emphasis points only"].[Type-specific composition — from the chosen type file, e.g. "central hub node with four radiating satellite nodes connected by clean lines"].[Image-specific subject — translated from the row's Reference intent into concrete visual nouns].[Container note — "composed as a {W}x{H}px image for {page_role} use"; add composition cues only when the page actually needs them. SVG-overlay-reservation cues ("leave the lower band calm — SVG title overlays it", "keep the right third calmer for SVG text") are valid **only** when `page_role: hero_page` (SVG sits on top of the image). For `page_role: local`, the image sits inside a region block and the SVG layer never overlays its interior — never reserve overlay space in a local prompt].@@ -242,7 +242,7 @@ Example opening for a triptych hero:### 4.3 Illustration sheets — one generation, many spot elements-When a deck wants several small **spot illustrations** scattered as decorative accessories across pages (the illustration counterpart to icons), do **not** generate them one image per slot — that multiplies generation cost and lets the style drift between calls. Generate **one sheet** that lays out all the elements in a grid, then slice it. One call buys a set of elements with an identical style, palette, and line quality — the same cross-page consistency the deck-wide `deck_rendering` / `deck_palette` lock exists to protect.+When a deck wants several small **spot illustrations** scattered as decorative accessories across pages, do **not** generate them one image per slot. Generate one sheet and slice it. One call buys identical rendering, deck-color treatment, and line quality—the same consistency protected by `deck_rendering` + `color_scheme`.**When to use**: the §VIII image resource plan needs ≥3 small spot illustrations from the same family across the deck. For a single hero/local image, stay with the normal one-row-per-image flow (§4.1). Use sheets only where decorative illustration genuinely lifts the page; an unused element costs nothing, but a deck papered in decoration reads cheap.@@ -254,7 +254,7 @@ When a deck wants several small **spot illustrations** scattered as decorative a- Lay the elements out in an explicit **R×C grid, evenly spaced with clear gutters**, each element **centered in its own cell** and isolated (no element bleeds into a neighbor).- State the intended cell shape in the prompt: compact square object, tall portrait element, or wide landscape vignette. Do not let the model shrink every subject into a centered square sticker.- One **flat single-color background** across the whole sheet, set to the deck's background/secondary HEX — this is what lets the slicer key it out cleanly and lets the cut element sit on the slide without a visible box.-- Shared `deck_rendering` + `deck_palette` as always. NO text, labels, or numbers anywhere (§5.1, §5.3).+- Shared `deck_rendering` + `color_scheme` as always. NO text, labels, or numbers anywhere (§5.1, §5.3).**Cell geometry is designed, not assumed.** `slice_images.py --grid RxC` cuts rows first and columns second. The cell ratio is:@@ -270,7 +270,7 @@ Use that deliberately. On a wide sheet (`16:9`, `21:9`, `4:1`, `8:1`), `1xN` mak| Tall side accents / upright objects | wide or square sheet | `1xN`, or any `MxN` whose cells are portrait || Wide banners / horizontal vignettes | wide sheet | `Nx1`, or any `MxN` whose cells are landscape |-If one deck needs mixed shapes, create separate sheets per shape family unless one carefully designed grid gives every element enough room in its own cell. Keep the visual family consistent through the same `deck_rendering` and `deck_palette`, not by forcing all cells into one square sheet.+If one deck needs mixed shapes, create separate sheets per shape family unless one carefully designed grid gives every element enough room. Keep the visual family consistent through the same `deck_rendering` and `color_scheme`, not by forcing all cells into one square sheet.**Resource contract — the sheet and its elements are different row kinds.** A sliced element can only be placed if it exists as a resource the Executor is allowed to reference (`spec_lock.md images`). So §VIII carries two row kinds (full rules: [`design_spec_reference.md`](../templates/design_spec_reference.md) §VIII):@@ -294,7 +294,7 @@ python3 scripts/slice_images.py <project>/images/illus_sheet.png --grid 2x3 \**Placement — these are decorative accessories, not boxed pictures.** A transparent spot wasted in a centered rectangle looks cheaper than no spot at all. Each element row's Layout pattern comes from the decorative-cutout family in [`image-layout-patterns.md`](./image-layout-patterns.md): `#63` sticker/cutout, `#4` bleed off the canvas edge, `#58` corner fragment, `#66` fade into the background, `#69` slight editorial rotation, `#49` asymmetric cluster. Push spots to the margins, let them run off-edge or sit behind/beside text, vary size and angle across pages, and overlap the content rather than reserving a tidy tile for them. Anchor most pages on one primary element and let the rest stay small ([primary-per-page](./strategist.md) §h) — scattered same-weight tiles are exactly the generic look to avoid.-**Through-line — one family, many roles.** A spot sheet pays off more when the same motif family also drives the deck's cover and section dividers, so the deck reads as one designed system rather than a hero plus unrelated doodles. Because the slicer cuts a **uniform grid**, a large cover / divider anchor is **not** a giant cell in the spot sheet — generate it as its own `page_role: hero_page` image (§4.1 primitives) that shares this sheet's `deck_rendering`, `deck_palette`, and subject world. In §VIII the hero_page anchor row(s) and the `slice` spot rows then belong to one visual family (name the shared subject world in each `Reference`), differing only in scale and role. Plan this only when the deck leans into illustration — never a per-section quota; the planning rule lives in [strategist.md](./strategist.md) (deck illustration motif).+**Through-line — one family, many roles.** A spot sheet pays off more when the same motif family also drives the cover and section dividers. A large cover / divider anchor is not a giant sheet cell—generate it as its own `hero_page` image sharing the sheet's `deck_rendering`, `color_scheme`, and subject world. Plan this only when the deck leans into illustration, never as a quota.---@@ -369,7 +369,7 @@ The table below is **a reference for the one case where you want the in-image le- Decorative / background lettering, posters, large mood words → describe the artistic treatment freely- Cover hero title that wants its own visual identity (blackletter, retro chrome, art-deco display, brushed script) → describe freely- Sketch-notes / ink-notes / hand-drawn renderings where the lettering is part of the rendering itself → describe freely-- Any case where rendering + palette already imply a font character (e.g. `vintage-poster` rendering implies period display lettering) → trust the rendering, no need to echo SVG body+- Any case where rendering already implies a font character (e.g. `vintage-poster` implies period display lettering) → trust the rendering, no need to echo SVG body**When to use the table**: a designed title (cover main title, chapter heading) on a deck whose visual identity is grounded in the SVG body typography, and where a surprise font choice would feel out of place.@@ -403,11 +403,13 @@ Write `project/images/image_prompts.json` with this shape:"project": "{project_name}","generated_at": "{ISO-8601 date}","deck_rendering": "vector-illustration",- "deck_palette": "cool-corporate","color_scheme": {+ "background": "#FFFFFF",+ "secondary_bg": "#F8F9FA","primary": "#1E3A5F",- "secondary": "#F8F9FA",- "accent": "#D4AF37"+ "accent": "#D4AF37",+ "secondary_accent": "#4A7BB5",+ "body_text": "#1D2430"},"items": [{@@ -441,8 +443,7 @@ Write `project/images/image_prompts.json` with this shape:| Field | Required | Source | Description ||---|---|---|---|| `deck_rendering` | yes | Step 2 lock | Single rendering name shared by all items in this deck |-| `deck_palette` | yes | Step 2 lock | Single palette name shared by all items |-| `color_scheme` | yes | `design_spec.md §III` | HEX triplet from Strategist |+| `color_scheme` | yes | `spec_lock.md colors` | Exact deck color roles used by every item; no separate image palette || `items[].filename` | yes | `§VIII` resource list | Output filename with extension || `items[].type` | conditional | Step 3 per-image (only when `page_role: local`) | One of 11 internal-composition types: `infographic`, `flowchart`, `framework`, `matrix`, `cycle`, `funnel`, `pyramid`, `comparison`, `timeline`, `map`, `scene`. **Omit `type` entirely when `page_role: hero_page`** — the composition comes from §4.1 primitives written directly into the prompt, not from a type file. || `items[].page_role` | yes | Step 3 per-image | `local` (default — region block on SVG page) or `hero_page` (image is page's main voice; SVG overlay minimal or empty) |@@ -457,7 +458,7 @@ Write `project/images/image_prompts.json` with this shape:> **Back-compat for legacy `type` values**: existing manifests using `background` / `hero` / `portrait` / `typography` (the four removed pseudo-types) remain readable. Read them as: `background` → `page_role: hero_page` + no type; `hero` → `page_role: hero_page` + no type (use §4.1 Primitive A in prompt); `portrait` → `page_role: local` + no type (use §4.1 Primitive B); `typography` → `page_role: hero_page` + `text_policy: embedded` + no type (use §4.1 Primitive C). New manifests should follow the rule above (omit `type` when `page_role: hero_page`).>-> Existing manifests without `deck_rendering` / `deck_palette` / `type` / `page_role` / `text_policy` remain valid — older items default to `page_role: local`, `text_policy: none`. Legacy `page_role: full_page` (pre-2026-05-15) is read as `hero_page`.+> Existing manifests without `deck_rendering` / `type` / `page_role` / `text_policy` remain valid—older items default to `page_role: local`, `text_policy: none`. A legacy `deck_palette` field may remain in an old manifest but cannot override `color_scheme`. Legacy `page_role: full_page` is read as `hero_page`.---@@ -627,7 +628,7 @@ Diagnose the failure category, adjust the **one specific dimension** responsible|---|---|---|| Image looks generic, model-average | Tag-soup prompt | Rewrite as one coherent paragraph per §4 || Wrong style family (looks photorealistic when flat was intended) | Rendering mismatch or rendering paragraph diluted | Reaffirm chosen rendering's style paragraph at the top of the prompt |-| Colors don't match deck | HEX not echoed in prompt, or palette proportion rule omitted | Repeat HEX values 2-3 times in the prompt; restate palette proportion rule |+| Colors don't match deck | Locked role HEX not echoed, or their role / proportion instructions were diluted | Repeat the locked HEX values 2-3 times; restate which deck role owns the field, main forms, and sparse accents || Hex code or color name visible as text in image | Missing §5.1 closing sentence | Append the §5.1 hard rule verbatim || Garbled letters in supposedly text-free image | `text_policy: none` rule too weak | Strengthen with explicit list: "no letters, no numbers, no words, no signs, no labels, no captions, no watermarks" || SVG text overlay clashes with busy image area | Page design needs negative space the prompt didn't request | Add a composition cue like "leave the {center / left third / lower band} relatively calm for text overlay" — only when the page actually overlays text on top of the image |@@ -646,9 +647,9 @@ Diagnose the failure category, adjust the **one specific dimension** responsible- Generating prompts for `web` rows — those go through [`image-searcher.md`](./image-searcher.md)- Brand names or HEX codes inside the subject description (degrades output)-- Mixing renderings or palettes across images in the same deck+- Mixing renderings or inventing image-only colors across images in the same deck- Tag-soup prompts (keyword lists separated by commas without a coherent visual scene)- Globbing `image-renderings/*.md` or any subdirectory — read only the chosen file- Placing an image without updating its `image_prompts.json` `status` and the resource list status-- Switching rendering or palette for a single image — `hero_page` is not an exception to deck-wide coherence+- Switching rendering or deck-color roles for a single image—`hero_page` is not an exception to deck-wide coherence- Embedding body copy, data points, bullet lists, or long quotes inside an image — those route to SVGdiff --git a/skills/ppt-master/references/image-layout-patterns.md b/skills/ppt-master/references/image-layout-patterns.mdindex 26f96618..021cf2ac 100644--- a/skills/ppt-master/references/image-layout-patterns.md+++ b/skills/ppt-master/references/image-layout-patterns.md@@ -247,7 +247,7 @@ Combine freely. The "AI-default" failure mode is the opposite: defaulting to bar**Skip-detection signal** — if every page's `Layout pattern` column resolves to bare #2 / #3 / #5 / #6 with no Modifier ids, the catalog was not consulted. Re-read and reconsider.-**Cross-page through-line (recurring motif).** The patterns above are per-page, but a deck reads as *designed* when one illustration motif family recurs across pages — a cover anchor, section dividers repeating the motif for chapter identity (`#75`), and small `#63` spots from the same family threaded through the body. Keep them one family (shared rendering / palette / subject world), vary scale and placement, and never let the recurrence harden into a per-section quota. Planning lives in [strategist.md](./strategist.md) (deck illustration motif); generation mechanics split by role — hero / divider anchors: [image-generator.md](./image-generator.md) §4.1 primitives; body spot sheets: §4.3.+**Cross-page through-line (recurring motif).** The patterns above are per-page, but a deck reads as *designed* when one illustration motif family recurs across pages—a cover anchor, section dividers repeating the motif (`#75`), and small `#63` spots threaded through the body. Keep one family (shared rendering / locked deck colors / subject world), vary scale and placement, and never turn recurrence into a quota.## Hard Constraintsdiff --git a/skills/ppt-master/references/image-palettes/_index.md b/skills/ppt-master/references/image-palettes/_index.mdindex 7f060a93..46e1b31f 100644--- a/skills/ppt-master/references/image-palettes/_index.md+++ b/skills/ppt-master/references/image-palettes/_index.md@@ -1,4 +1,6 @@-# Palettes — Index+# Palettes — Index (Legacy / Internal Reference)++> New confirmation flows do **not** present or author `image_palette`. Image colors inherit `spec_lock.md colors` directly. This catalog remains only as legacy documentation and for maintaining the historical comparison gallery; the current generation flow ignores legacy `image_palette` rows. Never turn it into a user-facing choice or let it override deck HEX roles.A **palette** is the deck's **color behavior** — proportion, role, temperament. It does **not** supply HEX values; those come from `design_spec.colors`. The palette tells the model how to use the HEX values: which dominates, which carries accent, what proportion the background occupies, what the overall temperament feels like.@@ -29,7 +31,7 @@ Each palette has its own file with: rendering compatibility matrix and a fewshot----## 2. Escape hatch — `custom`+## 2. Legacy escape hatch — `custom`When no preset temperament matches (brand HEX outside preset ranges, ceremonial / cultural / niche aesthetic), set `image_palette: custom` and supply a one-paragraph `image_palette_behavior`.@@ -61,7 +63,7 @@ When no preset temperament matches (brand HEX outside preset ranges, ceremonial----## 3. Auto-selection table — `design_spec` → palette+## 3. Legacy auto-selection table — `design_spec` → paletteMatch `design_spec.md d. Style` + `e. Color Scheme` content vibe. First match wins. **No row matches** → use `custom` per §2 rather than force-fitting `cool-corporate`.@@ -87,7 +89,7 @@ Match `design_spec.md d. Style` + `e. Color Scheme` content vibe. First match wi----## 4. Rendering × Palette compatibility+## 4. Historical Rendering × Palette compatibilitySome combinations clash. Use this matrix as a sanity check after auto-selection.@@ -118,10 +120,8 @@ Some combinations clash. Use this matrix as a sanity check after auto-selection.----## 5. How to use+## 5. Legacy interpretation only-1. After picking rendering, look up your candidate palette in the auto-selection table.-2. Cross-check the compatibility matrix — if `✗`, pick the alternate.-3. `read_file image-palettes/<chosen>.md` and apply its proportion + role rules to the deck's HEX values when assembling prompts. (For `custom`, this step is replaced by the consumption branch in [`image-generator.md`](../image-generator.md) Step 2 — no preset file to read.)+Use this catalog only to understand a historical lock or maintain comparison assets. Do not select a palette, load a palette file, or author `image_palette` / `image_palette_behavior` in the current flow; assemble image prompts from the locked deck color roles instead.**Lock for the whole deck.**diff --git a/skills/ppt-master/references/image-renderings/_index.md b/skills/ppt-master/references/image-renderings/_index.mdindex 0908d585..e08ac87c 100644--- a/skills/ppt-master/references/image-renderings/_index.md+++ b/skills/ppt-master/references/image-renderings/_index.md@@ -2,7 +2,9 @@A **rendering** is a visual style family: line quality, texture, depth, material, mood. Lock one rendering per deck — every AI image in the deck shares it.-> **HEX values are not in renderings**. The deck's HEX triplet comes from `design_spec.colors`. Rendering describes *how* the image is drawn; palette describes *how* the HEX values are distributed. See [`image-generator.md`](../image-generator.md) §2.+> **HEX values are not in renderings.** Rendering describes how the image is drawn. The new flow reads exact deck color roles directly from `spec_lock.md colors`; it does not ask for or author a separate image palette. See [`image-generator.md`](../image-generator.md) §2.++> **Deck HEX has hard precedence.** Any color name or sample HEX inside an individual rendering file is illustrative legacy prose and MUST be replaced by the current deck-role values when assembling a prompt. A rendering may change texture, lighting, opacity, and role proportions, but it may not tint, warm-grade, cool-grade, replace, or invent HEX. If its material language requires colors the selected deck roles cannot support, do not offer that rendering in Stage 2.---diff --git a/skills/ppt-master/references/image-renderings/chalkboard.md b/skills/ppt-master/references/image-renderings/chalkboard.mdindex dec6d5c5..d4905ab2 100644--- a/skills/ppt-master/references/image-renderings/chalkboard.md+++ b/skills/ppt-master/references/image-renderings/chalkboard.md@@ -20,11 +20,11 @@ Chalk on a dark green or black board — classroom aesthetic. Used in teaching-f## 3. Using the deck's HEX values-chalkboard has a strong **fixed-palette tendency**: dark slate background + white chalk + pastel accents.+chalkboard has a strong **material-color tendency**: dark field + light chalk + sparse accents. It never replaces deck colors. Offer it only when the confirmed background / body-text roles can support that contrast.-- Background: dark slate green `#1F3A2E` or near-black `#1A1A1A` (does not use the deck's secondary)-- Primary chalk: off-white `#F5F5F0` (the chalk itself); the deck's primary HEX may appear as a tinted pastel accent-- Accent: the deck's accent HEX rendered as a soft pastel chalk shade+- Board: use the deck's exact `background` or `secondary_bg` role+- Chalk strokes: use the exact `body_text` role; dry texture supplies the chalk effect without changing its HEX+- Accent marks: use exact `accent` / `secondary_accent` values sparingly; do not pastel-tint them---@@ -32,4 +32,4 @@ chalkboard has a strong **fixed-palette tendency**: dark slate background + whit**Snippet A — half-page lesson visual, text_policy: embedded**-> Classroom chalkboard aesthetic. Dark slate green background `#1F3A2E` with visible chalk-dust texture at 20% opacity. Three rounded boxes drawn in soft white chalk strokes arranged in a row, each containing a simple chalk-drawn icon (a tree, a lightbulb, a paper plane). Above the boxes, a hand-lettered chalk title in confident white lettering reads "GROWTH" in English block caps. Hand-drawn chalk arrows connect the boxes left-to-right. Small chalk star and dot decorations sprinkled sparingly. One soft pastel-yellow chalk underline below the title, drawn with deliberate dry-medium quality. Composed as a 600×500 half-page block with 14% inner padding. Chalk text kept to short keywords. Color values are rendering guidance only.\ No newline at end of file+> Classroom chalkboard aesthetic. Use the deck's locked background role as the board, with visible chalk-dust texture at 20% opacity. Three rounded boxes drawn in the locked body-text color as soft chalk strokes sit in a row, each containing a simple chalk-drawn icon (a tree, a lightbulb, a paper plane). Above the boxes, a hand-lettered title reads "GROWTH" in English block caps. Hand-drawn chalk arrows connect the boxes left-to-right. Small chalk star and dot decorations appear sparingly. One underline uses the locked accent color with deliberate dry-medium texture. Composed as a 600×500 half-page block with 14% inner padding. Chalk text stays to short keywords.diff --git a/skills/ppt-master/references/image-renderings/fantasy-animation.md b/skills/ppt-master/references/image-renderings/fantasy-animation.mdindex 5294a2b8..c8f9c096 100644--- a/skills/ppt-master/references/image-renderings/fantasy-animation.md+++ b/skills/ppt-master/references/image-renderings/fantasy-animation.md@@ -4,7 +4,7 @@ Ghibli/Disney-inspired hand-drawn animation warmth. Soft painterly forms, gentle## 1. Style paragraph (paste-ready, 110 words)-> Hand-drawn animation style inspired by Ghibli and classic Disney storybook aesthetics. Forms are softly rendered with painterly fills and gentle outlines — never harsh, always warm. Color palette is warm and slightly desaturated, with pastel skies, soft greens, warm earth tones, occasional accents of magical color. Lighting is dreamy and atmospheric — soft window light, golden-hour glow, gentle morning haze. Characters (when present) are stylized in a friendly cartoon manner — large expressive eyes, simplified anatomy, warm body language. Subtle painterly brush texture across the image. Atmospheric perspective creates depth — foreground richer, background softer. Overall feel is dreamy, magical, comforting — children's storybook quality.+> Hand-drawn animation style inspired by Ghibli and classic Disney storybook aesthetics. Forms are softly rendered with painterly fills and gentle outlines — never harsh. Exact colors come only from the deck's locked roles; dreamy warmth comes from soft window light, gentle glow, morning haze, brush texture, and atmospheric perspective rather than invented pastel or earth-tone HEX. Characters (when present) are stylized in a friendly cartoon manner — large expressive eyes, simplified anatomy, warm body language. Foreground forms are richer and the background softer. Overall feel is dreamy, magical, comforting, and storybook-like.---@@ -20,11 +20,13 @@ Ghibli/Disney-inspired hand-drawn animation warmth. Soft painterly forms, gentle## 3. Using the deck's HEX values-fantasy-animation reads HEX values through a **warm storybook filter**:+fantasy-animation uses the exact deck roles with a storybook treatment:-- Primary HEX: dominant warm scene color (sky, foliage, environment)-- Secondary HEX: lighter atmospheric tone (cream, soft sky, morning haze)-- Accent HEX: a small magical pop — perhaps the glow of a window, a flower, a key character element+- Primary HEX: dominant environment or character color, unchanged+- Secondary HEX: atmospheric field or haze, unchanged+- Accent HEX: a small magical focal point — perhaps a window, flower, or key character element, unchanged++If those roles cannot support the intended storybook mood without recoloring, choose another rendering in Stage 2.---@@ -32,4 +34,4 @@ fantasy-animation reads HEX values through a **warm storybook filter**:**Snippet A — half-page storybook scene, text_policy: none**-> Hand-drawn animation style inspired by Ghibli storybook aesthetics. A soft warm scene of a small cottage on a hillside with a winding path leading down to the foreground. Sky in warm cream-amber `#FEF3C7` transitions to a soft accent peach `#FED7AA` at the horizon. Hillside in gentle warm green-amber blending the deck's primary tone, with painterly brush texture. A simplified storybook tree in the foreground left, hand-drawn cartoon-warm style. A small warm-glowing window in the cottage adds a magical accent color. Atmospheric perspective — distant hills are paler and softer, foreground has more saturated color. Subtle painterly brush quality throughout. Composed as a 600×800 half-page block with 10% inner padding. Simplified storybook style — any figures are gentle cartoon silhouettes, no realistic faces. NO text or labels. Color values are rendering guidance only.\ No newline at end of file+> Hand-drawn storybook animation. A small cottage sits on a hillside with a winding path leading to the foreground. The sky and haze use the deck's locked secondary-background role, the hillside and tree use the locked primary, and one small glowing cottage window uses the locked accent. Do not tint or replace those values. Painterly brush texture, soft light, and atmospheric perspective create the warmth: distant hills are softer, while foreground forms carry more visual weight. A simplified storybook tree stands at foreground left. Composed as a 600×800 half-page block with 10% inner padding. Any figures are gentle cartoon silhouettes with no realistic faces. No text or labels.diff --git a/skills/ppt-master/references/image-renderings/ink-notes.md b/skills/ppt-master/references/image-renderings/ink-notes.mdindex 0cdb843e..addcbec2 100644--- a/skills/ppt-master/references/image-renderings/ink-notes.md+++ b/skills/ppt-master/references/image-renderings/ink-notes.md@@ -4,7 +4,7 @@ Pure white paper, black ink, sparse semantic color accents — the Mike Rohde sk## 1. Style paragraph (paste-ready, 105 words)-> Professional hand-drawn visual-note style on pure white paper. All line work is black ink with slight wobble — confident, intentional, with the human-hand quality of a thoughtful whiteboard session. Hand-lettered titles appear bold and slightly oversized (when text policy allows). Color is intentionally sparse — black ink dominates ~85% of the visible content, with one or two semantic accent colors (coral red for risk/emphasis, muted teal for positive/solution, dusty lavender for neutral categories) covering less than 10% of canvas combined. Backgrounds and shape fills are mostly empty white. Small doodle decorations — stars, dashes, dots — are minimal. Overall feel is professional, considered, manifesto-quality.+> Professional hand-drawn visual-note style on a clean paper field. All line work uses the deck's body-text color with slight wobble — confident, intentional, with the human-hand quality of a thoughtful whiteboard session. Hand-lettered titles appear bold and slightly oversized (when text policy allows). Color is intentionally sparse: line work dominates ~85% of the visible content, while one or two semantic accents drawn only from the deck's locked accent roles cover less than 10% combined. Backgrounds and shape fills remain mostly empty. Small doodle decorations — stars, dashes, dots — are minimal. Overall feel is professional, considered, manifesto-quality.---@@ -20,13 +20,13 @@ Pure white paper, black ink, sparse semantic color accents — the Mike Rohde sk## 3. Using the deck's HEX values-ink-notes has a near-fixed visual language: **black ink + white background + 1-2 semantic accents**. This palette tendency may override `design_spec.colors`:+ink-notes has a near-fixed material language: **dark ink + light background + 1-2 semantic accents**. It never overrides `design_spec.colors`; offer it only when the confirmed roles can support that contrast:-- Background: pure white `#FFFFFF` (do not replace with the deck's secondary unless it's already near-white)-- Lines and text: near-black `#1A1A1A` (do not replace with the deck's primary)-- Semantic accents: ink-notes traditionally uses coral red, muted teal, dusty lavender. The deck's `accent` HEX can serve as the emphasis color, but consider whether it carries the right semantic weight (red=risk, teal=positive, gold=highlight)+- Background: use the deck's `background` / `secondary_bg`+- Lines and text: use the deck's `body_text`+- Semantic accents: use the deck's `accent` / `secondary_accent` roles and their established meaning; do not add traditional ink-notes colors outside the lock-This makes ink-notes **the rendering most likely to deviate from the deck's HEX**. Reaffirm in the prompt that the ink-notes natural palette is intentional and the deck's primary HEX is reserved for the accent role.+This makes ink-notes the rendering most likely to fight a deck's HEX. Offer it only when the locked background / text / accent roles can support the treatment; never invent traditional coral / teal / lavender after confirmation.---@@ -34,4 +34,4 @@ This makes ink-notes **the rendering most likely to deviate from the deck's HEX***Snippet A — Before/After methodology (comparison type), text_policy: embedded**-> Professional hand-drawn visual-note style on pure white background. Composition is a Before/After split — vertical hand-drawn divider down the center. Both sides use black ink line work with slight wobble. Left side ("Before") shows a simple stick-figure character with a frustrated posture, a speech bubble with hand-lettered "OLD WAY" in English block caps, and a small list of three hand-drawn dashes with brief 1-2 word annotations (e.g. "manual", "slow", "fragile"). Right side ("After") shows a confident stick-figure character with a clean checkmark above, hand-lettered "NEW WAY" in English block caps, and three checkbox-style annotations (e.g. "automated", "fast", "reliable"). A curved hand-drawn "mindset shift" arrow bridges left to right with a small hand-lettered label "the shift". Sparse semantic color: coral red `#E8655A` (the deck's accent) appears only on the left side's pain points; muted teal `#5FA8A8` appears only on the right side's positives. Total color accent area under 10% of canvas. All hand-lettered text is short keywords. Composed as a 1200×500 hero banner with 14% inner padding.\ No newline at end of file+> Professional hand-drawn visual-note style on the deck's locked background color. Composition is a Before/After split — vertical hand-drawn divider down the center. Both sides use the locked body-text color as ink line work with slight wobble. Left side ("Before") shows a simple stick-figure character with a frustrated posture, a speech bubble with hand-lettered "OLD WAY" in English block caps, and a small list of three hand-drawn dashes with brief 1-2 word annotations (e.g. "manual", "slow", "fragile"). Right side ("After") shows a confident stick-figure character with a clean checkmark above, hand-lettered "NEW WAY" in English block caps, and three checkbox-style annotations (e.g. "automated", "fast", "reliable"). A curved hand-drawn "mindset shift" arrow bridges left to right with a small hand-lettered label "the shift". Sparse semantic color: the locked accent marks the left-side pain points and the locked secondary accent marks the right-side positives. Total accent area stays under 10% of canvas. All hand-lettered text is short keywords. Composed as a 1200×500 hero banner with 14% inner padding.diff --git a/skills/ppt-master/references/image-renderings/sketch-notes.md b/skills/ppt-master/references/image-renderings/sketch-notes.mdindex e5ad14cd..f5625268 100644--- a/skills/ppt-master/references/image-renderings/sketch-notes.md+++ b/skills/ppt-master/references/image-renderings/sketch-notes.md@@ -4,7 +4,7 @@ Warm cream paper with black hand-drawn lines and soft pastel color blocks. The m## 1. Style paragraph (paste-ready, 110 words)-> Warm hand-drawn sketchnote style on cream paper background. All lines are drawn with deliberate slight wobble — black ink on cream, never perfectly straight, with the human-hand quality that makes the image feel like a thoughtful teacher's whiteboard. Color blocks are soft pastels — light blue, mint, lavender, peach — filled into rounded shapes that don't quite reach their outlines (a deliberate "hand-painted overshoot" feel). Simple cartoon icons and small doodle decorations (stars, sparkles, dots, underlines) appear sparingly to add warmth. Composition is airy and well-organized, with generous white space between elements. Overall feel is warm, instructional, friendly — the visual language of educational explainer videos and knowledge cards.+> Warm hand-drawn sketchnote style on the deck's light background role. All lines use the locked body-text color with deliberate slight wobble, never perfectly straight, giving the human-hand quality of a thoughtful teacher's whiteboard. Soft color blocks derive only from the locked primary, secondary-accent, and accent roles and fill rounded shapes without quite reaching their outlines (a deliberate "hand-painted overshoot" feel). Simple cartoon icons and small doodle decorations (stars, sparkles, dots, underlines) appear sparingly to add warmth. Composition is airy and well organized, with generous whitespace. Overall feel is instructional, friendly, and approachable.---@@ -20,11 +20,11 @@ Warm cream paper with black hand-drawn lines and soft pastel color blocks. The m## 3. Using the deck's HEX values-sketch-notes has a strong **built-in palette tendency** toward warm cream + black ink + soft pastels. When the deck's `design_spec.colors` align (warm-earth or macaron palette family), use them directly. When they don't align (cool-corporate primary), sketch-notes may be the wrong rendering — consult the compatibility matrix in `image-palettes/_index.md`.+sketch-notes has a strong built-in tendency toward warm paper, dark ink, and soft color blocks. Offer it only when the locked deck roles can carry that tendency; otherwise choose another rendering in Stage 2. Once confirmed, use only the locked deck colors.-- Cream paper background: keep close to the rendering's natural `#F5F0E8` even if `design_spec.secondary` differs slightly (the cream **is** part of sketch-notes)-- Black ink lines: keep at `#1A1A1A` or near-black — do not replace with the deck's primary-- Pastel color blocks: the deck's primary / secondary / accent HEX values, **rendered as soft pastel tints** rather than full saturation+- Paper background: use the deck's `background` or `secondary_bg`; do not introduce a natural cream outside the lock+- Ink lines: use the deck's `body_text` role+- Color blocks: use the deck's primary / secondary-accent / accent roles with restrained coverage; do not invent pastel HEX- Single emphasis accent: the deck's accent HEX, used in 1-2 strong sparing places (a key arrow, an emphasized doodle)---@@ -33,4 +33,4 @@ sketch-notes has a strong **built-in palette tendency** toward warm cream + blac**Snippet A — half-page educational concept, text_policy: embedded**-> Warm hand-drawn sketchnote on warm cream paper background. Black ink lines with slight wobble define three rounded rectangle info boxes arranged in a soft triangle layout. Each box is filled with a soft pastel block color: top box in light blue (a pastel tint of the deck's primary `#1E3A5F`), bottom-left box in mint, bottom-right box in lavender. Color fills don't completely reach the outlines (slight hand-painted overshoot). Hand-drawn wavy arrows connect the boxes — each arrow with a small inline hand-lettered keyword like "leads to", "becomes", "supports" (≤2 words per arrow). Each box contains one simple hand-drawn cartoon icon — a lightbulb, a plant, a gear — in black ink. Small doodle decorations (a few stars, dots, sparkles) sparingly around the composition. Composed as a 600×600 half-page block with 14% inner padding. Generous white space. Color values are rendering guidance only — do not display HEX codes or color names as text.\ No newline at end of file+> Warm hand-drawn sketchnote on the deck's locked background color. Lines use the locked body-text color with slight wobble and define three rounded rectangle info boxes arranged in a soft triangle. The top box uses the locked primary, the bottom-left uses the locked secondary accent, and the bottom-right uses the locked accent, each with restrained coverage and no invented tint. Color fills do not completely reach their outlines (slight hand-painted overshoot). Hand-drawn wavy arrows connect the boxes, each with a brief inline keyword such as "leads to", "becomes", or "supports" (≤2 words). Each box contains one simple hand-drawn cartoon icon — a lightbulb, a plant, a gear. Small doodle decorations appear sparingly. Composed as a 600×600 half-page block with 14% inner padding and generous whitespace.diff --git a/skills/ppt-master/references/image-renderings/warm-scene.md b/skills/ppt-master/references/image-renderings/warm-scene.mdindex a41fa284..98822eec 100644--- a/skills/ppt-master/references/image-renderings/warm-scene.md+++ b/skills/ppt-master/references/image-renderings/warm-scene.md@@ -4,7 +4,7 @@ Golden-hour cinematic warmth — illustrated scenes with intentional warm lighti## 1. Style paragraph (paste-ready, 100 words)-> Atmospheric scene illustration with golden-hour cinematic lighting. Forms are softly rendered — recognizable but not photo-realistic, with soft edges and intentional light direction. The scene has a clear primary light source (warm low sun, lamplight, window light) casting long soft shadows. Color palette leans warm and slightly desaturated — ambers, terracottas, cream highlights against deeper warm shadows. A subtle bloom or halo effect around the light source adds cinematic warmth. Composition follows narrative principles — foreground subject, middle ground context, atmospheric background. Overall feel is cinematic, contemplative, emotionally warm — well suited to brand story and personal narrative content.+> Atmospheric scene illustration with golden-hour cinematic lighting. Forms are softly rendered — recognizable but not photorealistic, with soft edges and intentional light direction. The scene has a clear primary light source (low sun, lamplight, window light) casting long soft shadows. Exact colors come only from the deck's locked roles; emotional warmth comes from light placement, bloom, contrast, and atmosphere rather than hue substitution. Composition follows narrative principles — foreground subject, middle-ground context, atmospheric background. Overall feel is cinematic, contemplative, and emotionally warm, well suited to brand story and personal narrative content.---@@ -20,13 +20,13 @@ Golden-hour cinematic warmth — illustrated scenes with intentional warm lighti## 3. Using the deck's HEX values-warm-scene reads HEX values through a **warm-graded filter**:+warm-scene uses the deck's exact HEX roles and creates warmth through light, not recoloring:-- Primary HEX: dominant warm tone in shadows and midground (warm-graded version of the deck's primary)-- Secondary HEX: highlight tone in the lit areas (warm cream, soft amber)-- Accent HEX: a small bright concentrated zone — sun bloom, lamp glow, key warm reflection+- Primary HEX: dominant tone in shadows and middle ground, unchanged+- Secondary HEX: lit field or atmospheric separation, unchanged+- Accent HEX: a small concentrated zone — sun bloom, lamp glow, or key reflection, unchanged-If the deck's primary is cool (navy, teal), warm-scene will subtly warm-grade it; if the deck's palette is already warm, the rendering reinforces it directly.+If the locked roles cannot support an emotionally warm scene without hue shifts, do not offer `warm-scene` in Stage 2. Never warm-grade a cool primary after confirmation.---@@ -34,4 +34,4 @@ If the deck's primary is cool (navy, teal), warm-scene will subtly warm-grade it**Snippet A — half-page personal story, text_policy: none**-> Atmospheric scene illustration with golden-hour cinematic lighting. A softly rendered figure (simplified silhouette, no detailed face) walks along a path in a warm landscape — the figure in the foreground left, the path leading to a small distant cabin in the middleground, soft warm hills in the atmospheric background. Strong golden warm light comes from the upper right (the sun near the horizon), casting long soft shadows toward the left. Sky transitions from amber `#D97706` at the horizon to soft cream `#FEF3C7` at the top. Foreground shadows in deeper warm primary `#7C2D12`. Subtle bloom around the sun. No hard outlines — forms emerge from light and shadow. Subtle film grain at 8% opacity. Composed as a 600×800 half-page block with 10% inner padding. Simplified silhouette figures only — no realistic faces. NO text or labels. Color values are rendering guidance only.\ No newline at end of file+> Atmospheric scene illustration with golden-hour cinematic lighting. A softly rendered figure (simplified silhouette, no detailed face) walks along a path — foreground left, a small distant cabin in the middle ground, soft hills in the atmospheric background. Strong low-angle light comes from the upper right and casts long soft shadows. The sky uses the deck's locked secondary-background role, main forms use the locked primary, and a small sun bloom uses the locked accent; none is hue-shifted. No hard outlines — forms emerge from light and shadow. Add subtle bloom and film grain at 8% opacity. Composed as a 600×800 half-page block with 10% inner padding. Simplified silhouette figures only; no realistic faces, text, or labels.diff --git a/skills/ppt-master/references/image-type-templates/_index.md b/skills/ppt-master/references/image-type-templates/_index.mdindex 0e31c8ac..2ddc1808 100644--- a/skills/ppt-master/references/image-type-templates/_index.md+++ b/skills/ppt-master/references/image-type-templates/_index.md@@ -86,6 +86,6 @@ For `page_role: hero_page` images, default container is the slide canvas (e.g. 11. For each `page_role: local` row in the Image Resource List, pick the type using the auto-selection table above.2. For each `page_role: hero_page` row, **skip type selection** — go straight to [`image-generator.md`](../image-generator.md) §4.1 primitives.3. `read_file image-type-templates/<type>.md` — only the types actually used in this deck. Most decks use 2-4 types; load each at most once.-4. Apply the type's composition skeleton when assembling the prompt, alongside the locked deck-wide rendering and palette.+4. Apply the type's composition skeleton alongside the locked deck-wide rendering and deck color roles.-**Multiple types per deck is normal.** Locking is at rendering + palette level, not type level.+**Multiple types per deck is normal.** Rendering and deck colors stay fixed; type varies per image.diff --git a/skills/ppt-master/references/modes/_index.md b/skills/ppt-master/references/modes/_index.mdindex 59e40f87..210fcf30 100644--- a/skills/ppt-master/references/modes/_index.md+++ b/skills/ppt-master/references/modes/_index.md@@ -18,23 +18,23 @@ Each mode has its own file with: narrative skeleton, page-structure tendencies,| [`showcase`](./showcase.md) | Visual-led impact; big imagery / numbers; emotional rhythm | Launches, brand reveals, event / promo decks || [`briefing`](./briefing.md) | Neutral, complete, scannable; topic titles, even weight, no thesis | Status updates, reference decks, catalogs, meeting packs, FAQs |-> The five partition presentation *intent*, not aesthetics: persuade (`pyramid`) · tell a story (`narrative`) · teach (`instructional`) · impress (`showcase`) · simply inform (`briefing`).+> The five are **argument strategies, not a taxonomy of communication purposes**. A presentation may inform + align + request a decision at once; that composite intent stays as open prose in the Stage-1 communication contract. Stage 2 chooses the mode that best carries the dominant body-page spine, or one concrete `custom` act sequence when no preset can serve the stated priority / sequence.>> **A mode is a lens, not a mandate over the user's own structure.** When the user brings their own outline, it is authoritative: transcribe it into `design_spec.md §IX` as given — page order and titles preserved — and let the mode govern only voice / register and page-internal treatment. A mode never reorders a user's pages or rewrites their given titles (mode is Reference-strength; a user-authored outline is exactly the override). When the user gives no structure, the mode does the structural lifting. To lay an outline out with the least reshaping, `briefing` imposes the lightest skeleton.----## 2. Auto-selection — content / audience signal → mode+## 2. Auto-selection — communication contract + source signal → mode-| Signal | Recommended mode | Alternates |+| Contract / source signal | Recommended mode | Alternates ||---|---|---|-| Strategic decision / analysis / board / investor | `pyramid` | `narrative` |-| Pitch / case study / origin story / campaign arc | `narrative` | `showcase` |-| Course / onboarding / how-to / science explainer | `instructional` | `pyramid` |-| Product launch / brand reveal / event opener / keynote / 发布会 / TED | `showcase` | `narrative` |-| Status update / reference / catalog / FAQ / meeting pack / 周报 / 参考 | `briefing` | `pyramid` |+| Decision / recommendation outcome; analysis, board, investor; criteria and trade-offs must land | `pyramid` | `narrative` |+| Persuasion or mobilization lands through a case, tension, transformation, or origin arc | `narrative` | `showcase`, `pyramid` |+| Understanding or capability must build step by step; course, onboarding, how-to, explainer | `instructional` | `pyramid`, `briefing` |+| Attention / emotion / launch moment is primary; sparse presenter-led delivery | `showcase` | `narrative` |+| Complete reference, status, record, hand-off, FAQ, meeting pack; no thesis dominates | `briefing` | `pyramid`, `instructional` |-> No single signal dominates — read the deck's actual purpose from `c. Key Information`. When two modes fit, follow the **primary** intent of the body pages, not the cover. A data review legitimately runs almost entirely `pyramid`; do not force variety.+> No keyword decides the mode. Read `communication_intent`, `audience_outcome`, `core_message`, delivery context / afterlife, source texture, and any user-authored outline together. When several purposes coexist, follow the dominant **argument movement of the body pages**, not the cover and not the first purpose word. A data review can legitimately run almost entirely `pyramid`; a progress report whose durable hand-off matters more than persuasion may stay `briefing`.**Close calls** — the genuinely adjacent pairs; every other pair is far enough apart that the auto-selection signal decides.@@ -52,7 +52,7 @@ Each mode has its own file with: narrative skeleton, page-structure tendencies,## 3. How to use1. Strategist reads this index at confirmation `d. Layer 1`.-2. Pick one mode from the auto-selection table + the deck's stated purpose.+2. Pick one mode from the auto-selection table + the confirmed communication contract and source structure.3. Lock it: write `- mode: <name>` into `spec_lock.md`, record the rationale in `design_spec.md`.4. Executor reads **only** `modes/<locked-mode>.md` at generation entry — never globs this directory.diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.mdindex 79b06266..335ee1a2 100644--- a/skills/ppt-master/references/strategist.md+++ b/skills/ppt-master/references/strategist.md@@ -24,21 +24,21 @@ As a top-tier AI presentation strategist, receive source documents, perform cont⛔ **BLOCKING**: After the read, present professional recommendations for the confirmation fields below and wait for explicit user confirmation.-**Three-stage confirmation (the default Confirm UI flow; chat mirrors it).** The confirmation fields split into a dependency order, confirmed in three passes:+**Three-stage confirmation (the default Confirm UI flow; chat mirrors it).** The sequence is scene first, complete solution second, production third:| Stage | Items | Role ||---|---|---|-| **1 — direction anchors** | `a` canvas · `c` key info — audience + `content_divergence` + **delivery purpose** *(PPT only)* (promoted out of `g`) · `d` mode + visual_style · template reuse scope, then adherence for `mirror` / `layout` *(only when Step 3 loaded a deck/layout template)* | confirmed first |-| **2 — design system** (re-derived from the user's *actual* Stage 1) | `b` page count · `e` color · `f` icon · `g` typography (font + size, formula policy) | derived from Stage 1 |-| **3 — images / execution** (re-derived from the user's *actual* Stage 1 + Stage 2) | `h` image source + generated-image style · generation mode · refine-spec toggle | derived from confirmed direction + design system |+| **1 — communication contract** | `c` audience · open-ended communication intent · audience outcome · core message / delivery context / artifact afterlife · `content_divergence` (all prose fields may be blank) · `a` canvas | confirmed first |+| **2 — complete deck solution** (re-derived from the user's *actual* Stage 1) | reading mode (`delivery_purpose`, PPT only) · `d` mode + visual style · `b` page count · template reuse / adherence · `e` color · `f` icon · `g` typography · `h` image source + generated-image rendering | derived from the confirmed contract |+| **3 — resources / production** (re-derived from the user's *actual* Stage 1 + Stage 2) | formula policy · conditional AI-image acquisition path · generation mode · refine-spec toggle | derived from the confirmed solution |-The design-system items are anchored by Stage 1 — `visual_style` governs `e` / `f` / `g` (§d Layer 2), and delivery purpose sets the §g body size (one fixed value per purpose), page density, **and** the `b` page-count recommendation. So author Stage 2 *after* Stage 1 is confirmed, against the user's real choices. Image strategy is anchored by both Stage 1 and Stage 2: h.5 rendering follows the locked visual direction, while h.5 palette is color behavior only and must follow the confirmed §e colors. So author Stage 3 *after* Stage 2 is confirmed. **Page count is derived, not an anchor** — it follows content volume × delivery purpose, which is why it is Stage 2. The launch / re-derive / wait mechanics live in [SKILL.md Step 4](../SKILL.md); the item specs below keep their `a`–`h` letters.+Do not force communication intent into one catalog label. A deck may report progress, expose risk, and request a decision in the same artifact; Stage 1 records that relationship in prose. Its editable prose fields are recommendation drafts, not required inputs: confirmation accepts the current text exactly, including blanks, and a cleared field must not be repopulated later. Stage 2 then confirms one complete solution: narrative spine, reading density, page budget, template strategy, visual system, and image direction. Present ≥3 coordinated design directions (safe / shifted / bold) so color, type, icons, and generated-image rendering begin coherent; the user may still override each component. Generated images inherit the selected deck colors directly—there is no second image-palette confirmation. Stage 3 asks only how to produce the locked solution. **Page count is derived, not an anchor**—it follows content volume × desired audience outcome × reading mode. The launch / re-derive / wait mechanics live in [SKILL.md Step 4](../SKILL.md); the item specs below keep their `a`–`h` letters.> **Execution discipline**: This is the last BLOCKING checkpoint in the pipeline. After confirmation, complete the Design Spec and proceed to image generation / SVG / post-processing without further pauses.>> **One opt-in exception**: present the spec-refinement line alongside the split-mode note (SKILL.md Step 4). It is OFF by default — the above discipline holds unchanged. Only when the user *explicitly* asks to refine the spec do you hand off to the [refine-spec](../workflows/stages/refine-spec.md) stage, which produces the full spec first and stops for user review/revision of any part before generation. Never enter it unprompted.-> **Default presentation surface — Confirm UI.** Deliver the bundled package through the interactive page: write your recommendations to `<project>/confirm_ui/recommendations.json`, then launch per [SKILL.md Step 4](../SKILL.md). You still author everything — enumerable fields name a recommended `id`; generative fields (color `palette`, CJK + Latin typography, generated-image style) each carry **≥3 distinct candidates**, and the deck's **visual style** (§d Layer 2) carries a **≥3-style personality spectrum** (`visual_style_spectrum`, safe / shifted / bold) — creative recommendations always offer real choice, never a single silent option, same hard rule and thinking as h.5. Honest-shortfall exception (mirrors h.5): if the constraints genuinely cannot yield 3 non-conflicting options, present the smaller set and say why — never pad with duplicates or known-conflicting fillers. **Always also print the recommendations + URL in chat** as the always-valid fallback. On confirm, read `<project>/confirm_ui/result.json` (`generation_mode: "split"` / `refine_spec: true` are explicit user choices). Skip the page if the user wants chat-only. Full launch flow, field rules, and JSON schema live in [SKILL.md Step 4](../SKILL.md) + [`scripts/docs/confirm_ui.md`](../scripts/docs/confirm_ui.md) — don't restate them here. The page is a confirmation surface only.+> **Default presentation surface — Confirm UI.** Deliver the package through the interactive page: write recommendations to `<project>/confirm_ui/recommendations.json`, then launch per [SKILL.md Step 4](../SKILL.md). Stage 2 `design_directions` carries **≥3 coordinated candidates** (safe / shifted / bold); each bundles visual style, color, CJK + Latin typography, icons, and conditional generated-image rendering. This is one set of real alternatives, not independent candidate grids that happen to share a screen. Honest-shortfall exception: if the constraints genuinely cannot yield 3 non-conflicting directions, present the smaller set and say why—never pad with duplicates or conflicts. **Always also print the recommendations + URL in chat** as the fallback. On confirm, read `<project>/confirm_ui/result.json` (`generation_mode: "split"` / `refine_spec: true` are explicit user choices). Skip the page if the user wants chat-only. Full schema and lifecycle live in [SKILL.md Step 4](../SKILL.md) + [`scripts/docs/confirm_ui.md`](../scripts/docs/confirm_ui.md).### a. Canvas Format Confirmation@@ -46,15 +46,30 @@ Recommend format based on scenario (see [`canvas-formats.md`](canvas-formats.md)### b. Page Count Confirmation-**Stage-2 (derived).** Page count is not an anchor — recommend it only after the Stage-1 delivery purpose is confirmed, since the same source yields a different count by purpose. Provide a specific page count recommendation based on source document content volume **and the confirmed delivery purpose** (`text` packs denser → the same source fits in fewer pages; `presentation` is one-idea-per-page → the same source may need more) — see §6.1 Content Planning Strategy. The user's confirmed count still wins; delivery purpose governs density and per-page treatment within it.+**Stage-2 (derived).** Page count is not an anchor—recommend it only after the Stage-1 communication contract is confirmed and alongside reading mode. Derive it from source volume, desired audience outcome, delivery context / artifact afterlife, and reading mode (`text` packs denser; `presentation` is one-idea-per-page and may need more). The user's confirmed count still wins.-### c. Key Information Confirmation+### c. Communication Contract Confirmation-Confirm target audience, usage occasion, and core message; provide initial assessment based on document nature.+Seed the following as open-prose recommendations when the source and user request support an assessment. The user may retain, edit, or clear every editable field; the UI does not reduce the contract to a survey and does not require a non-empty answer:-**Delivery purpose** (PPT only) is confirmed here, beside audience, as part of the key information — the deck's consumption mode: `text` (read-close) / `balanced` (business, default) / `presentation`. It is a Stage-1 anchor: it sets the §g body size to one fixed value per purpose, plus the type character, page density, and the §b page-count recommendation (the size and page count re-derived in Stage 2). Recommend one (`recommend.delivery_purpose`, default `balanced`) and let the user confirm. The fixed body value per purpose lives in §g; the density / treatment side lives in §6.1 — here it is surfaced as a key-information choice, not a separate typography step.+| Field | Question it answers |+|---|---|+| `audience` | Who exactly must receive this communication, and what do they already know / care about? |+| `communication_intent` | What must the presentation accomplish? It may combine several purposes and state priority or sequence. |+| `audience_outcome` | What observable change means the communication succeeded — what will the audience know, understand, believe, decide, or do? |+| `core_message` | Which claim(s), decision ask(s), or action(s) must land even if little else is remembered? |+| `delivery_context` | How will it be consumed — presenter-led, reader-led, hybrid, recorded — and in what occasion / time constraint? |+| `artifact_afterlife` | What must the file support afterward — review, approval, audit, archive, hand-off, reuse, or no planned afterlife? |++**Communication intent is open-ended.** Use *inform / explain / persuade / decide / align / teach / report and account / mobilize / record and hand off* only as prompts that help the user articulate an answer. Never render them as a checkbox list, radio group, or required single `primary_job`. When several purposes coexist, preserve their relationship in the prose (for example, “report progress and expose risk first; then obtain a decision on the next investment”). Do not silently collapse a composite answer into one label.++**Hard rule — confirmed current value wins.** Submit every Stage-1 prose field exactly as it appears when the user confirms. Blank means no explicit user constraint and may trigger downstream judgment from the source and request; keep the stored value blank and never restore the initial recommendation. A profile-declared `locked: true` field remains read-only and is the only exception.++The contract is not the narrative mode. `communication_intent` says what change is needed; `mode` is one Stage-2 strategy for organizing the argument. Several intents may share one dominant mode, and one intent may support several possible modes.-**Material divergence** — a **free-text** intent the user states beside audience (same content-strategy cluster): in their own words, how closely the deck should follow the source vs how freely it may reshape it. This is the user's own call — a free prose field (`content_divergence`), **not** a fixed set of options and **not** something you recommend from analyzing the source. Surface the question (in the confirm UI it is a text box under audience; in chat, ask it plainly); leave it for the user to fill. Blank = a balanced default.+**Reading mode** (PPT only) is a closed Stage-2 design-density axis: `text` (read-close) / `balanced` (business, default) / `presentation`. Keep the existing `recommend.delivery_purpose` / `result.json.delivery_purpose` key for compatibility, but label and reason about it as reading mode—never as communication purpose. It sets the §g body size to one fixed value, plus page density and the §b page-count recommendation.++**Material divergence** — a **free-text** source-treatment intent in the Stage-1 delivery section: in their own words, how closely the deck should follow the source vs how freely it may reshape it. This is the user's own call — a free prose field (`content_divergence`), **not** a fixed set of options and **not** something you recommend from analyzing the source. Surface the question plainly (in the confirm UI it appears after the delivery-context fields); leave it for the user to fill. Blank = a balanced default.Read the user's prose as a point on a spectrum and apply judgment — from *stay close* (track the source's structure and wording, tune only for clarity, no substantive add / drop) through the default *balanced* (re-architect and distill into a narrative under the locked `mode`, keeping all substance) to *free* (regroup, reframe, expand terse points, draw out connections latent in the source, invent section structure and transitions).@@ -62,10 +77,26 @@ Read the user's prose as a point on a spectrum and apply judgment — from *stay**Fact provenance contract**: When `sources/*.facts.json` exists, read it before outlining and reference its stable `fact_id` values in every §IX page that uses an external quantitative or factual claim. Add `Fact IDs: F001, ...` to that page. Invented demo KPIs, internal ratios, targets, and roadmap numbers must instead carry `Data class: scenario`; never assign them an external `fact_id`. The same page may use both classes, but each number's class must remain unambiguous so Executor can place citations in notes/footnotes and visibly label scenario data.-**Consumption — outline-authoring only.** Apply the user's stated intent when authoring the `§IX` outline. Record the prose (or "balanced default") in `design_spec.md §I` (Content Strategy). Do **NOT** write it to `spec_lock.md` — it is baked into `§IX` at authoring time and the Executor never reads it. It carries no page-count coupling — the §b page count stays the user's separate call. The beautify profile and Fill Native PPTX route keep content verbatim, so they do not surface this field.+When authoring §IX, translate every purpose named in `communication_intent` into an outline obligation. The rows below are a reasoning checklist, not a classifier; apply every relevant row and preserve the user's stated priority / sequence:++| Intent named in the prose | Outline must enable |+|---|---|+| Inform | Relevant facts with enough context to know why they matter |+| Explain | Mechanism, relationship, cause, or meaning made traceable |+| Persuade | Claim + evidence + material objections / alternatives |+| Decide | Explicit decision ask + options + criteria + trade-offs + consequence of delay |+| Align | Shared frame + priorities + owners + next steps |+| Teach | Prerequisites + sequence + worked application / check for understanding |+| Report and account | Baseline + progress + variance + evidence + risk + ownership |+| Mobilize | Urgency + agency + concrete action + immediate next step |+| Record and hand off | Context + decisions + status + owners + unresolved items + durable provenance |++**Material-divergence consumption — outline-authoring only.** Apply the user's stated divergence intent when authoring the `§IX` outline. Record the prose (or "balanced default") in `design_spec.md §I` (Content Strategy). Do **NOT** write it to `spec_lock.md`—it is baked into `§IX` at authoring time and the Executor never reads it. It carries no page-count coupling. Beautify seeds verbatim preservation and surfaces the field as locked/read-only; the server restores the locked value on every staged submit. Fill Native PPTX does not surface the field because that route is outside this confirmation flow.### d. Style Objective Confirmation+**Stage 2 only.** Do not recommend or confirm any item in this section until the Stage-1 communication contract is confirmed. These are tools selected to serve the scenario, not substitutes for defining it.+Two independent layers, each locks one catalog item. Output: `d. Mode: <mode> + Visual style: <visual_style>`.> **Presenting a `custom` lock — spell it out.** Whenever either layer resolves to `custom`, the confirmation must state the bespoke choice in **plain language** — what the cadence / fusion / posture actually is (Layer 1), or what the aesthetic actually is (Layer 2) — so the user confirms a legible direction, never the bare word `custom`. Show this prose in the confirmation first; it is the same content you then crystallize into the `mode_behavior` / `visual_style_behavior` line. e.g. `d. Mode: custom — open with a narrative hook, then a pyramid analysis core, then a showcase close (no single dominant spine)` — not just `Mode: custom`.@@ -80,7 +111,7 @@ The deck's **narrative + persuasion skeleton** — how the argument is organized- User supplied their own outline / structure → it is authoritative. Transcribe it into `§IX` as given (page order + titles preserved); still lock a mode, but for register / voice and page-internal treatment, **not** to reshape — never reorder the user's pages or rewrite their given titles. Note in `design_spec.md` that the structure is user-authored. `briefing` imposes the least if no particular "讲法" is intended.- Beautify / re-layout profile ([`beautify-pptx.md`](../workflows/profiles/beautify-pptx.md)) → the extracted source content is authoritative and **verbatim**, one step stricter than the user-outline case above. Each source slide becomes exactly one `§IX` page in source order; transcribe every content block word-for-word — never reshape / re-primary / condense / merge / split / reword. Lock `mode: briefing`; color (e) and typography (g) are whatever the user confirmed in the beautify plan — the source identity (theme or observed) by default, or a content / brand-aware alternative the beautify plan offered and the user picked — locked as truth (the beautify plan already ran the recommendation through the confirm UI, so do not re-recommend here). Charts / tables / images are regenerated from their extracted data in the inherited style (route chart/table data to §VII, pictures to §VIII) — data values stay frozen, the rendering is the deck's own; never carried over verbatim. Layout, hierarchy, rhythm, and visual rendering are what gets redesigned.- A bespoke direction the five don't give — a nameable cadence (dialectic 正反合, myth-vs-reality, countdown, Socratic), a multi-act fusion of modes, or the user's own feel (confrontational here, detached there). Either the user asks, **or you recommend it** when a fusion / bespoke direction genuinely serves the deck better than a single preset (a recommendation the user confirms, like every lock). The *kind* doesn't matter → `mode: custom` + a `mode_behavior:` paragraph that **crystallizes the intent** (act sequence or posture shifts, title voice, page rhythm, register) concretely enough for the Executor to follow per page; it reads only `spec_lock.md`, never the chat. One deck locks **one** value — a fusion is one `custom` describing the acts, never several modes. Avoid only the *dodge*: don't default to `custom` when a preset genuinely fits, and prefer a dominant mode + page-level variation when one mode leads.-- No user structure or cadence → recommend by the index's auto-selection table (content / audience signal → mode) plus the deck's stated purpose; the mode does the structural lifting. Present as a recommendation; the user may override.+- No user structure or cadence → recommend from the confirmed `communication_intent`, `audience_outcome`, source texture, and delivery context using the index's auto-selection table. Composite intent does not automatically require `custom`: choose the dominant spine of the body pages when one exists; use a concrete `custom` act sequence only when no single spine can serve the stated priority / sequence. Present as a recommendation; the user may override.Write the locked value to `spec_lock.md` `- mode:` and record the rationale in `design_spec.md` (for `custom`, also write the sibling `- mode_behavior:` paragraph). Executor loads only that one mode file, or follows `mode_behavior` when the value is `custom`.@@ -114,7 +145,7 @@ Write the locked value to `spec_lock.md` `- visual_style:` and the rationale to**Deterministic language mapping**: “不要严格复用”, “只参考风格”, “参考这个风格”, and “不必照搬版式” recommend `style` unless the user explicitly asks to retain the layout system, in which case recommend `layout`. “原样复刻”, “替换内容”, and “保持模板页面外观” recommend `mirror` only when `replication_mode: mirror` is available. A bare template path with no stronger language defaults to `layout`, not `mirror`.-For `mirror` / `layout`, surface the second closed Stage-1 choice, `template_adherence`. Hide it for `style`.+For `mirror` / `layout`, surface the second closed Stage-2 choice, `template_adherence`. Hide it for `style`.| Value | Planning and export behavior ||---|---|@@ -123,6 +154,16 @@ For `mirror` / `layout`, surface the second closed Stage-1 choice, `template_adh**Default — layout + adaptive**: When the user supplied only a template path, recommend `layout` and `adaptive`. Preselect `strict` only when the user explicitly asks to keep the selected Layout contract unchanged. Record the confirmed scope in `design_spec.md §I` and as `template_reuse_scope` under `spec_lock.md pptx_structure`; record adherence only for `mirror` / `layout`.+**Scenario fit comes before template capability.** A workspace advertising `mirror` does not mean the project should consume it in mirror mode. Recommend from the confirmed communication contract:++| Scope | Appropriate when |+|---|---|+| `mirror` | The artifact is a repeat of a known recurring form; literal appearance and text topology are requirements; the new content fits the prototype's existing page roles / slots without changing the argument structure. |+| `layout` | The same structural system and brand should continue, but the new communication outcome requires reflow, new page-level emphasis, or an explicit adaptive Layout. |+| `style` | Only visual identity is reusable, or the audience outcome / narrative needs a different sequence, density, or composition system. |++When the contract conflicts with the template, surface the mismatch in the recommendation instead of forcing content into the available shapes. Template capability constrains what is legal; scenario fit decides what is useful.+> Note: `content_divergence` controls how source material is reorganized; `template_reuse_scope` controls which template layer is reused; `template_adherence` controls structural strictness inside `mirror` / `layout`. Never collapse these axes.**Downstream effect**: e / f / g / h realize the locked mode + visual style. Example: `showcase` + `dark-tech` → e applies one luminous accent on a dark field; g pairs a clean sans with mono; f minimal glow icons; h the `digital-dashboard` rendering.@@ -266,27 +307,27 @@ See [`../templates/icons/README.md`](../templates/icons/README.md) for the curre> **Unit boundary (HARD rule).** The system is **px-only**. `recommendations.json`, the Confirm UI, `result.json`, `design_spec.md`, `spec_lock.md`, and SVG **all carry unitless px** — there is no pt layer anywhere, and no pt→px conversion step. pt exists only as the size PowerPoint happens to show *after export* (`px × 0.75`, rounded to 1 decimal); it is never an input, a confirmation value, or a provenance field (no `body_size_pt` / `sizes_pt`). Never write `pt` / `px` / `em` units; every layer carries bare px numbers. Geometry — margins, gaps, card sizes — is px too. (The beautify profile reads a source deck's pt at intake but converts to px **before** any recommendation — see [`beautify-pptx.md`](../workflows/profiles/beautify-pptx.md); pt never re-enters the contract.)-**Baseline — one fixed value per delivery purpose, not a range.** Delivery purpose is a **Stage-1 anchor confirmed in §c key information** (beside audience, not as a separate typography step — see §1 Three-stage confirmation); it is the primary driver because the same canvas reads very differently when read close vs. projected. It is a **deck-wide** axis — beyond the body baseline it also drives page density / count / rhythm; see §6.1 for that side. Here, with the purpose confirmed, it sets the body baseline to a single value:+**Baseline — one fixed value per reading mode, not a range.** Reading mode is confirmed in Stage 2 (compatibility key `delivery_purpose`). It is the primary body-size driver because the same canvas reads differently when read close vs. projected. It is a deck-wide technical axis—beyond the body baseline it drives density / count / rhythm; it never replaces the open-ended communication intent. Here, with the mode confirmed, it sets one baseline:-| Delivery purpose (PPT 16:9) | Body (px) | Reads as |+| Reading mode (PPT 16:9) | Body (px) | Reads as ||---|---:|---|| `text` · read-close (report, data-dense brief, leave-behind file) | 20px | screen / handout reading at arm's length || `balanced` · business (presented **and** read; roadshow, review) — **default** | 24px | mixed projection + reading || `presentation` (projected, sparse; keynote, launch, classroom) | 32px | room projection, glance from the back |-The body baseline is **purely a function of delivery purpose** — density and visual style do **not** nudge it within a range. Body size is the reading-distance proxy; density is orthogonal and shows in **how much text per page, page count, and `page_rhythm`** (§6.1), the *other* roles, and decoration — never in growing or shrinking the body baseline. One purpose → one body size, identical across the deck. (The user may still override the value in confirmation; absent an override, this fixed value is the recommendation.)+The body baseline is **purely a function of reading mode**—density and visual style do **not** nudge it within a range. Body size is the reading-distance proxy; density is orthogonal and shows in **how much text per page, page count, and `page_rhythm`** (§6.1), the *other* roles, and decoration—never in growing or shrinking the body baseline. One mode → one body size, identical across the deck. (The user may still override the value in confirmation; absent an override, this fixed value is the recommendation.)| Canvas | Height | Body baseline | Unit ||---|---|---|---|-| PPT 16:9 / 4:3 | 720 / 768 | 20 / 24 / 32 (by delivery purpose) | **px** |+| PPT 16:9 / 4:3 | 720 / 768 | 20 / 24 / 32 (by reading mode) | **px** || Xiaohongshu | 1242×1660 | 40–55 | px || WeChat / IG 1:1 | 1080×1080 | 27–36 | px || Story / Portrait | 1080×1920 | 48–64 | px || A4 | 1240×1754 | 44–58 | px |-> **Every canvas authors px directly.** PPT and social / print alike — the body baseline is a px number (PPT by delivery purpose above; social / print by the per-canvas value). No pt confirmation, no conversion step on any canvas.+> **Every canvas authors px directly.** PPT and social / print alike—the body baseline is a px number (PPT by reading mode above; social / print by the per-canvas value). No pt confirmation, no conversion step on any canvas.-> **Confirmed values win — never recompute over them.** The user's confirmed sizes are authoritative. **Confirm UI path**: take `result.json` `typography.body_size` / `sizes` (already px) **verbatim** — do **not** re-derive from the canvas even if the user changed it. The page deliberately does not auto-rescale font sizes when the canvas changes (it only updates the recommended-value hint), so `result.json` already reflects the user's intent; recomputing here would silently override their choice. **Chat-fallback path** (no `result.json`): take the px body baseline for the confirmed canvas + delivery purpose directly from the table above (no conversion). The `body_size` in `recommendations.json` is only a stale hint once the canvas changes — use the confirmed value, not the recommendation.+> **Confirmed values win — never recompute over them.** The user's confirmed sizes are authoritative. **Confirm UI path**: take `result.json` `typography.body_size` / `sizes` (already px) **verbatim**—do **not** re-derive from the canvas even if the user changed it. The page deliberately does not auto-rescale font sizes when the canvas changes (it only updates the recommended-value hint), so `result.json` already reflects the user's intent; recomputing here would silently override their choice. **Chat-fallback path** (no `result.json`): take the px body baseline for the confirmed canvas + reading mode directly from the table above (no conversion). The `body_size` in `recommendations.json` is only a stale hint once the canvas changes—use the confirmed value, not the recommendation.| Level | Ratio to body | 32px baseline (`presentation`) | 24px baseline (`balanced`) ||-------|---------------|---------------|---------------|@@ -402,7 +443,7 @@ The script renders PNGs into `images/`, trying `codecogs`, `quicklatex`, `mathpa>> **Propensity sets *whether* and the lean — never the *source* or the *how*.** Source still comes from `image_usage`: a `core` style does **not** silently generate AI spots when the user did not select AI — with no AI source it draws only on a confirmed source (`provided` / `web`) or goes without. How heavily and where stays Strategist judgment, and the locked style still governs deployment (a `sparse` style used on explicit request stays very few, very light). Do not force a quota, and do not phrase it as "few pages." Suitable means the spot improves rhythm, warmth, continuity, or section identity without carrying facts or competing with charts, photos, tables, screenshots, or key text.-> **Deck illustration motif — deploy one family as a through-line, not isolated spots.** When the deck leans into illustration (a `core` propensity, or an explicit user request for a designed, illustrated feel), the strongest use is **one coherent motif family** — a single subject world in the deck-wide rendering + palette locked at h.5 — deployed across scales: a cover anchor (`page_role: hero_page`), recurring section dividers for chapter identity ([image-layout-patterns](./image-layout-patterns.md) `#75`), and small body spots (`local` sheet→slice, `#63`). They read as one designed system because they share a family, not just a palette. **Source still bounds it** (same precedence as above): the AI motif — `hero_page` generations plus the sheet→slice spots — is planned **only when the confirmed `image_usage` includes `ai`**. With `provided` / `web`, a through-line is possible only when the supplied or sourced assets already form one visual family to carry across pages; otherwise the deck goes without rather than silently generating AI. Reach for it only when the deck suits it — **not a quota**: not every section needs a divider, a deck with no clear sections or no room for decoration is not forced into a motif, and the through-line never competes with charts, photos, tables, or key text. When a motif is in play, the cover / divider pages surfaced by the **hero_page suggestion** below and the body spots should be drawn from the same family. **The family is not one giant sheet** — the slicer cuts a uniform grid, so cover / divider anchors are their own `hero_page` generations (mechanics: [image-generator.md](./image-generator.md) §4.1) sharing the spot sheet's (§4.3) rendering, palette, and subject world.+> **Deck illustration motif — deploy one family as a through-line, not isolated spots.** When the deck leans into illustration (a `core` propensity, or an explicit user request for a designed, illustrated feel), the strongest use is **one coherent motif family**—one subject world sharing the deck-wide rendering and locked deck colors—deployed across scales: a cover anchor (`page_role: hero_page`), recurring section dividers for chapter identity ([image-layout-patterns](./image-layout-patterns.md) `#75`), and small body spots (`local` sheet→slice, `#63`). **Source still bounds it**: the AI motif is planned only when confirmed `image_usage` includes `ai`; `provided` / `web` can carry a through-line only when those assets already form one family. Use it when it serves the deck, never as a quota. Cover / divider anchors are separate `hero_page` generations sharing the spot sheet's rendering, deck colors, and subject world—not oversized cells in the sheet.**AI generation path — one sheet, then slice.** When spot illustrations are AI-generated and the deck needs ≥3 same-family elements, write one `ai` Illustration Sheet row plus one `slice` row per used element. Step 5 generates the sheet, then slices transparent PNG elements for placement. This is just AI-generated imagery batched for consistency and efficiency; do not generate one image per spot.@@ -422,80 +463,74 @@ Selections may be mixed at the row level — e.g. a deck can use C for hero illu> **Spot illustrations → one sheet, not N rows.** When the deck wants ≥3 small same-family spot illustrations as decorative accessories across pages (the illustration counterpart to icons), do not write one `ai` row per element. Write **one `ai` sheet row** (the sheet prompt intent — generated but never placed, kept out of `spec_lock.md images`) **plus one `slice` element row per used element** (each placed, each listed in `spec_lock.md images` so the Executor may reference it). The sheet row's `Reference` must name the intended cell shape family and placement purpose, such as "portrait side-accent spot set" or "landscape footer-vignette spot set"; the slice rows reference the parent sheet + cell. Step 5 / Image_Generator chooses the exact sheet ratio, grid, and slice command. Plan these sparingly, only where decoration genuinely lifts the page. Full resource contract + slice command: [`image-generator.md`](./image-generator.md) §4.3.-#### h.5 AI Image Strategy — lock rendering + palette (only when C is selected)+#### h.5 AI Image Strategy — lock rendering; inherit deck colors (only when C is selected)-When the deck includes any `ai` rows, Strategist locks a **deck-wide rendering** and **deck-wide palette** here. These two values are written into `design_spec.md §III` and `spec_lock.md colors` / `images` sections, then consumed by Image_Generator. Every AI image in the deck shares them — this is what makes multiple AI images feel like one deck.+When the deck includes any `ai` rows, Strategist locks one **deck-wide rendering** here. Every AI image shares it. Color is not a second image-specific decision: the Image_Generator reads the already-confirmed `spec_lock.md colors` roles directly and derives prompt proportions from them.-🚧 **GATE — before recommending values**: `read_file references/image-renderings/_index.md` and `read_file references/image-palettes/_index.md`. They contain the catalog, auto-selection tables, and a rendering × palette compatibility matrix.+🚧 **GATE — before recommending values**: `read_file references/image-renderings/_index.md`. It contains the rendering catalog and auto-selection table.#### Three-candidate presentation (default path)-**Hard rule**: Unless the user has already named a specific rendering or palette (chat or template), present **≥3 distinct rendering × palette combinations** and let the user pick. Never auto-lock a single combination silently.+**Hard rule**: Unless the user has already named a specific rendering (chat or template), include **≥3 distinct renderings** across the Stage-2 coordinated design directions. Never auto-lock one silently.-**Per-candidate schema** (exactly 4 lines, no extras):+**Per-candidate image fragment** (inside a complete Stage-2 direction):```-[Plan A] <temperament label> — <rendering> × <palette>+[Plan A] <temperament label> — <rendering>Visual: <shape / line / material / light, 1-2 phrases>- Color: <secondary HEX (ratio) + primary HEX (ratio) + accent HEX (ratio); HEX values from e.>Mood: <2-3 traits>; like <real-world analogy: company / publication / event>```After the candidates, append one line:```-> Reference images: see references/ai-image-comparison/ for matching PNGs by name.+> Rendering references: see references/ai-image-comparison/rendering/ for matching PNGs by name. Image colors inherit this direction's deck color scheme.```-**Confirm UI packaging**: when writing `recommendations.json` Stage 3, put **exactly three non-custom** generated-image recommendations in `image_strategy.candidates`. The page appends one built-in **Custom** card after those three recommendations, so do not use a `custom` candidate as a fourth option or as a slot filler in the UI payload.+**Confirm UI packaging**: put one `image_strategy` object inside each Stage-2 `design_directions` candidate when AI is selected. It carries `rendering`, localized `visual`, and localized `mood`; it carries no `palette` or `color`. The page derives the three rendering cards from those directions and appends one built-in Custom card.-**Confirmed Custom card prose**: when `result.json.image_strategy.custom` is non-empty, treat it as a confirmed deck-wide image-direction constraint. Write the prose into `design_spec.md §III` image direction notes and carry it into every `Acquire Via: ai` prompt brief / `images/image_prompts.json` prompt guidance that it applies to. It augments the locked `rendering` + `palette` ids; preserve those ids for catalog / comparison-reference behavior, and use the custom prose for subject, composition, texture, avoidance, or other prompt specifics.+**Confirmed Custom card prose**: when `result.json.image_strategy.custom` is non-empty, treat it as a confirmed deck-wide image-direction constraint. Write it into `design_spec.md §III` image direction notes and carry it into every `Acquire Via: ai` prompt brief. It augments the locked rendering id with subject, composition, texture, avoidance, or other prompt-specific constraints.**Hard rules for candidate construction**:| Rule | Behavior ||---|---|-| Filter by e.'s HEX | Only include palettes whose temperament can carry the user's HEX. Vivid red → exclude `cool-corporate` / `mono-ink`; include `vivid-launch` / `warm-earth` / `editorial-classic`. |-| HEX values in `Color` line MUST be e.'s real values | Palette contributes only the 60-30-10 ratio + role assignment. Never substitute the palette's typical HEX. |+| Fit the confirmed deck colors | Reject a rendering whose natural color tendency would fight the direction's locked HEX roles. Never modify the deck HEX to rescue a rendering. || Span a personality spectrum | Typically: one conservative-default (industry norm), one shifted-tone (same fit, 1-2 ticks different), one bold-contrast (more expressive, may challenge default). No near-duplicates. || `Mood` line MUST include a real-world analogy | Company / publication / event the user can picture. Adjective stacks alone are forbidden. || Adapt labels to chat language | Schema is English by default. Chinese chat → render as 「方案 A / 视觉 / 色彩 / 情绪」. Structure stays the same; only the labels translate. |-| Skip presentation when user has specified | User-named rendering or palette (chat / brand / template), **or a Confirm UI pick in `result.json.image_strategy`** (same shape as color / typography honoring their confirmed candidate), bypasses the candidate flow — lock *that chosen candidate's* `rendering` + `palette` directly per the truth-precedence rule; do not re-pick. |-| `custom` is a tail-case, not a default | When no preset fits, a candidate may set `rendering: custom` and / or `palette: custom` (rules: [`image-renderings/_index.md`](./image-renderings/_index.md) §1.5, [`image-palettes/_index.md`](./image-palettes/_index.md) §2). At most one candidate per dimension may carry `custom`; one candidate may carry both dimensions as `custom`. `Visual` / `Color` lines describe the behavior in prose, never by naming a competing preset. |+| Skip presentation when user has specified | A user-named rendering (chat / brand / template), or a Confirm UI pick in `result.json.image_strategy`, wins directly; do not re-pick. |+| `custom` is a tail-case, not a default | When no preset fits, at most one candidate may set `rendering: custom`; its `Visual` prose follows [`image-renderings/_index.md`](./image-renderings/_index.md) §1.5. Never use `custom` as a slot filler. |-**Forbidden — padding with conflicts**: if e.'s HEX cannot find ≥3 compatible palettes, present the smaller set (2 candidates) and state "your color is unusual — only N palettes can carry it without conflict." A `custom` candidate is allowed only when its prose genuinely describes a tail-case the presets cannot — not as a slot-filler. Never fill remaining slots with known-conflicting options.+**Forbidden — padding with conflicts**: if the locked visual / color constraints cannot support three credible renderings, present the smaller set and state why. Never fill remaining slots with known-conflicting options.-**Worked example** (e. = `#1E3A5F` navy + `#F8F9FA` off-white + `#D4AF37` gold; d. = consulting; chat in English):+**Worked example** (deck colors are already part of each complete design direction):```-[Plan A] Restrained Professional — vector-illustration × cool-corporate+[Plan A] Restrained Professional — vector-illustrationVisual: flat vector, solid color blocks, no gradients or shadows- Color: off-white #F8F9FA (60-70%) + deep navy #1E3A5F main (25-30%) + gold #D4AF37 accent (<5%)Mood: steady, trustworthy, restrained gravitas; like a McKinsey consulting report-[Plan B] Editorial Depth — editorial × editorial-classic+[Plan B] Editorial Depth — editorialVisual: magazine layout, 8% paper texture, column-based partitioning- Color: off-white #F8F9FA paper (55%) + deep navy #1E3A5F column (30%) + gold #D4AF37 rule line (10-14%)Mood: refined, considered, paced; like an Economist feature spread-[Plan C] Future Energy — 3d-isometric × tech-neon+[Plan C] Future Energy — 3d-isometricVisual: isometric 3D, soft shading, 8% glow halos around bright elements- Color: off-white #F8F9FA digital field (50%) + deep navy #1E3A5F main (35%) + gold #D4AF37 emphasis (10-15%)Mood: forward, energetic, futuristic; like an Apple or Stripe product keynote-> Reference images: see references/ai-image-comparison/ for matching PNGs by name.+> Every option uses the deck color roles locked in its parent design direction.```-**Worked example — `custom × custom`** (tail-case; e.g. 新中式 deck with `#1A1A1A` + `#F5EFE0` + `#A52A2A`):+**Worked example — `custom` rendering** (tail-case):```-[Plan A] 文人雅致 — custom × custom+[Plan A] 文人雅致 — customVisual: dry-brush burnt-ink, five tonal gradations, 宣纸 paper-grain, deliberate negative space; 朱泥 seal as single red mark- Color: cream #F5EFE0 ~65% negative space + burnt-ink #1A1A1A ~20% strokes + cinnabar #A52A2A 3-5% sealMood: literati restraint; like 苏州博物馆 pacing```-`Visual` / `Color` lines feed `spec_lock.md`'s `image_*_behavior` rows verbatim.+The `Visual` line feeds `spec_lock.md image_rendering_behavior` when rendering is `custom`; color roles remain ordinary deck-color rows.After the user picks a candidate (or supplies a custom variant), proceed to "Recording the lock" below.@@ -535,35 +570,12 @@ The tables below are source data Strategist reads when constructing the three ca| Classroom / blackboard / 课堂 | `chalkboard` | `sketch-notes` || Team / company / product photo | `corporate-photo` | — |-**Palette recommendation** (soft — user may override):--| Content vibe / industry | Recommended palette | Alternates |-|---|---|---|-| Consulting / finance / B2B / corporate / 学术答辩 | `cool-corporate` | `editorial-classic`, `frost-ice` |-| Tech / SaaS / AI | `tech-neon` | `cool-corporate`, `dark-cinematic` |-| Modern SaaS / fintech / health-tech | `frost-ice` | `cool-corporate`, `tech-neon` |-| Health / medical / beauty / skincare | `frost-ice` | `nature-organic`, `earthy-dusty` |-| Education / training | `macaron` | `warm-earth` |-| Methodology / Before-After | `mono-ink` | `editorial-classic` |-| Personal / lifestyle / brand story | `warm-earth` | `nature-organic`, `earthy-dusty` |-| Interior / wellness / mindfulness / slow living | `earthy-dusty` | `warm-earth`, `nature-organic` |-| Product launch / marketing | `vivid-launch` | `tech-neon`, `sunset-gradient` |-| Creative agency / travel / music / lifestyle | `sunset-gradient` | `vivid-launch`, `warm-earth` |-| Luxury / fashion / jewelry / premium / heritage | `jewel-tone` | `dark-cinematic`, `editorial-classic` |-| Children / storybook | `macaron` | `warm-earth` |-| Premium / film / entertainment | `dark-cinematic` | `jewel-tone`, `duotone` |-| Cultural / media / cover-art | `duotone` | `editorial-classic` |-| Environment / wellness | `nature-organic` | `warm-earth`, `earthy-dusty` |-| Finance / journalism | `editorial-classic` | `cool-corporate` |--After auto-selecting, cross-check `image-palettes/_index.md` compatibility matrix — if rendering × palette is `✗`, swap to the alternate palette.--**d-e-f-g linkage sanity check** (do this after picking rendering + palette):+**d-e-f-g linkage sanity check** (do this after picking rendering):| Linkage | What to verify ||---|---|| **d. Style ↔ rendering** | Rendering family should match the Style descriptor's temperament (corporate ≠ sketch-notes; tech ≠ watercolor). Already enforced by the recommendation table above. |-| **e. Color HEX ↔ palette** | HEX is truth — palette is just the "how to use these HEX" rulebook for AI images (saturation / contrast / 60-30-10 / material). Mismatch → **always swap palette to fit the HEX, never adjust the HEX to fit a palette**. E.g. user gives a vivid red but you auto-picked cool-corporate — switch to vivid-launch or warm-earth, do not propose dimming the red. |+| **e. Color HEX ↔ rendering** | Deck HEX is truth. If a rendering's natural color tendency fights those roles, change the rendering—not the deck colors. Image_Generator derives proportions from the locked deck roles. || **f. Icon library ↔ rendering** | `tabler-outline` pairs well with all renderings (most versatile). `chunk-filled` / `tabler-filled` pair better with `vector-illustration` / `flat` / `editorial`. `phosphor-duotone` pairs with `flat` / `digital-dashboard`. Mismatch is not fatal but worth flagging. || **g. Typography ↔ rendering** | Serif title → pairs well with `editorial`, `corporate-photo`, `screen-print`. Hand-lettered direction → already implied by `sketch-notes` / `ink-notes` (the rendering carries the lettering, no separate font requirement). Display font → `vivid-launch` / `screen-print`. Mismatch is rarely fatal; note in conversation if it feels off. |@@ -572,24 +584,20 @@ After auto-selecting, cross-check `image-palettes/_index.md` compatibility matri- `design_spec.md §III Visual Theme` — add lines under the color table:```- **Image Rendering**: vector-illustration- - **Image Palette**: cool-corporate```- `spec_lock.md colors` section — add rows at the bottom:```- image_rendering: vector-illustration- - image_palette: cool-corporate```-**Hard rule — `custom` recording**: when the picked candidate has `rendering: custom` or `palette: custom`, also write the sibling `*_behavior` row. Source: the candidate's `Visual` line (for rendering) / `Color` line (for palette), expanded to cover the prose requirements in [`image-renderings/_index.md`](./image-renderings/_index.md) §1.5 / [`image-palettes/_index.md`](./image-palettes/_index.md) §2 (chat candidates are compressed; spec_lock prose covers all axes). Both `design_spec.md` and `spec_lock.md` must carry the behavior line. Example for the `custom × custom` candidate above:+**Hard rule — `custom` recording**: when the picked candidate has `rendering: custom`, also write `image_rendering_behavior`. Expand the candidate's `Visual` line to cover [`image-renderings/_index.md`](./image-renderings/_index.md) §1.5. Both `design_spec.md` and `spec_lock.md` carry the behavior line:```- image_rendering: custom- image_rendering_behavior: "Dry-brush burnt-ink with five tonal gradations, 宣纸 paper-grain at 12% opacity, deliberate negative space; 朱泥 seal as a single red mark; no Western outlines, no gradients."-- image_palette: custom-- image_palette_behavior: "宣纸 cream `#F5EFE0` carries ~65% as negative space; burnt-ink `#1A1A1A` anchors ~20% as brush strokes; cinnabar `#A52A2A` only in 3-5% as seal. Literati restraint — no fourth color."```-Image_Generator reads these fields and applies them deck-wide. If both are absent (legacy decks), it falls back to inferring from `d. Style` and `e. Color` — quality is acceptable but not optimal. Always lock both when C is selected.+Image_Generator reads this rendering lock deck-wide and reads the ordinary color-role rows from the same `spec_lock.md colors` section. A legacy `image_palette` row may still exist in an old lock, but the current flow ignores it; it never overrides the deck HEX roles and is never authored by the new flow.#### hero_page suggestion (same confirmation turn)@@ -632,7 +640,7 @@ After the user picks a candidate, scan the outline and surface any pages where t| Acquire Via | Reference pattern ||---|---|-| `ai` | **Subject + intent + composition** only. Do NOT repeat style words ("flat design", "modern", "vector") or HEX values — both are already locked deck-wide by h.5 (rendering + palette) and `design_spec §III` (colors). Image_Generator's prompt assembler injects them automatically. |+| `ai` | **Subject + intent + composition** only. Do NOT repeat style words or HEX values—rendering is locked by h.5 and deck color roles by `design_spec §III` / `spec_lock.md colors`. Image_Generator injects them automatically. || `web` | Concrete subject/place/object first, then 1-3 quality descriptors || `formula` | Original LaTeX plus short placement intent, e.g. `formula_001: block energy-mass equation for P03` |@@ -826,15 +834,15 @@ Templates are starting points. The Strategist may adjust based on content and auContent-outline and speaker-notes strategy follow the deck's locked **mode** — see [`modes/_index.md`](./modes/_index.md) and the locked mode's file. The guidance below applies within any mode:-**Delivery purpose drives the whole plan, not just type size.** `result.json delivery_purpose` — `text` (read-close) / `balanced` (business, default) / `presentation`, confirmed as a Stage-1 anchor (§1) — is a **deck-wide consumption mode**. It seeds the body baseline (§g) **and** governs how content is distributed:+**Consumption mode drives density, not communication intent.** `result.json delivery_purpose` is retained as the compatibility key for `text` (read-close) / `balanced` (business, default) / `presentation`, confirmed with the complete deck solution in Stage 2. It seeds the body baseline (§g) **and** governs how content is distributed, but it does not answer why the deck exists:-| Delivery purpose | Per-page density & treatment | §IX content per page | page_rhythm lean |+| Consumption mode | Per-page density & treatment | §IX content per page | page_rhythm lean ||---|---|---|---|| `text` · read-close | dense — pack more per page, fuller layouts | prose paragraphs, more blocks, tables / fine detail; complete sentences | leans `dense` || `balanced` · business (default) | balanced | one primary + supporting points; moderate text | mixed || `presentation` | sparse — one idea per page, generous whitespace | keywords / short phrases, a single core message, large visual; never paragraph dumps | leans `anchor` / `breathing` |-This is what makes the axis meaningful: a `presentation` deck and a `text` deck built from the **same source** must differ in per-page text volume, layout density, and rhythm — **not only in font size**. Page count (item b) stays the user's call; delivery purpose governs the **density and treatment within it**, and informs the page-count recommendation when the user has not fixed one. Record the chosen purpose in `design_spec.md §I`. The `page_rhythm` leans are a bias, not a quota — the filler-page ban and "rhythm follows narrative" rule still hold. (Preservation paths — beautify / template-fill — keep source structure verbatim: honor purpose only in styling, never to re-paginate.)+This is what makes the axis meaningful: a `presentation` deck and a `text` deck built from the **same source and communication contract** must differ in per-page text volume, layout density, and rhythm—not only in font size. Page count stays the user's call; reading mode governs density and treatment and informs the recommendation when the user has not fixed one. Record it as **Reading Mode** in `design_spec.md §I` (compatibility key `delivery_purpose`, lock key `consumption_mode`). Separately, `communication_intent` / `audience_outcome` determine what the outline must accomplish, `delivery_context` determines presenter dependence and pacing, and `artifact_afterlife` determines how self-contained, attributable, and reusable the file must remain after the event. The `page_rhythm` leans are a bias, not a quota. Preservation paths keep source structure verbatim: honor reading mode only in styling, never to re-paginate.**Per-block expression**: phrase each §IX content block in the mode that fits it — prose, bullet, keyword, or any phrasing the content calls for — not a default bullet. Take the cue from the source's texture: a narrative source (article / transcript / talk) leans prose — resist compressing its argument pages into fragments; a data sheet leans bullet/keyword. Write the real sentence into §IX itself, not a skeleton point to expand later. One page mixes modes; let layout pull each (narrative → prose, structural/chart → bullets/keywords).@@ -844,7 +852,7 @@ This is what makes the axis meaningful: a `presentation` deck and a `text` deck| Chapter | Content Requirements ||---------|---------------------|-| I. Project Information | Project name, canvas format, page count, style, audience, scenario, delivery purpose, date |+| I. Project Information | Project name, canvas, page count, audience, communication intent, audience outcome, core message / ask, delivery context, artifact afterlife, reading mode, content strategy, style / template direction, date || II. Canvas Specification | Format, dimensions, viewBox, margins, content area || III. Visual Theme | Style description, light/dark theme, tone, color scheme (with HEX table), gradient scheme || IV. Typography System | Font plan (per-role families — title / body / emphasis / code), font size hierarchy |@@ -852,17 +860,18 @@ This is what makes the axis meaningful: a `presentation` deck and a `text` deck| VI. Icon Usage Spec | Source description, placeholder syntax, recommended icon list || VII. Visualization Reference List | Visualization type, reference template path, used-in pages, purpose || VIII. Image Resource List | Filename, dimensions, ratio, purpose, status, generation description |-| IX. Content Outline | Grouped by chapter; each page includes layout, title, core message (the page's one idea), content blocks (in the selected phrasing mode), visualization type (if applicable), plus `Fact IDs` for sourced claims and `Data class: scenario` for invented demonstration data |+| IX. Content Outline | Grouped by chapter; each page includes layout, title, core message (the page's one idea), **audience move** (how the page advances the global outcome), content blocks (in the selected phrasing mode), visualization type (if applicable), plus `Fact IDs` for sourced claims and `Data class: scenario` for invented demonstration data || X. Speaker Notes Requirements | File naming rules, content structure description |**Generation steps**:1. Read reference template: `templates/design_spec_reference.md`2. Generate complete spec from scratch based on analysis3. Save to: `projects/<project_name>.../design_spec.md`-4. **Generate execution lock**: read `templates/spec_lock_reference.md` and produce `projects/<project_name>.../spec_lock.md` — a compact, machine-readable form of the color / typography / icon / image / **page_rhythm** / **page_charts** and route-specific PowerPoint structure decisions above. Within the PowerPoint structure portion, free-design, brand-only, and `template_reuse_scope: style` routes write `pptx_structure.mode: flat` and omit all template mappings; only `template_reuse_scope: mirror|layout` routes additionally write `page_layouts`, `page_pptx_layouts`, `pptx_masters`, and `pptx_layouts`. This file is what the Executor re-reads before every page (see [executor-base.md](executor-base.md) §2.1). The values in `spec_lock.md` MUST exactly match the decisions recorded in `design_spec.md`; if they ever diverge, `spec_lock.md` wins and `design_spec.md` should be treated as historical narrative.+4. **Generate execution lock**: read `templates/spec_lock_reference.md` and produce `projects/<project_name>.../spec_lock.md` — a compact, machine-readable form of the global **communication contract**, color / typography / icon / image / **page_rhythm** / **page_charts**, and route-specific PowerPoint structure decisions above. Do not copy `content_divergence` into the lock; its effect is already authored into §IX. Within the PowerPoint structure portion, free-design, brand-only, and `template_reuse_scope: style` routes write `pptx_structure.mode: flat` and omit all template mappings; only `template_reuse_scope: mirror|layout` routes additionally write `page_layouts`, `page_pptx_layouts`, `pptx_masters`, and `pptx_layouts`. This file is what the Executor re-reads before every page (see [executor-base.md](executor-base.md) §2.1). The values in `spec_lock.md` MUST exactly match the decisions recorded in `design_spec.md`; if they ever diverge, `spec_lock.md` wins and `design_spec.md` should be treated as historical narrative.+ - **Communication trace is mandatory**: Copy `audience`, `communication_intent`, `audience_outcome`, `core_message`, `delivery_context`, `artifact_afterlife`, and canonical `consumption_mode` into `spec_lock.md communication`. Before finalizing §IX, check that every named purpose has at least one outline obligation and **every Slide block**, including cover / divider / closing pages, has an `Audience move` that advances the global outcome. A page that advances no purpose or outcome should be merged, rewritten, or cut. `project_manager.py validate` and `svg_quality_checker.py` enforce the section / field presence, not the subjective quality of the move.- **page_rhythm is mandatory**: Based on the page list in §IX Content Outline, assign each page one of `anchor` / `dense` / `breathing` (see `spec_lock_reference.md` for the full vocabulary). This is what breaks the uniform "every page is a card grid" feel — without it the Executor defaults all pages to `dense`.- **Fact IDs and scenario labels are mandatory when applicable**: Read any `sources/*.facts.json`. For each §IX page, list the stable IDs actually used; never cite an ID whose claim is absent from the page. Mark invented KPIs/targets/internal ratios as `Data class: scenario` and state which values are scenario data. Executor carries external sources into notes/footnotes and renders a visible scenario label for scenario figures.- - **Rhythm follows narrative, not quota**: `breathing` pages mark natural pauses — chapter transitions, standalone emphasis (hero quote / big number), SCQA bridges. Dense decks may legitimately be all `dense`. **Do NOT invent filler pages** ("Thank you", empty dividers) to pad rhythm — every `breathing` page must say something independent. Delivery purpose biases the overall lean (`presentation` toward more `anchor` / `breathing`, `text` toward `dense`; see §6.1) — a bias, never a quota.+ - **Rhythm follows narrative, not quota**: `breathing` pages mark natural pauses — chapter transitions, standalone emphasis (hero quote / big number), SCQA bridges. Dense decks may legitimately be all `dense`. **Do NOT invent filler pages** ("Thank you", empty dividers) to pad rhythm — every `breathing` page must say something independent. Consumption mode biases the overall lean (`presentation` toward more `anchor` / `breathing`, `text` toward `dense`; see §6.1) — a bias, never a quota.- **Cover impact is mandatory**: Page `P01` is the deck's first visual contract, not a generic title slide. In `design_spec.md §IX`, add a `Cover impact` line for `P01` that names one concrete hook and one concrete composition strategy. Use the source's strongest available signal: a provocative core claim, object / scene metaphor, hero number, founder / product / audience moment, or a distilled conflict. Pair it with one concrete composition strategy — such as `full-bleed image + floating title`, `typographic poster`, `hero object`, `data hook`, `editorial scene`, `high-contrast abstract geometry`, or a fresh composition the deck's subject suggests (these are starting points, not the allowed set). If no external or AI image is available, still specify a native-SVG visual hook; do not fall back to "title + subtitle + decorative background". (Beautify / template-fill keep the source cover verbatim — this rule does not apply on those preservation paths.)- **Cover rhythm lock**: `P01` remains `anchor` in `spec_lock.md page_rhythm`, but its §IX `Cover impact` must prevent content-page patterns. Do not plan multi-card grids, agenda-like bullets, or equal-weight columns on the cover unless a template explicitly requires that structure, or a preservation path (beautify / template-fill) is transcribing the source cover verbatim.- **Closing impact (only when the deck closes)**: the deck's last page is its final visual contract — the strongest impression after the cover. When the deck genuinely lands on a conclusion / call-to-action / final-takeaway page, give it a `Closing impact` line in §IX: name the one thing the audience should leave with (a distilled takeaway, a forward call, a memorable restatement of the core claim) + one composition that delivers it — never a generic "Thank you" / contact-only slide or a centered-title reprise of the cover. **Do NOT invent a closing page to satisfy this** — the filler-page ban above still holds; apply it only to the page where the deck actually resolves. Same exemptions as the cover: skip on template / beautify / template-fill preservation paths.diff --git a/skills/ppt-master/references/template-designer.md b/skills/ppt-master/references/template-designer.mdindex a6e55773..619ac457 100644--- a/skills/ppt-master/references/template-designer.md+++ b/skills/ppt-master/references/template-designer.md@@ -153,7 +153,7 @@ When the brief sets `Replication mode: mirror`, materialize a new template works- Forbidden: commonality extraction, semantic synthesis, merging, splitting, promotion, demotion, renaming, re-parenting, decorative simplification, placeholder invention, or replacement of supported source-native metadata / SVG fallback with a model-authored approximation.- `design_spec.md` §V Page Roster lists every emitted file and marks definition-only prototypes explicitly. `Source Preservation Map` records each source-slide assignment plus every unused Layout definition and its parent Master.-**Mirror consumption boundary**: `mirror` applies only while creating the template package from the source deck. Once created, the package is consumed as an ordinary deck / layout template roster: downstream generation may select, repeat, skip, reorder, or adapt pages according to the new content. The `replication_mode: mirror` field must not force the generated deck to preserve the source page count, source order, or one-output-slide-per-template-slide mapping.+**Mirror consumption boundary**: `replication_mode: mirror` describes source-to-workspace fidelity and enables — but never forces — the downstream `template_reuse_scope: mirror` option. Stage 2 chooses `mirror`, `layout`, or `style` from the confirmed communication contract. With mirror scope, each output page starts from one selected complete prototype and changes only allowed visible text values; with layout or style scope, the corresponding adaptation rules apply. None of the three scopes forces the generated deck to preserve source page count, source order, or a one-output-slide-per-source-slide mapping; prototypes may still be selected, repeated, skipped, or reordered.**What mirror is not**: a redesign, topology-cleanup, or recovery mode. It may mechanically transcode the imported representation into the current explicit SVG/package contract, so byte identity is not promised. Charts, SmartArt, OLE objects, and EMF / WMF media that fail to round-trip in `pptx_template_import.py` will fail the same way in mirror. If the import workspace has missing media or unsupported objects, mirror inherits those gaps — report them before materialization begins.diff --git a/skills/ppt-master/references/visual-styles/_index.md b/skills/ppt-master/references/visual-styles/_index.mdindex c3e45187..c35a1461 100644--- a/skills/ppt-master/references/visual-styles/_index.md+++ b/skills/ppt-master/references/visual-styles/_index.md@@ -2,7 +2,7 @@A **visual style** is how the deck **looks** — shape language, decoration density, whitespace rhythm, typographic character, texture / elevation. Lock **one per deck**; it anchors the aesthetic of the SVG layout itself (cards, dividers, spacing, corner radius, shadow use).-> **Styles carry NO HEX and lock no palette.** Color truth lives in `design_spec.colors` / `spec_lock.colors` (confirmation `e`); color *behavior* lives in [`image-palettes/`](../image-palettes/). A visual style only describes how the deck's existing colors are *used* — never which colors. (Same discipline as [`image-renderings/`](../image-renderings/) for AI images.)+> **Styles carry NO HEX and lock no palette.** Color truth and role behavior live in `design_spec.colors` / `spec_lock.colors` (confirmation `e`). A visual style only describes how those existing colors are used in SVG composition—never which colors to substitute. Generated images follow the same single source of truth: their rendering comes from [`image-renderings/`](../image-renderings/), while their exact colors inherit the deck roles directly. [`image-palettes/`](../image-palettes/) is legacy compatibility material only.>> A visual style is *not* a mode. **Visual style = how it looks; mode = how you argue** (see [`modes/_index.md`](../modes/_index.md)). Locked independently — any style pairs with any mode.diff --git a/skills/ppt-master/scripts/docs/confirm_ui.md b/skills/ppt-master/scripts/docs/confirm_ui.mdindex dbb9ff02..49cf8334 100644--- a/skills/ppt-master/scripts/docs/confirm_ui.md+++ b/skills/ppt-master/scripts/docs/confirm_ui.md@@ -1,6 +1,6 @@# Confirm UI — Strategist Confirmation Stage Page-> The interactive, visual surface for SKILL.md Step 4 (the Strategist confirmation stage). Enumerable fields list **all** options from a catalog with the AI's recommendation badged; generative fields (color, typography, generated-image style) show **≥3** AI candidates (creative recommendations always offer real choice — same rule as the h.5 image strategy; fewer only on the honest-shortfall exception, with a stated reason). Fields whose universe is open (canvas, mode, visual style, icons) also get a **Custom** box; image usage is a multi-select source list plus a free-text `image_notes` box. Fully closed fields (template adherence when a deck/layout template is active, AI source when applicable, formula policy, generation mode, refine spec) do not. The AI writes its recommendation to `recommendations.json`; the user's final choices are written back to `result.json` for the AI to read. On confirm the page saves the result and shuts the server down (auto-close). The chat path is always a valid fallback — if the browser cannot open (remote / headless / web host), the AI presents the same staged confirmation in chat.+> The interactive, visual surface for SKILL.md Step 4. Stage 1 is an open communication brief: common purpose paths are prompt text, never checkboxes or a forced single label. Stage 2 offers **≥3 coordinated design directions** and then exposes their component values for deliberate override; color, typography, icons, and generated-image rendering are one system rather than unrelated grids. Generated images inherit the selected deck colors directly—there is no image-palette control. Stage 3 contains production mechanics only. The AI writes `recommendations.json`; confirmed values accumulate into `result.json`. Final confirm saves the result and shuts the server down. The chat path mirrors the same staged semantics.## Authority and Scope@@ -16,13 +16,13 @@**Hard rule**: Keep detailed Confirm UI behavior here. `SKILL.md` may summarize the orchestration, but it should not duplicate the full JSON schema, catalog behavior, or launcher lifecycle.-**Fallback rule**: Browser failure never cancels Step 4. Re-check `result.json` once, then use the chat confirmation path with the same three-stage semantics.+**Fallback rule**: Browser failure never cancels Step 4. Re-check `result.json` once, then use the chat confirmation path with the same three-stage semantics. Stage-1 chat prompts remain open questions; do not turn the hint vocabulary into a numbered selection.## `confirm_ui/server.py````bashpython3 scripts/confirm_ui/server.py <project_path> --daemon --wait # launch + wait for Stage 1-python3 scripts/confirm_ui/server.py <project_path> --wait-only --wait-stage stage2 # Stage 2: wait for the design-system handoff+python3 scripts/confirm_ui/server.py <project_path> --wait-only --wait-stage stage2 # Stage 2: wait for the direction handoffpython3 scripts/confirm_ui/server.py <project_path> --wait-only # Stage 3: wait for the final resultpython3 scripts/confirm_ui/server.py <project_path> --daemonpython3 scripts/confirm_ui/server.py <project_path> --daemon --port 5051@@ -35,12 +35,12 @@ python3 scripts/confirm_ui/server.py <project_path> --shutdown # Step 4 clean- In `--daemon` mode the launcher starts the child server with browser opening suppressed, waits for `GET /api/health` to prove the server is accepting requests, then opens the printed `http://127.0.0.1:<port>` URL. If health never becomes reachable, the command fails before presenting a dead page.- **Shares port 5050 with the live preview server** (`svg_editor/server.py`). The two never run at once: confirm is Step 4, live preview is Step 6, and Step 4 always shuts this server down on exit (see `--shutdown`) so the port is free. One port = one forward rule for the whole pipeline. They still keep **separate processes and locks** (`.confirm_ui.lock` vs `.live_preview.lock`).- `--daemon` starts the Flask process in the background; add `--wait` in the main pipeline so the parent command returns only after the page writes a fresh `result.json`. The `--wait` budget defaults to **590 s** (`--wait-timeout`), kept under the typical 600 s tool ceiling — run the launch with a long tool timeout (≈600000 ms). On timeout the parent returns non-zero but the detached server keeps running, so the caller must re-check `result.json` once before the chat fallback (a slow user may confirm just after the wait returns).-- `--wait-only` attaches to the page already running from the first `--daemon --wait` and blocks until the page writes the requested stage. If the recorded server died (common on Windows hosts that clean up background children), it automatically restarts the confirm server on the recorded/default port so the browser's polling reconnects without user action. Use `--wait-stage stage2` for the middle design-system handoff, then the default `--wait-stage final` for the final Stage-3 confirmation. It keys on the **stage alone** (no mtime gate), because a user may submit before this wait command is issued. Same `--wait-timeout` budget; on timeout / recovery failure it returns non-zero and the caller re-checks `result.json` once before the chat fallback.+- `--wait-only` attaches to the page already running from the first `--daemon --wait` and blocks until the page writes the requested stage. If the recorded server died, it automatically restarts on the recorded/default port so polling reconnects. Use `--wait-stage stage2` for the complete-solution handoff, then the default `--wait-stage final` for Stage 3. It keys on stage alone (no mtime gate), because a user may submit before the wait command starts.- `--shutdown` stops a confirm server left running for this project and exits — **idempotent** (a no-op when nothing is running). Tries a graceful `/api/shutdown`, falls back to killing the recorded pid, then clears the lock. SKILL.md Step 4 runs this on every path (page-confirm or chat-fallback) so the page never lingers on the shared port before live preview starts.- Refuses to start unless `<project_path>/confirm_ui/recommendations.json` exists (except `--shutdown`, which needs no recommendations).- Per-project lock at `<project_path>/.confirm_ui.lock` — duplicate launches are refused; stale locks (dead pid) are overwritten.- Idle auto-shutdown after 900 s by default; `/api/shutdown` exits gracefully and releases the lock.-- `/api/recommendations` derives `_template_reuse_scope_enabled`, `_template_adherence_enabled`, and `_template_replication_mode` from `<project>/templates/design_spec.md` frontmatter. Only `kind: deck` / `kind: layout` enables template reuse; no template and `kind: brand` force both fields off even if stale recommendations contain them. The server defaults reuse scope to `layout`, exposes `mirror` only for `replication_mode: mirror`, defaults adherence to `adaptive` for `mirror` / `layout`, and removes adherence for `style`.+- `/api/recommendations` derives `_template_reuse_scope_enabled`, `_template_adherence_enabled`, and `_template_replication_mode` from `<project>/templates/design_spec.md` frontmatter. Stage 1 always suppresses both controls because template use is derived only after the communication contract; from Stage 2 onward, only `kind: deck` / `kind: layout` enables them. No template and `kind: brand` force both off even if stale recommendations contain them. The server defaults reuse scope to `layout`, exposes `mirror` only for `replication_mode: mirror`, defaults adherence to `adaptive` for `mirror` / `layout`, and removes adherence for `style`.Dependency:@@ -50,14 +50,17 @@ pip install flask## Two kinds of field-- **Enumerable + custom** — canvas / mode / visual_style / icons. The page lists common options from `static/catalogs.json`, badges the AI's recommendation, and still offers a Custom box for edge cases (custom canvas size, bespoke narrative mode, self-provided icon system, etc.). `visual_style` additionally honors an optional `visual_style_spectrum` that badges a 3-pick personality spectrum (safe / shifted / bold, each with a temperament tag + analogy) in place of the single recommendation — see the schema below.+- **Enumerable + custom** — canvas / mode / visual_style / icons. The page lists common options from `static/catalogs.json`, badges the AI's recommendation, and still offers a Custom box for edge cases.- **Visual examples for hard-to-name choices** — the full-screen confirmation page loads real SVG page samples from `static/style_previews/` for `visual_style`, and renders real sample SVGs from `templates/icons` for `icons`. These thumbnails make style and icon-library choices visually comparable before the user locks them. Preview copy is fixed role text (big title / section title / body / points), not project content from `recommendations.json`, so users compare visual treatment rather than copywriting. These previews are a confirmation aid only: they do not add fields to `recommendations.json` or `result.json`, and they do not replace the later Step 6 live preview.- **Image usage multi-select** — image sources are selected as one or more catalog ids: `ai` = AI-generated, `web` = Web-sourced, `provided` = User-provided, `placeholder` = Placeholder, `none` = No images. `none` is exclusive. Recommendation and result values may be a legacy single string, but new files should use an array. When several sources are recommended, write the source ids to `recommend.image_usage` and write the actual usage strategy to `image_notes`, not a custom prose value.-- **Closed enumerable** — template reuse scope + template adherence (conditional), formula policy / generation mode / refine spec, plus AI source only when image usage includes `ai`. These have no Custom box; out-of-catalog values snap back to the recommended option. Use pipeline vocabulary: icon ids are actual library ids such as `tabler-outline`, or `emoji` for system emoji.-- **Generative (open)** — color, typography, generated-image style. No finite catalog; the AI authors **≥3 candidates** the page renders as cards (never a single option — creative fields must offer real choice; fewer than 3 only on the honest-shortfall exception). `page_count`, `audience`, and `content_divergence` are free inputs (`content_divergence` is a free-text intent shown under audience in §c, not a fixed-option field).+- **Closed enumerable** — PPT reading mode (`delivery_purpose` compatibility key), template reuse scope + adherence (conditional), formula policy / generation mode / refine spec, plus AI source only when image usage includes `ai`. These have no Custom box; out-of-catalog values snap back to the recommended option.+- **Open prose** — `audience`, `communication_intent`, `audience_outcome`, `core_message`, `delivery_context`, `artifact_afterlife`, `content_divergence`, and `page_count`. `communication_intent` may carry several purposes plus priority / sequence; common paths appear only as help text. `content_divergence` remains a separate source-treatment axis.+- **Coordinated generative directions** — `design_directions` carries ≥3 safe / shifted / bold candidates. Each candidate bundles visual style, color, typography, icon id, and conditional generated-image rendering. The page can still render legacy top-level `color`, `typography`, and `image_strategy` candidates, but new staged recommendations use the coordinated bundle.**Custom box** appears only on fields whose universe is genuinely open — `canvas`, `mode`, `visual_style`, and `icons`. Image usage uses a multi-select source list plus `image_notes` instead of a Custom box. Fully closed sets — `template_reuse_scope`, `template_adherence`, `image_ai_path`, `formula_policy`, `generation_mode`, `refine_spec` — have **no** Custom box; an out-of-catalog value there is snapped back to the recommended option.+**Stage-1 current-value contract.** Each editable prose box starts with the Strategist's recommendation, if one exists. The user may retain, revise, or clear it; no Stage-1 prose field has a non-empty validation gate. On confirmation, the browser submits the current strings and the server preserves them through every later stage and the final `result.json`, including `""`. Blank means no explicit user constraint and may cause downstream default judgment, but it never causes the initial recommendation to be restored. A profile-declared `locked: true` field is read-only and remains the sole exception.+`image_ai_path` is conditional: the page shows it and writes it to `result.json` only when `image_usage` includes `ai`. Web-sourced / User-provided / Placeholder / No images paths do not carry an AI backend choice.## Catalogs — `static/catalogs.json` (the finite option universe)@@ -74,14 +77,14 @@ The page runs as a **three-stage wizard in one browser session**. `recommendatio| `recommendations.json stage` | Page renders | Button | On submit ||---|---|---|---|-| `"stage1"` | direction anchors — canvas, audience + `content_divergence` + `delivery_purpose` *(PPT only — omitted on non-PPT canvases)*, mode + visual_style, plus `template_reuse_scope` and conditional `template_adherence` when a deck/layout template is active | **Next** | writes `result.json` `{ stage: "stage1", status: "stage1-confirmed", <anchors> }`; the page does **not** close — it shows a "deriving…" state and polls `GET /api/recommendations` |-| `"stage2"` | design system — page count, color, icons, typography, formula policy | **Next** | writes `result.json` `{ stage: "stage2", status: "stage2-confirmed", <anchors + design system> }`; the page stays open and polls for Stage 3 |-| `"stage3"` | images and execution — image usage + generated-image style, generation mode, refine spec | **Confirm** | writes `result.json` `{ stage: "final", status: "confirmed", <all fields> }`, then shuts the page down |+| `"stage1"` | communication contract — audience; open `communication_intent`; audience outcome; core message / delivery context / artifact afterlife / `content_divergence` (all prose fields may be blank); canvas | **Confirm contract & continue** | writes `result.json` `{ stage: "stage1", status: "stage1-confirmed", <communication contract> }`; the page stays open and polls |+| `"stage2"` | complete deck solution — reading mode, mode, page count, visual / template direction, color, icons, typography, image usage, generated-image rendering | **Confirm solution & continue** | writes `result.json` `{ stage: "stage2", status: "stage2-confirmed", <contract + solution> }`; the page stays open and polls |+| `"stage3"` | production only — confirmed image-source summary, conditional AI acquisition path, formula policy, generation mode, refine spec | **Confirm** | writes `result.json` `{ stage: "final", status: "confirmed", <all fields> }`, then shuts the page down || *(absent)* | legacy single-pass — every section on one page | **Confirm** | single final write (`status: "confirmed"`) — backward-compatible |-The AI launches Stage 1 (`--daemon --wait`), reads the stage-1 result, **re-derives** the design-system candidates from the user's actual anchors, overwrites `recommendations.json` with `"stage": "stage2"`, and re-attaches with `--wait-only --wait-stage stage2`. After the Stage-2 result, it **re-derives** image and execution recommendations from the confirmed anchors + design system, overwrites `recommendations.json` with `"stage": "stage3"`, and re-attaches with `--wait-only` for the final result. The page preserves earlier selections across transitions (single JS session). `GET /api/session` is the browser's waiting-state endpoint: it is derived from `recommendations.json`, `result.json`, and the active server port, then persisted to `session.json` so a recovered server can resume the same stage state. Only after `/api/session` reports that the next recommendation stage is ready does the page fetch `GET /api/recommendations`. `GET /api/recommendations` is served `no-store` so polls see overwrites; on later stages the server folds already-confirmed choices from `result.json` back into the payload so a refresh / reopen re-initializes from the user's actual choices even though those sections are no longer rendered.+The AI launches Stage 1, derives the complete Stage-2 solution from the user's actual contract, then derives Stage-3 production mechanics from the confirmed solution. The page preserves earlier answers across transitions. `GET /api/session` is the waiting-state endpoint; `GET /api/recommendations` is `no-store`, and the server folds confirmed earlier-stage choices back into later payloads so refresh / reopen restores the user's actual values—including Stage-2 color, typography, icon, image-source, and rendering choices.-**Stage progression guard.** Stages confirm strictly in order — a staged `recommendations.json` may only run **one** stage past the last confirmed result. A file that skips ahead (e.g. `"stage3"` while only stage 1 is confirmed — typically an attempt to collapse Stage 2 because an active template already fixes color / typography) is never rendered: `/api/session` keeps reporting `waiting_agent` with `stage_skip: true`, and `--wait` / `--wait-only` exit `2` with a directive log line naming the expected stage to rewrite. An active deck/layout template — `strict` adherence included — does not exempt Stage 2: the template skin becomes the recommended color / typography candidate, not a reason to skip the confirmation. Legacy single-pass files (no `stage`) are not staged and bypass the guard.+**Stage progression guard.** Stages confirm strictly in order — a staged `recommendations.json` may only run **one** stage past the last confirmed result. A file that skips ahead (e.g. `"stage3"` while only Stage 1 is confirmed) is never rendered: `/api/session` keeps reporting `waiting_agent` with `stage_skip: true`, and `--wait` / `--wait-only` exit `2` with a directive log line naming the expected stage to rewrite. An active deck/layout template does not exempt Stage 2: template capability is an input to the scenario-fit decision, not a reason to skip it. Legacy single-pass files (no `stage`) are not staged and bypass the guard.### Input — `recommendations.json` (written by Strategist before launch)@@ -90,87 +93,113 @@ The AI launches Stage 1 (`--daemon --wait`), reads the stage-1 result, **re-deri"stage": "stage1","lang": "zh","recommend": {- "canvas": "ppt169",+ "canvas": "ppt169"+ },+ "audience": { "value": "公司管理层,包括财务与产品负责人" },+ "communication_intent": {+ "value": "先汇报进展并暴露交付风险,再推动管理层决定下一阶段投入"+ },+ "audience_outcome": {+ "value": "管理层能比较三个选项、接受风险判断,并选定一条获得预算的路径"+ },+ "core_message": {+ "value": "现在为方案 B 增加投入,能以可接受的成本守住发布时间"+ },+ "delivery_context": {+ "value": "管理层现场评审 20 分钟,有主讲;会后分享录屏和文件"+ },+ "artifact_afterlife": {+ "value": "作为审批记录、项目交接依据和季度审计材料"+ },+ "content_divergence": { "value": "" }+}+```++All seven Stage-1 prose values may be blank and none blocks confirmation. The values shown in the boxes are editable recommendations; the submitted current values are authoritative, so clearing a box writes and retains `""`. A preservation profile may lock an open field, for example `"content_divergence": { "value": "keep source wording and page structure verbatim", "locked": true }`; the browser renders it read-only. The server carries that lock through the intermediate results and restores the value on every staged submit; the internal carry-over marker is removed from the final `result.json`.++The common paths — inform / explain / persuade / decide / align / teach / report and account / mobilize / record and hand off — appear only as help text for `communication_intent`. They are not catalog ids and must not be emitted as a `primary_job` field.++After Stage 1 is confirmed, overwrite the file with the complete Stage-2 solution (the server folds confirmed communication fields back in when serving the page):++```json+{+ "stage": "stage2",+ "lang": "zh",+ "recommend": {+ "delivery_purpose": "balanced","mode": "pyramid","visual_style": "swiss-minimal","template_reuse_scope": "layout","template_adherence": "adaptive",- "icons": "tabler-outline",- "image_usage": ["ai", "provided"],- "image_ai_path": "auto",- "formula_policy": "mixed",- "generation_mode": "continuous",- "delivery_purpose": "balanced"+ "image_usage": ["ai", "provided"]},- "page_count": { "value": "12-15" },- "audience": { "value": "..." },- "content_divergence": { "value": "" },- "image_notes": { "value": "封面和章节页用 AI 主视觉;产品页优先用户素材,缺口页可用占位符。" },- "color": {- "selected": 0,- "candidates": [- { "name": "...", "note": "...",- "palette": {- "background": "#FFFFFF",- "secondary_bg": "#F4F6F8",- "primary": "#1A3A6B",- "accent": "#E8A317",- "secondary_accent": "#4A7BB5",- "body_text": "#1D2430"- } }- ]- },- "typography": {- "selected": 0,- "candidates": [- { "name": "...", "note": "...",- "sample_heading": "主题标题示例", "sample_heading_latin": "Topic Title",- "sample_body": "关键信息摘要", "sample_body_latin": "Key message summary",- "heading": { "cjk": "思源黑体", "latin": "Inter", "css": "'Source Han Sans SC','Inter',sans-serif" },- "body": { "cjk": "思源黑体", "latin": "Inter", "css": "..." },- "body_size": 20 }- ]- },- "image_strategy": {+ "page_count": { "value": "12-15" },+ "image_notes": { "value": "封面和章节页用 AI 主视觉;产品页优先用户素材。" },+ "design_directions": {"selected": 0,"candidates": [{- "name": "方案 A",- "rendering": "vector-illustration",- "palette": "cool-corporate",- "visual": "扁平矢量、实色块、少阴影",- "color": "背景 60-70% + 主色 25-30% + 强调色少量点题",- "mood": "稳定、可信、克制"+ "name_zh": "稳妥专业",+ "note_zh": "像成熟咨询简报",+ "visual_style": "swiss-minimal",+ "icons": "tabler-outline",+ "color": { "name_zh": "冷静专业", "palette": {+ "background": "#FFFFFF", "secondary_bg": "#F4F6F8",+ "primary": "#1A3A6B", "accent": "#E8A317",+ "secondary_accent": "#4A7BB5", "body_text": "#1D2430"+ } },+ "typography": {+ "name_zh": "清晰无衬线",+ "heading": { "cjk": "Microsoft YaHei", "latin": "Arial", "css": "sans-serif" },+ "body": { "cjk": "Microsoft YaHei", "latin": "Arial", "css": "sans-serif" },+ "body_size": 24+ },+ "image_strategy": {+ "name_zh": "克制矢量",+ "rendering": "vector-illustration",+ "visual_zh": "扁平矢量、实色块、少阴影",+ "mood_zh": "稳定、可信、克制"+ }}]+ }+}+```++The example shows one candidate for brevity; a real file carries ≥3 coordinated directions. Top-level `color`, `typography`, `image_strategy`, and `visual_style_spectrum` remain read-compatible for legacy payloads, but new staged files do not duplicate the bundle.++After Stage 2 is confirmed, overwrite it with Stage-3 production recommendations only:++```json+{+ "stage": "stage3",+ "lang": "zh",+ "recommend": {+ "image_ai_path": "auto",+ "formula_policy": "mixed",+ "generation_mode": "continuous"},- "visual_style_spectrum": [- { "id": "soft-rounded", "tag_zh": "稳妥专业", "tag_en": "Safe & professional", "tag_ja": "手堅くプロフェッショナル", "note_zh": "像 Notion 官网", "note_en": "like the Notion site", "note_ja": "Notion公式サイト風" },- { "id": "editorial", "tag_zh": "编辑质感", "tag_en": "Editorial depth", "tag_ja": "エディトリアルな質感", "note_zh": "像经济学人专题", "note_en": "like an Economist feature", "note_ja": "The Economistの特集記事風" },- { "id": "brutalist", "tag_zh": "硬核宣言", "tag_en": "Bold manifesto", "tag_ja": "大胆なマニフェスト", "note_zh": "像研究机构年度宣言", "note_en": "like a research-house manifesto", "note_ja": "研究機関の年次宣言風" }- ],"refine_spec": { "value": false }}```-> Each `candidates` array above shows **one** entry for brevity — `color` and `typography` must each carry **≥3** in a real file, while `image_strategy.candidates` should carry **exactly 3 non-custom recommendation** entries when AI image generation is offered. The UI adds the fourth **Custom** card itself; `selected` indexes the recommended default among the recommendation entries.-- `recommend.*` names the recommended `id` for each enumerable field (must match a `catalogs.json` id, or be a free string for a recommended custom value). The page badges and pre-selects it. **Guarantee**: if a `recommend.*` is omitted, the page falls back to the first catalog option so every enumerable field always shows one badged recommendation — but the AI should still set them for a meaningful default. Legacy aliases are accepted for old files (`line` → `tabler-outline`, `filled` → `tabler-filled`, `monochrome` → `chunk-filled`, `search` → `web`, `default` → `auto`, `builtin` → `host-native`), but new files should write canonical ids.+- `audience`, `communication_intent`, and `audience_outcome` are load-bearing Stage-1 reasoning inputs, so seed concrete recommendations when the evidence supports them; they are not required user inputs. Every Stage-1 prose field may be blank after confirmation, while the six communication keys remain present as key lines in `spec_lock.md communication`. `communication_intent` may preserve several purposes plus priority / sequence; never add a `primary_job` enum.- `recommend.template_reuse_scope` is conditional. Write `layout`, `style`, or `mirror` only when Step 3 loaded a `kind: deck` or `kind: layout` template. The default is `layout`; `mirror` is displayed only when the installed spec declares `replication_mode: mirror`. `style` means free-design `pptx_structure.mode: flat` and suppresses/removes `template_adherence`.- `recommend.template_adherence` is conditional on reuse scope `mirror` or `layout`. Write `adaptive` or `strict`; the default is `adaptive`. Both values require a reference SVG for every page: `strict` keeps the selected Layout contract; `adaptive` may create a new Layout under the same Master. Free design, brand-only templates, and `style` cannot display or return this field.- `recommend.image_usage` should be an array of source ids when more than one source applies, e.g. `["ai", "provided"]`. A single string is still accepted for backward compatibility. Do not write bare `"custom"` and do not encode a mixed-source plan as prose here; write the prose to top-level `image_notes.value`.- `image_notes` is the initial strategy note shown under the image source chips. Use it for page-role guidance and constraints: which source applies where, what to avoid, which user assets are authoritative, how realistic / abstract the imagery should be, and what can remain as placeholders. It is intent guidance, not a separate finite option.-- When `recommend.image_usage` includes `ai`, also set `recommend.image_ai_path` to one of `auto` / `api` / `host-native` / `manual`; the page presents these as explicit choices.+- When confirmed Stage-2 `image_usage` includes `ai`, Stage 3 sets `recommend.image_ai_path` to one of `auto` / `api` / `host-native` / `manual`. Stage 2 never asks for the acquisition mechanism while the user is still deciding the image role.- **Color candidates carry the user-facing core `palette`**: `background`, `secondary_bg`, `primary`, `accent`, `secondary_accent`, and `body_text`. The page renders labelled swatches and offers per-role override inputs for precise single-role edits, plus a **Custom color card with a free-text box** (parallel to the custom typography box) — the user can describe the palette in words or paste HEX values instead of filling each role; this writes `color: { "name": "custom", "custom": "<text>" }` to `result.json` for the AI to interpret. Legacy `text` is accepted as an alias for `body_text`, but new files should write `body_text`. Strategist derives secondary text, borders, state colors, and visual-style neutral tiers later when writing `design_spec.md` / `spec_lock.md`; those are not user-facing confirmation choices.- **Candidate display text may be multilingual**: color / typography candidates can provide `name_zh` / `name_en` / `name_ja` and `note_zh` / `note_en` / `note_ja`; the page falls back to legacy `name` / `note`. Labels resolve in the page language first, then fall back across the others (a `ja` page: ja → en → zh; zh/en pages keep their zh↔en fallback and try `_ja` last), so when `lang` is `ja` always include the `_ja` variants — otherwise the candidate labels render in English.-- **Typography candidates split CJK and Latin** for both `heading` and `body`; `css` is the fallback preview `font-family` stack. The page previews CJK sample text with `cjk + css` and Latin sample text with `latin + css`, so the two script choices are visible independently. Each candidate should include topic-matched `sample_heading`, `sample_heading_latin`, `sample_body`, and `sample_body_latin`; do not reuse unrelated fixed examples such as a digital-transformation headline for a travel, education, product, or brand deck. Each candidate should also include `body_size` — the body baseline in **px** (the system's only unit, every canvas). The initial value comes from the candidate's `body_size`, sized for the recommended delivery purpose: `text` ~20 · `balanced` ~24 · `presentation` ~32. On submit the page writes `typography.body_size` as px directly — no pt conversion, no `body_size_pt` provenance. The page exposes `body_size` as an editable numeric field whose hint shows the recommended size — **one fixed px per delivery purpose on PPT (`text` 20 · `balanced` 24 · `presentation` 32), not a range** (non-PPT ≈2.5–3.3% of height in px). The input area labels the value as px, shows the SVG px → PPT pt relation (`1px = 0.75pt`) above the input, and displays the current approximate pt value below it for user orientation only; the output contract remains px-only. The user may still edit it; an out-of-range flag only warns if the value strays far (e.g. a unit mistake). **Inputs are independent — the hint updates with canvas / delivery purpose but never rewrites a value the user can see.** It also offers a custom typography text box so the user is not limited to the proposed candidates.+- **Typography candidates split CJK and Latin** for both `heading` and `body`; `css` is the fallback preview stack. Each candidate includes topic-matched sample text and `body_size` in px. The initial value follows the Stage-2 reading mode: `text` 20 · `balanced` 24 · `presentation` 32. The page writes px directly and never silently rewrites a visible value. `delivery_purpose` remains the compatibility key only.- **Per-role size override** (parallel to color's per-role HEX override): besides `body_size`, the page exposes **independent** editable inputs for `title` / `subtitle` / `annotation`. Each role is pre-filled **once** with a starting value — the candidate's `typography.sizes[role]` if provided, otherwise a one-time ramp suggestion (`body × ` mid-band ratio) — and then holds its own value. **There is no cross-field cascade**: changing `body_size`, `delivery_purpose`, or canvas updates only the recommended-value hint, never the role values; a re-render preserves exactly what the user sees. Each role input is labelled as px and shows an approximate pt equivalent (`1px = 0.75pt`) for orientation. The final values are written to `result.json` as `typography.sizes: { "title", "subtitle", "annotation" }` in **px** — every canvas, no pt and no `sizes_pt` provenance. Seeding `sizes` in a candidate is optional — omit it and each role gets its one-time ramp suggestion.-- **`delivery_purpose`** (enumerable, PPT only) is the primary driver of the body baseline: `text` (read-close), `balanced` (business, the default), `presentation`. It is surfaced in the **§c key-information area** (beside audience, Stage 1) as a consumption-mode choice; the Stage-2 typography section then reads the confirmed value for the recommended body px — the pick itself does not rewrite the body field (inputs are independent). `recommend.delivery_purpose` pre-selects one (default `balanced`); the user's pick writes back to `result.json.delivery_purpose` as a plain id. Strategist uses it to set the px body baseline — **one fixed px per purpose (`text` 20 · `balanced` 24 · `presentation` 32), not a range** (see [strategist.md §g](../../references/strategist.md)). Non-PPT canvases omit it.+- **`delivery_purpose` compatibility key / Reading mode** (enumerable, PPT only) drives the body baseline: `text` (read-close), `balanced` (business, default), `presentation`. It is surfaced in Stage 2 beside the visual system, separate from communication intent. `recommend.delivery_purpose` pre-selects one; `result.json` retains the key, while `spec_lock.md` uses canonical `consumption_mode`. Non-PPT canvases omit it.- **Combined style preview** — a compact live "overall impression" strip sits just above the color section and is **sticky**: it pins under the topbar so it stays visible while the user scrolls through the color / icon / typography sections, keeping the picking controls and their combined effect on screen together. It applies the currently selected color palette **and** typography (heading sample in `primary` over `background`, body sample in `body_text`, an `accent` bar, a `secondary_bg` chip) and repaints on every color / HEX-override / font / `body_size` change. It does not replace the per-candidate swatches or font samples (those stay for picking); it is deliberately an abstract style chip, **not** a slide-layout preview — page layout preview remains the live-preview server's job (Step 6). No schema field; it derives entirely from the existing color + typography selections.-- **Generated image style candidates** live in `image_strategy.candidates` and are shown only when `image_usage` includes `ai`. Each candidate records `rendering`, `palette`, and short `visual` / `color` / `mood` lines from Strategist h.5. Author **exactly three non-custom recommendation candidates** here; the page displays those three, then appends one built-in **Custom** card. If extra candidates are present, the page shows only the first three non-custom entries. When `rendering` / `palette` match files under `references/ai-image-comparison/`, the left preview pane displays those reference PNGs for the selected candidate; when AI image generation is not selected, that left preview is hidden. The right-side option cards stay text-first and do not duplicate the gallery. The **Custom** card lists all reference-gallery `rendering` and `palette` ids from `ai-image-comparison/*/_manifest.json`, plus `custom` as a prose-only tail choice and a free-text prompt box; that prose is written to `result.json.image_strategy.custom`. If either selected dimension is `custom`, the preview intentionally falls back to prose and shows no reference image. `palette` means color behavior only — final AI image HEX values follow the confirmed `color` choice above. The chosen value is written to `result.json.image_strategy`; it is omitted when generated images are not part of the plan.-- **`visual_style_spectrum`** (optional) lets the AI surface the deck's aesthetic as a **personality spectrum** instead of one badged style. Each entry is `{ "id", "tag_zh"/"tag_en"/"tag_ja", "note_zh"/"note_en"/"note_ja" }` (include the `_ja` variants when `lang` is `ja`) where `id` is a real `visual_styles` catalog id; the page badges those chips with their temperament `tag` (replacing the single ★) and appends the `note` (a real-world analogy) inline. The full grouped style list and Custom box stay visible below, and `recommend.visual_style` is still the pre-selected default (it should equal the spectrum's safe pick). Author **≥3** spanning safe / shifted / bold (mirrors h.5; honest-shortfall exception applies — fewer only when the constraints genuinely cannot yield 3). The user's pick still writes back to `result.json.visual_style` as a plain id; the spectrum is presentation-only. Omit the field to fall back to the single-recommendation badge.+- **Generated-image direction** is a rendering decision inside each `design_directions` candidate and is shown only when `image_usage` includes `ai`. Each object records `rendering` plus short `visual` / `mood` prose. The UI derives up to three rendering cards and one Custom card, displays rendering reference PNGs only, and writes no `palette` or `color` field. Final image colors come directly from the selected deck `color.palette`. Legacy `image_strategy.palette` input is accepted but ignored for color and stripped from new submissions.+- **`design_directions`** is the canonical Stage-2 personality spectrum. Each candidate carries localized name / note, `visual_style`, `color`, `typography`, `icons`, and conditional `image_strategy`. Author ≥3 spanning safe / shifted / bold (honest-shortfall exception applies). Selecting one applies the whole bundle; the component controls below are advanced overrides. The bundle itself is presentation-only—`result.json` stores the actual selected components, not a direction id.- `recommend.generation_mode` and `refine_spec` mirror the two mandatory notes in SKILL.md Step 4. Confirmed `generation_mode: "split"` / `refine_spec: true` are explicit user choices, equivalent to opting in through chat.-- `content_divergence` is a **free-text** field shown right under the audience box in §c — the user states in their own words how closely to follow the source vs how freely to reshape it (e.g. "stick closely to the document" / "freely restructure and expand within the source"). It is **not** a fixed-option field; blank means a balanced default. Whatever the level, facts stay sourced — reshaping develops what is in the source, never imports facts from outside it. The Strategist consumes the prose when authoring the §IX outline and records it in `design_spec.md §I`; it is **not** written to `spec_lock.md` (the Executor never reads it). It carries no page-count coupling and no source-signal recommendation — it is purely the user's stated intent. Beautify / template-fill keep content verbatim and do not surface this field.+- `content_divergence` is a **free-text** Stage-1 source-treatment field. Blank means a balanced default; facts stay sourced at every level. Strategist consumes it while authoring §IX and records it in `design_spec.md §I`; it is not written to `spec_lock.md`. Beautify sends `{ "value": "keep source wording and page structure verbatim", "locked": true }`, so the UI displays it read-only and the server restores it on every staged submit. Template-fill does not use this confirmation flow and does not surface it.- `lang` is a soft default (`zh` / `en` / `ja` — the page UI supports all three); an explicit user language choice in the page (persisted to `localStorage`) wins.### Output — `result.json` (written on submit, read by the AI)@@ -180,6 +209,11 @@ The AI launches Stage 1 (`--daemon --wait`), reads the stage-1 result, **re-deri"canvas": "ppt169","page_count": "12-15","audience": "...",+ "communication_intent": "Report progress and expose risk first; then obtain an investment decision",+ "audience_outcome": "The committee compares the options and chooses one funded path",+ "core_message": "Fund option B now to protect the launch date at acceptable incremental cost",+ "delivery_context": "Presenter-led 20-minute leadership review; recording shared afterward",+ "artifact_afterlife": "Approval record, hand-off reference, and audit trail","content_divergence": "freely restructure and expand within the source","mode": "pyramid","visual_style": "swiss-minimal",@@ -193,7 +227,7 @@ The AI launches Stage 1 (`--daemon --wait`), reads the stage-1 result, **re-deri"image_usage": ["ai", "provided"],"image_notes": "封面和章节页用 AI 主视觉;产品页优先用户素材,缺口页可用占位符。","image_ai_path": "auto",- "image_strategy": { "name": "方案 A", "rendering": "vector-illustration", "palette": "cool-corporate", "visual": "...", "color": "...", "mood": "..." },+ "image_strategy": { "name": "方案 A", "rendering": "vector-illustration", "visual": "...", "mood": "..." },"generation_mode": "continuous","refine_spec": false,"stage": "final",@@ -202,11 +236,11 @@ The AI launches Stage 1 (`--daemon --wait`), reads the stage-1 result, **re-deri}```-The shape above is the **final** (Stage 3) result, carrying Stage 1 anchors, Stage 2 design-system fields, and Stage 3 image / execution fields. The intermediate **Stage 1** write carries only the anchor fields plus `"stage": "stage1"`, `"status": "stage1-confirmed"`; the AI reads it to re-derive Stage 2 and never treats it as the final confirmation. The intermediate **Stage 2** write carries anchors + design-system fields plus `"stage": "stage2"`, `"status": "stage2-confirmed"`; the AI reads it to re-derive Stage 3 and never treats it as final. Legacy `tier1` / `tier2` results are accepted for old sessions but are no longer written. A legacy single-pass write has no `stage` (or `stage: "final"`) and `status: "confirmed"`.+The shape above is the **final** result: Stage 1 owns the communication contract, Stage 2 owns the complete deck solution (including color / typography / icons / images), and Stage 3 adds production mechanics. Intermediate writes carry the accumulated earlier fields with `stage1-confirmed` or `stage2-confirmed`; legacy `tier1` / `tier2` remain read-compatible but are no longer written.- Any option field may instead hold a **free-text custom string** (the user picked **Custom**); `color` / `typography` custom entries set `name: "custom"`. Image usage is not a custom string in new results: it is a source-id array, with free-text strategy captured in `image_notes`.- `image_ai_path` and `image_strategy` are omitted from `result.json` unless `image_usage` includes `ai`. Both are honored downstream as confirmed choices — and the page is only a convenience surface over the **canonical chat channel**: the same choices made in chat are honored identically when no `result.json` exists. `image_ai_path` drives the Step 5 generation path (`image-generator.md` §7 — `host-native` forces the host tool even when `IMAGE_BACKEND` is set); the chosen `image_strategy` candidate is locked verbatim by Strategist h.5 (no re-pick).-- After the user clicks the **final Confirm** (Stage 3, or single-pass), the page saves `result.json` and shuts the server down (auto-close). Stage-1 and Stage-2 **Next** keep the page open while it polls for the re-derived downstream stage. In the default flow, the first `--daemon --wait` returns on the stage-1 result, `--wait-only --wait-stage stage2` returns on the stage-2 result, and the final `--wait-only` returns on the final result; the AI reads each immediately — no extra chat confirmation is required. Chat confirmation remains the fallback when the page cannot be used. Either way, Step 4 ends with a `--shutdown` cleanup so a never-confirmed page cannot keep holding port 5050 ahead of the Step 6 live preview.+- After the user clicks the **final Confirm** (Stage 3, or single-pass), the page saves `result.json` and shuts the server down (auto-close). Stage-1 **Confirm contract & continue** and Stage-2 **Confirm solution & continue** keep the page open while it polls for the re-derived downstream stage. In the default flow, the first `--daemon --wait` returns on the stage-1 result, `--wait-only --wait-stage stage2` returns on the stage-2 result, and the final `--wait-only` returns on the final result; the AI reads each immediately — no extra chat confirmation is required. Chat confirmation remains the fallback when the page cannot be used. Either way, Step 4 ends with a `--shutdown` cleanup so a never-confirmed page cannot keep holding port 5050 ahead of the Step 6 live preview.## Scopediff --git a/skills/ppt-master/templates/design_spec_reference.md b/skills/ppt-master/templates/design_spec_reference.mdindex 78c0a754..feb03c1c 100644--- a/skills/ppt-master/templates/design_spec_reference.md+++ b/skills/ppt-master/templates/design_spec_reference.md@@ -2,7 +2,7 @@> Human-readable design narrative — rationale, audience, style, color choices, content outline. Read once by downstream roles for context.>-> Machine-readable execution contract: `spec_lock.md` (color / typography / icon / image short form). Executor re-reads `spec_lock.md` before every SVG page to resist context-compression drift. Keep both in sync; on divergence, `spec_lock.md` wins.+> Machine-readable communication + execution contract: `spec_lock.md` (compact communication trace plus color / typography / icon / image / structure locks). Executor re-reads it before every SVG page to resist purpose and design drift. Keep both in sync; on divergence, `spec_lock.md` wins.## I. Project Information@@ -11,11 +11,15 @@| **Project Name** | {project_name} || **Canvas Format** | {canvas_info['name']} ({canvas_info['dimensions']}) || **Page Count** | [Filled by Strategist] |-| **Design Style** | {design_style} || **Target Audience** | [Filled by Strategist] |-| **Use Case** | [Filled by Strategist] |-| **Delivery Purpose** | [`text` read-close / `balanced` business / `presentation` — confirmed at c; a deck-wide consumption mode that drives per-page density, page-count recommendation, page_rhythm lean, and the body baseline (px). See strategist.md §6.1.] |+| **Communication Intent** | [Open prose: what the presentation must accomplish; preserve multiple purposes plus priority / sequence when present. Common purpose names are prompts, not enum values.] |+| **Desired Audience Outcome** | [The observable success condition: what the audience will know, understand, believe, decide, or do.] |+| **Core Message / Ask / Action** | [The claim(s), decision request(s), or action(s) that must land; preserve their relationship when several coexist.] |+| **Delivery Context** | [Presenter-led / reader-led / hybrid / recorded; occasion, time constraint, and interaction context.] |+| **Artifact Afterlife** | [Review / approval / audit / archive / hand-off / reuse / none planned; state what the file must support after the event.] |+| **Reading Mode** | [`text` read-close / `balanced` business / `presentation`; Confirm UI compatibility key: `delivery_purpose`, execution-lock key: `consumption_mode`. Drives per-page density, page-count recommendation, page_rhythm lean, and the body baseline (px), but does not define communication intent. See strategist.md §6.1.] || **Content Strategy** | [Material divergence — the user's free-text intent on how closely to follow the source vs how freely to reshape it (or "balanced default"); facts stay sourced however free. Confirmed at c; consumed when authoring §IX. Not in spec_lock.] |+| **Design Style** | {design_style} || **Template Reuse Scope** | [`mirror` / `layout` / `style` — include only when Step 3 loaded a deck/layout template; omit for free design and brand-only templates. `mirror` requires a mirror-capable workspace; `style` uses the flat route.] || **Template Adherence** | [`adaptive` / `strict` — include only when Template Reuse Scope is `mirror` or `layout`; omit for `style`. Also written under `spec_lock.md pptx_structure`.] || **Created Date** | {date_str} |@@ -68,10 +72,8 @@- **Image Rendering**: [one of the 20 names in `references/image-renderings/_index.md` (e.g. `vector-illustration`), or `custom`]- **Image Rendering Behavior**: [required when Rendering is `custom`; one-paragraph prose per `image-renderings/_index.md §1.5`]-- **Image Palette**: [one of the 14 names in `references/image-palettes/_index.md` (e.g. `cool-corporate`), or `custom`]-- **Image Palette Behavior**: [required when Palette is `custom`; one-paragraph prose per `image-palettes/_index.md §2`]-> Strategist: lock these once per deck in h.5; every AI image inherits them. Cross-check the rendering × palette compatibility matrix in `image-palettes/_index.md` — avoid `✗` combinations (matrix only covers presets; when either dimension is `custom`, Strategist owns the compatibility judgment). Leave the section out entirely if §VIII has no `ai` rows. Omit the `Behavior` rows whenever the corresponding dimension is a preset name.+> Strategist: lock rendering once per deck in h.5; every AI image inherits it. Image color is not independently confirmed: Image_Generator reads the ordinary §III Color Scheme / `spec_lock.md colors` roles directly. Leave this section out if §VIII has no `ai` rows; omit the Behavior row for a preset rendering.### Gradient Scheme (if needed, using SVG syntax)@@ -134,9 +136,9 @@ Two views on the same font decisions — fill both, keep them consistent:> **Ramp discipline, not a fixed menu.** `body` is the single anchor; every other size is a ratio of it. Each row below gives the role's allowed ratio band. **Structural roles (page title / body / subtitle / annotation / footnote) resolve to one size each and stay that size deck-wide** — pick the value once, lock it, reuse it on every page; same-role drift is what makes a deck look unprofessional. The in-band freedom to use an intermediate value without pre-declaring is for **special / feature elements** (hero number, cover / section display headline, one-off emphasis); if such a size recurs, declare it as its own slot so it too stays consistent.> **Unit boundary (HARD rule).** Author this section in **unitless px** — the system's only unit, every canvas. There is no pt layer and no conversion: the confirmed value is already px. Never write `pt`, `px`, `em`, or any unit in `spec_lock.md` or SVG. Geometry (margins / gaps / card sizes) is px everywhere.-> **Baseline selection**: **delivery purpose** sets the body baseline to **one fixed value** (not a range); content density and visual style drive page treatment / rhythm / the *other* roles, **not** the body size.+> **Baseline selection**: **reading mode** (Confirm UI compatibility key `delivery_purpose`) sets the body baseline to **one fixed value** (not a range); communication intent, content density, and visual style drive page treatment / rhythm / the *other* roles, **not** the body size.-**Baseline (unitless px)**: Body font size = [fill in]. For PPT 16:9, the confirmed delivery-purpose value is **one fixed px per purpose, not a range**: **`text` / read-close** `20`, **`balanced` / business** `24` (default), **`presentation`** `32`. The body baseline is purely a function of delivery purpose — density and visual style drive page treatment / rhythm / the other roles, never the body size. The user may also pin individual role sizes (`title` / `subtitle` / `annotation`) directly in the Confirm UI — a confirmed per-role value (`result.json typography.sizes`) is already px and becomes the locked slot for that role; the rest derive from the ramp. For non-PPT canvases, author px from the confirmed canvas scale (see [strategist.md §g](../references/strategist.md) per-canvas table).+**Baseline (unitless px)**: Body font size = [fill in]. For PPT 16:9, the confirmed reading mode gives **one fixed px value, not a range**: **`text` / read-close** `20`, **`balanced` / business** `24` (default), **`presentation`** `32`. The body baseline is purely a function of reading mode—communication intent, density, and visual style drive page treatment / rhythm / the other roles, never the body size. The user may also pin individual role sizes (`title` / `subtitle` / `annotation`) directly in the Confirm UI—a confirmed per-role value (`result.json typography.sizes`) is already px and becomes the locked slot for that role; the rest derive from the ramp. For non-PPT canvases, author px from the confirmed canvas scale (see [strategist.md §g](../references/strategist.md) per-canvas table).| Purpose | Ratio to body | Example @ body=32 (`presentation`) | Example @ body=24 (`balanced`) | Weight || ------- | ------------- | --------------------------- | ------------------------- | ------ |@@ -301,9 +303,9 @@ Catalog read: 76 templates**page_role** (`ai` rows only; leave blank for default):- *blank / `local`* — image is a region block on an SVG page-- `hero_page` — image is the page's main voice; SVG overlay is minimal or empty. Use on covers, chapter dividers, mood transitions, single-number data heroes, closing quotes. Same rendering and palette as the rest of the deck regardless+- `hero_page` — image is the page's main voice; SVG overlay is minimal or empty. Use on covers, chapter dividers, mood transitions, single-number data heroes, closing quotes. Same rendering and deck colors as the rest of the deck regardless-**Reference grammar** (`ai` rows): write **subject + intent + composition** only. Do NOT repeat style words ("flat design", "modern") or HEX values — both are already locked deck-wide by `design_spec §III AI Image Strategy` (rendering + palette) and `§III Color Scheme` (HEX triplet). Image_Generator's prompt assembler injects them.+**Reference grammar** (`ai` rows): write **subject + intent + composition** only. Do NOT repeat style words or HEX values—rendering is locked by `design_spec §III AI Image Strategy`, and colors by `§III Color Scheme`. Image_Generator injects both.---@@ -316,6 +318,7 @@ Catalog read: 76 templates#### Slide 01 - Cover- **Cover impact**: [MANDATORY — see strategist.md §6.2. Name one concrete hook (provocative core claim / hero number / object-scene metaphor / founder-product-audience moment / distilled conflict) + one composition strategy (full-bleed image + floating title / typographic poster / hero object / data hook / editorial scene / high-contrast abstract geometry / or a fresh one the subject suggests). This is the cover's spine — do NOT fall back to "title + subtitle + decorative background".]+- **Audience move**: [How this opening changes the audience's state — establish relevance, tension, urgency, trust, or the decision frame. It must advance the global Desired Audience Outcome.]- **Layout**: [realize the Cover impact above; choose the composition that delivers it — not a default centered title block]- **Title**: [Main title]- **Subtitle**: [Subtitle]@@ -326,6 +329,7 @@ Catalog read: 76 templates- **Layout**: [Choose a pattern from §V, combine two, or break the grid as the content demands]- **Title**: [Page title]- **Core message**: [the one thing this page exists to land — its spine, always phrased as one assertion sentence (prose by nature). One per page; can't name it → merge or cut the page.]+- **Audience move**: [the specific transition this page causes — e.g. unaware → aware, confused → understands cause, undecided → sees the trade-off, aligned → owns the next step. Must advance at least one purpose in the global Communication Intent.]- **Fact IDs**: [stable IDs from `sources/*.facts.json` used on this page, e.g. `F001, F004`; omit when none]- **Data class**: [`external` for sourced facts / `scenario` for invented demo KPIs, targets, internal ratios; identify the affected values when scenario; omit when the page has no factual/quantitative claims]- **Visualization**: [visualization_type] (see VII. Visualization Reference List)@@ -345,6 +349,7 @@ Catalog read: 76 templates#### Slide NN - Closing *(only if the deck genuinely lands on a conclusion / CTA / final-takeaway page — do NOT invent one to fill this slot; see strategist.md §6.2)*- **Closing impact**: [MANDATORY for the closing page — name the one thing the audience leaves with (distilled takeaway / forward call / memorable restatement of the core claim) + one composition that lands it. Do NOT write a generic "Thank you" / contact-only / centered-title reprise of the cover.]+- **Audience move**: [the final transition or commitment that completes the Desired Audience Outcome.]- **Layout**: [realize the Closing impact above — the deck's final impression, not a default sign-off]- **Content**: [the takeaway / call-to-action itself, phrased to land]diff --git a/skills/ppt-master/templates/spec_lock_reference.md b/skills/ppt-master/templates/spec_lock_reference.mdindex 6d2b6284..14289bfd 100644--- a/skills/ppt-master/templates/spec_lock_reference.md+++ b/skills/ppt-master/templates/spec_lock_reference.md@@ -2,7 +2,7 @@> **⚠️ Skeleton for Strategist — do NOT copy verbatim into a project.** When producing `<project_path>/spec_lock.md`, emit only `##` sections with filled-in `-` data lines. Do NOT carry over any `>` blockquote guidance, HARD-rule notes, or override examples — those are author-time guidance, not runtime data. Every output line must be parseable data.>-> Machine-readable execution contract. Executor MUST `read_file` this before every SVG page. Values not listed here must NOT appear in SVGs. For design narrative (rationale, audience, style), see `design_spec.md`.+> Machine-readable execution contract. Executor MUST `read_file` this before every SVG page. Values not listed here must NOT appear in SVGs. The compact communication section keeps every page aligned with why the deck exists; fuller rationale remains in `design_spec.md`.>> After SVG generation begins, this is the canonical source for color / font / icon / image values. Supported color/font modifications should go through `scripts/update_spec.py` to keep this file and generated SVGs in sync. Canvas changes are intentionally not bulk-rewritten by that tool.@@ -12,6 +12,17 @@> Strategist: fill viewBox and format for the chosen canvas. New authoring uses the canonical `0 0 W H` spelling with positive integer pixels. Every generated page and internal Layout prototype must match this numeric canvas. Common values: `0 0 1280 720` (PPT 16:9), `0 0 1024 768` (PPT 4:3), `0 0 1242 1660` (Xiaohongshu), `0 0 1080 1080` (WeChat Moments), `0 0 1080 1920` (Story). Changing the canvas after authoring starts requires re-authoring and re-validating affected SVGs; `update_spec.py` does not propagate canvas changes.+## communication+- audience: Executive committee with finance and product leads+- communication_intent: Report progress and expose delivery risk first; then obtain a decision on the next investment+- audience_outcome: The committee can compare the options, accepts the risk framing, and chooses one funded path+- core_message: Fund option B now because it protects the launch date at an acceptable incremental cost+- delivery_context: Presenter-led 20-minute leadership review; recording and deck shared afterward+- artifact_afterlife: Approval record, project hand-off reference, and quarterly audit trail+- consumption_mode: balanced++> Strategist: copy the confirmed Stage-1 prose plus Stage-2 reading mode. All keys above remain present; any Stage-1 prose value may be empty after explicit confirmation. Do not restore recommendation text into an empty value. `communication_intent` is open prose and may preserve several purposes plus priority / sequence; never replace it with one enum label. `consumption_mode` is the canonical execution name for the Confirm UI compatibility key `delivery_purpose`; use `text` / `balanced` / `presentation` on PPT canvases and omit it on non-PPT canvases. Do not copy `content_divergence` here—its effect is already authored into §IX. Executor checks this global contract against every page's `Audience move`.+## mode- mode: pyramid@@ -33,21 +44,18 @@- text_secondary: #......- border: #......- image_rendering: vector-illustration-- image_palette: cool-corporate> Strategist: fill only colors actually used. Add extra rows as needed; delete unused rows rather than leave as `#......`.>> **PowerPoint theme roles.** Flat and structured export map `bg` / `background` / `master_bg` → `lt1`, `secondary_bg` / `bg_secondary` → `lt2`, `text` / `body_text` → `dk1`, `text_secondary` → `dk2`, `primary` → `accent1`, `accent` → `accent2`, `secondary_accent` → `accent3`, and `border` → `accent4`. The first two additional non-black/non-white roles become `accent5` / `accent6`; remaining colors stay fixed. Mapping is usage-aware, so a background HEX is not automatically reused for inverse text.>-> **`image_rendering` and `image_palette`** — required only when `images` section below contains `ai`-sourced files. Values MUST be valid names from `references/image-renderings/_index.md` and `references/image-palettes/_index.md`, **or** the literal string `custom`. Image_Generator reads these and applies them deck-wide. Omit both rows when the deck has no AI-generated images.+> **`image_rendering`** — required only when `images` below contains `ai`-sourced files. It is a valid name from `references/image-renderings/_index.md`, or the literal `custom`. Image_Generator applies it deck-wide and derives image color instructions directly from the ordinary color-role rows above. Omit it when the deck has no AI-generated images. New flows never author an independent `image_palette`; the current generation flow ignores a legacy row, which cannot override these HEX roles.>-> **`custom` escape hatch.** When set to `custom`, add a sibling `*_behavior` row carrying a one-paragraph prose description. Image_Generator splices the prose into the prompt in place of the preset file's fewshot snippet. Tail-case only — see [`image-renderings/_index.md`](../references/image-renderings/_index.md) §1.5 / [`image-palettes/_index.md`](../references/image-palettes/_index.md) §2 for invocation rules.+> **`custom` escape hatch.** When set to `custom`, add `image_rendering_behavior` with a one-paragraph description. Image_Generator splices it into the prompt in place of the preset rendering snippet. Tail-case only—see [`image-renderings/_index.md`](../references/image-renderings/_index.md) §1.5.>> ```> - image_rendering: custom> - image_rendering_behavior: "Hand-screened poster aesthetic — slightly misregistered halftone overlays, 3 flat ink colors with visible dot pattern at 12% opacity, no gradients, no anti-aliased edges; reads as silkscreen print."-> - image_palette: custom-> - image_palette_behavior: "Primary deep aubergine `#4C1D95` anchors ~35% of canvas; secondary warm cream `#FEF3C7` carries ~55% as breathing field; accent burnished gold `#D4AF37` in 5-10% as ceremonial accents. No fourth color."> ```## typographydiff --git a/skills/ppt-master/workflows/create-template.md b/skills/ppt-master/workflows/create-template.mdindex de96c784..d601357c 100644--- a/skills/ppt-master/workflows/create-template.md+++ b/skills/ppt-master/workflows/create-template.md@@ -594,7 +594,7 @@ Downstream, a mirror-created workspace supports three separately confirmed reuse- Type B: resolve relative paths in source `<image href="...">` against the source SVG location and copy each unique asset; if the source already follows PPT Master conventions (assets co-located with SVGs in the same directory), copy the whole asset set and then rewrite paths- Both scopes: write bitmaps to `<template_workspace>/images/`, point SVG references at `../images/<name>`, and keep non-bitmap template-source assets under `<template_workspace>/templates/`.4. **Copies imported vector assets once** to `<template_workspace>/icons/imported/` and rewrites their placeholders to `<use data-icon="imported/<name>"/>`. Never place a second copy under `templates/icons/`. Other explicitly adopted icon-library references keep their existing library namespace. Do not inline these assets manually in the template working SVGs; template validation, preview, and final export all resolve icons from the workspace-root `icons/` directory.-5. Writes `design_spec.md` per [template-designer.md](../references/template-designer.md) §1. The §V Page Roster remains the content-fit index; explicit SVG metadata is the native Master/Layout contract. Mirror is only the template-creation replication mode; downstream generation still treats the finished package as a selectable / reusable roster, not as a forced 1:1 slide sequence.+5. Writes `design_spec.md` per [template-designer.md](../references/template-designer.md) §1. The §V Page Roster remains the content-fit index; explicit SVG metadata is the native Master/Layout contract. `replication_mode: mirror` governs template creation and merely enables the separately confirmed downstream `template_reuse_scope: mirror`; it never forces a 1:1 slide sequence.Mirror mode does not simplify the visual target or synthesize layer ownership. The sprite-sheet preservation rule applies because crop wrappers carry visible geometry; preserve those wrappers and their source scope faithfully.diff --git a/skills/ppt-master/workflows/profiles/beautify-pptx.md b/skills/ppt-master/workflows/profiles/beautify-pptx.mdindex 5c910c76..c4363762 100644--- a/skills/ppt-master/workflows/profiles/beautify-pptx.md+++ b/skills/ppt-master/workflows/profiles/beautify-pptx.md@@ -174,10 +174,16 @@ Write `<project_path>/confirm_ui/recommendations.json` and launch the same confi"mode": "briefing","visual_style": "<closest visual-style id to the source look>","icons": "<sensible default icon library>",- "image_usage": "provided"+ "image_usage": ["provided"]},- "page_count": <source-slide-count>,- "audience": "<carry over from the deck's apparent audience, or leave blank>",+ "page_count": { "value": "<source-slide-count>" },+ "audience": { "value": "<carry over from the deck's apparent audience, or state a concrete provisional audience>" },+ "communication_intent": { "value": "<open prose inferred from the deck; preserve multiple purposes and their relationship>" },+ "audience_outcome": { "value": "<what the audience should know, understand, decide, or do>" },+ "core_message": { "value": "<the deck-wide claim / ask / action already present in the source>" },+ "delivery_context": { "value": "<presenter-led / reader-led / hybrid / recorded, plus occasion if inferable>" },+ "artifact_afterlife": { "value": "<review / approval / archive / hand-off / reuse / none planned>" },+ "content_divergence": { "value": "keep source wording and page structure verbatim", "locked": true },"color": { "selected": 0, "candidates": [{ "name_zh": "复刻源 PPT(推荐)", "name_en": "Source replica (recommended)", "name_ja": "元PPTを再現(推奨)", "palette": { "background": "#...", "secondary_bg": "#...", "primary": "#...", "accent": "#...", "secondary_accent": "#...", "body_text": "#..." } },{ "name_zh": "实际用色(observed)", "name_en": "Observed palette", "name_ja": "実際の使用色(observed)", "palette": { "background": "#...", "secondary_bg": "#...", "primary": "#...", "accent": "#...", "secondary_accent": "#...", "body_text": "#..." } },@@ -191,10 +197,10 @@ Write `<project_path>/confirm_ui/recommendations.json` and launch the same confi}```-- **Recommend keep, allow override**: pre-fill canvas / mode / visual style / icons / image strategy with the source-faithful default (canvas = Step 3 format, mode = `briefing`, image_usage = `provided` since pictures are reused). Enumerable fields already list every catalog option with the source-faithful one badged, so the user can switch. Beautify's only true non-choices are the frozen text and the strict 1:1 page count (changing those means routing to the main pipeline instead — see CLAUDE.md). The §c material-divergence field is therefore not surfaced here — beautify never reshapes content (text is verbatim).+- **Recommend keep, allow override**: pre-fill the open communication contract from the source's apparent audience and purpose, preserving composite purposes in prose; also pre-fill canvas / mode / visual style / icons / image strategy with the source-faithful default (canvas = Step 3 format, mode = `briefing`, image_usage = `provided`). The purpose examples are hints, never a `primary_job` selector. Beautify's only true non-choices are frozen text and strict 1:1 page count (changing either means routing to the main pipeline). Seed `content_divergence` to verbatim preservation with `locked: true`; the Confirm UI renders it read-only and the server restores the locked value on every staged submit. A request to reshape wording or page structure routes to the main pipeline instead of weakening this profile.- **Our recommendation is the pre-selected default = the source replica**: for color and typography, author **several candidates** like the from-scratch flow. The pre-selected default (`selected: 0`, the first card) is what beautify recommends — the candidate that **best replicates the source deck's style** (the truest reading of `theme` / `observed`). Replicate-by-default.- **Judge the other alternatives exactly as the from-scratch flow does — fonts as much as colors**: don't invent a beautify-specific rule. Author each non-replica candidate with the **same content-driven judgment the Strategist uses when generating from scratch** (color §e, typography §g), applied to the material this project provides — the source document's content and subject, the company's own theme colors, and any brand signal. Pick the palette **and** the font pairing by what fits *this* deck's content; fonts are chosen by content fit, not just defaulted to a safe face. Reach **≥3 candidates total** (PPT-safe stacks; the same creative-choice rule used elsewhere) so a user who departs from the replica still lands on a considered, content-fitting direction — depart-by-choice.-- **`body_size` is the load-bearing field, and the replica follows the source's own size**: seed the replica candidate's `body_size` from the source's actual body size — take the dominant `observed.sizes_pt` value (the most frequent run-level size, the **body proxy**) and **convert it to px (`× 4/3`)** before seeding, since the system is px-only and the source measures in pt: a source 20pt body becomes `26.67`px, so the replica renders at the source's true size (seeding the bare `20` as px would shrink it ~25% — the pt-as-px trap). Whichever source value you land on below (observed mode, or `theme.sizes.body`) gets the same `× 4/3` conversion. The confirm page (and chat fallback) then writes that px to `result.json` (`body_size`) **directly — no further conversion, no `body_size_pt` provenance** (pt never enters the contract). The "most frequent = body" read is a proxy, not a guarantee — `observed.sizes_pt` counts every explicit run size (titles, captions, footnotes, chart/label text included, no placeholder-type resolution), so a deck dense with small labels can let a caption size outrank true body; cross-check the proxy against the page's actual body blocks and the sanity range below before trusting it, and prefer the size the body paragraphs visibly render at over the raw mode when the two disagree. Fall back to `theme.sizes.body` (the declared placeholder size) when `observed.sizes_pt` is empty, and to a PPT delivery-purpose baseline (`text` 20 / `balanced` 24 / `presentation` 32 px — one fixed value per purpose) only when neither is present. Note `theme.sizes.body` is the master `bodyStyle` **level-1 declared default** — a coarse value that commonly **over-reads** the real body density (decks often render body at a deeper outline level or override it smaller), so when you land on this fallback treat it as an upper-ish guess and run it through the sanity check below, never as a precise body size. `theme.sizes.body_levels` and `layout_sizes_pt` are **reference context, not extra fallback tiers**: consult them to judge a saner body value when the deck is theme-driven (`observed` empty) — e.g. a deeper `body_levels` entry or a `layout_sizes_pt` hint may read truer than level-1 — but do not auto-seed from them; the seed chain stays `observed → theme.sizes.body → delivery-purpose baseline`, and a theme-driven deck whose body size genuinely can't be pinned cleanly is exactly the case the sanity check is for. The canvas hint stays a **sanity range**, not the seed: if the source's own size lands far outside it (a dense source doc reads tiny on a projection canvas), surface that to the user rather than silently snapping — the replica recommendation is the source's size, the user confirms or overrides. Non-replica alternatives may use the delivery-purpose baseline. This is what prevents the deck from exporting at an unintentionally small size while still honoring the source.+- **`body_size` is the load-bearing field, and the replica follows the source's own size**: seed the replica candidate's `body_size` from the source's actual body size — take the dominant `observed.sizes_pt` value (the most frequent run-level size, the **body proxy**) and **convert it to px (`× 4/3`)** before seeding, since the system is px-only and the source measures in pt: a source 20pt body becomes `26.67`px, so the replica renders at the source's true size (seeding the bare `20` as px would shrink it ~25% — the pt-as-px trap). Whichever source value you land on below (observed mode, or `theme.sizes.body`) gets the same `× 4/3` conversion. The confirm page (and chat fallback) then writes that px to `result.json` (`body_size`) **directly — no further conversion, no `body_size_pt` provenance** (pt never enters the contract). The "most frequent = body" read is a proxy, not a guarantee — `observed.sizes_pt` counts every explicit run size (titles, captions, footnotes, chart/label text included, no placeholder-type resolution), so a deck dense with small labels can let a caption size outrank true body; cross-check the proxy against the page's actual body blocks and the sanity range below before trusting it, and prefer the size the body paragraphs visibly render at over the raw mode when the two disagree. Fall back to `theme.sizes.body` (the declared placeholder size) when `observed.sizes_pt` is empty, and to a PPT consumption-mode baseline (`text` 20 / `balanced` 24 / `presentation` 32 px — one fixed value per mode) only when neither is present. Note `theme.sizes.body` is the master `bodyStyle` **level-1 declared default** — a coarse value that commonly **over-reads** the real body density (decks often render body at a deeper outline level or override it smaller), so when you land on this fallback treat it as an upper-ish guess and run it through the sanity check below, never as a precise body size. `theme.sizes.body_levels` and `layout_sizes_pt` are **reference context, not extra fallback tiers**: consult them to judge a saner body value when the deck is theme-driven (`observed` empty) — e.g. a deeper `body_levels` entry or a `layout_sizes_pt` hint may read truer than level-1 — but do not auto-seed from them; the seed chain stays `observed → theme.sizes.body → consumption-mode baseline`, and a theme-driven deck whose body size genuinely can't be pinned cleanly is exactly the case the sanity check is for. The canvas hint stays a **sanity range**, not the seed: if the source's own size lands far outside it (a dense source doc reads tiny on a projection canvas), surface that to the user rather than silently snapping — the replica recommendation is the source's size, the user confirms or overrides. Non-replica alternatives may use the consumption-mode baseline. This is what prevents the deck from exporting at an unintentionally small size while still honoring the source.```bashpython3 ${SKILL_DIR}/scripts/confirm_ui/server.py <project_path> --daemon --waitdiff --git a/skills/ppt-master/workflows/stages/topic-research.md b/skills/ppt-master/workflows/stages/topic-research.mdindex aa5fa5a5..8959891c 100644--- a/skills/ppt-master/workflows/stages/topic-research.md+++ b/skills/ppt-master/workflows/stages/topic-research.md@@ -29,10 +29,15 @@ This stage is **context-independent**: it owns source acquisition when no file e| Scope / focus | Broad overview || Depth | General-knowledge level || Output language | Match user input |+| Target audience | Audience implied by the request; otherwise state a provisional general audience |+| Research-facing communication intent | Open prose describing what the eventual presentation should accomplish; may combine several purposes |+| Desired audience outcome | What the audience should know, understand, believe, decide, or do after the presentation || Slug for files (`<topic_slug>`) | snake_case English identifier derived from topic |**Forbidden — itemized confirmation**: do NOT ask each row separately. One bundled clarifier or none.+**Communication intent is not a pick-list.** You may mention inform / explain / persuade / decide / align / teach / report and account / mobilize / record and hand off as examples that help the user answer, but never ask them to select one label. Preserve multiple purposes plus their priority / sequence. This intake captures only the subset needed to aim research; main-pipeline Stage 1 confirms the full communication contract—audience, outcome, core message / ask, delivery context, artifact afterlife, and source-treatment intent—after the facts exist. Every editable Stage-1 prose field may remain blank after confirmation. Stage 2 confirms reading mode with the complete deck solution.+---## Step 2: Gather via web search@@ -84,7 +89,7 @@ Three artifacts under `projects/`:**Hard rule — naming**: filename (without `.md`) and folder name MUST match. **Hard rule — location**: under `projects/`, never the repository root.-**Document structure** — section layout follows the topic: person → biography / works / impact; technology → background / mechanism / applications / outlook; company → overview / products / market / culture. The file MUST end with a `## Sources` section listing the URLs used.+**Document structure** — begin with a compact `## Research Brief` carrying Target audience, Communication intent, and Desired audience outcome in open prose. Then let section layout follow the topic: person → biography / works / impact; technology → background / mechanism / applications / outlook; company → overview / products / market / culture. The file MUST end with a `## Sources` section listing the URLs used.**Content density** — concrete facts (dates, names, numbers, quotes). Skip filler prose; the Strategist composes final slide copy.@@ -129,6 +134,8 @@ curl -L -o "projects/<topic_slug>/<descriptive_name>.<ext>" "<image_url>"Output a checkpoint, then continue with the main pipeline. The artifacts feed directly into Step 2's `import-sources`:+The Research Brief is evidence-facing context, not a locked presentation contract. Strategist reads it when preparing Stage 1, then confirms / edits the full contract with the user before choosing narrative mode, template reuse, or visual direction.+```markdown## ✅ Topic Research Complete- [x] Document: `projects/<topic_slug>.md` (N sections)