Skip to content

feat(vid): updated kaaro-vid pipeline (Windows + key_stats upkeep) - #66

Open
karx wants to merge 11 commits into
masterfrom
kaaro/updated-kaaro-vid
Open

karx wants to merge 11 commits into
masterfrom
kaaro/updated-kaaro-vid

Conversation

@karx

@karx karx commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Supersedes / refreshes the open PR Add video editing agent discovery doc: shared vocabulary, architecture, open questions #62 video agent stack (vid/ tool layer + /vid skill) with the Session-4L production fixes.
  • Includes key_stats object→string coercion for end-card (vid/beats.mjs) and the Windows SAPI helper (vid/tts-sapi.ps1).
  • Updates /vid skill + vid/README.md with Windows preflight (Git sh, KAARO_TTS_CMD) and a brief→timeline adapter table.
  • Adds a regression test for object-shaped library key_stats.

Test plan

Notes

claude and others added 11 commits July 8, 2026 09:09
…e, open questions

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
Media core (probe/trim/concat/transcode/audio-mix over ffmpeg), Timeline
schema + validator, pure compiler to dry-runnable Render plans, headless-
Chromium render harness (Canvas Scene Scripts + offline Web Audio -> WAV),
deliverable verifiers, and the kaaro-vid CLI (probe/new/render/verify/scene).
21 new tests incl. a full e2e render that passes all verifiers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
…ne sample

Phase 5: kaaro-vid beats <library-id> converts an intelligence brief's story
beats into a Timeline of beat-card generator clips (cluster-accent visuals,
tension-pitched Web Audio drone, narration reveal). Phase 4 progress: session
traces with per-step timings and a golden flag stamped by verify, plus the
/vid Claude Code skill encoding the probe->plan->execute->verify loop.
vid/samples/ holds the v0 baseline render of library/kaaro-viewer.json
(102s, 6/6 verifiers, golden trace) with a progression log for tracking
improvement across pipeline versions. 198 tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
vid/tts.mjs: pluggable narration providers (piper neural > KAARO_TTS_CMD
cloud hook > espeak-ng fallback); beats --narrate synthesizes VO per card,
drives card durations from measured WAV length, and lays VO on an audio
track. Scenes rebuilt to the dataviz spec: beat cards render the beat's
actual subgraph as an animated labeled constellation with caption-band
narration and a segmented story progress bar; new closing stats card
(2x2 stat tiles); title card with constellation ring and tracked-in
wordmark. Cluster accents come from a 7-hue palette validated for
lightness band, chroma, CVD separation, and contrast on the dark surface.
204 tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
340.8s 720p deliverable, 6/6 verifiers, golden trace. Committed artifacts
switch to timeline + trace + 640x360 preview re-encode; full renders are
reproducible from the logged commands and no longer versioned.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
…eets

vid/CTDD.md brings the house cognitive-TDD format to the video surface:
five CT-V tests (title, constellation, captions, stats, whole-film arc)
each anchored to an embedded artifact and guarded by automation.
vid/visual.mjs adds SSIM compare + contact sheets over ffmpeg (no new
deps); vid/visual.test.mjs locks a deterministic golden frame per scene
(KAARO_UPDATE_GOLDENS=1 to regenerate on purpose) plus a same-t-twice
determinism check. Harness gains exact-time frameTimes stills. New CLI
contract tests and verify unit tests close the untested modules; contact
sheet embedded in SAMPLES.md v1. 219 tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
Narration is now synthesized per caption chunk: each chunk is its own
measured WAV, so caption boundaries and VO placement are exact by
construction; beat-card renders params.captions timings with the linear
pacing kept as the silent-card fallback. Timeline gains a transition
vocabulary (crossfade|dipblack into a clip); the compiler emits an
xfade+acrossfade step when any transition is present, VO offsets account
for the overlaps, and expectedDuration models them. New golden
(beat-card-captions), transition/overlap/chunk-timing tests. 228 tests
pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
343.4s 720p render of kaaro-viewer, 6/6 verifiers golden; duration matched
the transition-overlap model to 0.045s. 38 per-chunk VO clips, 11
crossfades. Contact sheet + preview + trace refreshed; SAMPLES.md v2 entry.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
…wner decisions

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsvMCLHDUkktvBEEeUvZqm
Fold Session-4L learnings into the /vid skill and README: Git sh + SAPI
TTS on Windows, and the brief→timeline key_stats coercion contract.
Add a unit test so object-shaped library stats cannot regress the end-card.
@github-actions

Copy link
Copy Markdown
Contributor

Preview deployed

🔗 https://karx.github.io/kaaroViewer/previews/pr-66/

Updates on every push to this PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants