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
feat(topic-research): retain webpage source packages
hugohe3741561b154c8
diff --git a/AGENTS.md b/AGENTS.mdindex 5805b8dd..232d02a2 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -10,7 +10,7 @@ PPT Master turns source material into natively editable DrawingML PPTX. Generate**Route selection authority**: [`skills/ppt-master/workflows/routing.md`](skills/ppt-master/workflows/routing.md) owns the four top-level artifact routes: Generate PPTX, Create Template, Fill Native PPTX, and Enhance Native PPTX. Child workflows, profiles, stages, and governance documents refine one selected route; they are not competing top-level routes.-- Topic-only or fact-insufficient inputs run [`topic-research`](skills/ppt-master/workflows/stages/topic-research.md) inside the selected Generate profile's source intake; facts only, no images.+- Topic-only or fact-insufficient inputs run [`topic-research`](skills/ppt-master/workflows/stages/topic-research.md) inside the selected Generate profile's source intake; retained webpages are imported as source packages whose embedded images remain source-extracted inventory, while independent image acquisition stays in later resource preparation.- Default Generate prepares template candidates internally in Step 3, then confirms the communication contract and free-design/template choice together in Stage 1. Template content stays unread until that confirmation; selected roots are installed before template-aware Stage 2. Quick skips this interaction.- Raw PPTX template plus new material/topic routes to [`template-fill-pptx`](skills/ppt-master/workflows/template-fill-pptx.md), not the SVG pipeline.- Raw PPTX cannot be consumed as a Generate template workspace; run [`create-template`](skills/ppt-master/workflows/create-template.md) first and return with the generated workspace root as a Stage-1 candidate. Never add Master/Layout structure directly to an existing PPTX/SVG; generate new structured SVG pages from the workspace.diff --git a/docs/faq.md b/docs/faq.mdindex fe24de2d..a215c948 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -10,7 +10,7 @@ Almost anything: **PDF**, **DOCX**, **PPTX**, **EPUB**, **HTML**, **LaTeX**, **R## Q: Can I generate a deck with just a topic, no source materials?-Yes. Tell the AI your topic or scenario (e.g. "make a PPT about Hayao Miyazaki", "introduce our new product"). The Generate PPTX route will run its **topic-research stage** to gather the factual baseline and provenance needed for planning. If you provide partial material, the same stage may fill only the factual gaps required by your requested outcome unless you ask for a source-only result. Images are selected during Strategist planning and acquired only after final confirmation.+Yes. Tell the AI your topic or scenario (e.g. "make a PPT about Hayao Miyazaki", "introduce our new product"). The Generate PPTX route will run its **topic-research stage** to gather the factual baseline and provenance needed for planning. If you provide partial material, the same stage may fill only the factual gaps required by your requested outcome unless you ask for a source-only result. Webpages adopted during research are imported with their embedded images as source packages; Strategist later decides whether to use those images. Independent AI or web image acquisition still follows final confirmation.Quality depends on what's on the open web. If you already have specialized material (papers, internal docs), giving those files to the AI directly produces better results than web research alone.diff --git a/docs/rules/prompt-style.md b/docs/rules/prompt-style.mdindex 875ed749..53acf578 100644--- a/docs/rules/prompt-style.md+++ b/docs/rules/prompt-style.md@@ -102,10 +102,16 @@ Constraint strength and decision ownership are independent. Preserve this chain| Layer | Owns ||---|---|| User / initial materials | Supplied facts/assets, desired outcome, exclusions, and permission boundaries remain authoritative |-| Strategist / plan + preparation | Assess material sufficiency; trigger permitted fact research; decide the approved content, resources, keys, identity anchors, and exact page roster; record optional capability/expression recommendations; materialize the planned project-local inventory or record an explicit `Needs-Manual` dependency before execution. For icons, prepare a curated project pool with broad semantic fit rather than assigning files to pages |+| Strategist / plan + preparation | Assess material sufficiency; trigger permitted topic research and retain its adopted webpage source packages; decide the approved content, resources, keys, identity anchors, and exact page roster; record optional capability/expression recommendations; materialize the planned project-local inventory or record an explicit `Needs-Manual` dependency before execution. For icons, prepare a curated project pool with broad semantic fit rather than assigning files to pages || Executor / realization | Use only prepared project-local assets; preserve approved content, resources, and identity anchors; realize them through geometry, composition, hierarchy, and treatment. Fields explicitly labeled `suggestion` or Reference are preferred expression rather than binding selections: Executor may adapt or decline them when content and explicit constraints remain intact. For icons, the complete `<project>/icons/` pool is prepared material; `icons.inventory` is a curated bundled-pool index, not a page-use plan or whitelist, and Executor chooses prepared icons per page without a coverage quota. Sparse local font/color garnish is allowed only while non-structural and non-recurring |-**Preparation timing**: In the default pipeline, fact research required for planning may run before final confirmation. AI / web / slice acquisition runs only from the completed `design_spec.md §VIII` and `spec_lock.md`, after final confirmation and before Executor. Image_Generator, Image_Searcher, and icon-sync tooling execute Strategist-owned preparation; they are not independent decision owners.+**Preparation timing**: In the default pipeline, topic research and import of+its retained webpage source packages may run before final confirmation.+Embedded images in those packages are initial source inventory, not independent+web image acquisition. AI / web / slice acquisition runs only from the+completed `design_spec.md §VIII` and `spec_lock.md`, after final confirmation+and before Executor. Image_Generator, Image_Searcher, and icon-sync tooling+execute Strategist-owned preparation; they are not independent decision owners.**Post-motion sound exception**: optional transition/object sound is not apage-authoring ingredient and never enters Strategist planning,diff --git a/docs/technical-design.md b/docs/technical-design.mdindex 87ee0e64..2e256a1f 100644--- a/docs/technical-design.md+++ b/docs/technical-design.md@@ -616,7 +616,7 @@ One agent may therefore perform several creative stages in sequence, but theirownership boundaries do not merge; checker, exporter, and transcript recorderremain separate deterministic tools.-**Default preparation has two clocks.** Topic Research supplies facts before final confirmation: it starts immediately for topic-only input, or after supplied material is converted/read when planning-critical factual gaps remain. It supplements only those gaps and acquires no images. When the current AI editor provides an isolated worker with web/fetch access and write access to the declared outputs, the main agent defines the gaps and the worker writes the existing research/provenance artifacts, returning only a receipt; otherwise research runs in the main context. AI / web / slice image acquisition runs only after final confirmation and the completed `design_spec.md §VIII` / `spec_lock.md`, then reaches a terminal status before Executor starts. Strategist also resolves, syncs, and validates a curated project icon pool while authoring the final plan. Image_Generator, Image_Searcher, and icon-sync tooling are preparation mechanisms under Strategist ownership, not independent decision owners. Quick generation uses those preparation mechanisms as needed under the current agent's in-context decisions, without inserting a confirmation gate.+**Default preparation has two clocks.** Topic Research supplies facts and identifies adopted webpages before final confirmation: it starts immediately for topic-only input, or after supplied material is converted/read when planning-critical factual gaps remain. It supplements only those gaps. After project initialization, the retained URLs or already-converted webpage packages enter `project_manager.py import-sources`; their Markdown, companion files, `image_manifest.json`, and embedded images become source inventory. This materialization is source intake, not independent web image acquisition. When the current AI editor provides an isolated worker with web/fetch access and write access to the declared outputs, the main agent defines the gaps and the worker writes the existing research/provenance artifacts, returning only a receipt; otherwise research runs in the main context. Independent AI / web / slice image acquisition runs only after final confirmation and the completed `design_spec.md §VIII` / `spec_lock.md`, then reaches a terminal status before Executor starts. Strategist also resolves, syncs, and validates a curated project icon pool while authoring the final plan. Image_Generator, Image_Searcher, and icon-sync tooling are preparation mechanisms under Strategist ownership, not independent decision owners. Quick generation uses those preparation mechanisms as needed under the current agent's in-context decisions, without inserting a confirmation gate.**Prepared project-local assets are the boundary.** In the default pipeline, images and other declared resources remain available only when Strategist has selected them, recorded them in the planning artifacts, and made their project paths resolvable or explicitly `Needs-Manual`. Icons are prepared when their SVG files exist under `<project>/icons/`; `spec_lock.icons.inventory` indexes the Strategist's curated synced bundled pool but neither assigns page usage nor exhaustively whitelists execution. Executor chooses among prepared icons per page. In quick generation, active-context resource decisions and their project-local files/manifests replace that planning projection; no general roster or page assignment is written. The current agent may acquire and prepare those resources before SVG authoring. Files elsewhere on disk are not authorized. Missing material returns to the owning preparation step; SVG authoring never silently substitutes it.diff --git a/docs/zh/faq.md b/docs/zh/faq.mdindex eca7415e..eb5b4205 100644--- a/docs/zh/faq.md+++ b/docs/zh/faq.md@@ -10,7 +10,7 @@## Q: 只有一个主题或想法、没有任何资料,也能生成吗?-可以。直接告诉 AI 你想做的主题或场景(如"做一个关于宫崎骏的 PPT"、"介绍我们公司新产品"),Generate PPTX 路线会运行 **topic-research 阶段**,补齐规划所需的事实基础与来源记录。已有部分材料时,只补实现用户目标仍缺少的事实;如果用户要求只使用原材料,则不做外部补充。图片由 Strategist 在规划中选定,并且只在最终确认后获取。+可以。直接告诉 AI 你想做的主题或场景(如"做一个关于宫崎骏的 PPT"、"介绍我们公司新产品"),Generate PPTX 路线会运行 **topic-research 阶段**,补齐规划所需的事实基础与来源记录。已有部分材料时,只补实现用户目标仍缺少的事实;如果用户要求只使用原材料,则不做外部补充。研究中最终采用的网页会连同正文图片作为来源包导入,再由 Strategist 判断是否使用;独立的 AI 或网络图片获取仍在最终确认后进行。效果取决于公开网页的覆盖度。如果你已有专业资料(论文、内部文档),直接把文件给 AI 比联网检索更准。diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.mdindex 6560421f..c4fee8de 100644--- a/docs/zh/technical-design.md+++ b/docs/zh/technical-design.md@@ -513,7 +513,7 @@ Generate 路由会在加载流程前选定一份运行时权威:[`workflows/ge**快速生成把规划职责合并到当前 Agent。** 来源转换、事实缺口研究和资源准备仍按需运行。当前 Agent 在上下文中自动选择内容、页面清单、mode、visual style 和资源需求;把图片、图标、定性 Structure、原生形状、图表 / 表格、公式与纯字体 / 几何作为完整载体菜单进行一次判断;准备实际选中的用户提供 / 来源抽取 / AI / 网络 / 切片图片、图标及其必要操作 manifest 或来源记录,随后手写 SVG 与所需原生公式 marker;不进入 Strategist、Confirm UI、`design_spec.md`、`spec_lock.md`,也不创建替代规划产物。这些决策在上下文丢失后无法恢复。因此同一 Agent 可以顺序承担多个创作阶段,但阶段权责不会合并;Checker、Exporter 与运行记录器仍是独立的确定性工具。-**默认备料有两个时点。** Topic Research 在最终确认前补充规划所需的事实:只有主题时立即运行;已有材料时先转换 / 阅读,仅在仍有关键事实缺口时补齐,而且不获取任何图片。当前 AI 编辑器若能提供具备网页检索 / 抓取能力并可写入声明输出路径的隔离研究子代理,由主代理定义缺口,子代理写入现有研究及来源产物并只返回回执;否则研究仍在主上下文运行。AI / web / slice 图片只能在最终确认以及完整的 `design_spec.md §VIII` / `spec_lock.md` 之后获取,并在 Executor 开始前进入终态。Strategist 还会在编写最终方案时解析、同步并验证精选项目图标池。Image_Generator、Image_Searcher 与图标同步工具只是 Strategist 负责的备料机制,不是独立决策者。快速生成则由当前 Agent 根据上下文决策按需使用这些备料机制,不插入确认门禁。+**默认备料有两个时点。** Topic Research 在最终确认前补充规划所需的事实并识别最终采用的网页:只有主题时立即运行;已有材料时先转换 / 阅读,仅在仍有关键事实缺口时补齐。项目初始化后,保留的 URL 或已经转换的网页来源包进入 `project_manager.py import-sources`,其 Markdown、配套文件、`image_manifest.json` 和正文图片共同成为来源资源;这是来源导入,不是独立的网络图片获取。当前 AI 编辑器若能提供具备网页检索 / 抓取能力并可写入声明输出路径的隔离研究子代理,由主代理定义缺口,子代理写入现有研究及来源产物并只返回回执;否则研究仍在主上下文运行。独立的 AI / web / slice 图片只能在最终确认以及完整的 `design_spec.md §VIII` / `spec_lock.md` 之后获取,并在 Executor 开始前进入终态。Strategist 还会在编写最终方案时解析、同步并验证精选项目图标池。Image_Generator、Image_Searcher 与图标同步工具只是 Strategist 负责的备料机制,不是独立决策者。快速生成则由当前 Agent 根据上下文决策按需使用这些备料机制,不插入确认门禁。**项目中已备好的材料就是边界。** 默认流程中,图片和其他声明型资源须由 Strategist 选定、写入规划产物,并保证项目路径可解析或明确标为 `Needs-Manual`。图标 SVG 只要已位于 `<project>/icons/` 就属于已备材料;`spec_lock.icons.inventory` 是 Strategist 已同步精选内置图标池的索引,既不分配具体页面,也不是穷尽式执行白名单。Executor 按页从已备图标中选择。快速生成以当前上下文中的资源决策及其项目级文件 / manifest 代替该规划投影,不写通用资源清单或逐页分配;当前 Agent 可以在手写 SVG 前获取并准备这些资源。其他目录中的文件不构成使用许可。缺料必须回到所属备料步骤;SVG 创作阶段不得静默换料。diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.mdindex 17aa8955..9144c8a1 100644--- a/skills/ppt-master/references/strategist.md+++ b/skills/ppt-master/references/strategist.md@@ -58,7 +58,7 @@ Do not force communication intent into one catalog label; Stage 1 records compos| Reference | Preserve the selected direction or role; adapt its realization to context. || Permission / default | An allowed candidate/source boundary or preference; Strategist may leave it unused, with no quota. |-**Authority chain — materials → Strategist preparation → realization.** User inputs set materials/acquisition bounds. Strategist owns sufficiency, gap-filling, and selection: roster/content, resources, page-local visualization/Layout references, fonts, palette anchors, the icon library/stroke plus curated project pool, and crop bans. Fact research may precede confirmation; AI/web/slice follows final confirmation plus completed §VIII/lock; icons are synced/validated during authoring without page assignment. Before Executor, each resource has a path and terminal/`Needs-Manual` state. Executor owns geometry, composition, hierarchy, spacing, treatment, and per-page choice among prepared icons; it never searches, generates, syncs, invents, or substitutes resources. Missing material/reselection returns upstream. Specificity defines freedom; References flex realization, never selection.+**Authority chain — materials → Strategist preparation → realization.** User inputs set materials/acquisition bounds. Strategist owns sufficiency, gap-filling, and selection: roster/content, resources, page-local visualization/Layout references, fonts, palette anchors, the icon library/stroke plus curated project pool, and crop bans. Topic research and import of its retained webpage source packages may precede confirmation; their embedded images are source-extracted inventory. Independent AI/web/slice acquisition follows final confirmation plus completed §VIII/lock; icons are synced/validated during authoring without page assignment. Before Executor, each resource has a path and terminal/`Needs-Manual` state. Executor owns geometry, composition, hierarchy, spacing, treatment, and per-page choice among prepared icons; it never searches, generates, syncs, invents, or substitutes resources. Missing material/reselection returns upstream. Specificity defines freedom; References flex realization, never selection.Explicit *must*, *only*, *exactly*, *verbatim*, *do not*, or `no-crop` wording may strengthen only the named property into the appropriate Literal or Semantic requirement. Accepting an AI recommendation keeps the field's default type; it does not promote a Reference or Permission into a Literal requirement.diff --git a/skills/ppt-master/scripts/prompt_audit_manifest.json b/skills/ppt-master/scripts/prompt_audit_manifest.jsonindex a08e2fc7..3c52f52e 100644--- a/skills/ppt-master/scripts/prompt_audit_manifest.json+++ b/skills/ppt-master/scripts/prompt_audit_manifest.json@@ -32,7 +32,7 @@"skills/ppt-master/references/svg-effects.md": 15000,"skills/ppt-master/references/native-data-interface.md": 6750,"skills/ppt-master/references/pptx-structure-interface.md": 4750,- "skills/ppt-master/references/strategist.md": 16000,+ "skills/ppt-master/references/strategist.md": 18000,"skills/ppt-master/references/strategist-image.md": 2750,"skills/ppt-master/references/strategist-template.md": 3000,"skills/ppt-master/templates/design_spec_reference.md": 3750,@@ -151,7 +151,7 @@"files": ["skills/ppt-master/workflows/template-fill-pptx.md"],- "max_tokens": 13000+ "max_tokens": 14000},"route.generate.planning": {"description": "Generate-PPTX planning through Strategist, including reference-first whole-document authoring, the three compact decision indexes, and a conservative audit envelope for only the exact custom bases selected after those indexes; schemas and optional scaffolds are tool-consumed.",@@ -842,7 +842,7 @@"files": ["skills/ppt-master/workflows/stages/topic-research.md"],- "max_tokens": 2000+ "max_tokens": 2750},"profile.generate.beautify-pptx": {"description": "Strict 1:1 wording, order, and page-count profile with Default and explicit Quick branches.",diff --git a/skills/ppt-master/workflows/generate-pptx.md b/skills/ppt-master/workflows/generate-pptx.mdindex cadac334..40ba8779 100644--- a/skills/ppt-master/workflows/generate-pptx.md+++ b/skills/ppt-master/workflows/generate-pptx.md@@ -50,7 +50,9 @@ request does not explicitly select Quick.🚧 **GATE**: The user has provided a topic / desired outcome and any available initial material.-> **Topic-only**: run [`topic-research`](stages/topic-research.md) immediately, then use its factual supplement as source content.+> **Topic-only**: run [`topic-research`](stages/topic-research.md) immediately,+> then use its factual supplement as source content and retain its adopted+> webpage inputs for Step 2 source-package import.When the user provides non-Markdown content, convert immediately through theunified dispatcher. It preserves the backend converters' existing behavior,@@ -83,7 +85,12 @@ After reading direct and converted content, assess factual sufficiency:| Required externally verifiable claims remain unsupported | Run [`topic-research`](stages/topic-research.md) for those gaps only || Closed corpus / source-only / no external enrichment | Stay within supplied material |-**Sufficiency test**: research only to avoid inventing, omitting, or leaving unsupported a factual claim the requested outcome requires; file presence or length is irrelevant. It gathers facts only. Step 5 acquires Strategist-selected images after final confirmation.+**Sufficiency test**: research only to avoid inventing, omitting, or leaving+unsupported a factual claim the requested outcome requires; file presence or+length is irrelevant. It records the needed facts and adopted webpages. Step 2+imports those webpages and their embedded images as source packages; Step 5+acquires only Strategist-selected independent AI / web / slice assets after+final confirmation.> **Office vector assets (EMF/WMF) from DOCX/PPTX sources**:> Source conversion extracts embedded Office vector images (.emf/.wmf)@@ -99,7 +106,7 @@ After reading direct and converted content, assess factual sufficiency:> Browser-based live preview cannot render EMF (will show blank) — this is expected;> the PPTX output is the source of truth.-**✅ Checkpoint — Confirm source content and any factual supplement are ready, proceed to Step 2.**+**✅ Checkpoint — Confirm source content, retained webpage inputs, and any factual supplement are ready, proceed to Step 2.**---@@ -150,6 +157,13 @@ Import source content (choose based on the situation):| Has source files (PDF/MD/etc.) | `python3 ${SKILL_DIR}/scripts/project_manager.py import-sources <project_path> <source_files_or_dirs...>` || User provided text directly in conversation | No import needed — content is already in conversation context; subsequent steps can reference it directly |+When Topic Research ran, include its research pair plus each exact retained URL+or already-converted webpage Markdown package in the same import. Pass only one+form per webpage. `project_manager.py` archives the page Markdown and companion+files, merges its `image_manifest.json`, and synchronizes embedded images into+`<project>/images/`; this is source intake, not `Acquire Via: web` image+acquisition.+For PPTX sources, `import-sources` automatically runs the standard intake enrichment:```bashdiff --git a/skills/ppt-master/workflows/index.md b/skills/ppt-master/workflows/index.mdindex c59ec0ab..c122a966 100644--- a/skills/ppt-master/workflows/index.md+++ b/skills/ppt-master/workflows/index.md@@ -27,7 +27,7 @@ Maintainer-only inventory for adding, moving, or removing workflow documents. Ru| `create-style` | Template child workflow | [`create-template/create-style.md`](./create-template/create-style.md) | Create Template || `create-layout` | Template child workflow | [`create-template/create-layout.md`](./create-template/create-layout.md) | Create Template || `create-deck` | Template child workflow | [`create-template/create-deck.md`](./create-template/create-deck.md) | Create Template |-| `topic-research` | Factual-preparation stage | [`stages/topic-research.md`](./stages/topic-research.md) | Inside Generate Step 1 |+| `topic-research` | Research/source-preparation stage | [`stages/topic-research.md`](./stages/topic-research.md) | Inside Generate Step 1 || `resume-execute` | Control stage | [`stages/resume-execute.md`](./stages/resume-execute.md) | Generate Step 6 resume || `refine-spec` | Planning stage | [`stages/refine-spec.md`](./stages/refine-spec.md) | After Design Spec Gate 1, before lock Gate 2 || `verify-charts` | Quality gate | [`stages/verify-charts.md`](./stages/verify-charts.md) | Before Generate Step 7 |diff --git a/skills/ppt-master/workflows/stages/topic-research.md b/skills/ppt-master/workflows/stages/topic-research.mdindex 17a5afbd..2e3fc649 100644--- a/skills/ppt-master/workflows/stages/topic-research.md+++ b/skills/ppt-master/workflows/stages/topic-research.md@@ -1,5 +1,5 @@----description: Generate source-intake stage that fills externally verifiable factual gaps before planning or direct SVG authoring.+description: Generate source-intake stage that fills factual gaps and retains adopted webpage source packages before planning or direct SVG authoring.---# Topic Research Stage@@ -9,13 +9,17 @@ description: Generate source-intake stage that fills externally verifiable factu> consumes the same output. Run immediately for topic-only input, or after> supplied material is converted and read when it leaves planning-critical> factual gaps. Output is a research supplement plus stable fact provenance for-> project import.--This stage supplies facts needed to build the requested deck. It does not select,-download, or generate images. Default Generate resolves image selection in the-final Strategist plan and acquires AI / web / slice assets after confirmation;-Quick Generate resolves and acquires them later in its resource-preparation-phase without adding a confirmation gate.+> project import; its retained webpage URLs are imported as source packages in+> the active Generate profile's project-initialization handoff.++This stage supplies facts needed to build the requested deck and preserves the+webpages actually adopted during that research. It makes no deck image+selection and performs no independent image search or generation. During the+handoff, `project_manager.py import-sources` converts each retained URL, archives+its Markdown and companion files, and synchronizes embedded main-content images+into the project resource pool. Those files are source-extracted assets, not+`Acquire Via: web` acquisitions. Default Generate still resolves their use in+the final Strategist plan; Quick Generate resolves their use in active context.## When to Run@@ -67,7 +71,7 @@ confirmation stage.| Actor | Contract ||---|---|| Main agent | Supply the topic/outcome, baseline or relevant source paths, declared gaps, output language, two exact unused output paths, and this stage's absolute path as execution authority; use paths instead of pasting source bodies when possible |-| Research worker | Read the supplied stage file completely, then follow Steps 2–3 using the brief and declared source paths as its baseline; limit project writes to the two output artifacts; acquire no images and make no deck-planning or design decisions |+| Research worker | Read the supplied stage file completely, then follow Steps 2–3 using the brief and declared source paths as its baseline; limit project writes to the two output artifacts; perform no independent image search/generation and make no deck-planning, image-selection, or design decisions |**Hard rule — isolate retrieval, not research**: Raw page content and fetch transcripts stay in the worker context. The 250-word limit applies only to its chat receipt: return `status`, exact artifact paths, covered/unresolved gap counts, external-fact count, and material conflicts. It does not cap or replace the two artifacts. After validation and import, the active content owner reads the complete imported research supplement and fact-provenance JSON into the main context before planning or direct SVG authoring; never use the receipt or validation summary as content.@@ -80,9 +84,13 @@ confirmation stage.Use the web search and fetch tools available in the active research context. An isolated worker without them returns `blocked: web-tools-unavailable`. If no usable research context has search/fetch tools, the main agent pauses and asks the user for authoritative URLs covering the declared gaps, then fetches each with:```bash-python3 ${SKILL_DIR}/scripts/source_to_md/web_to_md.py <URL>+python3 ${SKILL_DIR}/scripts/source_to_md/web_to_md.py <URL> \+ -o projects/<research_slug>_web_sources/<source_slug>.md```+Preserve the resulting Markdown, conversion profile, and companion `_files/`+directory for the handoff instead of fetching the same URL again.+| Phase | Action ||---|---|| Orient | Search only far enough to map authoritative sources to the declared gaps |@@ -96,6 +104,13 @@ python3 ${SKILL_DIR}/scripts/source_to_md/web_to_md.py <URL>| 3 | Reputable reporting or analysis when primary evidence is unavailable || Avoid | Unsourced reposts, unverifiable summaries, and stock-aggregator pages |+**Retained webpage boundary**: End `## Sources` with every exact webpage URL+that materially supports a retained fact or whose embedded main-content visual+was encountered while researching the declared gaps and may serve the requested+outcome. Do not add unopened search results, orientation-only hits, or new pages+found through a separate image-search pass. A retained page is a pending source+package, not a deck-image selection.+**Stop condition**: stop when every declared gap has enough sourced evidence forthe active content owner to decide whether and how to include it. Do not expandinto unrelated overview / history / outlook sections merely to make the@@ -112,9 +127,9 @@ Write two artifacts under `projects/`:| Research supplement | `projects/<research_slug>.md` || Fact provenance | `projects/<research_slug>.facts.json` |-**Hard rule — location and preservation**: write both files under `projects/`, never the repository root. Do not overwrite an existing user file; choose a new research stem instead. This stage creates no image folder.+**Hard rule — location and preservation**: write both files under `projects/`, never the repository root. Do not overwrite an existing user file; choose a new research stem instead. Do not create a parallel research-image manifest or copy embedded images into an ad hoc folder; the source-package import owns that materialization. Preserve any webpage package already produced by the no-web-tools fallback at its declared output path.-Begin the research Markdown with a compact `## Research Brief` containing the supplied-material baseline, declared gaps, audience / intent already known, and requested outcome. Organize the body by gap, include concrete facts only, flag material conflicts, and end with `## Sources` listing every URL used.+Begin the research Markdown with a compact `## Research Brief` containing the supplied-material baseline, declared gaps, audience / intent already known, and requested outcome. Organize the body by gap, include concrete facts only, flag material conflicts, and end with `## Sources` listing each retained page title and exact URL once.Write every externally sourced claim that may enter the deck to `<research_slug>.facts.json` with a stable sequential ID, especially quantitative, date, ranking, attribution, and named-entity claims. Do not include user-supplied claims or invented scenario values. When no external claim is retained, write the schema with an empty `facts` array.@@ -141,18 +156,36 @@ IDs are immutable within the file. Correct a claim under the same ID; never reus## Hand-off-Import the research supplement and provenance alongside any user-supplied-sources through the active profile's source intake:+After project initialization, import the research pair, user-supplied sources,+and one copy of every retained webpage source through the active profile's+source intake. Pass an exact URL when the page has not yet been converted; pass+its existing converted Markdown path when the no-web-tools fallback already+created the webpage package. Never pass both forms for the same page.```bash-python3 ${SKILL_DIR}/scripts/project_manager.py import-sources projects/<project_name> [<source_paths...>] projects/<research_slug>.md projects/<research_slug>.facts.json+python3 ${SKILL_DIR}/scripts/project_manager.py import-sources \+ projects/<project_name> [<source_paths...>] \+ [<retained_URLs_or_converted_webpage_paths...>] \+ projects/<research_slug>.md projects/<research_slug>.facts.json```-The imported pair remains evidence-facing context, not a locked presentation-contract. Default Generate has Strategist read both files completely before-confirmation and use them to select the content, page roster, and image resource-plan. Quick Generate has the current agent read both completely before its-active-context content, design, and resource decisions.+For retained URLs, `project_manager.py` invokes the existing webpage converter,+archives the webpage Markdown plus conversion profile, preserves its companion+`_files/` package and `image_manifest.json`, and synchronizes embedded images+into `<project>/images/`. These imported files are source-extracted inventory;+they do not create `image_sources.json`, run `web-image-review`, or consume an+`Acquire Via: web` choice. The active image owner may later select or ignore+them like other document-extracted images. Independent AI / web / slice+acquisition remains in the owning profile's later resource-preparation phase.++The imported research pair remains the compact evidence-facing content+authority, not a locked presentation contract. Default Generate has Strategist+read both files completely before confirmation and use them with the imported+source inventory to select the content, page roster, and image resource plan.+Quick Generate has the current agent do the same before its active-context+content, design, and resource decisions. Reopen an imported webpage Markdown+only when its raw detail is needed; do not bulk-read it merely because the+source package was retained.```markdown## ✅ Topic Research Complete@@ -160,6 +193,6 @@ active-context content, design, and resource decisions.- [x] Research supplement: `projects/<research_slug>.md` (N declared gaps covered)- [x] Fact provenance: `projects/<research_slug>.facts.json` (N external facts)- [x] Artifact contract validated: `## Research Brief`, `## Sources`, `ppt-master.fact-provenance.v1`, unique sequential IDs, and Markdown/JSON agreement-- [x] No images acquired inside this factual-research stage-- [ ] **Next**: Default returns to [`generate-pptx`](../generate-pptx.md) Step 2; Quick returns to [`quick-generate`](../profiles/quick-generate.md) §2. Import all source artifacts, then fully read the imported research pair before planning or direct SVG authoring+- [x] Retained webpage inputs: N exact URL(s) or already-converted source package(s); no independent image search/generation or deck-image selection+- [ ] **Next**: Default returns to [`generate-pptx`](../generate-pptx.md) Step 2; Quick returns to [`quick-generate`](../profiles/quick-generate.md) §2. Import all source artifacts and retained webpage packages, then fully read the imported research pair before planning or direct SVG authoring```