I built a 6m41s technical explainer as HTML, CSS, JavaScript, Markdown, and audio files. That source lineage produced a full portrait re-author, an original 1m07s feed cut, thumbnails, and subtitles. The original 0.7.109 render exposed an audio failure I isolated with NumPy while preserving verified video frames. For this article I later rebuilt the feed cut into the fact-corrected 80.875-second version below.

I worked at the editorial and orchestration layer while research and coding agents handled bounded tasks. The durable state lived in files: a brief, a sourced fact ledger, a storyboard, a locked narration script, a design specification, frame compositions, audio metadata, and validation output. That structure made changes local, derivative formats cheaper, and the render failure measurable.


The result, up front

One story became four output packages:

Output packageFormatLength
Master explainer, 13 chapters1920×10806m41s
Full portrait re-author1080×19206m41s
Original portrait feed recut1080×19201m07s
Thumbnails, SRT subtitles, and platform copy16:9 + 9:16—

The 6m41s master remains a local build artifact rather than a 69 MB browser asset on this page. The embedded publication cut is the compact sample.

The 80.875-second publication cut: six selected chapters, reassembled from the same source lineage. Captions are burned in; the WebVTT file is available separately.

Publication note. The original feed deliverable ran 1m07s; the embedded 80.875-second rebuild corrects historical, governance, ecosystem, and security claims, was rendered from a project copy on HyperFrames 0.8.2, and leaves the original 0.7.109 projects unchanged.

The subject was Agent Plugins. OpenAI introduced ChatGPT plugins in March 2023. A now-removed Help Center retirement notice, preserved in an OpenAI Developer Community post, described the two-stage wind-down the next spring: new installs and new plugin conversations ended on March 19, while existing conversations continued through April 9. The Agent Plugins repository then published specification 1.0.0 on July 24, 2026 and changed its description to “open standard” on August 6. Its initial maintainer roster named individual Core Maintainers affiliated with Amazon, Cursor, Microsoft, OpenAI, and Vercel; the technical charter assigns governance roles to individuals, reserves no company seats, and prevents one vendor from controlling a majority. The project now describes the format as an open, vendor-neutral standard for packaging Agent Skills and MCP servers.

The creative reversal still held: OpenAI had ended one plugin product, while a maintainer affiliated with OpenAI now helped govern an open successor standard. A BY APR 09 2024 incident stamp is answered by AUG 06 2026; black chapters cover the death and autopsy, orange chapters cover the public comeback. The visual system tells the viewer which act they are in before the narration explains it.

A reconstructed terminal journey showing plugin selection, the Claude Code install command, and verified commands and skills
The install journey reconstructed as a seekable composition: selection, command, and verified state.

What “video as source code” meant here

HyperFrames is an Apache-2.0 framework from HeyGen for authoring video in HTML, CSS, and JavaScript. An agent can write the same primitives a browser already understands — text, grids, SVG, transforms, WebGL — and the framework can render them to MP4. The project stays inspectable in ordinary files rather than disappearing inside a proprietary editing document.

The historical master, full portrait version, and original feed recut used HyperFrames v0.7.109, released on August 14, 2026. The corrected publication cut above used 0.8.2 in a copied project. The framework was moving quickly, so the production claims below refer to 0.7.109 unless I explicitly say otherwise.

The important runtime idea is seeking. A composition does not own a free-running clock. The pinned 0.7.109 adapter contract requires an id, a frame count, and a function that can reproduce the state at an exact frame; init and destroy are optional lifecycle hooks. This simplified sketch shows the required path rather than quoting library code:

const adapter = {
  id: "composition",
  getDurationFrames: () => Math.ceil(durationSeconds * fps),
  seekFrame: async (frame) => {
    const timeSeconds = Math.floor(frame) / fps;
    // Reproduce every clip and animation at this exact frame.
  }
};

At 30 fps, the renderer requests frame zero, then frame one, then frame two; the adapter maps them to 0, 1/30, 2/30, and so on. A slow machine may take longer to finish, but it should not change the choreography. The same model makes a single-frame inspection useful: I repeatedly ran snapshots at exact timestamps instead of replaying an entire sequence and trying to pause on the right moment.

