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(pptx-structure): preserve richer placeholder semantics
hugohe343482280c2e5
diff --git a/skills/ppt-master/references/executor-base.md b/skills/ppt-master/references/executor-base.mdindex 7739b094..d19e2030 100644--- a/skills/ppt-master/references/executor-base.md+++ b/skills/ppt-master/references/executor-base.md@@ -108,7 +108,7 @@ Before generating each page, output which template is used:**Hard rule — PowerPoint paint order**: Direct visual children appear in this order: Master background, Layout background, optional Slide background, shared Master shapes, same-key Layout shapes, then slide-local content/placeholders. Backgrounds are the special plane beneath all inherited shapes. Repeat the same Master contract on every page and the same Layout contract on every page sharing a key.-**Placeholder ownership**: Keep actual title/body/picture/chart/table/footer/slide-number content on the Slide and add the matching `data-pptx-placeholder`. Do not move actual content into a Layout. Chart/table placeholders require native markers and a later `--native-objects` export.+**Placeholder ownership**: Keep actual title/subtitle/body/picture/chart/table/object/media/date/footer/slide-number content on the Slide and add the matching `data-pptx-placeholder`. Do not move actual content into a Layout. A reconstructed `title` normally omits `data-pptx-placeholder-idx`; preserve an explicit imported title index when present. Every indexed placeholder on one layout uses a unique index. Chart/table placeholders require native markers and a later `--native-objects` export; object/media placeholders must each resolve to one top-level DrawingML object.**Preserve-mode source identity**: Copy `data-pptx-placeholder-idx` from the chosen template SVG/native contract whenever the source placeholder has an index. Preserve the source placeholder type/idx pairing; do not assign a convenient new index. Master/layout elements in the SVG are preview copies only and MUST retain `data-pptx-layer` + `data-pptx-editable="false"`; never flatten them into unmarked slide-local content.diff --git a/skills/ppt-master/references/shared-standards.md b/skills/ppt-master/references/shared-standards.mdindex 37aead77..d9f39d52 100644--- a/skills/ppt-master/references/shared-standards.md+++ b/skills/ppt-master/references/shared-standards.md@@ -935,8 +935,8 @@ native export uses `baseline` or `template` structure mode:- SVG text whose resolved exported face matches either locked family emitsDrawingML `+mj-*` / `+mn-*` tokens instead of a fixed typeface.- When major and minor resolve to the same face, ordinary slide-local text uses- the minor role; semantic `title` placeholders are forced to major, while- body/footer/slide-number placeholders are forced to minor.+ the minor role; semantic `title` placeholders are forced to major, while all+ other semantic placeholders are forced to minor.- Local emphasis, code, brand, or other families that do not match the lockedtitle/body faces remain concrete per-run fonts and do not change with thetheme.@@ -1034,9 +1034,22 @@ by this solid-background rule.| Placeholder value | SVG element | PowerPoint placeholder ||---|---|---|-| `title`, `body`, `footer`, `slide-number` | direct `<text>` | `title`, `body`, `ftr`, `sldNum` |+| `title`, `subtitle`, `body` | direct `<text>` | `title`, `subTitle`, `body` |+| `date`, `footer`, `slide-number` | direct `<text>` | `dt`, `ftr`, `sldNum` || `picture` | direct `<image>` or imported crop `<svg>` | `pic` || `chart`, `table` | direct matching `data-pptx-native` marker group | `chart`, `tbl` |+| `object` | one direct text, image, or basic SVG shape | `obj` |+| `media` | direct `<image>` or imported crop `<svg>` | `media` |++`title` is normally type-matched without an index in reconstructed layouts; if+an imported source title explicitly has one, preserve that exact index. Every+indexed placeholder on one layout uses a unique non-negative index. Template+export writes the semantic type on both the Layout and Slide placeholder+(except `obj`, whose OOXML default is already+`obj`) so PowerPoint and `python-pptx` retain the same identity. A `date`+placeholder also enables the layout date flag and gets a+`datetimeFigureOut` field in the reusable Layout definition; the current+Slide keeps its authored date content.**Placeholder prototype**: The first slide using a layout key supplies thatlayout's placeholder formatting. `data-pptx-placeholder-bounds` supplies the@@ -1053,7 +1066,10 @@ master or layout background.**Native object placeholders**: `chart` / `table` placeholders require`--native-objects`; fallback groups contain several shapes and cannot map to one-PowerPoint placeholder.+PowerPoint placeholder. `object` is the generic PowerPoint content slot and+must still resolve to one top-level DrawingML object. `media` currently binds+an authored image/crop to a native `media` placeholder; it does not synthesize+video or audio media from a decorative SVG group.### Preserved Source Master / Layout Contract@@ -1068,7 +1084,7 @@ PowerPoint placeholder.**Hard rule — source package wins**: Mark source master/layout visuals as direct `data-pptx-layer="master|layout"` preview children. Preserve export removes those generated copies and renders the original source parts. Unmarked content stays slide-local.-**Placeholder identity**: Keep actual content on the slide. Copy the source placeholder index into `data-pptx-placeholder-idx` when present; the exporter restores the source placeholder type/idx pair. Multiple placeholders with the same semantic role require explicit indices.+**Placeholder identity**: Keep actual content on the slide. Copy the source placeholder index into `data-pptx-placeholder-idx` when present; the exporter restores the source placeholder type/idx pair. Imported `subTitle`, `obj`, `media`, and `dt` placeholders retain distinct `subtitle`, `object`, `media`, and `date` semantic roles instead of collapsing into body/other. Multiple placeholders with the same semantic role require explicit indices.**Multi-master boundary**: Preserve every source master already present in the package. Do not synthesize a new master merely for cover/section differences; rebuilt templates continue to prefer one master plus semantic layouts.diff --git a/skills/ppt-master/references/template-designer.md b/skills/ppt-master/references/template-designer.mdindex 52f6e7de..4a497f96 100644--- a/skills/ppt-master/references/template-designer.md+++ b/skills/ppt-master/references/template-designer.md@@ -261,6 +261,13 @@ Do not:Repeat inherited visuals in the standalone SVG so browser preview remains complete. Preserve export removes those preview copies and renders the original source master/layout parts instead. Do not flatten inherited visuals into unmarked slide content.+Use the imported semantic roles verbatim: `title`, `subtitle`, `body`,+`picture`, `chart`, `table`, `object`, `media`, `date`, `footer`, and+`slide-number`. In particular, do not collapse source `subTitle`, `obj`,+`media`, or `dt` placeholders into a generic body marker. A reconstructed+title normally has no index; if the imported source title has one, retain it.+All indexed source placeholders keep their exact indices.+### 3. Placeholder Markers> **Mirror mode skips this section entirely.** Mirror SVGs are verbatim copies of the source flat slides — they carry no `{{}}` markers. Mirror is only a template-creation mode; downstream generation treats the finished files as normal template roster candidates. The rest of this section applies to `standard` and `fidelity` only.diff --git a/skills/ppt-master/scripts/docs/project.md b/skills/ppt-master/scripts/docs/project.mdindex a461d56a..1fe40590 100644--- a/skills/ppt-master/scripts/docs/project.md+++ b/skills/ppt-master/scripts/docs/project.md@@ -110,7 +110,7 @@ Notes:- **SVG output emits two views by default** (`--inheritance-mode both`):- `svg/` — layered template view for designers: every master and layout in the deck rendered once as `svg/master_*.svg` / `svg/layout_*.svg` (including ones no sample slide currently references); `svg/slide_NN.svg` contains only that slide's own shapes; `svg/inheritance.json` records which layout / master each slide consumes.- `svg-flat/` — companion view: each `slide_NN.svg` is self-contained (master + layout + slide painted into one file), so opening any slide in isolation shows the full page like PowerPoint would. Useful for previews, screenshots, and "did this slide actually render correctly" sanity checks.-- `manifest.json` records `svgFile` for slides / layouts / masters, `flatSvgFile` for slides when `svg-flat/` exists, placeholder type / index / geometry / base style, an asset map used by SVG `href` values, and common assets reused through slide / layout / master inheritance+- `manifest.json` records `svgFile` for slides / layouts / masters, `flatSvgFile` for slides when `svg-flat/` exists, placeholder type / index / geometry / base style, an asset map used by SVG `href` values, and common assets reused through slide / layout / master inheritance. Placeholder semantics keep `subTitle`, `obj`, `media`, and `dt` distinct as `subtitle`, `object`, `media`, and `date`.- Layered slide SVGs keep only the slide's own background; inherited master / layout backgrounds stay in the corresponding master / layout SVGs- Placeholder guides are intentionally lightweight in `svg/` master / layout files; `svg-flat/` hides those guides and is the visual preview source- Charts, SmartArt, diagrams, and OLE objects become typed placeholders in `svg/`; `svg-flat/` shows a preview image with a corner badge when one exists, otherwise a visible placeholder. Tables are converted into real SVG content.diff --git a/skills/ppt-master/scripts/docs/svg-pipeline.md b/skills/ppt-master/scripts/docs/svg-pipeline.mdindex 12c9809d..5ac98fd6 100644--- a/skills/ppt-master/scripts/docs/svg-pipeline.md+++ b/skills/ppt-master/scripts/docs/svg-pipeline.md@@ -63,6 +63,7 @@ Behavior:- For PPTX template-import workspaces, use `-s svg-flat` when you need a visual round-trip check. The layered `svg/` tree is the machine-readable template source and intentionally does not inline inherited master / layout decoration into each slide.- Native mode is strict about unsupported visual SVG elements: if a visual element cannot be represented or safely preserved, export fails with the SVG file, element tag, and position instead of silently dropping content.- Omitting `--pptx-structure` reads `spec_lock.md` `pptx_structure.mode`, then falls back to `baseline`; an explicit CLI value overrides the lock. Template mode builds reusable PowerPoint layouts only from explicit SVG metadata: root `data-pptx-layout`, direct-child `data-pptx-layer="master|layout"`, optional `data-pptx-layer="slide"` on a full-canvas solid background, and direct-child `data-pptx-placeholder`. It validates the per-page `pptx_layouts` lock plus cross-slide structure consistency and never infers layouts from visual similarity. Direct full-canvas solid rects compile to Master/Layout/Slide `p:bg` by scope; an unmarked one is a Slide override. Chart/table placeholders also require `--native-objects`. Full contract: [`shared-standards.md`](../../references/shared-standards.md#explicit-pptx-master--layout--placeholder-metadata-template-export).+- Template/preserve placeholder semantics distinguish title, subtitle, body, picture, chart, table, generic object, media, date, footer, and slide number. Reconstructed titles are normally type-matched without an index; explicit imported title indices and all other source indices are retained. Imported `subTitle`, `obj`, `media`, and `dt` identities remain distinct through `manifest.json`, `native_structure.json`, Layout XML, and Slide XML.- Baseline/template native export reads `spec_lock.md` typography into the PowerPoint theme: `title_family` becomes the major font and `body_family` / `font_family` becomes the minor font. Matching SVG text emits `+mj-*` / `+mn-*` tokens, while unrelated emphasis/code/brand families stay concrete. Preserve mode keeps the imported source theme; flat mode keeps fixed-font diagnostic output.- Baseline/template native export also maps canonical `spec_lock.md` color roles into the PowerPoint color scheme and emits context-safe `schemeClr` tokens for exact matches in SVG fills/text/strokes, gradients/patterns/bullets, native tables, and native-chart accent series. Local colors, inverse white/black, and effects stay concrete. Preserve mode keeps the imported source color scheme; flat mode keeps fixed-color diagnostic output.- Preserve mode requires both a Strategist-confirmed `template_adherence: strict` and a `create-template` native pair (`native_structure.json` + `source_template.pptx`) declared in `spec_lock.md`. It verifies the source digest, binds each generated page to an imported layout part, retains the source master/layout/theme roster, removes preview-only inherited SVG layers, and restores source placeholder type/index identities. The SVG root still declares `data-pptx-layout`; repeated semantic placeholders may disambiguate with `data-pptx-placeholder-idx`. `template_adherence: adaptive` keeps export on baseline even when the pair is present.diff --git a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.pyindex e4d10ac9..bed8093f 100644--- a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py+++ b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py@@ -818,19 +818,27 @@ def _set_slide_layout_target(rels_path: Path, target: str) -> None:_TEMPLATE_PLACEHOLDER_TYPES = {"title": "title",+ "subtitle": "subTitle","body": "body","picture": "pic","chart": "chart","table": "tbl",+ "object": "obj",+ "media": "media",+ "date": "dt","footer": "ftr","slide-number": "sldNum",}_TEMPLATE_PLACEHOLDER_PROMPTS = {"title": "Click to add title",+ "subtitle": "Click to add subtitle","body": "Click to add text","picture": "Click to add picture","chart": "Click to add chart","table": "Click to add table",+ "object": "Click to add content",+ "media": "Click to add media",+ "date": "Date","footer": "Footer",}@@ -1305,15 +1313,31 @@ def _placeholder_text_body(if source_tx_body is not Noneelse None)- if item.placeholder == "slide-number":+ if item.placeholder in {"slide-number", "date"}:+ field_type = (+ "slidenum"+ if item.placeholder == "slide-number"+ else "datetimeFigureOut"+ )field = ET.SubElement(paragraph,f"{{{DML_NS}}}fld",- {"id": f"{{{str(uuid.uuid4()).upper()}}}", "type": "slidenum"},+ {"id": f"{{{str(uuid.uuid4()).upper()}}}", "type": field_type},)if source_run_pr is not None:field.append(ET.fromstring(ET.tostring(source_run_pr, encoding="utf-8")))- ET.SubElement(field, f"{{{DML_NS}}}t").text = "‹#›"+ source_text = ""+ if source_tx_body is not None:+ source_text = "".join(+ text.text or ""+ for text in source_tx_body.findall(f".//{{{DML_NS}}}t")+ )+ field_text = (+ "‹#›"+ if item.placeholder == "slide-number"+ else source_text or "Date"+ )+ ET.SubElement(field, f"{{{DML_NS}}}t").text = field_textelse:run = ET.SubElement(paragraph, f"{{{DML_NS}}}r")if source_run_pr is not None:@@ -1376,7 +1400,7 @@ def _set_placeholder_theme_font_role(returnif item.placeholder == "title":prefix = "+mj"- elif item.placeholder in {"body", "footer", "slide-number"}:+ elif item.placeholder in _TEMPLATE_PLACEHOLDER_TYPES:prefix = "+mn"else:return@@ -1391,7 +1415,7 @@ def _set_placeholder_theme_font_role(def _layout_placeholder_shape(source_shape: ET.Element,item: TemplateElementSpec,- placeholder_idx: int,+ placeholder_idx: int | None,theme_font_spec: ThemeFontSpec | None = None,) -> ET.Element:"""Build one reusable p:sp placeholder from a prototype slide object."""@@ -1412,8 +1436,12 @@ def _layout_placeholder_shape(ET.SubElement(c_nv_sp_pr, f"{{{DML_NS}}}spLocks", {"noGrp": "1"})nv_pr = ET.SubElement(nv_sp_pr, f"{{{PML_NS}}}nvPr")placeholder_attrs = {"type": placeholder_type}- if item.placeholder != "title":+ if placeholder_idx is not None:placeholder_attrs["idx"] = str(placeholder_idx)+ elif item.placeholder != "title":+ raise TemplateStructureError(+ f"Placeholder {item.element_id!r} requires an idx"+ )ET.SubElement(nv_pr, f"{{{PML_NS}}}ph", placeholder_attrs)source_sp_pr = (@@ -1476,7 +1504,11 @@ def _patch_slide_placeholder(if existing.tag == f"{{{PML_NS}}}ph":nv_pr.remove(existing)placeholder_attrs: dict[str, str] = {}- if placeholder_type is not None or item.placeholder == "title" or placeholder_idx is None:+ if (+ placeholder_type is not None+ or resolved_type != "obj"+ or placeholder_idx is None+ ):placeholder_attrs["type"] = resolved_typeif placeholder_idx is not None:placeholder_attrs["idx"] = str(placeholder_idx)@@ -1495,7 +1527,7 @@ def _set_template_layout_header_footer() -> None:"""Enable declared footer fields for slides newly created from the layout."""kinds = {item.placeholder for item in placeholders}- if not kinds.intersection({"footer", "slide-number"}):+ if not kinds.intersection({"date", "footer", "slide-number"}):returntree = ET.parse(layout_path)root = tree.getroot()@@ -1513,7 +1545,7 @@ def _set_template_layout_header_footer()root.insert(insert_at, hf)hf.set("hdr", "0")- hf.set("dt", "0")+ hf.set("dt", "1" if "date" in kinds else "0")hf.set("ftr", "1" if "footer" in kinds else "0")hf.set("sldNum", "1" if "slide-number" in kinds else "0")_write_xml_tree(layout_path, tree)@@ -1602,12 +1634,18 @@ def _apply_template_structure(raise TemplateStructureError(f"Placeholder {item.element_id!r} cannot be a slide background")- assigned_idx = (- item.placeholder_idx- if item.placeholder_idx is not None- else placeholder_idx- )- if item.placeholder != "title" and assigned_idx in assigned_placeholder_indices:+ if item.placeholder == "title":+ assigned_idx = item.placeholder_idx+ else:+ assigned_idx = (+ item.placeholder_idx+ if item.placeholder_idx is not None+ else placeholder_idx+ )+ if (+ assigned_idx is not None+ and assigned_idx in assigned_placeholder_indices+ ):raise TemplateStructureError(f"Layout {layout_key!r} repeats placeholder idx {assigned_idx}")@@ -1631,7 +1669,7 @@ def _apply_template_structure(assigned_idx,theme_font_spec=theme_font_spec,)- if item.placeholder != "title":+ if assigned_idx is not None:assigned_placeholder_indices.add(assigned_idx)placeholder_idx = max(placeholder_idx, assigned_idx + 1)placeholder_count += 1diff --git a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.pyindex ac753040..f088b8a2 100644--- a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py+++ b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py@@ -40,14 +40,36 @@ _STRUCTURE_ATTRS = frozenset({_LAYERS = frozenset({"master", "layout", "slide"})_PLACEHOLDERS = frozenset({"title",+ "subtitle","body","picture","chart","table",+ "object",+ "media",+ "date","footer","slide-number",})-_TEXT_PLACEHOLDERS = frozenset({"title", "body", "footer", "slide-number"})+_TEXT_PLACEHOLDERS = frozenset({+ "title",+ "subtitle",+ "body",+ "date",+ "footer",+ "slide-number",+})+_OBJECT_PLACEHOLDER_TAGS = frozenset({+ "rect",+ "circle",+ "ellipse",+ "line",+ "path",+ "polygon",+ "polyline",+ "text",+ "image",+})_LAYOUT_KEY_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$")_LOCK_ROW_RE = re.compile(r"^-\s+([A-Za-z0-9_]+)\s*:\s*(.+?)\s*$")_LOCK_PAGE_RE = re.compile(r"^P(\d+)$")@@ -655,6 +677,16 @@ def _validate_placeholder_element(f"{svg_path.name}: {element_id} picture placeholder must be declared ""on a direct <image> or nested crop <svg> element")+ if placeholder == "media" and tag not in {"image", "svg"}:+ raise TemplateStructureError(+ f"{svg_path.name}: {element_id} media placeholder must be declared "+ "on a direct <image> or nested crop <svg> element"+ )+ if placeholder == "object" and tag not in _OBJECT_PLACEHOLDER_TAGS:+ raise TemplateStructureError(+ f"{svg_path.name}: {element_id} object placeholder must resolve to "+ "one direct text, image, or basic SVG shape"+ )if placeholder in {"chart", "table"}:native_kind = (elem.get("data-pptx-native") or "").strip().lower()if tag != "g" or native_kind != placeholder:@@ -972,14 +1004,18 @@ def template_lock_errors(return errors-_PRESERVE_PLACEHOLDER_TYPES = {- "title": frozenset({"title", "ctrTitle"}),- "body": frozenset({"body", "subTitle", "obj"}),- "picture": frozenset({"pic", "obj"}),- "chart": frozenset({"chart", "obj"}),- "table": frozenset({"tbl", "obj"}),- "footer": frozenset({"ftr"}),- "slide-number": frozenset({"sldNum"}),+_PRESERVE_PLACEHOLDER_TYPE_ORDER = {+ "title": ("title", "ctrTitle"),+ "subtitle": ("subTitle", "body", "obj"),+ "body": ("body", "obj", "subTitle"),+ "picture": ("pic", "obj"),+ "chart": ("chart", "obj"),+ "table": ("tbl", "obj"),+ "object": ("obj",),+ "media": ("media", "obj", "pic"),+ "date": ("dt",),+ "footer": ("ftr",),+ "slide-number": ("sldNum",),}@@ -991,15 +1027,24 @@ def match_native_placeholders(available = list(layout.placeholders)matches: list[tuple[TemplateElementSpec, NativePlaceholderSpec]] = []for item in spec.placeholders:- allowed_types = _PRESERVE_PLACEHOLDER_TYPES.get(item.placeholder or "", frozenset())+ allowed_types = _PRESERVE_PLACEHOLDER_TYPE_ORDER.get(+ item.placeholder or "",+ (),+ )candidate_index = None- for index, candidate in enumerate(available):- if candidate.placeholder_type not in allowed_types:- continue- if item.placeholder_idx is not None and candidate.idx != item.placeholder_idx:- continue- candidate_index = index- break+ for placeholder_type in allowed_types:+ for index, candidate in enumerate(available):+ if candidate.placeholder_type != placeholder_type:+ continue+ if (+ item.placeholder_idx is not None+ and candidate.idx != item.placeholder_idx+ ):+ continue+ candidate_index = index+ break+ if candidate_index is not None:+ breakif candidate_index is None:idx_note = (f" idx={item.placeholder_idx}"diff --git a/skills/ppt-master/scripts/template_import/manifest.py b/skills/ppt-master/scripts/template_import/manifest.pyindex 1c3209ad..4c1e3340 100644--- a/skills/ppt-master/scripts/template_import/manifest.py+++ b/skills/ppt-master/scripts/template_import/manifest.py@@ -228,11 +228,13 @@ def placeholder_semantic_role(placeholder_type: str | None) -> str:"title": "title","ctrTitle": "title","body": "body",- "subTitle": "body",- "obj": "body",+ "subTitle": "subtitle",+ "obj": "object","pic": "picture","chart": "chart","tbl": "table",+ "media": "media",+ "dt": "date","ftr": "footer","sldNum": "slide-number",}diff --git a/skills/ppt-master/scripts/template_import/native_structure.py b/skills/ppt-master/scripts/template_import/native_structure.pyindex f9003f56..ad8167f9 100644--- a/skills/ppt-master/scripts/template_import/native_structure.py+++ b/skills/ppt-master/scripts/template_import/native_structure.py@@ -52,7 +52,8 @@ def _has_reusable_structure(manifest: dict[str, Any]) -> bool:layout.get("backgroundAsset")or int(layout.get("drawableShapeCount") or 0) > 0or any(- placeholder.get("semanticRole") not in {"footer", "slide-number", "other"}+ placeholder.get("semanticRole")+ not in {"date", "footer", "slide-number", "other"}for placeholder in layout.get("placeholders", []))for layout in candidate_layoutsdiff --git a/skills/ppt-master/workflows/create-template.md b/skills/ppt-master/workflows/create-template.mdindex 7ebca4cd..44850c9f 100644--- a/skills/ppt-master/workflows/create-template.md+++ b/skills/ppt-master/workflows/create-template.md@@ -304,7 +304,7 @@ For type D, pass only the finalized brief.The role uses the analysis bundle to anchor objective facts such as theme colors, fonts, reusable backgrounds, common branding assets, layout grammar, image-placement rules, density rhythm, and page-slot semantics, then rebuilds the final SVG templates in a simplified, maintainable form.-**Native structure packaging strategy**: When the confirmed strategy is `preserve`, copy `native_structure.json` and `source_template.pptx` unchanged into the final template directory. Author every template SVG with the source layout key/name on the root, source master/layout visuals as preview layers, and slide content as source-compatible placeholder markers. This retains a future strict-use capability; it does not force every downstream deck to use it. When the strategy is `template`, do not copy the native pair; reconstruct one master plus semantic layouts through the explicit metadata contract. Mirror mode always takes this rebuild/baseline path because flat slides do not retain layer ownership.+**Native structure packaging strategy**: When the confirmed strategy is `preserve`, copy `native_structure.json` and `source_template.pptx` unchanged into the final template directory. Author every template SVG with the source layout key/name on the root, source master/layout visuals as preview layers, and slide content as source-compatible placeholder markers. Preserve the importer's distinct `subtitle` / `object` / `media` / `date` roles and exact source indices instead of reducing them to body/other. This retains a future strict-use capability; it does not force every downstream deck to use it. When the strategy is `template`, do not copy the native pair; reconstruct one master plus semantic layouts through the explicit metadata contract. Mirror mode always takes this rebuild/baseline path because flat slides do not retain layer ownership.Downstream, the Strategist confirmation stage owns template adherence. `strict` maps every generated page to this SVG roster and may activate `pptx_structure.mode: preserve`; `adaptive` may use only selected SVGs and always keeps native export on `baseline`, even though the pair remains available in the template directory.