ADR-0065 — A frame needs a box, a file brings its own
- Status: Accepted
- Date: 2026-08-27
- Deciders: Repository owner, track 003 phase 02 (d)
- Follows:
ADR-0055
(the descriptor is the crosswalk; presentation lives in
style), ADR-0057 (data says what a block is, layout stays Studio's), ADR-0059 (when arms converge, the kind takes the idiom that has a stylesheet)
Context
video was the last arm of kit type video-embed still drawn by a case.
The embed-frame kind that covers that type declined it deliberately:
// `provider` is what separates a framed page from the kit type's other
// tenants: `video` is the same `video-embed` kit type but a <video>
// element over a file …
if (!props.provider) return null
The premise — that a kind covers one shape and a second shape needs a second
kind — is not the kit's. The kit's video-embed is one component with this
exact branch: provider set paints a click-to-load facade over someone
else's player; provider unset renders <video> over the file, with poster
and an optional captions track. Its own summary says so: "A self-hosted or
third-party video." Cardsite's arms split the same way and on the same
setting. The kind was declining half of its own kit type.
Two smaller questions came with the widening:
- The playback flags.
video_controls,video_autoplay,video_loopandvideo_mutedare collected by the field spec and have no kit prop — the kit's player owns its own transport and states plainly that nothing autoplays. - The box. Every framed descriptor carries a geometry in
style, a fixedheightor anaspectratio held open by padding, and the kind refuses to draw without one. The kit appliesaspect-ratio(default16 / 9) to both branches through one.lb-embedbox. Cardsite's arm applied none.
Decision
A kind branches where the kit branches. embed-frame draws both tenants
of video-embed: an unbound src is the decline, and provider chooses
between the frame and the file. No new kind, no new kit type, and no arm left
holding a case for a shape its own kit component already renders.
The playback flags stay the kind's, read from settings — as the
audio-player kind reads audio's, at each arm's exact default (controls
unless explicitly 'false', everything else off unless explicitly 'true').
They are Cardsite settings governing a native element, not props the kit has
declined to carry, so they are not an upstream feed row.
Frame geometry belongs to the tenant that has no intrinsic size. An iframe
has none and must be given a box; a video file carries its own. So the video
descriptor gets no style, the kind requires geometry only on the framed
branch, and ADR-0059's rule is not overturned by the exception: the kit's
stylesheet wins where the two idioms disagree about how a thing looks, not
where applying it would discard information the file itself supplies. Holding
a portrait recording to 16 / 9 letterboxes what the arm drew whole — a
default about typical content, not a decision about this one.
Consequences
- The last arm of
video-embedis drawn by the render spec. Scoreboard 9 → 8 by case, 76 → 77 by render spec; the eight cases left are the sixbespokerows with no kit counterpart, plusheadingandparagraph. check:block-model's "every framed descriptor carries exactly one geometry" invariant now reads as what it always meant: it holds over the framed descriptors, and a descriptor with no geometry is a file, not an omission.- The kit's
captionsandcaptionsLanghave no Cardsite settings behind them, so nothing binds them. A captions field is a product call, not a render slice, and is not an upstream gap — the kit has the prop. - A future kit type whose component branches internally is migrated as one
kind, not two. The
provider-style discriminant is a prop, and reading it is the kind's job.
Source: docs/decisions/0065-a-frame-needs-a-box-a-file-brings-its-own.md