This does not establish universal byte-for-byte determinism. HyperFrames’ engineering write-up describes a stronger beginFrame path on Linux with chrome-headless-shell; macOS uses a screenshot path with settle heuristics. My project ran on macOS, so I treated the visual build as seekable and reproducible at the project level, then verified outputs rather than assuming identical bytes. That boundary became critical when the video frames were correct but the separately mixed audio diverged.

The project also imposed authoring rules above the renderer contract: paused GSAP timelines, explicit fromTo states, local fonts, no wall-clock time, no unseeded randomness, and no animation that owns an independent clock. These were not aesthetic preferences. They made arbitrary seeking reliable.

The build as a pipeline

The finished process looked like this:

flowchart TD
    RES["research agents"] --> LEDGER["sourced fact ledger"]
    LEDGER --> BRIEF["BRIEF.md"]
    BRIEF --> DESIGN["frame.md + caption system"]
    DESIGN --> STORY["STORYBOARD.md + SCRIPT.md"]
    STORY --> AUDIO["voice + word timings + SFX"]
    AUDIO --> SYNC["sync real durations"]
    STORY --> PACKETS["one bounded packet per frame"]
    DESIGN --> PACKETS
    SYNC --> PACKETS
    PACKETS --> WORKERS
    WORKERS --> FRAMES["HTML frame compositions"]
    FRAMES --> BUILD["assemble + transitions"]
    BUILD --> GATES["lint + runtime check + snapshots"]
    GATES --> RENDER["render MP4"]
    RENDER --> VERIFY{"audio matches local mix?"}
    VERIFY -- no --> REMUX["replace audio; copy video stream"]
    VERIFY -- yes --> DONE["deliverable"]
    REMUX --> DONE

The arrows are more important than the tool names. Each stage left an artifact that the next stage could inspect. A small wording correction stayed local to one narration file, its alignment and caption metadata, and any frame whose choreography depended on it. The long-form rewrite crossed that boundary: it changed chapter durations and forced all 13 frames to be re-paced. A portrait rebuild changed geometry, while the later audio repair left verified pixels intact.

The documents were commitments, not paperwork

The document stack prevented a multi-session build from depending on chat memory.

BRIEF.md fixed the reason for making the film: audience, message, destination, aspect ratio, target length, and narrative angle. It also recorded changes made after review. The first estimate was 90 seconds; an early cut grew to roughly two and a half minutes; the useful long-form version eventually reached 6m41s. Instead of pretending the first estimate remained true, I updated the brief with the decision and its reason.

STORYBOARD.md was both a plan and a machine-readable playlist. Each frame carried an id, source path, duration, transition, status, narrative role, and time-coded shot sequence. A section looked roughly like this:

## Frame 7 — Staff your agent

- duration: 30.40s
- transition_in: cut
- status: animated
- src: compositions/frames/07-staff-your-agent.html
- type: benefit_highlight
- persuasion: Statistical proof + Analogy
- blueprint: fixed-anchor-cycle

Scene 1 (0.0–2.4s): pin the agent anchor.
Scene 2 (2.4–9.5s): hard-cut the first evidence card on its spoken cue.

The prose explained what the frame had to communicate. The structured fields let assembly, captions, transitions, and verification consume the same plan.

SCRIPT.md separated spoken words from visual planning. Each narration line had delivery notes and a stable frame identity. Only the intended text block went to synthesis. I could adjust pacing punctuation without changing the storyboard, or change one sentence and regenerate its voice, alignment, and caption metadata instead of the entire track.

frame.md constrained the visual language without prescribing every layout. The project used two surfaces: ink black, cream type, and orange accents for the death and warning chapters; fire orange with black type for the comeback and declaration chapters. Barlow carried display text, IBM Plex Mono carried labels and receipts. Landscape and portrait frames could have different geometry while remaining recognizably the same film.

An orange landing frame dominated by the word plumbing, with signing and sandboxing identified as the next step
The orange register carries the comeback before the viewer reads the word “plumbing.”

Research before pixels

