Skip to content

feat(cinematic): continuity checks for multi-take generated fiction - #981

Open
kinesra75 wants to merge 1 commit into
OpenMontageInc:mainfrom
kinesra75:feat/fiction-continuity-checks
Open

kinesra75 wants to merge 1 commit into
OpenMontageInc:mainfrom
kinesra75:feat/fiction-continuity-checks

Conversation

@kinesra75

Copy link
Copy Markdown

Summary

OpenMontage can already generate every take of a short narrative piece (micro-drama, series episode, story trailer), but nothing in the cinematic pipeline protects continuity between takes. Each take is generated on its own, so characters swap sides between two blocks, a wet jacket comes back dry, a reverse shot shows the wrong wall, a door shrinks to half its height. These defects are found after the money is spent, and most of them were already readable in the prompts.

This PR adds a script-supervisor layer for multi-take generated fiction: two skills that state the rules, a 0-cost preflight that checks every clip prompt before the first paid take, and a review-sheet generator that lays out every cut after the takes. It came out of producing a three-episode series (86 Seedance takes), where each check below caught real defects.

Refs #978: cut_check measures the QC of a finished cut. This PR works one step earlier, on prompts before generation and raccords between takes, so the two are complementary.

Changes

  • skills/creative/shot-continuity.md (new): continuity ledger (states such as wet / injured / prop broken, with their cause), one location map per location with the 180° axis, eyelines and screen direction, feeding the previous take's real last frame back as a reference, a CONTINUITY LOCKS block in every take prompt, sizing multi-shot blocks, then retaking shot by shot.
  • skills/creative/fiction-shot-direction.md (new): camera motivated by intent, acting written for video models, one-face dialogue coverage for lip-sync, voice conditioning, sound and music rules, micro-drama dramaturgy.
  • scripts/prompt_preflight.py (new, 0 $): checks the clip prompts of a scene plan in story order. ERROR blocks the take, WARN must be answered in the report:
    • structure (LOCATION MAP / CONTINUITY LOCKS / FINAL FRAME, contiguous shot ranges);
    • references declared vs attached, provider limits;
    • block sizing (shots, seconds, speakers);
    • cast count and frame side of each character when 2+ share a block;
    • phrasings models drop or pop (off-screen entries, "appears");
    • asymmetric traits repeated in clips that never show them;
    • start_frame vs reference mode, same location without the previous last frame;
    • FINAL FRAME hand-off and plate scale (doors vs furniture vs people).
  • scripts/raccord_sheet.py (new): per-take review sheets with the previous take's last frame plus the first and last frame of every detected shot (ffmpeg scdet), and a raccord_checklist.md with one row per cut to fill in.
  • Pipeline wiring: scene-director (ledger and location maps), asset-director (raccords before and after every take, run the sheet), edit-director (check every cut point), two review-focus items in pipeline_defs/cinematic.yaml, plus pointers in AGENT_GUIDE.md and skills/INDEX.md. All of it applies only to narrative fiction; other cinematic work is unchanged.

Testing

  • make test-contracts: 1523 passed, 9 skipped on this branch alone (rebased on current main).
  • New tests:
    • test_prompt_preflight.py: a clean clip passes; a trait repeated only in the locks, the same location without the previous frame, an unchecked plate, and structure / refs / sizing / hand-off defects are each flagged.
    • test_raccord_sheet.py: flicker cuts are merged, a cut at the very end is ignored, the checklist has one row per cut.
  • tests/contracts/test_skill_reference_paths.py passes: every path cited in the new skills exists.
  • Used end to end on a 3-episode series: preflight before each batch, raccord sheets after each batch, retakes driven by the checklist.

Checklist

  • The change is focused on a single logical concern.
  • I ran the relevant tests locally (make test-contracts / make test) where applicable.
  • I updated docs/README if behavior or usage changed.
  • No unrelated files (build artifacts, local config) are included in the diff.

Add a script-supervisor layer for narrative pieces built from several
generated takes (micro-drama, series episode, story trailer):

- skills/creative/shot-continuity.md: continuity ledger, one location map
  per location, 180-degree axis and eyelines, previous-take last frame as
  reference, CONTINUITY LOCKS block in every take prompt, block sizing.
- skills/creative/fiction-shot-direction.md: camera from intent, acting
  written for video models, one-face dialogue lip-sync, sound, episode
  dramaturgy.
- scripts/prompt_preflight.py: 0-cost check of every clip prompt before
  the first paid take (structure, refs, sizing, cast sides, phrasing,
  asymmetric traits, start-frame vs reference, hand-off, plate scale).
- scripts/raccord_sheet.py: per-take review sheets (previous take's last
  frame + first/last frame of each detected shot) and a per-cut checklist.
- Wire both into the cinematic scene/asset/edit directors, the pipeline
  review focus, AGENT_GUIDE.md and skills/INDEX.md.
@kinesra75
kinesra75 requested a review from calesthio as a code owner November 24, 2026 10:46
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.

1 participant