Files
OpenMontage/backlot/README.md
calesthio 64e44612d9 backlot phase 3: in-browser replay, live-run fixes, simulation driver
- replay mode: scrub a completed run from checkpoint history + event
  timestamps — stage rail rewinds, script/storyboard/renders appear at
  their real moments, generating shimmer replays; ~20s full-run playback
- stage history_entries exposed in BoardState (powers replay + versions)
- entrance choreography plays on first paint only (not on SSE refreshes)
- live-run fixes found by driving a simulated production against the
  board: null rendered by native append, activity ticker showing closed
  starts as running, scene-id label handling for 'scene-N' ids
- scripts/backlot_simulate_run.py: drives a fake production through the
  REAL contract (init_project, in_progress heartbeats, gated
  awaiting_human -> approved, per-scene events, growing manifest) —
  live-board verification + demo driver
- backlot/README.md
2026-07-01 23:57:06 -07:00

1.7 KiB
Raw Blame History

Backlot — the living storyboard

A read-only local board that shows a production happening: pipeline stages lighting up, the script as a screenplay page, the scene plan as a filmstrip that fills in as assets generate, decisions, spend, and activity — all derived from what the pipeline already writes to projects/<id>/.

python -m backlot open <project-id>   # start server if needed + open browser
python -m backlot open                # library view (all projects)
python -m backlot serve --port 4750   # run the server in the foreground

How it stays live

No agent involvement. A watchfiles watcher on projects/ publishes change notifications over SSE; the browser refetches board state. State sources:

Board element Disk source
identity / rail order project.json + pipeline_defs/<type>.yaml
stage states, gates, versions checkpoint_<stage>.json + history/
script card / modal artifacts/script.json
filmstrip cards scene_plan × script × asset_manifest join
generating shimmer, activity events.jsonl (written by BaseTool instrumentation)
cost meter checkpoint cost_snapshot
renders renders/*.mp4 (+ root-level mp4 heuristic)

Projects without checkpoints degrade gracefully to a "what the watcher found" view — media, snapshots, renders.

Replay: a completed run can be scrubbed end-to-end (▶ REPLAY RUN on the board) — reconstructed from checkpoint history and event timestamps.

Try it without a real production:

python scripts/backlot_simulate_run.py          # live demo run (~1 min)
python -m backlot open backlot-demo-run

Design doc: internal/design/LIVING_STORYBOARD.md.