The film had to explain the package, installation path, shared infrastructure, trust boundary, and evidence of agent use — not merely announce that Agent Plugins existed.

I sent research agents narrow briefs and required source URLs, dates, command examples, file names, and numbers. The brief requested surprising numbers, before-and-after contrasts, and concrete metaphors. The result was a fact ledger shaped for narration rather than an encyclopedia dump.

Two volatile figures in the publication cut are explicitly dated snapshots. On May 5, 2026, the creator of the community-run ClaudePluginHub index reported 32,933 Claude Code plugins indexed from GitHub and roughly 280 additions per day. Koi’s February 16 update to its ClawHavoc investigation raised the reported count on one third-party hub to 824 malicious skills.

Every number that reached the screen needed a traceable source. When attractive statistics could not survive verification, I cut them. Honeycomb reported that one large customer read 62 PiB of data in one month exclusively through agents, and the Pullflow analysis of 40.3 million pull requests provided another grounded dataset. Research did not end when the first script existed; it remained an editorial gate.

That mattered during the largest revision. Review feedback was blunt: the chapters looked polished but did not yet explain enough. I reopened the research across plugin history, MCP and Skills, package anatomy, usage economics, and standard/security, then expanded the narration substantially. The structure remained at 13 chapters, but every chapter needed more time and new choreography.

Longer chapters worked when motion had room. Count-ups could breathe, evidence cards could arrive after the narrator named them, and silence could land a number.

Bounded agents, bounded damage

I did not ask one coding agent to “make the video” while holding the entire film in context. Each frame worker received one bounded packet containing:

  • its storyboard section;
  • one time-coded shot blueprint;
  • only the motion rules that blueprint required;
  • the project design tokens;
  • a strict output path;
  • an instruction to modify exactly one file.

The division of labour was explicit. Research agents collected candidate evidence and returned sources. Frame workers implemented one approved shot without changing its argument or timing plan. Scripts assembled files and checked invariants. I chose the claims, evidence, design direction, and quality bar, then reviewed the rendered frames and decided when each cut could advance. The agents supplied parallel capacity inside inspectable contracts; editorial authorship remained mine.

A typical dispatch reduced the worker’s world to two files and one artifact:

Read both files completely:
1. .hyperframes/frame-packets/_role.md
2. .hyperframes/frame-packets/07-staff-your-agent.md

Canvas: 1920x1080
Captions: reserve the bottom band
Write exactly one file:
  compositions/frames/07-staff-your-agent.html
Do not edit STORYBOARD.md or any other project file.

One frame packet initially exceeded the model’s accepted context because it referenced motion recipes the shot did not use. Cutting those references changed nothing on screen and made the packet easier to audit.

An early wide dispatch hit an API rate limit. I re-dispatched the failed frame alone and used smaller waves afterward; no later dispatch in this build hit the same limit.

The same boundaries contained mistakes. A worker could produce a bad frame, but it had neither the instruction nor the authority to rewrite the master storyboard. I reviewed the returned file, ran the gates, and advanced its status.

The composition contract in practice

Each frame was a self-contained HTML template using HyperFrames’ composition timing attributes and one paused GSAP timeline registered under its composition id. The essential shape was small:

<div id="root"
     data-composition-id="07-staff-your-agent"
     data-width="1920"
     data-height="1080"
     data-duration="30.40">
  <div class="clip background"
       data-start="0" data-duration="30.40" data-track-index="0"></div>
  <div class="clip stage"
       data-start="0" data-duration="30.40" data-track-index="1"></div>
</div>

<script>
  window.__timelines = window.__timelines || {};
  const tl = gsap.timeline({ paused: true });
  window.__timelines["07-staff-your-agent"] = tl;

  tl.fromTo(".agent-anchor",
    { opacity: 0, scale: 0.92 },
    { opacity: 1, scale: 1, duration: 0.5 },
    0.15);
</script>

Four rules did most of the work:

  1. Every moving element had an explicit start and end state.
  2. The timeline stayed paused and seekable; nothing autoplayed.
  3. Reveals followed spoken cues. The screen did not announce an idea before the narration did.
  4. Layout and motion were verified from rendered frames, not inferred from clean source code.

