6. Verification
A coherent library and canonical documentation
Ship compatible typography scales, spacing, palettes, caption treatments and motion rhythms. Defaults carry choices such as glow falloff, padding, finite particle life and a readable final hold. Keep artistic controls small, typed, named and unit-aware. Avoid silently shrinking illegible text or compressing long word sequences into unreadable motion.
Each component includes editable hd source, signature/defaults, a usage example, duration behavior, reference frames, a short reference clip and quality/cost notes. Generate schemas and reference information from one typed registry where practical. A small canonical introduction should teach components and local time before advanced selectors/tracks. Remotion agent skills.
Preparation, build and evaluation
- Validate typed props and resolve asset capabilities.
- Prepare/lock fonts, media, narration, analysis and correspondence.
- Construct the pure Video and any retained clips/curves.
- Inspect/check declared structure and sample chosen frames/intervals.
- Render with the same locked inputs and record actual validation coverage.
view has no network/filesystem reads, wall-clock
animation or mutable random stream. The language's effect signatures
enforce this boundary; fakes provide controlled preparation metadata.
Purity does not make arbitrary callbacks statically inspectable or
automatically cacheable.
Iteration without an editor UI
Extend the existing render/still/sheet/lint workflow with semantic inspection, short interval rendering, visual diffs, profiling and an effect catalogue. A persistent CLI worker/watch mode may keep caches warm and emit updated clips. Source remains authoritative. No live timeline, code/keyframe round-trip or interactive app is required.
Checks operate at several levels:
- Static/preflight: input types, missing resources, duplicate scoped IDs, bad ranges, duration cycles and unsupported operations.
- Structural samples: text overflow, caption coverage, clipping, invisible required content, invalid values, morph endpoints and chart domains.
- Temporal samples: cuts, cue boundaries, first/last frames, morph extrema, effect tails and peak overlap; render short clips for motion review.
- Comparisons: semantic trees/display lists, pixel diffs and shuffled/repeated/reverse sampling within a documented GPU tolerance.
- Vision review: readability, composition and unintended artifacts; fallible evidence, not proof of every frame.
Errors identify source location, component/effect/clip ID, time, expected/actual values and a correction. For example:
headline: word entrance ends at 2.13 s; clip ends at 1.50 s.
Extend the clip, reduce the stagger, or choose fit=CompressStagger.
echo expects a timed source; headline(f, props) is one frame.
Wrap the view with Clip::from_view(duration=..., view=...).
Prepared helpers can report exact natural duration; arbitrary callbacks may need declared expectations and sampled checks. Static typing cannot prove all runtime layouts fit. Cross-device pixel equality is not guaranteed by a seed and asset hash alone.
The example contracts
| Example | Inputs and intended behavior |
|---|---|
| Explainer | Configured narrator; three named cues; fixed diagram slots; cache-hit request/return motion; captions and a final hold. |
| Code walkthrough | Embedded before/after hd; prepared token morph from 3–5 seconds; after-source focus from 6–7 seconds; stable panel bounds. |
| Data story | Synthetic five-day values, validated range and positive baseline; final value cannot exceed baseline for the “fewer” wording; responsive landscape/portrait/square layout. |
| Social promo | Headline/tagline drive narration; aurora/neon/ink/sweep, cue-driven flip/sparks, film finish before captions; duration includes the last possible spark and a hold. No model or image asset is required. |
Check values declare expectations, not passed results.
The examples request missing-glyph, text/safe-area, caption coverage,
asset-failure, morph-endpoint/unique-match, stable-layout,
chart-label/domain and shuffled-sampling checks.
Check::no_overlap(a,b) checks the nontransparent,
transformed paint bounds of the named components at inspected times and
reports possible overlap; it is conservative rather than a pixel-perfect
occlusion proof. This keeps a long social tagline from silently
expanding its card into captions: the runner rejects a failed check and
reports the responsible props/layout. Retain IDs, source locations and
sampled-time coverage. Structural morph checks do not establish that
ambiguous matches look good. Actual layout, typography and motion
require rendered review. Pure callbacks may expose only sampled
diagnostics; no whole-program duration inference is promised.
Cross-device pixel equality is not guaranteed; shuffled-frame checks use
declared same-backend tolerances.
The explainer duration covers both the final narrated word and the final cue-driven motion, followed by a hold and one frame-grid rounding. The code progress bar targets the last visible uniform sample rather than the exclusive end. The social example has no model; it includes a conservative card/caption overlap check. These are intended contracts, not render-verified outcomes.