# How an agent sees a video

> A walkthrough of the feedback loop (validate, timeline, storyboard, inspect, trace) on a real launch card, from the first draft to a clean render, with the actual output at every step.

*2026-10-24 · The vidmake team*

The question we get most about vidmake is some version of: *how does the agent know it looks right?* The short answer is that it doesn't, not by looking at an MP4. It asks narrower questions that have exact answers: does this file compile, when is each layer on screen, where is every box at 3.5 seconds, what value does this counter print at frame 52. Each vidmake command answers one of those questions in text.

This post follows one small project, a five-second launch card, from the first draft to the final render. Every problem in it is one we have seen agents make, and every output below is real. Where the output comes from a file state that didn't survive to the end, we've pasted it as it was printed.

## The first draft

The brief: a kicker, a headline, a subtitle, a counter of beta teams, the product logo in the corner, and a call to action at the end. Here is the draft as an agent might write it on the first pass:

```json title="project.json"
{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "launch", "width": 1280, "height": 720, "fps": 30, "duration": "5s",
    "background": { "type": "linear", "angle": 160, "stops": ["#e9e4d8", "#f4f1ea"] },
    "layers": [
      { "id": "kicker", "type": "text", "text": "Introducing", "font": "JetBrains Mono", "fontSize": 18, "letterSpacing": 4,
        "uppercase": true, "fill": "#c92a26", "y": "26%", "enter": "fadeup" },
      { "id": "headline", "type": "text", "text": "Lantern 3.0: dashboards your whole team will actually read",
        "font": "Schibsted Grotesk", "fontWeight": 860, "fontsize": 76, "letterSpacing": -3, "fill": "#161412", "y": "42%",
        "start": "0.2s", "enter": "fadeUp" },
      { "id": "sub", "type": "text", "text": "Live sharing, comments and alerts", "font": "Schibsted Grotesk", "fontSize": 28,
        "fill": "#4a4640", "y": "56%", "start": "0.5s", "enter": "fadeUp" },
      { "id": "count", "type": "text", "text": "${fmt(round(10000 * easeOutBack(clamp(t / 1.2, 0, 1))))} teams on the beta",
        "font": "JetBrains Mono", "fontSize": 26, "fill": "#161412", "y": "72%", "start": "1s", "enter": "fade" },
      { "id": "badge", "type": "image", "src": "assets/logo.svg", "width": 72, "x": "110%", "y": "12%", "enter": "pop" },
      { "id": "cta", "type": "text", "text": "Available today", "font": "Schibsted Grotesk", "fontWeight": 700, "fontSize": 26,
        "fill": "#161412", "y": "86%", "start": "5.5s", "enter": "fadeUp" }
    ]
  }]
}
```

It looks plausible. It has six problems.

## Step 1: validate until it compiles

`validate` compiles the whole project, the same way `render` would. A field name that doesn't exist fails before anything else is checked:

```output
$ vidmake validate project.json
✗ launch: composition `launch`: unknown field `fontsize` — did you mean `fontSize`?
```

Field names are case-sensitive, and an unknown field is an error rather than something to ignore. A renderer that silently dropped `fontsize` would draw the headline at the default 64 px and the agent would never find out why. Fix that and validate again:

```output
$ vidmake validate project.json
✗ launch: layer `kicker` (launch > layers[0]): `enter`: unknown preset `fadeup`. Available: fade, fadeUp|Down|Left|Right (fade + short move), slideUp|Down|Left|Right (from off the parent), rise (text: up from behind its line), scale, pop (bouncy), zoom, blur, rotate, wipeLeft|Right|Up|Down, typewriter (text)
```

The error names the layer, its position in the tree, the field and every valid value. For one-field fixes, `vidmake set` is often easier than editing the file, because it compiles the project before saving and refuses an edit that would break it:

```output
$ vidmake set project.json kicker.enter fadeUp
set /compositions/0/layers/0/enter
```

