Preflight quality linter for AI-generated PowerPoint: catches silent font fallback (Hangul-deep, CJK-aware), tracking damage, text collisions, off-canvas bleed, and AI-generated deck tells in built .pptx files
Project description
The preflight linter for AI-generated PowerPoint.
Catches silent font fallback, unreadable sizes, colliding frames,
off-canvas text, and AI-tell punctuation in built .pptx files,
before a human ever sees a render.
Quickstart · What it catches · CI · Calibration record · Discussions · 한국어 README
AI agents / LLMs: read llms.txt, or pip install archforge then archforge skill --install to teach your agent the build-lint-fix loop.
PowerPoint opens both of these decks without a single warning. One of them is broken:
Code review cannot see any of it, because the defects live in font slots, autofit
scales, and coordinates that only materialize at render time. Archforge reads the
.pptx itself (XML, font-resolution chain, geometry, image alpha), so it needs no
PowerPoint installation and runs anywhere your agent or CI runs.
30 seconds
pip install archforge
archforge demo # builds broken.pptx + fixed.pptx and lints both, in front of you
Then point it at your own deck:
archforge deck.pptx # objective defects only (core profile, the default)
archforge deck.pptx --profile full # + AI-tell / style rules: machine-made decks want this
archforge deck.pptx --json # machine-readable JSON (agents / CI)
archforge scan decks/ --profile full # many files, directories, or globs in one run
The decks in examples/ demonstrate the flagship defects and the profile split, each with expected outputs.
Why
The worst pptx defects are silent. No error is raised when:
- text lands on a font that lacks its glyphs and silently falls back to an OS default (the classic case: CJK text on a Latin-only font)
- positive letter-spacing quietly wrecks CJK character spacing
- autofit shrinks text below readable size
- text frames collide, or glyphs run off the canvas
These are exactly the defects machine-generated decks produce, and exactly the ones an LLM cannot see in its own output. Archforge is the gate between "the build succeeded" and "a human would sign off on the render."
Usage
archforge deck.pptx --fail-incomplete # incomplete checks (W18) fail: recommended in CI
archforge deck.pptx --fail-on-warning # WARNs fail too
archforge deck.pptx --e2-no-exemptions # E2 numeric-range/minus exemptions off (full profile)
archforge deck.pptx --strict # union of the three flags above
archforge deck.pptx --ghost # per-page title list (horizontal-logic review)
archforge deck.pptx --render pages/ # add on-image contrast check (W7) from p01.png-style renders
archforge deck.pptx --skip W14,W6 # suppress specific WARNs (recorded in JSON)
archforge deck.pptx --lang en # report language (default: ARCHFORGE_LANG, then OS locale)
archforge deck.pptx --no-config # ignore config files (linting untrusted decks)
archforge deck.pptx --sarif out.sarif # SARIF 2.1.0 (GitHub code scanning)
archforge deck.pptx --junit out.xml # JUnit XML (Jenkins/GitLab test reports)
archforge deck.pptx --json --schema 2 # schema 2.0: findings[] + severity + data + capabilities
archforge deck.pptx --timeout 60 # wall-clock limit, isolated in a child process
archforge deck.pptx --write-baseline bl.json # adopt an existing deck as-is (beta)
archforge deck.pptx --baseline bl.json # report only new findings after that
archforge deck.pptx --hard-min 5 --body-min 9 --small-min 7.5 # size gate thresholds
archforge deck.pptx --w6-sim 0.95 --w6-cluster 5 # W6 repetition thresholds
archforge scan out/**/*.pptx --json # aggregated JSON; exit 1 if any file fails
# (an input matching nothing exits 2)
archforge rules # one-line summary of every rule
archforge explain W15 # what a rule means and how to fix it
archforge demo --dir tour # regenerate the demo pair anywhere
Project defaults live in .archforge.json (or .archforge.yml with
pip install archforge[yaml]) next to the deck or in the working directory; CLI flags
override the config file, and the applied config path is always visible in the output.
{ "profile": "full", "skip": ["W14"], "baseline": ".archforge-baseline.json" }
JSON output (single file; scan --json wraps one of these per file plus an aggregate
summary):
{
"schema_version": "1.0",
"tool": { "name": "archforge", "version": "x.y.z" },
"target_renderer": "powerpoint-windows",
"file": "deck.pptx",
"lang": "en",
"errors": [{ "page": 3, "code": "E1", "message": "...", "detail": "...",
"location": { "shape_id": 7, "shape_name": "TextBox 6",
"bbox": [1.0, 2.4, 5.0, 1.0], "paragraph": 0, "run": 1,
"part": "/ppt/slides/slide3.xml" } }],
"warnings": [{ "page": 5, "code": "W15", "message": "...", "detail": "...",
"location": { "shape_id": 4, "bbox": [1.0, 2.4, 3.1, 0.4],
"related": { "shape_id": 9, "bbox": [1.2, 2.5, 3.3, 0.4] } } }],
"ghost": [{ "page": 1, "title": "..." }],
"summary": { "error_count": 1, "warn_count": 2, "pass": false, "incomplete": false,
"profile": "full", "skipped_codes": [], "baseline_suppressed": 0,
"config": null }
}
location is the auto-fix target for agents: shape id/name, absolute bbox in inches
(group transforms applied), paragraph/run indexes, table cell as [row, col],
field: true for auto fields (slide numbers, dates), and for pair findings
(W15/W17) a related counterpart. Rule codes are stable, language-independent
identifiers; messages follow the report language (--lang > ARCHFORGE_LANG > OS
locale), which follows the user, not the deck.
CI
GitHub Action (composite). Pinning the action tag pins the linter: by default it
installs the exact source checked out at that ref, not whatever PyPI's latest is.
Deck-folder config files are ignored (--no-config) and incomplete checks fail
(fail-incomplete: true) unless you opt out, so a PR cannot weaken the gate by
committing a config next to its deck. files takes one path, directory, or glob per
line; globs are expanded by archforge scan itself, so paths with spaces and **
both behave.
jobs:
deck-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Love-Ash/archforge@v0.7.1
with:
files: |
decks/
profile: full
sarif: archforge.sarif
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: archforge.sarif
pre-commit:
repos:
- repo: https://github.com/Love-Ash/archforge
rev: v0.7.1
hooks:
- id: archforge
# args: [--profile, full]
What it catches
ERRORs block shipping (exit 1):
| Code | Meaning |
|---|---|
E1 |
The font that will actually render Hangul text is Latin-only: silent Malgun fallback. Resolution follows a measured PowerPoint model (see below) |
E2 |
Dash-family characters used as sentence punctuation (the top AI-generated-deck tell). Numeric ranges (2020 to 2024 with an en dash, Q1 to Q3, 5% to 10%) and minus signs pass by default; --strict blocks everything |
E3 |
Effective size below 5pt after autofit and the full placeholder inheritance chain: unreadable |
E4 |
Positive tracking on consecutive Hangul/Hanja: letter-spacing damage (kana-containing runs are exempt; tracked kana is legitimate Japanese practice) |
WARNs are advisory:
| Code | Meaning |
|---|---|
W1 |
Body-class frame below 9pt |
W5 |
No font size anywhere in the inheritance chain |
W6 |
Same layout skeleton on 4+ pages (tunable; template systems: tune or skip) |
W7 |
Low text-over-image contrast (needs --render) |
W8 |
Small CJK in narrow frames (device mockups, cards) |
W9 |
Accent vertical bars repeated as list markers |
W10 |
Hand-drawn diagram cloned across pages |
W11 |
AI-tell copy: buzzwords, stock openings |
W12 |
Footer baseline drift |
W13 |
Native PowerPoint shadow/glow/3D effects |
W14 |
Titles are nominal phrases, not claims (Korean heuristic; numeric titles count as claims) |
W15 |
Estimated text-on-text overlap |
W16 |
Text glyphs or picture ink off-canvas |
W17 |
Text straddling an image ink edge |
W18 |
Some spans could not be checked (malformed input): results incomplete. Fails under --strict |
Profiles separate objective defects from style policy, and since 0.4.0 the default is
core: only the mechanical gates (E1/E3/E4, W1/W5/W7/W8, W15-W18) run unless you opt in.
full adds the AI-tell and convention rules (E2 dashes, W6 repetition, W9-W14) and is the
right mode for agent build-loops linting machine-generated decks; editorial drops W6/W14
for editorial and portfolio decks. Excluded rules are not merely hidden, they are not
executed, and every choice is recorded in the JSON summary, so nothing is silently
bypassed.
How it works
The E1 font-resolution model is measured, not guessed from the OOXML spec: probe decks
rendered through PowerPoint COM pinned the actual priority (run a:ea > paragraph
defRPr > lstStyle chain > theme ea > a:latin on an empty theme slot > OS fallback).
Effective sizes walk the same chain; geometry approximates real glyph and image-ink
areas with insets, group transforms, and merged cells; incompleteness is a first-class
output (W18 / summary.incomplete), so summary.pass under --fail-incomplete is
the honest gate. Font-coverage knowledge is Hangul-deep and CJK-aware; other scripts are
never falsely flagged; the target renderer is PowerPoint for Windows.
Full model, calibration method, renderer-coverage matrix, and scope: docs/HOW_IT_WORKS.md and docs/CALIBRATION.md. Roadmap to 1.0: docs/ROADMAP.md.
Agent integration
Designed for LLM-agent build-lint-fix loops:
build deck.pptx
loop:
result = archforge deck.pptx --profile full --fail-incomplete --json # machine-made decks
if result.summary.pass: break # pass reflects the active policy (summary.policy)
fix listed defects (location payloads point at the exact shape/run), rebuild
review WARNs against renders
The Agent Skills pack (standard SKILL.md + YAML frontmatter) teaches this loop and
per-code fixes to any supporting agent (Claude Code, Codex, ...). It ships inside the
wheel: archforge skill --install. If you cloned the repo, skills/archforge-pptx-lint/
is the same file.
A passing lint is not a finished deck: the linter owns the mechanical defect class; composition and narrative still need eyes on renders.
Community and contributing
- Found a false positive? Report it with the FP template: a repro deck makes it a permanent regression fixture, the most valuable contribution this project takes.
- Questions, ideas, decks you are unsure about: GitHub Discussions.
- Want to contribute code? CONTRIBUTING.md explains the evidence bar (gates are calibrated against renders, not taste); issues tagged good first issue are scoped for a first PR.
- Security: SECURITY.md.
Name
archforge = arch (structure) + forge. A forge where a deck's structure and typography get hammered straight before shipping.
Author
Built and calibrated by Minjae Kwon (Ash) (@Love-Ash · LinkedIn). If archforge caught something before your audience did, a star helps the next person find it. I write up the measurement work behind the gates (how PowerPoint actually resolves fonts, and what AI-built decks silently break); say hi on LinkedIn.
License
MIT © Minjae Kwon (Ash)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file archforge-0.7.1.tar.gz.
File metadata
- Download URL: archforge-0.7.1.tar.gz
- Upload date:
- Size: 317.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eea916ea73e5ed794fcdef5ba90ac9aac9bfe035a6d28335c9b43c6d1ff4c5f1
|
|
| MD5 |
53b9bcb91475dcf5ac30080c00dd72f0
|
|
| BLAKE2b-256 |
5343795984cd6d48c04b6ed38f28f621783f2c57a1fa8c6077b197beb6e360a7
|
Provenance
The following attestation bundles were made for archforge-0.7.1.tar.gz:
Publisher:
publish.yml on Love-Ash/archforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archforge-0.7.1.tar.gz -
Subject digest:
eea916ea73e5ed794fcdef5ba90ac9aac9bfe035a6d28335c9b43c6d1ff4c5f1 - Sigstore transparency entry: 2140857372
- Sigstore integration time:
-
Permalink:
Love-Ash/archforge@5455a9d40505c3a409333cac1e839b531ee91a23 -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/Love-Ash
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5455a9d40505c3a409333cac1e839b531ee91a23 -
Trigger Event:
release
-
Statement type:
File details
Details for the file archforge-0.7.1-py3-none-any.whl.
File metadata
- Download URL: archforge-0.7.1-py3-none-any.whl
- Upload date:
- Size: 93.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21a1711f17bc0622dd55a695ab036cca4749d6b83f5f9ef485270f6a671ecadf
|
|
| MD5 |
b9f8931f67f6435a2f9f664bc30523c4
|
|
| BLAKE2b-256 |
e4432911ffe995983c139c386a6e85a0c0bd5d6f8ca5b83ac326e2541b054822
|
Provenance
The following attestation bundles were made for archforge-0.7.1-py3-none-any.whl:
Publisher:
publish.yml on Love-Ash/archforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archforge-0.7.1-py3-none-any.whl -
Subject digest:
21a1711f17bc0622dd55a695ab036cca4749d6b83f5f9ef485270f6a671ecadf - Sigstore transparency entry: 2140857781
- Sigstore integration time:
-
Permalink:
Love-Ash/archforge@5455a9d40505c3a409333cac1e839b531ee91a23 -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/Love-Ash
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5455a9d40505c3a409333cac1e839b531ee91a23 -
Trigger Event:
release
-
Statement type: