* chore: release v0.9.73
* docs(release): add main's later fixes to the v0.9.73 notes
* docs(release): add main's newest fixes to the v0.9.73 notes
* docs(release): add main's latest fixes to the v0.9.73 notes
* fix(core): give the preview bundler the render's expansion budget
The preview bundler inlined every sub-composition mount with only a depth
limit, so a few small files that mount each other many times assembled a
page without bound. The producer's expansion budget now lives in core, and
the bundler charges every mount and the scripts and styles generated for
it to that budget, and checks each file's size before reading it. Studio
preview shows the refusal instead of falling back to the raw page, whose
mounts the browser would expand the same way.
* refactor: drop comments the names already carry
* test(core): give the preview fan-out budget test a 30 s timeout
The flake gate saw it pass 9 of 10 runs under CPU contention, timing out
at the default 5 s. The neighbouring scoper bound tests use 30 s too.
* test(producer): font embedding reads only the fonts that fit the page's budget
* fix(producer): reserve each font's inline size before reading it
* test(producer): give the font budget test room to embed 44 MiB under load
* test(producer): a cancel stops the compile's media, image and font downloads
* fix(producer): pass the render's cancel to the compile's media, image and font downloads
* test(producer): keep the cancel test's fails-without line short
* test(producer): cap a compile's remote asset downloads and how many run at once
* fix(producer): download at most 1,000 remote assets per compile, 8 at a time
* test(producer): a cancel stops the compile's media, image and font downloads
* fix(producer): pass the render's cancel to the compile's media, image and font downloads
* test(producer): keep the cancel test's fails-without line short
* chore: release v0.9.71
* chore: release notes for v0.9.71 link the commit after the first cut
* chore: release notes for v0.9.71 add the two commits merged after the review
* fix(core): selector alias values escape '<' so style text can't end early
Attribute values that the compiler copies into selector text, such as an
SVG reference alias's rewritten value or a composition or root id in a
scope selector, are written inside a <style> element. A '<' in one could
close that element early. These values now write '<' as the CSS escape
\3c , which reads back as the same character, so each selector still
matches the same elements.
* test(core): name the '<' escape tests for what the escapes guarantee
The selector escapes write '<' as \3c themselves, so selector text cannot
end its style element even when the CSS is serialized without postcss's
own </style escaping. The test names and comments now say that.
* test(producer): compile-time remote downloads are capped, timed and stop with the render
* fix(producer): cap compile-time remote downloads, give them one deadline and stop them on cancel
* test(producer): size-limit tests stay under the remote download cap
* test(producer): count a refetched bundled script; start the deadline at the first download
* test(producer): export the download deadline so its test reads the real value
* fix(producer): count every downloaded script and start the download deadline at the first one
* test(producer): read the host's script copy once however many tags name it
* fix(producer): read a bundled script once per address; document the compile download limits
* test(producer): size the shared-font test from the 64 MB limit so it reaches it
* test(producer): cancel a render while it compiles
* fix(producer): cancelling a render stops its compile
* test(producer): compile-time remote downloads are capped, timed and stop with the render
* fix(producer): cap compile-time remote downloads, give them one deadline and stop them on cancel
* test(producer): size-limit tests stay under the remote download cap
* test(producer): count a refetched bundled script; start the deadline at the first download
* test(producer): export the download deadline so its test reads the real value
* fix(producer): count every downloaded script and start the download deadline at the first one
* test(producer): read the host's script copy once however many tags name it
* fix(producer): read a bundled script once per address; document the compile download limits
* test(producer): size the shared-font test from the 64 MB limit so it reaches it
* test(producer): pin that an alias list written into authored HTML never reaches the CSS
* test(producer): keep the alias test's comment within the line limit
* fix(core): read selector aliases only from what the compiler wrote
* test(producer): cover root-only pages and kept templates for authored alias lists
* fix(core): also drop authored alias lists from kept templates and root-only renders
* fix(core): walk each kept template once when dropping authored alias lists
* chore(catalog): mirror the font requests of pages carrying the new alias installer
* fix(core): leave linkedom template content uncopied when dropping authored alias lists
* fix(core): drop authored alias lists inside SVG elements named template
* test(core): count every element the alias cleanup processes
* fix(core): visit each element once when dropping authored alias lists
* chore(core): regenerate the inline selector alias installer
* test(core): refresh page goldens for the regenerated installer
* test(parsers): a tab in a concat list path is kept
* fix(parsers): refuse only what ends a concat list line, so a tab in a folder name renders
* test(parsers): a real ffmpeg join keeps every clip under a tab-named folder
* test(parsers): end ffprobe options before the joined file in the tab join test
* test: a concat list refuses paths whose folder name holds a line break
* fix(engine): write every concat list through one writer that refuses control characters
* test: name the line-break folders without slashes; skip them on Windows
* Revert "fix(engine): write every concat list through one writer that refuses control characters"
This reverts commit 97d482340a.
* Reapply "fix(engine): write every concat list through one writer that refuses control characters"
This reverts commit 7d723fd276.
* test(engine): a chunk concat list ends with a newline
* fix(producer): raise the sub-composition expansion limit to 64 MB
A render may now inline up to 64 MB of composition HTML across its mounts,
four times the 16 MB per-file limit, so a project with several large
distinct scenes is no longer refused.
* test(producer): size the generated-output tests from the expansion limit
Four size-limit tests used fixed counts that only exceed the current
32 MB expansion limit. Compute each count from
MAX_EXPANDED_COMPOSITION_BYTES so the tests keep reaching the limit if
it changes.
* fix(studio): a sealed preview keeps Studio's size, move and turn edits after a seek
* fix(studio): a sealed preview reapplies Studio's edits on each frame it seeks or plays to
* fix(studio): build the sealed reapply script from constants, never a caller's value
* fix(studio): a sealed preview reapplies Studio's edits after a redraw at the same time
* fix(studio): serve the seek reapply only into sealed preview documents
* chore(core): shorten the redraw count's doc line
* fix(producer): resume checks the segment file the join reads, not the manifest's path
A resumed segmented render now validates each reusable segment at its own
computed path in the segment folder. It must be a plain file, not a link, and
match a slice of this render's plan. The path a manifest records is never
opened or probed.
* fix(engine,producer): concat joins open only the list and encoder containers
Both concat-demuxer joins (the engine's chunk and segment concat and the
distributed assemble join) now pass a format whitelist of concat, mov and
matroska. ffmpeg applies it to every file the list opens, so a listed file
that is a playlist or manifest cannot pull in other files, while mp4, mov and
webm joins work as before.
* fix(producer): resume reuses only segments this install recorded
Segment manifests are now signed with an HMAC keyed by a per-install secret
kept in the HyperFrames config folder, outside every project. Resume trusts a
manifest only when its signature checks out, so a segment folder copied from
another machine or shipped inside a project is captured again, while a
render's own interrupted run resumes as before.
* docs(producer): restore the segment path ordering comment and rewrap resume docs
* fix(producer): replace an empty or short resume key file
A key file too short to use is now replaced by a fresh key instead of
disabling resume for good. A missing key is still linked into place, so
renders that create it at the same time share one key; a test runs eight
processes against one path to check that.
* fix(producer): warn under --resume when no resume key is available
When the resume key can be neither read nor created, for example on a
read-only home folder, a file system without hard links or a serverless
runtime, --resume now logs one warning that every segment will be captured
again instead of only reporting zero complete segments.
* fix(engine): fail a concat join at a list entry ffmpeg refuses
The concat demuxer ends the stream at a listed file it cannot open and ffmpeg
still exits 0, which cut the output short without an error. -xerror on the
concat input makes the join fail instead. mp4, mov and webm joins still exit
0.
* fix(producer): resume checks each reused segment's SHA-256
Each finished segment's SHA-256 is now recorded in the signed manifest. The
hash is taken once when the segment closes, and on resume only the files
about to be reused are hashed again, so a file swapped for another of the
same size is captured again.
* docs(cli): note that resume re-checks segment hashes and recaptures older segments once
* fix(studio-server): proxy joins only its own pieces, through the shared concat input
Studio's chunked proxy copy now names its pieces with a tag keyed by the
user's preview token, so pieces that arrive inside a project folder sit at
names it never looks up and every piece is encoded fresh. A stopped copy of
the user's own still continues from its finished pieces.
The piece join uses concatListInputArgs, now in @hyperframes/parsers so the
engine, producer and Studio share it. It allows only local files in the
concat, mov or matroska formats and fails at a refused entry. The cache sweep
recognizes both tagged and older piece names.
* test(parsers): prove the concat protocol whitelist with a data: entry
ffmpeg already refuses http:// in a concat list opened from a file, so the
test passed without the whitelist. A data: entry opens by default; the test
now asserts it is refused as not on the 'file' whitelist.
* fix(studio-server): only the copy's own tagged pieces count as lock progress
The copy lock counted any .part-<key>- file as the owner's progress, so a
piece shipped with a future modified time kept a stalled lock looking active.
It now counts only names under the copy's own tagged piece prefix. The cache
sweep removes untagged pieces past the usual age even while that copy runs,
and measures age in both directions so a future-dated piece is swept too.
* fix(studio-server): say once when proxy pieces cannot be keyed to the user
Without a preview token, piece names use a per-process secret, so pieces are
reused only within that Studio process. Studio now logs that once, so a copy
restarting from its first piece after a restart has a visible cause.
* test(studio-server): name the proxy join test for what it checks
* fix(producer): derive the segment manifest key from the preview token
Sign segment manifests with an HMAC key derived from the per-user preview
token instead of a separate key file. The token is created with an exclusive
open, so concurrent renders never end up with different keys, and it is only
used when the file is private to this user.
Resume now checks a segment's SHA-256 before probing it, and a real-ffmpeg
test documents how the concat join treats an entry that is itself an ffconcat
list.
* docs(producer): describe the manifest key per user and the no-token case
* feat(producer): a render that fails on a missing file says what was gone again
Restores the diagnostic the previous commit on main took out, as it was; the commits after it confine what it looks at.
* test(producer): render failure diagnostics never probe a path from error text or outside the render
* fix(producer): probe a missing path only from a real error, inside the render's folders
describeMissingPath now reads only the path Node set on an ENOENT error, never
one quoted in a message the page can write, and looks on disk only under the
render's temp root, extract cache or work folder. Any other path is named from
its text, so a network share is never contacted and the facts cannot tell an
existing path from a missing one.
* test(producer): a missing-path probe never passes an outside link or climbs above its folder
* fix(producer): walk down from the render's own folder and check each link before following it
* build(producer): give the packed size budget its 5% headroom with the missing-file diagnostic back
* test(producer): remote scripts and stylesheets inlined at compile time stay within the size limit
* fix(producer): fetch each remote script and stylesheet once, a few at a time, within the size limit
Every inlined copy is charged to the render's expansion budget as it arrives;
going over fails the compile with COMPOSITION_TOO_LARGE and stops the
downloads still queued. Remote CSS is spliced in literally, so `$` sequences
in it are no longer expanded.
* fix(producer): drop the budget label comment the comment gate counts
* fix(producer): count a remote script when it arrives and stop the queue on an integrity mismatch
* test(producer): font normalization tests answer Google Fonts from a stub, not the network
* style(producer): wrap the stubbed font response
* revert(producer): a render that fails on a missing file stops naming what was gone, for now
This reverts commit cfea8cfff5 (#7955). The detail comes back in a follow-up that only looks inside the folders the render owns.
* revert(producer): name the files the #7955 revert removes in the deletion guard
* test(producer): a deep or query-stretched composition folder stays within the size limit
* fix(compiler): rebase composition asset paths from the file read and charge what they add
A mount's references now rebase from the project file the render read for
it, so a query or fragment in data-composition-src no longer lengthens every
rebased path. Every byte a rebased reference adds, including the entry file's
own rebase, is charged to the render's expansion budget as it is produced.
* test(producer): close the font embedding block after the rebase
* test(producer): a font many rules name stays within the page's size limit
* fix(producer): inline a local font only while the page stays within its size limit
Only url() sources inside @font-face rules are replaced, and every inlined
copy is charged to the render's expansion budget. Once the budget is spent,
the remaining references keep loading the font from its file.
* fix(producer): keep the font anchoring test and name the fit-or-skip charge
The engine ceiling moves from Beta 152.0.7977.30 to stable 158.0.8127.36, with its Chrome for
Testing digests. The places that installed `@stable` or an older pin follow it: the CI test
workspace, the regression test image, the k8s and Cloud Run examples, the CLI render image
(amd64) and the Lambda build hint. The motion-blur nightly keeps its pinned-versus-stable
comparison: the pin leg now uses the workspace's pinned shell, and a stable leg fetches stable.
The chat regression golden is regenerated on 158. Chrome 157 renders it pixel-identically to
158, so the previous golden recorded Chrome 152's paint of a background-clip:text phrase whose
word spans start at opacity 0.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(compiler): bound composition variable styles and variable media sources
Charge every compile-time composition-variable rule against a size budget
and stop emitting once it is exceeded. The render compiler shares one
CompositionExpansionBudget between mounts, variable styles and variable
media sources; other callers get a 32 MiB core default. Host
data-variable-values are now parsed once per host instead of once per
declarer. Bound media sources over 8 KiB or holding control characters are
refused, and every src written is charged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(producer): trim bound media sources and name the variable budgets in errors
Bind the trimmed value, as a browser does, so a trailing newline no longer
makes compile-time probing disagree with the runtime; refuse only interior
control characters or values over 8 KiB, and log the refusal as a warning.
The generated-bytes error now says which of variable styles or variable
media sources overran. Adds a with-mount test for the after-inline budget.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(producer): trim comments added to htmlCompiler to keep its comment share down
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(producer): a render that fails on a missing file says what was gone
* fix(producer): a failed look at what was missing never hides the render's own error
The missing-path probe now returns nothing when it throws, reads through at most four links and only
links that point into the temp root or the cache folder, names a removed folder by its own name, treats
a custom cache folder as the cache, and skips programs that could not start.
* refactor(producer): split the missing-path link walk into its own step
* fix(producer): charge generated mount scripts and scoped styles to the expansion budget
The expansion budget charged only the source bytes of each mounted file.
The inliner wraps every inline script in kilobytes of scoping code and
prefixes every style rule with the host's scope, so tiny scripts or a long
composition id over many rules assembled a page hundreds of times larger
than its source.
The inliner now reports what it generates through a chargeEmitted option.
Each wrapped script is charged once built. Each style rule reserves an upper
bound before it is scoped and settles to its real size after, so no rule is
built past the limit. Generated output has its own 32 MB allowance.
* fix(core): reserve the separator postcss re-joins scoped selectors with
The per-rule reservation summed a bound per selector but left out the
separator. postcss's selectors setter re-joins the list with the first
separator in the authored selector, so a wide first separator over many
selectors grew the rule past its reservation before it was charged.
* test(core): give the scoper bound test the same time limit as its neighbour
* fix(producer): bound the static media selector check by the page it walks
The pre-check matched every script selector against each media element and
bounded the work by selector length alone. A selector such as :has(...),
a positional pseudo-class or a chain of descendant combinators can walk the
whole page on each match, so the check could block the render process.
Only tags, ids, classes and attributes joined by child combinators and at
most one descendant combinator are now matched statically. Each check is
charged for the media element's ancestors and their attribute text, and
everything else is left to the browser probe.
* fix(producer): charge each selector's full text and every simple test
The selector check charged the collapsed selector shape, so a long
attribute value or whitespace run was nearly free even though the matcher
compiles the whole selector on every call. Each media element is now
charged the raw selector length per ancestor. Attribute text is charged per
simple test rather than per compound, and it is measured only once a
non-id selector needs costing.
* style(producer): shorten the selector cost comment
compositionSrcsIn read template.content at every nesting level. linkedom
builds that fragment by deep-cloning the template's children, so a file of
nested templates cost work and memory that grew with the square of the
depth. The scan now walks the parsed tree once and tracks whether each
element sits inside a template.
* fix(producer): frames start drawing while the audio mix finishes
* fix(producer): keep the encode stage's comment share
* fix(producer): on machines with under 4 CPUs frames wait for the audio mix
* test(producer): a mix that fails during capture is reported as the audio stage's failure
* fix(producer): a mix that fails during capture names the audio stage as where the render failed
* fix(engine): the render file server never serves a project file as a service worker's script
* fix(producer): render, capture and inspector servers never serve a service worker's script
A bare listSiteFiles now leaves out files and folders linked in from outside
the project; a caller that wants them passes "include". listSiteFilesForUpload
warns on the console when the caller passes no onNotice, so SDK callers learn
that files were left out. The regression harness keeps its fixtures' outside
links with "include".
— Rames
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A scene mounted as `\\host\share/scene.html` read its own file from inside the
project, but its sibling assets were looked up next to `\\host\share`, which on
Windows connects to that host and sends the user's login. The compile's asset
checks now report any path outside the project as missing without touching the
disk, and a data-composition-src with a leading `\` or `./` is rewritten to the
project file it names before its assets are resolved.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- parseSubCompositions and the inliner's disk fallback check again right before they
read a composition, so a file swapped for an outside link after the pre-flight is
refused too. recompileWithResolutions carries the outside-file policy.
- The refusal says any scripts in the file would run, which holds whether or not it
has any, and offers moving the file into the project, which Studio and benchmark
renders can do without the CLI flag.
— Rames
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>