The fourth rule saved several frames. Static lint can report text intersections, but kinetic typography deliberately uses overlapping boxes. I inspected each flagged timestamp before changing the design. Conversely, a visually plausible frame could still contain a dead selector. One rebuild queried an element id that existed only as a class; lint passed, but the runtime sampler executed the timeline and caught the null access.

The audio stage failed after the visuals passed

Narration came from a local Kokoro TTS setup. Because Kokoro did not return native word timings, the workflow aligned each synthesized line locally and stored the result beside the voice file. Those timings drove both the burned-in captions and the later subtitle export; subtitles did not need a second alignment pass.

Actual voice duration always overruled estimates. A sync step updated the storyboard after synthesis, then frame choreography used the real windows. This stopped timing drift from accumulating invisibly as the script expanded.

The renderer handled picture and sound in different stages. Visual frames came from the seek-and-capture loop. Audio elements in the assembled index were collected and mixed through FFmpeg: trim each asset, set its volume, delay it to the global start, pad it to the full duration, mix the inputs, and apply final gain.

The first clear symptom was simple: the rendered audio sounded doubled.

The assembled 0.7.109 landscape master had 13 narration elements and 31 SFX elements in its index. Each appeared once, with the expected source and timing. The inventory ruled out duplicate markup; it did not explain what happened inside the renderer’s separate audio stage.

I first ruled out a simple gain error. In a narration-only window, mean level and peak level did not move together; another signal component had been added.

Next came correlation. I extracted the MP4 audio and compared it with every source asset over a range of time offsets. The narration existed once and at the correct position. I found no clean echo, duplicated SFX, or obvious bleed. The extracted track still contained additional material that did not match any project asset.

I also chased a false lead. One scan appeared to find a delayed duplicate of the narration. Direct slice comparison disproved it: I had inverted the lag convention. That mistake was useful because it changed the debugging rule. A correlation peak is evidence only after its direction and slice alignment survive a direct check.

The decisive experiment was to rebuild the intended audio mix outside the renderer. I parsed the audio elements from the assembled index, recreated their trims, delays, volumes, and mix locally, and ran FFmpeg myself. The locally rebuilt track did not contain the doubled-sound symptom.

Repeated full renders failed differently. One placed phantom material beneath the first narration lines. Another replaced much of the voice with noise and produced several windows of digital silence; one narration line disappeared completely. The picture remained correct.

That evidence localized the failure to the renderer’s audio stage in my environment, but it did not reveal the underlying race or implementation fault. I stopped short of claiming a root cause and made that stage irrelevant.

I kept the verified video stream, built the audio locally, normalized it, and remuxed the two:

ffmpeg -i rendered-with-bad-audio.mp4 -i verified-mix.wav \
  -map 0:v -map 1:a -c:v copy -c:a aac -b:a 192k final.mp4

-c:v copy was the key. Fixing sound did not re-encode or re-render the picture. Once a cut’s visual capture had passed inspection, later audio repairs left those frames untouched. Later editorial changes still produced new visual cuts; the claim is local to audio repair, not that the film was never rendered again.

I then turned the diagnosis into a gate. Every five-second window of the MP4 audio was compared with the locally built composite, with an RMS check to catch silence:

def normalized(x):
    return x / (np.linalg.norm(x) or 1)

for t0 in range(0, int(total_seconds) - 5, 5):
    actual = read_window(mp4_audio, t0, seconds=5)
    expected = read_window(local_mix, t0, seconds=5)
    correlation = float(np.dot(normalized(actual), normalized(expected)))
    assert correlation > 0.95, f"audio mismatch near {t0}s"
    assert rms(actual) > 0, f"digital silence near {t0}s"

The 0.95 threshold leaves room for AAC encode/decode differences while still demanding close agreement with the intended mix. Silence is checked independently because correlation alone is meaningless for an empty window.

The first version of that check created its own false alarm. I compared the rendered audio with raw voice files, so any legitimate SFX under narration reduced the score. The correct baseline was the intended composite, not one ingredient. Verification has to model the output that should exist.

