Release films with HyperFrames
You make the film yourself: HTML scenes animated with GSAP, rendered to mp4 by the hyperframes CLI in the sandbox.
fal makes only the voice and the music (the agent's own steps). Every command below runs with bash from the run's
folder (the sandbox's /workspace), where read and write also work, so film/index.html is the same file to both.
references/hyperframes-film.md beside this file holds HyperFrames' render contract and the craft rules this film
follows (story, the spec's banned defaults, motion, captions, review). Read it once before you write a scene.
1. The story
A release is many changes; a film is one. Pick the headline: the change a user of this product would care about
most, in this order: a new capability (something they can do now that they couldn't), a speedup (a number that
moves), a new surface (a command, a page, an integration). Lead on a fix only when the release is all fixes, and then
say what the user can now do ("restores of empty tables finish"), never the fix's internals. A fix only an insider
follows (an error class crossing a process boundary, a store migration) is never the headline while the release has
anything else. Never "a new release", "bug fixes", or the longest section. One change, not two: two related changes ("faster restores, and the restore error is gone") are
still two films, so take the one with the more visible proof. The hook is the old way of that same change, every beat
serves it, and the script never says "both".
The hook's before-state comes from the notes. Strike only a before-state the notes give: an error message the
change fixes, a step it removes, an issue it closes, a line like "used to run", quoted word for word or nearly. When the
notes say only what is new, there is no before-state to strike: never write one ("the old way needed a wrapper",
"sized by CPU" from notes that say "by backlog"). Then the hook takes the plain-headline form: the headline
change itself, in the notes' words, slammed in on the field ground with no strike (class="plain" on the hook's
#root). Everything else in the notes is left out; say in the report which
other changes you left out.
| Beat |
Seconds (30 s) |
Job |
| hook |
0 – 4.5 |
the old way failing, quoted from a before-state the notes give: the error message it fixes, the step it removes, the issue it closes; with none, the plain headline. Frame 0 already shows it |
| reveal |
4.5 – 7.5 |
the product's name and the version land, big |
| proof-a |
7.5 – 13 |
the change in its own text: the command, the config line, the field, the before → after |
| proof-b |
13 – 18.5 |
the change seen: the release's whole screenshot, from its first line, then the line the voice names boxed and punched in on, or with no screenshot the type wall: the release's own strings as big as the frame takes them |
| payoff |
18.5 – 24.5 |
the one line to remember, in the biggest type of the film, one accent word: what the headline gives the user, in the notes' terms (below) |
| endcard |
24.5 – 30 |
the mark carried in, the name, the call to action (the upgrade or install line from the notes), the version; holds 2 s, at most 6 s in all |
The beats follow the voice: once the timestamps exist, move each scene's start to the word that names it
(film/words.json, step 6), keeping each scene at least 2.5 s. When the voice ends early, the payoff holds longer,
never the end card past 6 s.
Motion: every beat moves the whole time it is on screen, and each move has a cause: the camera pushes in on
the proof, type builds on the word that names it, a cut lands on a word. Each kit scene already has its push (a
slow scale of its words for the scene's length) and its builds; two still frames in a row is a fault, so keep them
when you restyle. Boxes fit their content: a panel is as wide as its longest line and grows as lines type in;
never draw a box bigger than what is in it. All corners are square: no border-radius anywhere.
The voice says it like a person: it never reads a package scope, a path, a flag, a URL or an identifier aloud
("at parcha slash agentrun-serve", "dash dash jobs", "dot agents slash skills"). It says what that is ("one npx
command", "the jobs flag", "the skills folder") while the screen shows the exact text. A number and a version are
said as words ("beta fifty one").
Copy: on-screen titles at most 6 words a line, no trailing period; the screen never repeats the spoken sentence
word for word (it shows the proof the voice talks about). Real text from the release only: a command, an error string,
a field name, a number, and a number with the case it was measured on (the notes' benchmark, dataset or setup, said
or shown with it; never widened to every case). No "Introducing", "Meet", "unlock", "seamless", "supercharge", "game-changer", "effortless",
"in seconds". Spell out in the voice what is read aloud ("beta fifty one"), but write it as printed on screen
(v0.1.0-beta.51).
The payoff claims nothing new. It is the line a tagline would go in, and a tagline is where a film invents: say
the headline's result as the notes put it (their number with its case, or what the user can do with the change), or
a plain line that claims nothing ("Same database, far less waiting"). Never a rate, an extent or a quality the notes
don't state: "at full speed", "every core pulls its weight", "any size", "instantly" and the like are new claims, in
the voice or on screen.
Long notes: read the whole body once to choose; the film's text is at most about 45 words on screen in all.
2. The storyboard
Write film/STORYBOARD.md before any paid call: for each beat its seconds, the exact words on screen, the image if
any, the script's words under it, and its one hero move. This is also SPEC.md of the reference: the palette as hex
values, the faces with their sizes, the eases. Change it when the review changes the film.
3. The kit
kit/ beside this file is a complete project that renders as it is: index.html (the root: palette, six scene hosts,
the captions host, the voice and the music), compositions/ (one file a scene, plus the captions file the script
writes), card/index.html (the 1200x630 share card), build-captions.mjs and review.mjs (step 7). Copy it:
mkdir -p film && cp -r .agents/skills/release-film/kit/. film/ && mkdir -p film/assets film/card/assets && ls film film/compositions
(kit/. into film/ puts the kit's files beside film/STORYBOARD.md, which is already there; the kit has no file of
that name.)
Every placeholder word starts with KIT. Change the copy, never the kit: every scene is a template to fill, not a
fixed design. You may restyle any scene, move or drop elements, and change any tween, as long as the contract in the
reference holds. Each scene's comment says its job.
- Palette: the
:root block of film/index.html and film/card/index.html. Take the accent from the mark or the
release's screenshots when they have a clear brand colour (one, rationed: the reveal ground, one payoff word, the end
card); keep the kit's when they don't. Keep text contrast: ink on accent and paper, paper on night and field.
- Faces: League Gothic (display), Inter (text, weights 400/700/900) and JetBrains Mono (code) are bundled with
the CLI and need no file. Keep them unless the brand's own font files are in the release.
- Images:
cp media/release-1.png film/assets/shot.png (proof-b shows assets/shot.png); the mark: cp media/mark.png film/assets/mark.png && cp media/mark.png film/card/assets/mark.png. Keep each file's real extension
and change the src to it. Set the box on the line the voice names: --fx, --fw, --fy and --fh on
#pb-push, that line's left, width, top and height as % of the image (read them off the image), the box no wider
than the line. No screenshot (most releases): point the proof-b host in index.html at
compositions/proof-b-type.html, the type wall, and fill its rows with the release's own strings (the command,
the flag, the changed name, the error it no longer throws, the issue number); never a drawn interface. Delete the
proof-b file you don't use, so no KIT is left in it. No mark: the end card shows the name alone.
- Timing: each host in
index.html has data-start and data-duration; the scene's root inside has the same
duration; every tween inside a scene is on the scene's own clock (0 = the scene's start). When a scene's length
changes, move its later tweens and clips to fit inside it.
4. The aspect
The kit is 1920x1080 and sizes everything in container units of each scene, so another aspect is its numbers:
cd film && case "$ASPECT" in
"1:1") W=1080; H=1080 ;;
"9:16") W=1080; H=1920 ;;
*) W=1920; H=1080 ;;
esac && sed -i "s/data-width=\"1920\"/data-width=\"$W\"/g; s/data-height=\"1080\"/data-height=\"$H\"/g" index.html compositions/*.html && grep -c "data-width=\"$W\"" index.html
Each scene's <style> already holds two container-query blocks: @container (max-aspect-ratio: 5/4) for 1:1 and
@container (max-aspect-ratio: 3/4) for 9:16. The 9:16 block keeps every word inside the area that TikTok, Reels and
Shorts all leave clear: 15-65% of the height, 11-82% of the width (11-72% below 44% of the height). Each scene
centres one column in that area and fits its words to the column's width in its script (rfFit, from index.html),
so a short string fills the width. The captions sit in the lower third, under it, so nothing a scene shows goes
below 65% of the height. When you restyle a scene, restyle its
blocks too, and check reports outside_safe_zone or text_occluded when they are wrong. The card stays 1200x630.
At 9:16, look hardest at line lengths: a title that fits 1920 wide wraps at 1080. Cut words, never shrink type below
the floor. At 9:16 the end card's command is the shortest install or upgrade line in the notes: the card breaks it
only at a space, never inside a package name, and keeps one with no space on one line at the size that fits. The
hook's struck line is 2 to 4 words at 9:16 (the telling part of the error), so it fills the column's
width; a longer line fits only by getting small. At 16:9 and 1:1 the hook's script fits the struck line to the
frame's width at its held frame the same way, so set no font size on it by hand.
5. Voice and music
cp media/voiceover.mp3 film/assets/voiceover.mp3 && cp media/music.mp3 film/assets/music.mp3
ffprobe -v error -show_entries format=duration -of csv=p=0 film/assets/voiceover.mp3
The voice's <audio> starts at 0.5 s; the music runs the whole film at data-volume="0.16" with a 0.4 s fade in and
1.5 s fade out (the kit has both). With no music (it failed), delete the music <audio> line. With a re-voice, copy
media/voiceover-2.mp3 to film/assets/voiceover.mp3 instead. When the film runs longer than 30 s (the agent's step
5), set the root's data-duration, the music's, the end card's and the captions host's together.
6. Captions and the words' times
node .agents/skills/release-film/kit/build-captions.mjs --script media/vo.txt \
--timestamps media/voiceover-timestamps.json --duration <ffprobe seconds> --offset 0.5 \
--film film --vtt media/film.vtt
media/vo.txt is the exact text you sent to fal, tags included (write it first). With a re-voice, vo.txt holds the
second script, and the command takes --timestamps media/voiceover-2-timestamps.json and the second voice's ffprobe
seconds; it refuses that file while media/voiceover-timestamps.json, the first voice's, is missing. The script writes
film/compositions/captions.html (word-by-word caption groups over the scenes), film/words.json (every word's start
and end on the film's clock) and the WebVTT file, and prints one JSON line: its method is captions_timing in the
answer. aligned uses fal's character times; anchored (fal's characters don't spell the script) and measured (no
timestamps) spread the words by letters between two anchors: both are still a correct timing, never a fault. Read
film/words.json and move scene starts onto the words that name them (a cut lands on the word, never mid-word). Run
the script again after any change to the root's length or canvas.
7. Check, look, fix
cd film && grep -rn "KIT" index.html compositions card/index.html; hyperframes lint && hyperframes check --json > ../media/check.json; echo "exit $?"
The grep must print nothing (a KIT left is a placeholder on screen). Read media/check.json: fix every error. Each
warning is a question: fix it, or keep it and say why in checks.warnings_kept. Expected and kept: audio_clip_silent
never appears with real audio (if it does, the voice file is wrong); timeline_track_too_dense on the captions track.
Fix line_unread by cutting words or holding the line longer, first_frame_empty by showing the hook at 0 s,
contrast_aa_failure by changing the ink, and gsap_undefined_css_variable by tweening opacity or transforms instead
of a var() colour.
Then look at it:
cd film && node review.mjs ../media/review
review.mjs runs hyperframes snapshot --review and prints the sheets to read, one path per line (the beats, the
phone width, one strip per cut; they are images). A sheet over 1900 px on a side, as the 9:16 beat and phone sheets
are, is printed as its -s.jpg copy scaled to fit, because read refuses an image over 2000x2000: read the printed
paths. The beat-*.png and seam-*.png frames are there for a closer look. Describe each beat frame in one sentence as a stranger would; then go
through the review questions in the reference (does it read, does the subject separate, framing, timing, the banned
defaults, the pictures alone, the phone sheet). Write each problem as t=4.2s · where · problem → change, fix every
P0 and the P1s, then snapshot only what changed (node review.mjs ../media/review-2 --at 4.2,11.0) and look
once more. List what you fixed in checks.review_fixes.
8. Render
cd film && hyperframes render --quality looks -o ../media/film.mp4 > ../media/render.log 2>&1; echo "exit $?"; tail -4 ../media/render.log
ffprobe -v error -show_entries format=duration:stream=width,height -of json ../media/film.mp4
Give the bash call a timeout of 600: a 30 s film renders in about 2 minutes with 2 CPUs (software GL; the log's
"BeginFrame did not run" line is expected). The ffprobe must show the canvas's width and height and the root's
duration. A failed render: read the log's error, fix, render again (at most 3 renders in all, counted in
checks.renders).
9. The share card
Fill film/card/index.html with the version (the biggest thing on the card: as large as fits on one line), the payoff
line (at most 8 words), the name, and the palette. Then:
cd film && hyperframes snapshot card --at 0.5 --no-end -o ../media/card && cp ../media/card/frame-00-at-0.5s.png ../media/share-card.png && ffprobe -v error -show_entries stream=width,height -of csv=p=0 ../media/share-card.png
It must print 1200,630. read it once: the headline readable at a glance, nothing cut at an edge.
Never
- Never compose the film on fal or with any renderer but
hyperframes render in the sandbox.
- Never draw an interface, a dashboard or a logo the release doesn't have; never redraw the mark.
- Never show a claim, number or name the release doesn't make.
- Never leave a
KIT placeholder, a check error, or a caption over the end card's call to action.
- Never fetch anything from the sandbox: it has no network to the web, and everything it needs is in the run's folder.