Implements the 2026-04-02 transformation spec (Phases 1-8) and fixes all critical bugs found during 5-pipeline E2E testing. Governance & Decision Intelligence: - Pipeline-specific stage order in checkpoint (replaces global STAGES list) - Provider scoring engine (lib/scoring.py) with 7-dimension weighted ranking - Decision log artifact enforced at proposal/idea stage across all 10 pipelines - Delivery promise classifier prevents silent motion-to-still downgrades - Structured shot language in scene_plan schema (camera, lens, lighting, DOF) - Variation checker and slideshow risk scorer block samey output before render - Creative intake, capability extension, and creative-intake meta skills - Final self-review artifact with 5 mandatory checks before presenting output - Source media review contract for user-supplied footage Render & Theme System: - Remotion AnimatedBackground now derives colors from playbook (no more hardcoded dark blue fintech gradient on every video) - video_compose builds custom ThemeConfig from playbook YAML colors/fonts — custom playbooks flow through to Remotion automatically - Explainer component wires theme to all child components (charts, cards, etc.) - resolveAsset() handles absolute paths on Windows/Unix via file:// URIs - RENDERER_FAMILY_MAP synced with actual Remotion compositions Critical Bug Fixes: - Windows npx subprocess: run_command() resolves .cmd wrappers via shutil.which() - Silent renderer downgrade: Remotion failure now returns explicit error with options instead of silently falling back to FFmpeg - .env inline comment parsing strips trailing # comments from API keys - concat_path UnboundLocalError in video_compose finally block - audio_mixer and showcase_card capture=True kwarg bug - Selector estimate_cost() calls fixed (_select_tool -> _select_best_tool) - asset_manifest schema expanded with provider, license, subtype fields - screen-demo subtitle_gen moved from required to optional tools - Duration drift detection in post-render final review (>25% warns)
4.6 KiB
Script Director - Screen Demo Pipeline
When To Use
You are turning the inspected recording into a timestamped procedural script. Unlike explainer work, you are not inventing the flow. You are synchronizing language to actions the viewer will literally see.
Prerequisites
| Layer | Resource | Purpose |
|---|---|---|
| Schema | schemas/artifacts/script.schema.json |
Artifact validation |
| Prior artifact | state.artifacts["idea"]["brief"] |
Brief with workflow, critical moments, and source notes |
| Tools | transcriber, frame_sampler, audio_enhance |
Audio/transcript inspection and spot checks |
Process
1. Decide The Script Mode
Use the brief metadata to choose one of three modes:
| Voiceover Status | Strategy |
|---|---|
voiced |
Transcribe, tighten, and preserve the speaker's phrasing where possible |
silent |
Write text-led or optional TTS-ready narration around the actions |
partial |
Transcribe the existing speech and bridge only where necessary |
If the recording is silent and TTS was not available in preflight, do not pretend there will be narration later. Write the script so the video can still work with captions, hook cards, and step labels.
2. Build The Action Map
The action map is the real backbone of this stage. Use frame_sampler and transcriber together to log:
- exact task boundaries,
- clicks worth highlighting,
- typed input worth slowing down,
- waits worth speeding up or cutting,
- the result moment to preserve in real time.
Store detailed action information in script.metadata.interaction_map. Keep sections clean and schema-valid.
Useful interaction_map fields:
timestamp_secondsaction_typetargetimportancesuggested_treatment(realtime,speed_up,cut,highlight,zoom)
3. Write Sections By Step
Each script.sections[] entry should correspond to a real user step, not a thematic paragraph.
Good section labels:
Open the settings panelPaste the API tokenRun the buildVerify the live result
Every section should do three things:
- say what is happening,
- say why it matters,
- leave clear cues for highlights, zooms, or speed changes.
4. Keep The Narration Procedural
Use the research-backed rules:
- narrate intent and effect, not obvious cursor motion,
- keep wording short and direct,
- avoid jargon unless the target audience clearly expects it,
- keep the action on screen synchronized with the wording,
- preserve the speaker's natural voice if the source already has narration.
5. Mark Pacing Decisions
Use section-level notes and metadata.speed_plan to call out:
| Speed Factor | When to Use | Example |
|---|---|---|
0.75-1.0x |
Important click or result | Small control, key validation moment |
1.5-2.0x |
routine typing or navigation | filling obvious fields |
3.0-6.0x |
installs, builds, loading | dependency install, compile |
cut |
no learning value | long idle wait |
Do not put critical proof moments inside sped-up sections.
6. Use Metadata For Screen-Specific Detail
Recommended script.metadata fields:
interaction_mapspeed_planchapter_candidatespronunciation_guidescallout_candidatessections_needing_zoom
7. Quality Gate
| Criterion | Question |
|---|---|
| Action coverage | Is every critical moment from the brief annotated with a timestamp? |
| Narration sync | Does each narration segment align with what's happening on screen? |
| Speed marking | Are dead-time segments marked for acceleration or removal? |
| Enhancement density | Are highlights reserved for true attention shifts rather than every click? |
| Technical accuracy | Are all software names, commands, and UI elements named correctly? |
| Word economy | Is narration concise and procedural? |
Mid-Production Fact Verification
If you encounter uncertainty during script writing:
- Use
web_searchto verify factual claims before committing them to the script - Use
web_searchto find reference images for visual accuracy - Log verification in the decision log:
category="visual_accuracy_check"
Every factual claim in the script should be traceable to the research_brief.
If you make a claim that isn't in the research, do additional research and
add the source. Do not invent statistics, dates, or attributions.
Common Pitfalls
- Narrating the cursor instead of the outcome.
- Letting spoken timing drift away from the visual action.
- Keeping builds and loading screens in real time.
- Writing a silent-recording script that secretly depends on unavailable TTS.