3 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
0095956fb4 fix(math-animator): keep unavailable geometry checks advisory 2026-10-31 17:22:25 +08:00
Bingxi Zhao (Frank)
4d2678954d fix(manim): preserve review failures and reap cancelled geometry probes 2026-10-31 16:56:47 +08:00
Amar Tinawi
8f1db978cc feat(math_animator): dry-run geometry check gates each render
Without a vision model the pipeline has no layout review, so overlapping
labels, lines through formulas and text cut off by the frame ship as-is.

layout_probe.py replays the scene with Manim's dry_run (no frames drawn,
a few seconds), snapshots every visible text and stroked VMobject after
each play()/wait(), and reports in scene units: text overlapping text,
strokes crossing text, and text or shapes past the (camera) frame edge.

When visual review is off and output is video, the probe runs before each
render. A failing layout is raised as a ManimRenderError, so the existing
repair loop fixes it before any frame is drawn (MAX_LAYOUT_ROUNDS = 3);
after that the scene renders as it stands, and the post-render review only
records what is left. The probe fails open: a crash or timeout skips it.

The English code-generator prompt gains layout rules and the Manim
Community API names the renderer rejects; the repair prompt says how to
fix layout findings.
2026-10-30 15:17:07 +04:00