This incident became the clearest argument for video as source code. Renderer-produced audio diverged, and the root cause remained unknown. Every input, offset, and duration was still inspectable, so I could build an independent oracle, show where the output failed, and replace only that stage.

Re-authoring the derivatives

The landscape master was not the end of the work. It was the source for decisions that could be reused and frames that sometimes could not.

The portrait version and feed recut became separate project copies when geometry or sequence diverged. They shared a deliberate lineage: research, narrative, design tokens, narration timing, and stable frame identities where those identities still applied.

Portrait was a re-author, not a crop

Center-cropping 16:9 into 9:16 throws away most of the horizontal canvas. For a typography-led film, that would destroy the composition. I rebuilt all 13 frames for portrait while preserving their narration, timing, color register, typography, and motion signature.

Side-by-side comparisons became vertical stacks. A horizontal stat grid became three high. A package tile replicated downward through client rows instead of across them. The layout changed because the reading path changed.

This is where the difference between a design system and a layout template paid off. frame.md described the identity of the film, not fixed coordinates. Portrait could use different geometry without becoming a different campaign.

The feed cut was storyboard surgery

For the original 1m07s feed version, I copied the project, removed seven frame sections from the storyboard, remapped the surviving timeline identities deliberately, and rebuilt captions, assembly, and transitions. The surviving frame HTML did not change. The 80.875-second publication rebuild above was a separate correction pass: affected frame copy, voice, alignment, captions, and assembly were regenerated.

One bug exposed why identity mattered. In the recut, storyboard frame 3 referred to the voice asset originally created for frame 9. A script that assumed frame 3 → voice03.wav would silently construct the wrong film. Stable ids and explicit mappings were safer than positional convenience.

Thumbnails and subtitles stayed in the pipeline

The thumbnails were two-second poster compositions rendered through the same snapshot path: “back from / the dead” over the two dates, with April struck through and August boxed in orange. I generated landscape and portrait masters instead of stretching one image between aspect ratios.

Subtitles came directly from the stored word timings. A small script packed words into sentence-like cues, capped line length, added each narration line’s global timeline offset, and emitted SRT. There was no second transcription pass during subtitle export and therefore no second alignment model to drift. The only cosmetic correction was normalizing a tokenized “open AI” to “OpenAI.”

Failure modes worth keeping

Several smaller failures earned permanent rules in the process.

Success with anomalies is not success. The first TTS run produced no narration, logged non-fatal anomalies, and exited zero. Running the underlying command directly revealed the missing kokoro-onnx package. If a stage reports anomalies, inspect its expected output count and run the failing operation without its wrapper.

A failed stage must invalidate stale outputs. One recut script died before rewriting audio metadata, but the previous metadata file remained. Downstream tools found enough familiar frame numbers to continue. The pipeline looked healthy while using the wrong plan. Failure should remove or mark outputs invalid, not leave plausible old files behind.

Static validation cannot prove motion. Some intended overlaps looked like layout errors to a static checker; one broken selector looked fine to lint. I needed both machine gates and rendered inspection. Neither replaced the other.

Derived work can audit its source. A portrait worker reread the corresponding landscape frame and found a selector that had silently prevented a subtle camera push in the already accepted master. The frame still worked, so I did not manufacture a crisis.

What I would keep for the next film

  1. Research before storyboard. Keep a fact ledger with URLs, dates, and the exact language allowed on screen.
  2. Make the design system carry the story. The two color registers encoded the two acts; portrait could then change geometry without losing identity.
  3. Give agents small worlds and durable handoffs. One frame, one packet, one output file, no authority over the master plan.
  4. Let real audio set duration. Estimates are planning aids; synthesized speech owns final timing.
  5. Verify every seam empirically. Source-to-storyboard, storyboard-to-frame, frame-to-render, and local mix-to-MP4 each need a check appropriate to that boundary.

The hardest fact from this build is that I never found the renderer audio corruption’s root cause. I did not need to pretend I had. Source-level observability identified the failed boundary, preserved the verified frames, and let me replace the sound with an independently checked mix. That is what video as source code bought me.