oficina / slides Public

Design draft 2: scenes and clips, after the builder check

Nine calls from a builder's read, recorded in §8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev bff6eced656eeb98d299485948d323c17b3ec9df parent e888eb8
1 file changed, +50 −7
  • docs/superpowers/specs/2026-11-23-scenes-and-clips-design.md +50 −7
diff --git a/docs/superpowers/specs/2026-11-23-scenes-and-clips-design.md b/docs/superpowers/specs/2026-11-23-scenes-and-clips-design.md
index 0616cee..55645b1 100644
--- a/docs/superpowers/specs/2026-11-23-scenes-and-clips-design.md
+++ b/docs/superpowers/specs/2026-11-23-scenes-and-clips-design.md
@@ -1,7 +1,7 @@
# Scenes and clips — design
Design, 2026-11-23, by Claude Opus 5.5 from conversation with Paul the
-same day. Not yet approved. Builds on the editor-tidy design §9 (the
+same day. Draft 2 after a builder check (§8). Not yet approved. Builds on the editor-tidy design §9 (the
order of slices) and the steps slice (presses, the presenter window).
## 0. Intent
@@ -80,10 +80,14 @@ picture wherever code can't run.
`name` shows in the editor; `description` is the text assistive
technology reads for that state.
- `words`: a map of key → text, the scene's labels.
-- `data`: one JSON value (≤ 256 KiB), the scene's model (for the world:
- its pieces with kind, position and label key).
+- `data`: one JSON value (≤ 2 MiB), the scene's model. For the world:
+ its pieces, and a per-state table (camera, sky, which pieces show,
+ signs, figures, routes), with routes worked out when the data is made,
+ never by the scene at run time.
+- `version`: a hash the server computes over the code ref, the data and
+ the words; it changes with any of them.
- `stills`: a map of state id → `{ref, made}`, where `made` is the
- version of code + data + words the still was drawn from.
+ `version` the still was drawn from.
**A scene block** on a slide: `type: "scene"`, `props: {scene, from,
to}` where `from` and `to` are state ids. The block arrives with the
@@ -94,8 +98,11 @@ which press starts it (absent means right after arrival), and
**Clips**: a picture-like asset of kind video (MP4 or WebM, ≤ 50 MiB)
with a poster still; a `clip` block, `props: {asset, play: "press" |
-"loop" | "once", muted}`. `play: press` makes the clip start on the
-block's press.
+"loop" | "once"}`. Clips play muted in this slice (screen recordings;
+sound needs a gesture in the window that plays it, which the slide
+window doesn't get). `play: press` takes one press, like an `each` item;
+going back pauses and rewinds it. `loop` and `once` start when the block
+arrives.
All of it travels on existing ops plus `add_scene`, `set_scene`,
`remove_scene`, in Rust, JS and Go with vectors, as the fixtures rule
@@ -190,7 +197,43 @@ Tests, each written first:
6. Clips.
7. The HalfStack world as a scene, in a deck.
-## 8. Left to the builder
+## 8. Calls from the builder check
+
+A builder read draft 1 and asked nine questions. None needed Paul; these
+are this design's calls, each reversible:
+
+1. **The HalfStack world** becomes one scene, ported from
+ `acts/worldsvg.py` and `paintWorld()` (SVG, iso and flat looks as part
+ of each state), with `acts/world.py`'s model exported as `data`,
+ routes precomputed. Not a CSS 3D rewrite.
+2. **Pictures of a range** show the block's `to` state, the slide fully
+ built, as steps already do; the PDF stays one page a slide.
+3. **A state with no still** shows a plain panel in the scene's box with
+ the scene's name and the state's description, drawn by Slides; a
+ check in the editor lists scenes missing stills.
+4. **The bundle** is a new asset kind, `scene`, through the existing
+ upload, register and verify flow (sniffed as one HTML document,
+ served only through the sealed route); **stills** go through the
+ picture flow, PNG or WebP as pictures already allow. The sealed
+ route checks the same capability as pictures on `/d`, `/s` and `/p`;
+ the remote shows stills only.
+5. **`version`** is computed by the server (above); the stills route
+ takes the `version` the agent read and refuses one that isn't
+ current. Any change to code, data or words marks stills out of date.
+6. **The code panel's preview** posts the unsaved text to a
+ preview-only route for signed-in editors, which answers it under the
+ same sealed policy. The sealed route sets `frame-ancestors 'self'`,
+ so the app's one-policy test gains this exception.
+7. **The same box** means the same `box` on canvas slides and the same
+ region on flow slides. Carrying on keeps one frame in a layer outside
+ the slide's DOM on every scripted surface; with scripts off each
+ slide shows its still.
+8. **Clips** play muted (§2).
+9. **`author`** is filled in by the server from whoever acted;
+ `set_scene` patches fields; `words` merges per key, `data` is
+ replaced whole.
+
+## 9. Left to the builder
Table and column layouts; the message field names beyond those above;
how the data table infers columns; exact size limits if a real scene