Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: name the presented-frame wait for video, not seeked alone

Claude5b5f62e24eb5
diff --git a/.claude/skills/portos-music-video-code/SKILL.md b/.claude/skills/portos-music-video-code/SKILL.md
index c0e92b9bd3..1baf85d2ad 100644
--- a/.claude/skills/portos-music-video-code/SKILL.md
+++ b/.claude/skills/portos-music-video-code/SKILL.md
@@ -42,6 +42,6 @@ Choose **Design and composition media** independently of **Authoring renderer**.
In **Compose → Document**, choose **Three.js authored worlds → Generate authored 3D composition** for complete geometry scenes. Each section's `render(ctx, env)` receives `ctx.THREE`, a fresh `ctx.scene`, a perspective `ctx.camera`, and the transparent Canvas2D `ctx.text`. Author environments, articulated characters, props, lights, camera movement and dramatic actions from absolute song time. Every seek creates a fresh world; do not integrate physics or depend on earlier frames. This generated renderer currently composes geometry and typography only. Use the Canvas layered renderer or an imported document for selected images/video. Native **Code** remains a separate 720p Canvas capability, not the definition of code-only.
-PortOS packages installed Three.js, license, local fonts, validated author functions and a dependency hash manifest in the immutable document version. It does not install packages, load CDNs or grant network access. Preview supports acyclic local static ES-module graphs (including inline module entrypoints); remote/bare/dynamic imports are unsupported. The same `portosComposition.seek(t)` drives preview, excerpt and final capture, normally 1080p24. Finish every `await` (image decode, video `seeked`) before clearing, drawing or showing a layer: the render waits for the whole seek, but the live preview paints at each await, so clear-then-await flashes in the preview only. Imported documents may declare supported motion blur; export honors that contract. A valid contract proves execution, not art quality: inspect authored characters/action and changing frames, then the existing treatment/proof workflow decides readiness.
+PortOS packages installed Three.js, license, local fonts, validated author functions and a dependency hash manifest in the immutable document version. It does not install packages, load CDNs or grant network access. Preview supports acyclic local static ES-module graphs (including inline module entrypoints); remote/bare/dynamic imports are unsupported. The same `portosComposition.seek(t)` drives preview, excerpt and final capture, normally 1080p24. Finish every `await` (image decode; video `seeked` plus a presented frame, as the layered template's `seekVideo` waits for) before clearing, drawing or showing a layer: the render waits for the whole seek, but the live preview paints at each await, so clear-then-await flashes in the preview only. Imported documents may declare supported motion blur; export honors that contract. A valid contract proves execution, not art quality: inspect authored characters/action and changing frames, then the existing treatment/proof workflow decides readiness.
Code-only autopilot preserves text direction and defaults to this document authoring path, retaining explicitly saved legacy Code choices. It never requests image guides or an image/video provider. Code-rendered prototypes and visual planning remain required by the production review workflow; skipping raster moodboard assets is not approval to skip art direction.
diff --git a/docs/HTML_COMPOSITIONS.md b/docs/HTML_COMPOSITIONS.md
index 1fea461189..1c3c954dd8 100644
--- a/docs/HTML_COMPOSITIONS.md
+++ b/docs/HTML_COMPOSITIONS.md
@@ -25,7 +25,8 @@ Drive animation from `t`, not wall-clock playback, CSS animation timers or rando
state. The renderer awaits each seek, then captures frame `n` at `n / fps`.
The in-app live preview is different: the browser paints whenever `seek`
yields, so every `await` inside it can reach the screen. Load and decode first
-(`await img.decode()`, `seeked`), then clear, draw and toggle layer visibility
+(`await img.decode()`; for video, `seeked` plus a presented frame, as
+`seekVideo` in the layered template does), then clear, draw and toggle layer visibility
in one synchronous block. A page that fills a canvas or flips `visibility`
before awaiting an image flashes that half-drawn state in the preview (most
visibly in iPhone Safari, which decodes slowly) while the render stays clean.