qa-quarto

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Adversarial Quarto vs Beamer QA Workflow

对抗式Quarto与Beamer质量校验工作流

Compare Quarto HTML slides against their Beamer PDF benchmark using an iterative critic/fixer loop.
Philosophy: The Beamer PDF is the gold standard. The Quarto translation must be at least as good in every dimension.

通过迭代的校验者/修复者循环,将Quarto HTML幻灯片与其Beamer PDF基准版本进行对比。
核心理念: Beamer PDF是黄金标准,Quarto的转换版本在各方面必须至少达到同等水准。

Workflow

工作流

Phase 0: Pre-flight → Phase 1: Critic audit → Phase 2: Fixer → Phase 3: Re-audit → Loop until APPROVED (max 5 rounds)
Phase 0: Pre-flight → Phase 1: Critic audit → Phase 2: Fixer → Phase 3: Re-audit → Loop until APPROVED (max 5 rounds)

Hard Gates (Non-Negotiable)

硬性校验标准(不可协商)

GateCondition
OverflowNO content cut off
Plot QualityInteractive charts >= static plots
Content ParityNo missing slides/equations/text
Visual RegressionQuarto >= Beamer in all dimensions
Slide CenteringContent centered, no jumping
Notation FidelityAll math verbatim from Beamer
校验项条件
内容溢出无内容被截断
图表质量交互式图表质量 ≥ 静态图表
内容一致性无缺失的幻灯片/公式/文本
视觉回归Quarto在各方面表现 ≥ Beamer
幻灯片居中内容居中,无跳转
符号准确性所有数学内容与Beamer完全一致

Phase 0: Pre-flight

第0阶段:前期准备

  1. Locate Beamer (.tex/.pdf) and Quarto (.qmd/.html) files
  2. Check freshness (re-render if QMD newer than HTML)
  3. Verify TikZ SVGs if applicable
  1. 定位Beamer(.tex/.pdf)和Quarto(.qmd/.html)文件
  2. 检查文件新鲜度(若QMD文件比HTML文件新则重新渲染)
  3. 若适用,验证TikZ SVG文件

Phase 1: Initial Audit

第1阶段:初始审计

Launch the
quarto-critic
agent to compare Beamer vs Quarto comprehensively. Report saved to
quality_reports/[Lecture]_qa_critic_round1.md
.
启动
quarto-critic
agent,全面对比Beamer与Quarto。报告将保存至
quality_reports/[Lecture]_qa_critic_round1.md

Phase 2: Fix Cycle

第2阶段:修复循环

If not APPROVED, launch
quarto-fixer
agent to apply fixes (Critical → Major → Minor), re-render, and verify.
若未通过校验,启动
quarto-fixer
agent进行修复(优先级:严重→主要→次要),重新渲染并验证。

Phase 3: Re-Audit

第3阶段:重新审计

Re-launch critic to verify fixes. Loop back to Phase 2 if needed.
重新启动校验者以验证修复效果。若有需要,循环回到第2阶段。

Iteration Limits

迭代限制

Max 5 fix rounds. After that, escalate to user with remaining issues.
最多5轮修复。超过后,将剩余问题上报给用户。

Final Report

最终报告

Save to
quality_reports/[Lecture]_qa_final.md
with hard gate status, iteration summary, and remaining issues.
保存至
quality_reports/[Lecture]_qa_final.md
,包含硬性校验标准状态、迭代总结及剩余问题。