(`set` rewrites the file as formatted JSON, so expect whitespace changes in a diff.)

## Step 2: read the warnings

The project compiles now. That's the state we kept as the draft demo, and `validate` has three warnings about it:

```console
$ vidmake validate blog-agents-draft.json
✓ launch — 150 frames (5.00s)
  warning: layer `cta` starts at 5.50s, after the composition ends (5.00s) [afterEnd]
  warning: layer `badge` is entirely off-canvas at frame 75 (bbox [1372,50,1444,122]) [offCanvas]
  warning: text layer `headline` overflows the canvas at frame 78 (bbox [-426,257,1706,348]); consider maxWidth or a smaller fontSize [textOverflow]
```

Each of these warnings ends with a code, so an agent can tell an intended warning from a real one, and silence intended ones on the layer with `"lint": { "ignore": [...] }`. None of these are intended:

- **`afterEnd`**: the call to action starts at 5.5 s in a 5 s video. It would never be seen.
- **`offCanvas`**: `"x": "110%"` puts the logo past the right edge. The intent was the top-right corner.
- **`textOverflow`**: the headline is 2,132 px wide on a 1,280 px canvas. Its bounding box, `[-426,257,1706,348]`, says by how much.

`timeline` confirms the first one from a different angle. The `cta` row is all dots, a layer with no time on screen:

```console
$ vidmake timeline blog-agents-draft.json
Composition `launch` — 1280x720 @ 30fps, 150 frames (5.00s)

ID        TYPE         START      END      DUR  DETAILS
kicker    text         0.00s    5.00s    5.00s  enter:fadeUp "Introducing"
headline  text         0.20s    5.00s    4.80s  enter:fadeUp "Lantern 3.0: dashboards your whole team "
sub       text         0.50s    5.00s    4.50s  enter:fadeUp "Live sharing, comments and alerts"
count     text         1.00s    5.00s    4.00s  enter:fade "0 teams on the beta"
badge     image        0.00s    5.00s    5.00s  enter:pop src:assets/logo.svg
cta       text         5.50s    5.50s    0.00s  enter:fadeUp "Available today"

          |0s          1s          2s          3s          4s          |
kicker    |████████████████████████████████████████████████████████████|
headline  |··██████████████████████████████████████████████████████████|
sub       |······██████████████████████████████████████████████████████|
count     |············████████████████████████████████████████████████|
badge     |████████████████████████████████████████████████████████████|
cta       |····························································|
```

And the storyboard shows the other two. The headline is cropped on both sides and the logo is nowhere:

`vidmake storyboard blog-agents-draft.json --at 0.6s,2s,4.5s --cols 3` produces:

