Skip to content

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

fix(chart-recall): keep full catalog fallback explicit

hugohe3ec531fc39137
diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.md
index f5696b6c..06c1a223 100644
--- a/skills/ppt-master/references/strategist.md
+++ b/skills/ppt-master/references/strategist.md
@@ -287,12 +287,12 @@ python3 skills/ppt-master/scripts/chart_recall.py recall \
--limit 6
```
-The command returns a lexical shortlist plus `no-template-match`. `low` / `none` also returns the full catalog under `semantic_fallback`; if stronger candidates all conflict, rerun with `--semantic-fallback`. Compare every returned catalog rule semantically—lexical overlap is unnecessary. Do not open the catalog separately or maintain a second index.
+The command returns a bounded lexical shortlist plus `no-template-match`. Treat `confidence` as a diagnostic only: `low` / `none` never expands the output or decides whether to use a template. Semantically review the returned candidates. If terminology mismatch or structural ambiguity suggests that the shortlist missed a relevant catalog structure, rerun with `--semantic-fallback` and compare the returned rules semantically. This explicit fallback is optional, not a routine gate before `no-template-match`. Do not open the catalog separately or maintain a second index.
**Selection**:
-1. Choose the most specific valid structure from the applicable review; keep one primary visualization per page and adapt its treatment rather than mimicking it.
-2. Only after that review finds no fit, retain `no-template-match` as the recall result: data content falls back to a table, permitted conceptual content to an AI image, and structural content to a custom layout. Record the chosen fallback only in the affected page's §IX `Visualization` / `Layout`; do not serialize the negative result into §VII.
+1. Choose the most specific valid structure from the bounded candidates or an explicitly requested semantic fallback; keep one primary visualization per page and adapt its treatment rather than mimicking it.
+2. When no recalled reference fits, retain `no-template-match` by Strategist judgment: data content falls back to a table, permitted conceptual content to an AI image, and structural content to a custom layout. Record the chosen fallback only in the affected page's §IX `Visualization` / `Layout`; do not serialize the negative result into §VII.
3. Validate all selected keys before writing the lock:
```bash
diff --git a/skills/ppt-master/scripts/chart_recall.py b/skills/ppt-master/scripts/chart_recall.py
index 5eae2207..a291a986 100644
--- a/skills/ppt-master/scripts/chart_recall.py
+++ b/skills/ppt-master/scripts/chart_recall.py
@@ -208,20 +208,16 @@ def recall_candidates(
"allowed": True,
"key": "no-template-match",
"instruction": (
- "Use only when no catalog rule fits after the applicable lexical and "
- "semantic review. Keep this result out of Design Spec Section VII and "
- "describe the chosen fallback in the page's Section IX block."
+ "Use when none of the bounded candidates fits the page structure. If the "
+ "shortlist may have missed a relevant catalog rule, rerun with "
+ "--semantic-fallback first. Keep this result out of Design Spec Section "
+ "VII and describe the chosen fallback in the page's Section IX block."
),
},
}
- if confidence in {"low", "none"} or force_semantic_fallback:
- reason = (
- "requested-after-candidate-conflict"
- if force_semantic_fallback
- else f"lexical-confidence-{confidence}"
- )
+ if force_semantic_fallback:
result["semantic_fallback"] = {
- "reason": reason,
+ "reason": "requested-after-bounded-review",
"instruction": (
"Semantically compare the page tags with every returned selection rule. "
"Choose one exact catalog key or keep no-template-match; lexical overlap "
@@ -313,7 +309,7 @@ def build_parser() -> argparse.ArgumentParser:
recall.add_argument(
"--semantic-fallback",
action="store_true",
- help="Include the full catalog for AI semantic review after candidate conflict.",
+ help="Include the full catalog when bounded recall may have missed a semantic match.",
)
recall.set_defaults(handler=_run_recall)
diff --git a/skills/ppt-master/scripts/docs/chart-recall.md b/skills/ppt-master/scripts/docs/chart-recall.md
index fec3397c..f1a206d8 100644
--- a/skills/ppt-master/scripts/docs/chart-recall.md
+++ b/skills/ppt-master/scripts/docs/chart-recall.md
@@ -1,6 +1,6 @@
# Chart Candidate Recall
-`chart_recall.py` gives the Strategist a bounded deterministic shortlist, then exposes the full live catalog only when lexical confidence is `low` / `none` or the caller requests semantic review after candidate conflict. It reads `templates/charts/charts_index.json` on every invocation, so the catalog remains the only template registry.
+`chart_recall.py` gives the Strategist a bounded deterministic shortlist. It exposes the full live catalog only when the caller explicitly requests semantic review. It reads `templates/charts/charts_index.json` on every invocation, so the catalog remains the only template registry.
## Recall candidates
@@ -15,9 +15,9 @@ python3 skills/ppt-master/scripts/chart_recall.py recall \
--limit 6
```
-`--limit` accepts 3-8 and defaults to 6. It is a maximum, not a padding target: the deterministic JSON contains only positive-scoring candidates, up to the requested limit. `low` / `none` results also contain `semantic_fallback.catalog`, allowing the Strategist to compare the page meaning against every live `Pick` / `Skip` rule without requiring lexical overlap.
+`--limit` accepts 3-8 and defaults to 6. It is a maximum, not a padding target: the deterministic JSON contains only positive-scoring candidates, up to the requested limit. `confidence` reports lexical recall strength only; `low` / `none` never expands the result or decides whether a template should be used.
-When medium/high candidates all conflict with the page, rerun the same command with `--semantic-fallback`. Review the returned catalog semantically, then select one exact key or retain `no-template-match`; do not open or maintain a second keyword/category index. `no-template-match` is an internal recall result, not a Design Spec §VII row.
+Semantically review the bounded candidates. If none fits and the page clearly needs a custom composition, retain `no-template-match`. If terminology mismatch or structural ambiguity suggests that bounded recall may have missed a catalog match, rerun the same command with `--semantic-fallback`, then compare the returned rules semantically. The flag is an uncertainty fallback, not a routine no-match gate. Do not open or maintain a second keyword/category index. `no-template-match` is an internal recall result, not a Design Spec §VII row.
| Field | Contract |
|---|---|
@@ -25,10 +25,10 @@ When medium/high candidates all conflict with the page, rerun the same command w
| `semantic_tags` | Deduplicated input tags |
| `confidence` | Lexical recall strength; never a selection decision |
| `candidates` | Ranked keys, SVG paths, verbatim catalog summaries, scores, and matched tags |
-| `semantic_fallback` | Full live catalog, present only for `low` / `none` or `--semantic-fallback`; requires semantic comparison |
-| `no_template_match` | Explicit fallback after the applicable lexical and semantic review finds no fit |
+| `semantic_fallback` | Full live catalog, present only with `--semantic-fallback`; requires semantic comparison |
+| `no_template_match` | Explicit fallback when the Strategist judges that no recalled reference fits |
-The scorer treats the key and the summary's Pick clause as positive evidence and the Skip clause as negative evidence. A term found only in Skip cannot make a candidate eligible, and Skip matches explicitly reduce a candidate's score. Unicode input is NFKC-normalized before matching. The Strategist still applies semantic judgment: inspect every applicable returned rule, reject candidates whose Skip clause matches, and prefer the most specific valid structure. An empty shortlist opens full semantic review; it does not authorize either a forced lexical match or immediate `no-template-match`.
+The scorer treats the key and the summary's Pick clause as positive evidence and the Skip clause as negative evidence. A term found only in Skip cannot make a candidate eligible, and Skip matches explicitly reduce a candidate's score. Unicode input is NFKC-normalized before matching. The Strategist still applies semantic judgment: inspect the returned candidates, reject candidates whose Skip clause matches, and prefer the most specific valid structure. An empty shortlist permits `no-template-match`; use `--semantic-fallback` only when the Strategist suspects a relevant catalog structure was missed.
## Validate selected keys
diff --git a/skills/ppt-master/templates/charts/README.md b/skills/ppt-master/templates/charts/README.md
index a3939cde..348c7b94 100644
--- a/skills/ppt-master/templates/charts/README.md
+++ b/skills/ppt-master/templates/charts/README.md
@@ -6,7 +6,7 @@ This directory contains the standardized SVG visualization templates used by PPT
[`charts_index.json`](./charts_index.json) is the single source of truth for the library: total count + one selection-rule `summary` per template (format: `"Pick for X. Skip if Y (use other_key)."`). [`chart_recall.py`](../../scripts/chart_recall.py) can recall a bounded candidate set from this live registry without maintaining a second category or keyword index.
-For one planned page, provide 3-8 English semantic content-shape tags, then inspect the positive-scoring summaries plus the explicit `no-template-match` option. The requested limit is a cap, not a padding target. Low/no lexical confidence automatically returns the live catalog for AI semantic review; when stronger lexical candidates all conflict, rerun with `--semantic-fallback`. `no-template-match` stays inside planning: it creates no §VII row or `page_charts` entry, and the chosen fallback is described in the page's §IX block. See [`chart-recall.md`](../../scripts/docs/chart-recall.md). The Generate workflow remains the authority for when Strategist uses this helper; maintainers may still open the registry directly when editing or auditing the catalog.
+For one planned page, provide 3-8 English semantic content-shape tags, then inspect the positive-scoring summaries plus the explicit `no-template-match` option. The requested limit is a cap, not a padding target, and lexical confidence never expands the output automatically. When terminology mismatch or structural ambiguity suggests that bounded recall missed a relevant template, rerun with `--semantic-fallback` for an explicit full-catalog review. The flag is optional, not a gate before `no-template-match`. `no-template-match` stays inside planning: it creates no §VII row or `page_charts` entry, and the chosen fallback is described in the page's §IX block. See [`chart-recall.md`](../../scripts/docs/chart-recall.md). The Generate workflow remains the authority for when Strategist uses this helper; maintainers may still open the registry directly when editing or auditing the catalog.
## Authoring contract
diff --git a/skills/ppt-master/templates/charts/charts_index.json b/skills/ppt-master/templates/charts/charts_index.json
index 5c6c675c..5d8d83f0 100644
--- a/skills/ppt-master/templates/charts/charts_index.json
+++ b/skills/ppt-master/templates/charts/charts_index.json
@@ -5,7 +5,7 @@
"formats": ["ppt169"],
"filePattern": "{key}.svg",
"libraryPositioning": "Visualization template library covering charts, infographics, diagrams, and strategic frameworks. The `charts/` path is retained for backward compatibility. Templates are named by visual structure, not by business-model name — model-specific frameworks (SWOT, BCG, PEST, OKR, Porter's Five Forces, Value Chain, etc.) are matched via keywords in `summary`.",
- "summaryGrammar": "Each chart's `summary` is a selection rule, not a description. Format: 'Pick for <content shape + scale>. Skip if <reason → alternative>'. Strategist supplies 3–8 semantic content-shape tags per candidate page; chart_recall.py returns a bounded lexical shortlist and exposes the full catalog only for low/no confidence or requested semantic fallback.",
+ "summaryGrammar": "Each chart's `summary` is a selection rule, not a description. Format: 'Pick for <content shape + scale>. Skip if <reason → alternative>'. Strategist supplies 3–8 semantic content-shape tags per candidate page; chart_recall.py returns a bounded lexical shortlist and exposes the full catalog only through an explicitly requested semantic fallback.",
"updated": "2026-07-21"
},
"charts": {