Keep the source deck read-only and independently author every target-slide coordinate.
Use the bundled OOXML utilities only for raw themes, relationships, notes, comments, animations, media, masters, or layouts that high-level extraction cannot expose.
Record inspected parts and parsing exceptions in the analysis manifest.
Do not use extracted content, fonts, images, or proprietary assets in a generated deck without explicit permission and license evidence.
OOXML package inspection
Install defusedxml from requirements.txt before using the bundled utilities.
Run scripts/inspect.py <deck.pptx> for a compact JSON report of slide order, text, theme tokens, relationships, notes, comments, animations, and media.
Run scripts/validate_package.py <deck.pptx> --output <report.json> for malformed XML, broken internal relationships, content-type gaps, duplicate layout links, and orphaned parts.
Run scripts/unpack.py <deck.pptx> <output-dir> only when raw-package evidence is necessary.
Resolve relationship targets relative to the .rels owner; never infer slide order from filenames.
Safety
Never modify a supplied deck or blindly copy package parts into a new deck.
Run the scripts from a trusted workspace; they reject path traversal, symlinks, oversized members, and archive bombs.
Parse untrusted XML with defusedxml; do not enable entity expansion, DTD loading, or network access.
Treat theme colors as tokens unless fully resolved against the color scheme.
See reference-deck-analysis.md for output shapes, reference-deck-analysis-patterns.md for documentation-only patterns, and ooxml-parsing.md for package part maps.