![vidmake storyboard blog-agents-draft.json --at 0.6s,2s,4.5s --cols 3](https://vidmake.app/media/storyboard-4bd921fd6a94.jpg)

## Step 3: fix, then inspect what the fix did

Three `set` commands fix all three warnings:

```output
$ vidmake set project.json cta.start 3.2s
set /compositions/0/layers/5/start
$ vidmake set project.json badge.x 92%
set /compositions/0/layers/4/x
$ vidmake set project.json headline.maxWidth 1000
set /compositions/0/layers/1/maxWidth
$ vidmake validate project.json
✓ launch — 150 frames (5.00s)
```

A clean `validate` is necessary, not sufficient. Lint catches things that are almost always mistakes; it can't know whether two layers *should* overlap. So ask where everything is:

```output
$ vidmake inspect project.json -t 3.5s
Frame 105 (3.50s) of `launch` (1280x720), 6 visible layer(s), drawn bottom→top:

ID                       TYPE            X        Y       W       H    ROT  SCALE  OPAC  BBOX [x0,y0,x1,y1]          NOTES
kicker                   text        640.0    187.2   158.8    21.6    0.0   1.00  1.00  [561,176,719,198]           "INTRODUCING"
headline                 text        640.0    302.4  1000.0   273.6    0.0   1.00  1.00  [140,166,1140,439]          "Lantern 3.0: dashboards your whole team "
sub                      text        640.0    403.2   444.3    33.6    0.0   1.00  1.00  [418,386,862,420]           "Live sharing, comments and alerts"
count                    text        640.0    518.4   374.4    31.2    0.0   1.00  1.00  [453,503,827,534]           "10,000 teams on the beta"
badge                    image      1177.6     86.4    72.0    72.0    0.0   1.00  1.00  [1142,50,1214,122]          assets/logo.svg
cta                      text        640.0    620.5   199.5    31.2    0.0   1.00  0.83  [540,605,740,636]           enter:fadeUp "Available today"
```

Compare the `y` ranges in the BBOX column. Wrapping made the headline three lines and 274 px tall, and it now spans y 166 to 439. The kicker (176 to 198) and the subtitle (386 to 420) both sit inside that range. The fix for the overflow created two overlaps, and no lint rule would have flagged them.

This is the most common failure we see: coordinates computed for one size of content, then the content changes. The durable fix is to stop computing them. A group with `layout` stacks its children and re-measures them every frame:

```json
{ "id": "stack", "type": "group", "height": 560, "y": "45%", "layout": { "direction": "column", "gap": 22 },
  "children": [ kicker, headline, sub, count ] }
```

(with the four text layers moved inside and their `y` fields removed; the counter keeps `"y": 28` as an extra offset from its slot).

## Step 4: trace anything that moves

Positions are fixed now, but two things still move: the counter's value, and the layout itself. `trace` samples one layer over a time range. Start with the counter, which in the draft uses `easeOutBack`:

```console
$ vidmake trace blog-agents-draft.json -l count --every 4 --from 1.6s --to 2.6s
 FRAME    TIME        X        Y       W       H    ROT  SCALE  OPAC  NOTES
    48   1.60s    640.0    518.4   374.4    31.2    0.0   1.00  0.99  enter:fade "10,877 teams on the beta"
    52   1.73s    640.0    518.4   374.4    31.2    0.0   1.00  1.00   "10,984 teams on the beta"
    56   1.87s    640.0    518.4   374.4    31.2    0.0   1.00  1.00   "10,734 teams on the beta"
    60   2.00s    640.0    518.4   374.4    31.2    0.0   1.00  1.00   "10,348 teams on the beta"
    64   2.13s    640.0    518.4   374.4    31.2    0.0   1.00  1.00   "10,048 teams on the beta"
    68   2.27s    640.0    518.4   374.4    31.2    0.0   1.00  1.00   "10,000 teams on the beta"
    72   2.40s    640.0    518.4   374.4    31.2    0.0   1.00  1.00   "10,000 teams on the beta"
    76   2.53s    640.0    518.4   374.4    31.2    0.0   1.00  1.00   "10,000 teams on the beta"
```

The NOTES column shows the printed text. `easeOutBack` overshoots by design, which is lovely on a scale and wrong on a number: the card claims 10,984 beta teams for a moment before settling on 10,000. Over the full range the counter prints a number above 10,000 for 22 frames, from frame 44 to frame 65: less than a second of slightly wrong digits, easy to miss in a compressed video. In a trace it's obvious. Changing the easing to `easeOutCubic` fixes it.

Then trace the headline across the moment the counter appears, at 1 second:

```output
$ vidmake trace project.json -l headline --every 3 --from 0.6s --to 1.3s
 FRAME    TIME        X        Y       W       H    ROT  SCALE  OPAC  NOTES
    18   0.60s    640.0    275.6  1000.0   273.6    0.0   1.00  0.93  enter:fadeUp "Lantern 3.0: dashboards your whole team will actually read"
    21   0.70s    640.0    274.6  1000.0   273.6    0.0   1.00  0.97  enter:fadeUp "Lantern 3.0: dashboards your whole team will actually read"
    24   0.80s    640.0    274.2  1000.0   273.6    0.0   1.00  0.99  enter:fadeUp "Lantern 3.0: dashboards your whole team will actually read"
    27   0.90s    640.0    274.0  1000.0   273.6    0.0   1.00  1.00   "Lantern 3.0: dashboards your whole team will actually read"
    30   1.00s    640.0    247.4  1000.0   273.6    0.0   1.00  1.00   "Lantern 3.0: dashboards your whole team will actually read"
    33   1.10s    640.0    247.4  1000.0   273.6    0.0   1.00  1.00   "Lantern 3.0: dashboards your whole team will actually read"
```

At frame 30 the headline jumps 27 px. The column is centered in its group (`justify` defaults to `center`), and a layout child outside its time window takes no space. Before 1 second the counter isn't in the stack; when it arrives, the stack grows and re-centers, and everything above it moves up in a single frame. A storyboard with frames a second apart would show both states and no jump; only a trace, or watching the render closely, catches the motion.

The fix is to anchor the stack at the top so new children are added below without moving anything: `"anchor": "top", "y": 140` and `"justify": "start"`. Trace again on the final file:

```console
$ vidmake trace blog-agents-final.json -l headline --every 6 --from 0.6s --to 1.4s
 FRAME    TIME        X        Y       W       H    ROT  SCALE  OPAC  NOTES
    18   0.60s    640.0    159.2  1000.0   228.0    0.0   1.00  0.93  enter:fadeUp "Lantern 3.0: dashboards your whole team will actually read"
    24   0.80s    640.0    157.8  1000.0   228.0    0.0   1.00  0.99  enter:fadeUp "Lantern 3.0: dashboards your whole team will actually read"
    30   1.00s    640.0    157.6  1000.0   228.0    0.0   1.00  1.00   "Lantern 3.0: dashboards your whole team will actually read"
    36   1.20s    640.0    157.6  1000.0   228.0    0.0   1.00  1.00   "Lantern 3.0: dashboards your whole team will actually read"
    42   1.40s    640.0    157.6  1000.0   228.0    0.0   1.00  1.00   "Lantern 3.0: dashboards your whole team will actually read"
```

Steady at 157.6 from the end of its entrance onward. (In `inspect` and `trace`, `X` and `Y` are in the parent's coordinates, here the group's, while `BBOX` is always in canvas pixels.)

## The result

```console
$ vidmake validate blog-agents-final.json
✓ launch — 150 frames (5.00s)
```

**Demo: The launch card after the loop: a column layout instead of hand-placed y, a counter that lands without overshooting** (rendered video: https://vidmake.app/media/blog-agents-final.mp4)

```json
{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "launch", "description": "The launch card after the loop: a column layout instead of hand-placed y, a counter that lands without overshooting",
    "width": 1280, "height": 720, "fps": 30, "duration": "5s",
    "background": { "type": "linear", "angle": 160, "stops": ["#e9e4d8", "#f4f1ea"] },
    "layers": [
      { "id": "stack", "type": "group", "anchor": "top", "y": 140, "height": 440,
        "layout": { "direction": "column", "gap": 22, "justify": "start" },
        "children": [
          { "id": "kicker", "type": "text", "text": "Introducing", "font": "JetBrains Mono", "fontSize": 18, "letterSpacing": 4,
            "uppercase": true, "fill": "#c92a26", "enter": "fadeUp" },
          { "id": "headline", "type": "text", "text": "Lantern 3.0: dashboards your whole team will actually read",
            "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 76, "letterSpacing": -3, "lineHeight": 1, "maxWidth": 1000,
            "fill": "#161412", "start": "0.2s", "enter": "fadeUp" },
          { "id": "sub", "type": "text", "text": "Live sharing, comments and alerts", "font": "Schibsted Grotesk", "fontSize": 28,
            "fill": "#4a4640", "start": "0.5s", "enter": "fadeUp" },
          { "id": "count", "type": "text", "text": "${fmt(round(10000 * easeOutCubic(clamp(t / 1.2, 0, 1))))} teams on the beta",
            "font": "JetBrains Mono", "fontSize": 26, "fill": "#161412", "y": 28, "start": "1s", "enter": "fade" }
        ] },
      { "id": "badge", "type": "image", "src": "assets/logo.svg", "width": 64, "x": "92%", "y": "12%", "enter": "pop" },
      { "id": "cta", "type": "text", "text": "Available today", "font": "Schibsted Grotesk", "fontWeight": 700, "fontSize": 24,
        "fill": "#161412", "y": "88%", "start": "3.2s", "enter": "fadeUp" }
    ]
  }]
}
```

For comparison, here is the draft we started from, rendered as it was after step 1. Every problem the tools found is visible in it once you know where to look:

**Demo: First draft of a launch card: it compiles, but validate, inspect and trace each find a problem** (rendered video: https://vidmake.app/media/blog-agents-draft.mp4)

```json
{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "launch", "description": "First draft of a launch card: it compiles, but validate, inspect and trace each find a problem",
    "width": 1280, "height": 720, "fps": 30, "duration": "5s",
    "background": { "type": "linear", "angle": 160, "stops": ["#e9e4d8", "#f4f1ea"] },
    "layers": [
      { "id": "kicker", "type": "text", "text": "Introducing", "font": "JetBrains Mono", "fontSize": 18, "letterSpacing": 4,
        "uppercase": true, "fill": "#c92a26", "y": "26%", "enter": "fadeUp" },
      { "id": "headline", "type": "text", "text": "Lantern 3.0: dashboards your whole team will actually read",
        "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 76, "letterSpacing": -3, "fill": "#161412", "y": "42%",
        "start": "0.2s", "enter": "fadeUp" },
      { "id": "sub", "type": "text", "text": "Live sharing, comments and alerts", "font": "Schibsted Grotesk", "fontSize": 28,
        "fill": "#4a4640", "y": "56%", "start": "0.5s", "enter": "fadeUp" },
      { "id": "count", "type": "text", "text": "${fmt(round(10000 * easeOutBack(clamp(t / 1.2, 0, 1))))} teams on the beta",
        "font": "JetBrains Mono", "fontSize": 26, "fill": "#161412", "y": "72%", "start": "1s", "enter": "fade" },
      { "id": "badge", "type": "image", "src": "assets/logo.svg", "width": 72, "x": "110%", "y": "12%", "enter": "pop" },
      { "id": "cta", "type": "text", "text": "Available today", "font": "Schibsted Grotesk", "fontWeight": 700, "fontSize": 26,
        "fill": "#161412", "y": "86%", "start": "5.5s", "enter": "fadeUp" }
    ]
  }]
}
```

## What each tool is for

| tool | answers | catches |
|---|---|---|
| `validate` | Does it compile? Does anything look obviously wrong? | typos, bad values, missing files and fonts, off-canvas and overflowing layers, timing past the end |
| `timeline` | When is each layer on screen? | layers that never appear, wrong order, gaps in a series |
| `storyboard` | What does it look like? | composition, color, hierarchy, anything aesthetic |
| `inspect` | Where exactly is everything at time *t*? | overlaps, misalignment, wrong sizes |
| `trace` | How does one layer change over time? | overshoots, jumps, values that are wrong for a few frames |

Two habits make the loop work. First, run `validate` after every edit and treat each warning as either a bug or something to silence explicitly, so that a clean result stays meaningful. Second, when something moves, trace it. Most of the problems in this post were in motion, and motion is exactly what still images and a quick watch of the MP4 are worst at showing.

The [inspecting guide](https://vidmake.app/docs/inspecting.md) covers every flag of these commands, and the [agent guide](https://vidmake.app/docs/agents.md) has the loop as a checklist an agent can follow.
