tkhjeff commited on
Commit
cd6cf4e
·
verified ·
1 Parent(s): d25c088

Blue Morpho Production: charter, org chart, rosters, rules, monitoring, roadmap

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Blue Morpho Production
2
+
3
+ An automated film house that runs entirely inside one box: a 96 GB Blackwell GPU, 20 cores,
4
+ 7 TB of local storage, and a crew of 29 seats in 11 departments.
5
+ It writes, casts, lights, scores, shoots, cuts and publishes 40-60 second vertical shorts — and it credits every frame to
6
+ the model that made it, because the credits are also the audit trail.
7
+
8
+ > **Current state:** 17/29 seats `LIVE`.
9
+ > The eyes work (Qwen3-VL-8B resident, 17.6 GB, and it has already graded a real frame).
10
+ > The camera is not loaded: no video model is on disk, so the house can write a film but not shoot one.
11
+
12
+ ## The house
13
+
14
+ ```
15
+ THE STUDIO HEAD (the human) - owns the final cut, nothing ships without them
16
+ |
17
+ +---------------------v---------------------+
18
+ | DEVELOPMENT Executive Producer | G0 greenlight
19
+ | DIRECTION Director / Coordinator | owns the shoot loop (plain Python)
20
+ +---------------------+---------------------+
21
+ | the bible: production.json - one dict, one owner per key
22
+ +----------+-----------+-------+----+-----------+----------+
23
+ STORY CAST ART LIGHT SOUND CAMERA
24
+ Author Casting Production DoP/Gaffer Sound Cinematographer
25
+ Narration Voice Bank Designer Colorist Composer Storyboard
26
+ Continuity Lip-sync Set Dresser Foley
27
+ Compliance NPCs Mixer
28
+ +----------+-----------+------------+-----------+----------+
29
+ |
30
+ +---------------------v---------------------+
31
+ | POST Editor - VFX - Titles & Thumbnails | G2 continuity - G3 licence - G4 QC
32
+ | RELEASE Publisher - Analyst |
33
+ | OPS DevOps - Archivist |
34
+ +-------------------------------------------+
35
+ ```
36
+
37
+ ## Repo layout
38
+
39
+ | path | what it is |
40
+ |---|---|
41
+ | `docs/00-charter.md` | why the house exists, what it refuses to be, what "done" means |
42
+ | `docs/01-org-chart.md` | departments, reporting lines, the gates, how work is handed off |
43
+ | `docs/02-role-charters.md` | every seat's job description (the literal system prompt it runs on) |
44
+ | `docs/03-engine-roster.md` | who runs on what model, and why — with licence findings |
45
+ | `docs/04-production-rules.md` | the rules of the house |
46
+ | `docs/05-monitoring.md` | the monitoring system: ledger, gates, health, alerts |
47
+ | `docs/06-credits.md` | how a credit is earned, computed and rendered |
48
+ | `docs/07-roadmap.md` | the phases, in build order, with model choices |
49
+ | `docs/08-research-notes.md` | what this design learned from, and what it rejects |
50
+ | `docs/assets/crew.json` | **generated** — the seat ledger, dumped from the live notebook |
51
+ | `docs/assets/licenses.json` | **generated** — licence check results |
52
+ | `blue_morpho/monitor.py` | the monitoring layer: append-only ledger, rollups, gates, health |
53
+ | `schema/event.schema.json` | the ledger event schema |
54
+
55
+ ## Quickstart
56
+
57
+ ```bash
58
+ cd /marimo/blue-morpho
59
+ python -m blue_morpho.monitor report # box health, gates, seat activity
60
+ python -m blue_morpho.monitor health # the box alone
61
+ python -m blue_morpho.monitor gates the-beam-answers-back
62
+ ```
63
+
64
+ The ledger lives at `ledger/events.jsonl`, is append-only, and every report is derived from it.
65
+
66
+ ## Two things here are generated, not written
67
+
68
+ `docs/assets/crew.json` and `docs/03-engine-roster.md` come from the notebook's `CREW` object, so the
69
+ written credits cannot drift from the code that enforces them. Regenerate rather than edit.
70
+
71
+ ## Read this before spending money on it
72
+
73
+ * YouTube pays only after **1,000 subscribers + 4,000 watch hours** (or 10M Shorts views in 90 days).
74
+ Nothing here earns anything until that clears.
75
+ * YouTube requires **disclosing realistic synthetic content**, and penalises **mass-produced or
76
+ repetitive** uploads. A house that makes the same video forty times is a policy violation with a
77
+ GPU bill. See `docs/00-charter.md`.
78
+ * Two seats in the original ledger ran on **non-commercial** models. They are blocked from monetized
79
+ work until replaced. See `docs/03-engine-roster.md`.
blue_morpho/__init__.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ """Blue Morpho Production — an automated film house."""
2
+
3
+ HOUSE = "Blue Morpho Production"
blue_morpho/monitor.py ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Blue Morpho Production — the monitoring layer.
2
+
3
+ One rule governs measurement here: **nothing is reported that was not observed.** Every seat
4
+ appends an event when it acts, and the Monitor is the only writer of the ledger. The ledger is
5
+ append-only, so no seat can rewrite its own history, and every number in a report is derivable
6
+ from a line on disk.
7
+
8
+ from blue_morpho.monitor import Monitor
9
+ mon = Monitor()
10
+ mon.record("the-beam-answers-back", "author", "Story", "consulted",
11
+ engine="Qwen3-VL-8B", artifact="beats[0:4]", inputs_hash=..., duration_s=41.2)
12
+
13
+ python -m blue_morpho.monitor report
14
+ """
15
+
16
+ from __future__ import annotations
17
+
18
+ import argparse
19
+ import json
20
+ import shutil
21
+ import subprocess
22
+ import time
23
+ from dataclasses import asdict, dataclass, field
24
+ from pathlib import Path
25
+
26
+ HOUSE = "Blue Morpho Production"
27
+ ROOT = Path(__file__).resolve().parents[1]
28
+ LEDGER = ROOT / "ledger" / "events.jsonl"
29
+ HF_HUB = Path.home() / ".cache" / "huggingface" / "hub"
30
+
31
+ # The gates a film must clear, in order. A film is not released until every one has passed.
32
+ GATES = {
33
+ "G0": ("Greenlight", "Executive Producer accepts the premise as shootable"),
34
+ "G1": ("Hook", "the eyes score the hook frame at or above the House threshold"),
35
+ "G2": ("Continuity", "no shot contradicts the cast, set, or wardrobe sheets"),
36
+ "G3": ("Licence", "every engine used is clear for monetized release"),
37
+ "G4": ("Technical QC", "loudness, aspect, duration and captions all in spec"),
38
+ }
39
+
40
+ HOUSE_HOOK_THRESHOLD = 7.0
41
+ TECH_SPEC = {"lufs": -14.0, "aspect": "9:16", "max_seconds": 60.0}
42
+
43
+
44
+ @dataclass
45
+ class Event:
46
+ """One thing one seat did, at one moment, with one engine."""
47
+
48
+ production: str
49
+ seat: str
50
+ department: str
51
+ action: str # greenlight|consulted|rendered|scored|gated|released|installed|failed
52
+ artifact: str = ""
53
+ engine: str = ""
54
+ model_rev: str = ""
55
+ seed: int | None = None
56
+ inputs_hash: str = ""
57
+ duration_s: float | None = None
58
+ vram_peak_mb: int | None = None
59
+ score: float | None = None
60
+ gate: str = ""
61
+ result: str = ""
62
+ note: str = ""
63
+ ts: float = field(default_factory=time.time)
64
+
65
+
66
+ class Monitor:
67
+ """Append events, then ask it what actually happened."""
68
+
69
+ def __init__(self, ledger: Path | str = LEDGER):
70
+ self.ledger = Path(ledger)
71
+ self.ledger.parent.mkdir(parents=True, exist_ok=True)
72
+
73
+ # -- writing ---------------------------------------------------------------------------
74
+ def record(self, production: str, seat: str, department: str, action: str, **fields) -> Event:
75
+ """Append one event. Returns it so the caller can display what was written."""
76
+ event = Event(production=production, seat=seat, department=department, action=action, **fields)
77
+ with self.ledger.open("a") as handle:
78
+ handle.write(json.dumps(asdict(event)) + "\n")
79
+ return event
80
+
81
+ # -- reading ---------------------------------------------------------------------------
82
+ def events(self, production: str | None = None) -> list[dict]:
83
+ """Every event on disk, oldest first, optionally for one production."""
84
+ if not self.ledger.exists():
85
+ return []
86
+ rows = []
87
+ for line in self.ledger.read_text().splitlines():
88
+ if not line.strip():
89
+ continue
90
+ try:
91
+ row = json.loads(line)
92
+ except json.JSONDecodeError:
93
+ continue # a torn line is dropped, never guessed at
94
+ if production is None or row.get("production") == production:
95
+ rows.append(row)
96
+ return rows
97
+
98
+ def productions(self) -> list[str]:
99
+ return sorted({row["production"] for row in self.events()})
100
+
101
+ def rollup(self) -> dict:
102
+ """Per-seat activity: what each seat did, how often, and how long it took."""
103
+ table: dict[str, dict] = {}
104
+ for row in self.events():
105
+ seat = table.setdefault(
106
+ row["seat"],
107
+ {"department": row.get("department", ""), "acts": 0, "failures": 0,
108
+ "seconds": 0.0, "engines": set(), "last": 0.0, "scores": []},
109
+ )
110
+ seat["acts"] += 1
111
+ seat["failures"] += int(row.get("result") == "fail")
112
+ seat["seconds"] += row.get("duration_s") or 0.0
113
+ if row.get("engine"):
114
+ seat["engines"].add(row["engine"])
115
+ if row.get("score") is not None:
116
+ seat["scores"].append(row["score"])
117
+ seat["last"] = max(seat["last"], row.get("ts") or 0.0)
118
+ for seat in table.values():
119
+ seat["engines"] = sorted(seat["engines"])
120
+ seat["mean_score"] = round(sum(seat["scores"]) / len(seat["scores"]), 2) if seat["scores"] else None
121
+ seat.pop("scores")
122
+ return table
123
+
124
+ def gates(self, production: str) -> dict[str, dict]:
125
+ """Which gates have passed, from the gated events alone. Silence is never a pass."""
126
+ found = {row.get("gate"): row for row in self.events(production) if row.get("action") == "gated"}
127
+ state = {}
128
+ for key, (name, means) in GATES.items():
129
+ row = found.get(key)
130
+ state[key] = {
131
+ "name": name,
132
+ "means": means,
133
+ "result": (row or {}).get("result", "not run"),
134
+ "by": (row or {}).get("seat", ""),
135
+ "note": (row or {}).get("note", ""),
136
+ }
137
+ return state
138
+
139
+ def hook_series(self, production: str) -> list[tuple[str, float]]:
140
+ """Every hook score this film has been given, in order: the film's actual progress."""
141
+ return [(row.get("artifact", ""), row["score"])
142
+ for row in self.events(production)
143
+ if row.get("action") == "scored" and row.get("score") is not None]
144
+
145
+ # -- the box ---------------------------------------------------------------------------
146
+ def health(self) -> dict:
147
+ """The state of the machine the house stands on."""
148
+ def sh(cmd: str) -> str:
149
+ try:
150
+ return subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=15).stdout.strip()
151
+ except Exception:
152
+ return ""
153
+
154
+ gpu = sh("nvidia-smi --query-gpu=memory.used,memory.total,utilization.gpu --format=csv,noheader,nounits")
155
+ used = total = util = None
156
+ if gpu:
157
+ try:
158
+ used, total, util = (float(v) for v in gpu.split(",")[:3])
159
+ except ValueError:
160
+ pass
161
+ disk = shutil.disk_usage(ROOT)
162
+ disk_free_tb = disk.free / 1e12
163
+ disk_note = ""
164
+ if disk_free_tb > 1e6: # overlayfs reports a synthetic, meaningless capacity
165
+ disk_free_tb = None
166
+ disk_note = "overlayfs reports a synthetic size; read the host volume for real capacity"
167
+ return {
168
+ "gpu_mem_used_mb": used,
169
+ "gpu_mem_total_mb": total,
170
+ "gpu_util_pct": util,
171
+ "gpu_free_gb": round((total - used) / 1024, 1) if used is not None else None,
172
+ "disk_free_tb": round(disk_free_tb, 2) if disk_free_tb else None,
173
+ "disk_note": disk_note,
174
+ "hf_cache_gb": round(sum(f.stat().st_size for f in HF_HUB.rglob("*") if f.is_file()) / 1e9, 1)
175
+ if HF_HUB.exists() else None,
176
+ "ledger_events": len(self.events()),
177
+ }
178
+
179
+ # -- the report ------------------------------------------------------------------------
180
+ def report(self, production: str | None = None) -> str:
181
+ lines = [f"{HOUSE} — monitor", "=" * 68]
182
+ health = self.health()
183
+ lines.append(
184
+ "box: GPU {gpu_mem_used_mb}/{gpu_mem_total_mb} MB used ({gpu_free_gb} GB free) · "
185
+ "disk {disk_display} · HF cache {hf_cache_gb} GB · {ledger_events} events".format(
186
+ disk_display=(
187
+ f"{health['disk_free_tb']} TB free" if health["disk_free_tb"] else "capacity unmeasurable"
188
+ ), **health)
189
+ )
190
+ for slug in ([production] if production else self.productions()):
191
+ lines += ["", f"# {slug}"]
192
+ lines.append(" gates: " + " ".join(
193
+ f"{k}:{v['result']}" for k, v in self.gates(slug).items()))
194
+ series = self.hook_series(slug)
195
+ if series:
196
+ best = max(s for _, s in series)
197
+ lines.append(f" hook scores: {series} (best {best}, threshold {HOUSE_HOOK_THRESHOLD})")
198
+ lines += ["", "seat activity:"]
199
+ for seat, row in sorted(self.rollup().items(), key=lambda kv: -kv[1]["acts"]):
200
+ lines.append(f" {seat:<26} {row['department']:<12} {row['acts']:>3} acts"
201
+ f" {row['seconds']:>7.1f}s fails={row['failures']}"
202
+ f" engines={','.join(row['engines']) or '-'}")
203
+ return "\n".join(lines)
204
+
205
+
206
+ def main(argv: Iterable[str] | None = None) -> int:
207
+ parser = argparse.ArgumentParser(prog="blue_morpho.monitor", description=f"{HOUSE} monitoring")
208
+ parser.add_argument("command", choices=["report", "gates", "rollup", "health"], nargs="?", default="report")
209
+ parser.add_argument("production", nargs="?", default=None)
210
+ args = parser.parse_args(list(argv) if argv is not None else None)
211
+
212
+ mon = Monitor()
213
+ if args.command == "report":
214
+ print(mon.report(args.production))
215
+ elif args.command == "health":
216
+ print(json.dumps(mon.health(), indent=2))
217
+ elif args.command == "rollup":
218
+ print(json.dumps(mon.rollup(), indent=2))
219
+ else:
220
+ print(json.dumps(mon.gates(args.production or ""), indent=2))
221
+ return 0
222
+
223
+
224
+ if __name__ == "__main__":
225
+ raise SystemExit(main())
docs/00-charter.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 00 — Charter
2
+
3
+ ## Why the house is called Blue Morpho
4
+
5
+ The blue morpho butterfly is not blue. It has no blue pigment at all. Its colour is
6
+ **structural** — microscopic scales that interfere with light so the wing reads blue from one angle
7
+ and violet or black from another. Nothing is added to make it beautiful; the beauty is entirely in
8
+ the construction.
9
+
10
+ That is the thesis of this house, and the reason to name it:
11
+
12
+ 1. **The blue is structure, not decoration.** A shot that stops a scroll is not a filter, a font or
13
+ a louder thumbnail. It is built: framing, key light, a turn at the right second, silence one beat
14
+ before the cut. Eye-catchiness is engineering.
15
+ 2. **It is angle-dependent.** The wing changes with the viewer's position, the way a hook changes
16
+ with the platform, the crop, and the first second on a phone screen. We judge our work from the
17
+ viewer's angle — which is why the eyes exist, and why they grade everything.
18
+ 3. **Metamorphosis.** A film here passes through stages as different from each other as egg, larva,
19
+ pupa and adult: premise to beats to shots to plates to cut to release. Each stage is a different
20
+ department, run by a different seat, ending in a gate.
21
+
22
+ ## Mission
23
+
24
+ Produce short vertical films that win the first second, and be able to say **exactly which model
25
+ made which frame, and why**. The credits are not a vanity feature; they are how the house audits
26
+ itself, prices itself, and stays honest about what is synthetic.
27
+
28
+ ## What the house is not
29
+
30
+ * **Not a content farm.** The repertoire is a small number of *different* films, not one film
31
+ re-uploaded. YouTube's policies on inauthentic and mass-produced content are a real business risk,
32
+ and a house that generates forty near-identical videos is a policy violation with a GPU bill.
33
+ * **Not a licence-launderer.** A seat running a non-commercial model may never be credited on a
34
+ monetized upload. That is why every engine carries a licence in `03-engine-roster.md`, and why `G3`
35
+ is a gate rather than a footnote.
36
+ * **Not autonomous.** The house proposes; the human releases. See below.
37
+ * **Not a training project.** We use published open weights. Nothing here fine-tunes.
38
+
39
+ ## What "done" means for one film
40
+
41
+ A film is done when all five gates have passed and its credits are complete:
42
+
43
+ | gate | name | passes when |
44
+ |---|---|---|
45
+ | `G0` | Greenlight | the Executive Producer accepts the premise as shootable |
46
+ | `G1` | Hook | the eyes score the hook frame at or above the house threshold (7.0/10) |
47
+ | `G2` | Continuity | no shot contradicts the cast, set or wardrobe sheets |
48
+ | `G3` | Licence | every engine used is clear for monetized release |
49
+ | `G4` | Technical QC | loudness, aspect, duration and captions all in spec |
50
+
51
+ A gate that has not run is **not** a pass. The monitor reports `not run` separately from `ok` for
52
+ exactly this reason: silence is never evidence.
53
+
54
+ ## The Studio Head (the human)
55
+
56
+ One seat in this house cannot be automated, and that is the human.
57
+
58
+ * They own **the final cut**. The house has no authority to publish.
59
+ * They own **the identity of the channel**: the house may not invent a persona, borrow a real
60
+ person's likeness, or imply that a real event happened.
61
+ * They are the only seat who can **waive a gate**, and every waiver is recorded as an event with
62
+ their name on it. A waived gate is a debt the film carries into release.
63
+
64
+ ## Constitution (summary; full text in `04-production-rules.md`)
65
+
66
+ 1. The bible is the only handoff. Work not in `production.json` did not happen.
67
+ 2. One key, one owner. No two seats write the same section.
68
+ 3. No seat may mark its own work as passed. Grading is always another seat's job.
69
+ 4. Nothing is reported that was not observed — status is derived from probes, never asserted.
70
+ 5. Every artifact carries its engine, model revision and seed, or it cannot be credited.
71
+ 6. Every render is reproducible from the ledger alone.
72
+ 7. The eyes judge every frame that ships. A film with no scores has not been watched.
73
+ 8. Silence before the turn. Drop the sound one beat before the reveal; the drop is the hook.
docs/01-org-chart.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 01 - Org Chart
2
+
3
+ ## Above and below the line
4
+
5
+ Film crews split into **above the line** (the people who decide what the film is, usually paid
6
+ against it) and **below the line** (the people who make it happen). This house keeps that
7
+ distinction, because it maps onto *who may change the film* versus *who may only execute it*.
8
+
9
+ | | Line | Seats | Authority |
10
+ |---|---|---|---|
11
+ | **Above** | Development, Direction, Story | 6 | may change *what the film is*. Can reject a premise, rewrite beats, re-cut. |
12
+ | **Below** | Cast, Art, Light, Camera, Sound, Post, Release, Ops | 23 | may change *how it looks and sounds*. Cannot change the story; must flag conflicts upward. |
13
+
14
+ ## Departments
15
+
16
+ | Department | Seats | Who sits in them |
17
+ |---|---|---|
18
+ | Development | 1 | Executive Producer |
19
+ | Direction | 1 | Director / Coordinator |
20
+ | Story | 4 | Author, Narration Writer, Continuity / Script Supervisor, Compliance Officer |
21
+ | Cast | 4 | Casting Director, Voice Bank, Performance / Lip-sync, NPC Behaviour |
22
+ | Art | 2 | Production Designer, Set Dresser (layout) |
23
+ | Light | 3 | Director of Photography, Gaffer (relight), Colorist |
24
+ | Camera | 2 | Cinematographer (renderer), Storyboard Artist |
25
+ | Sound | 4 | Sound Designer, Foley Engine, Composer, Re-recording Mixer |
26
+ | Post | 4 | Editor (cut plan), Editor (assembly), VFX / Compositing, Titles & Thumbnails |
27
+ | Release | 2 | Publisher (copy), Analyst |
28
+ | Ops | 2 | DevOps, Archivist |
29
+
30
+ ## Reporting lines
31
+
32
+ ```
33
+ Studio Head (human)
34
+ |
35
+ Executive Producer .............. owns G0; may kill a premise, may not write one
36
+ |
37
+ Director / Coordinator .......... owns the shoot loop and the final cut order
38
+ |--- Author / Narration ....... story-side text (logline, hook, beats, voice-over)
39
+ |--- Casting .................. cast + NPCs
40
+ |--- Production Designer ...... sets
41
+ |--- DoP / Gaffer / Colorist .. light, relight, grade
42
+ |--- Sound Designer / Composer / Foley / Mixer
43
+ |--- Cinematographer .......... renders the plates (the only seat that spends serious time)
44
+ |
45
+ Editor .......................... owns pace, cuts, captions (Post); reports to Director
46
+ Publisher ....................... owns title/thumbnail/description; reports to Director + Compliance
47
+ Analyst ......................... reports to Executive Producer (feeds retention back into G1)
48
+ Compliance Officer .............. reports to the Studio Head, NOT the Director
49
+ DevOps / Archivist .............. report to nobody creative; they keep the box alive
50
+ ```
51
+
52
+ **Why Compliance reports to the human and not the Director:** the seat that decides whether a film
53
+ may be monetized must not be the seat that wants it shipped. Every audit function in this house is
54
+ separated from the line it audits - the same reason no seat grades its own work.
55
+
56
+ ## The bible is the handoff
57
+
58
+ There is no chat between seats. Work moves through `production.json`, a dict with one owner per key:
59
+
60
+ | Key | Written by | Read by |
61
+ |---|---|---|
62
+ | `premise` | Studio Head | everyone |
63
+ | `logline`, `hook`, `beats` | Author | Director, Narration, Publisher |
64
+ | `shots` | Director | everyone downstream |
65
+ | `cast`, `npcs` | Casting | Director, Light, Camera, Continuity, VFX |
66
+ | `sets` | Production Designer | Light, Camera |
67
+ | `lighting` | DoP | Camera, Gaffer, Colorist |
68
+ | `sound` | Sound Designer | Composer, Foley, Mixer |
69
+ | `narration` | Narration | Voice Bank, Editor |
70
+ | `edit` | Editor | Mixer, Publisher, Editor (assembly) |
71
+ | `title`, `thumbnail`, `description` | Publisher | Release, Analyst |
72
+
73
+ A missing section is a hard stop for everything downstream of it. `merge()` ignores keys a seat was
74
+ not briefed to write, so no seat can quietly edit another department's work.
75
+
76
+ ## The shoot loop
77
+
78
+ The Director is plain Python, not a prompt. `order(bible)` walks the departments in dependency
79
+ order, briefs each seat with the bible as standing material, parses their JSON, and merges it back.
80
+ That is deliberate: **the coordination logic of this house is readable, diffable and re-runnable**,
81
+ rather than a hidden chain of prompt-hopping. The Director is where you change how the house works,
82
+ and it is twenty lines you can argue with.
83
+
84
+ ## Where the gates sit
85
+
86
+ | Gate | After | Who runs it | Blocks |
87
+ |---|---|---|---|
88
+ | `G0` Greenlight | premise | Executive Producer | everything |
89
+ | `G1` Hook | first render of the hook shot | the eyes (`review_shot`) | the shoot - no budget on an unproven hook |
90
+ | `G2` Continuity | all shots rendered | Continuity / Script Supervisor | the cut |
91
+ | `G3` Licence | engines chosen | Compliance Officer | release (checked *before* the expensive render where possible) |
92
+ | `G4` Technical QC | the cut exists | Re-recording Mixer + Editor | release |
93
+
94
+ Note the ordering principle: **the cheap gates come first**. `G0` costs nothing, `G1` costs one
95
+ image, `G2` costs one vision pass, and `G4` costs the whole render - so a film is never allowed to
96
+ reach its expensive stage with a cheap question unanswered.
docs/02-role-charters.md ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 02 — Role Charters
2
+
3
+ *Generated from the live `ROSTER` object. Each charter is the exact system prompt the seat runs on
4
+ in the notebook — it is a job description the box actually enforces, not documentation that rots.*
5
+
6
+ A charter has four parts:
7
+
8
+ | part | meaning |
9
+ |---|---|
10
+ | **Charter** | the standing instruction, injected as the system prompt |
11
+ | **Brief** | the one task the Coordinator hands this seat |
12
+ | **Writes** | the bible keys this seat *owns*. One key, one owner — enforced by `merge()` |
13
+ | **Returns** | the JSON contract the seat must satisfy |
14
+
15
+ ## Write the logline, the first-second hook, and four beats. — `author`
16
+
17
+ **Seat** Author · **Department** Story · **Engine** Qwen3-VL-8B via consult('author') · **Deliverable** logline, hook, beats
18
+
19
+ *Why this engine:* Writing, directing and critique share one set of weights, so nothing is swapped in and out and no VRAM is doubled.
20
+
21
+ **Writes:** `logline`, `hook`, `beats`
22
+
23
+ ```text
24
+ You are the Author of an automated film studio. You write 40-second vertical
25
+ shorts that must win the scroll in the first second. Concrete images, never abstractions.
26
+ Dialogue only if it lands in one breath.
27
+ Reply with JSON only: {"logline": "...", "hook": "what happens in second 0-1",
28
+ "beats": [{"start": 0.0, "end": 8.0, "beat": "...", "turn": "..."}]}
29
+ ```
30
+
31
+ ## Break the beats into shots, in order, each with its framing and action. — `director`
32
+
33
+ **Seat** Director / Coordinator · **Department** Direction · **Engine** Qwen3-VL-8B text + order() dispatcher · **Deliverable** shot list, cut order
34
+
35
+ *Why this engine:* Direction is plain Python: the loop that calls each department is a cell you can read, edit and rerun.
36
+
37
+ **Writes:** `shots`
38
+
39
+ ```text
40
+ You are the Director. You own the shot list and the final cut, and you cut
41
+ anything that does not serve the hook. Every shot must be shootable by a text-to-video model:
42
+ one subject, one action, one light. Four to six shots.
43
+ Reply with JSON only: {"shots": [{"n": 1, "seconds": 4, "framing": "...", "action": "...",
44
+ "payoff": "..."}]}
45
+ ```
46
+
47
+ ## Cast the actors who recur and the NPCs who populate the world. — `casting`
48
+
49
+ **Seat** Casting Director · **Department** Cast · **Engine** Qwen3-VL-8B via consult('casting') · **Deliverable** cast, npcs
50
+
51
+ *Why this engine:* Casting a character is a description problem, which text mode solves at zero extra cost.
52
+
53
+ **Writes:** `cast`, `npcs`
54
+
55
+ ```text
56
+ You are the Casting Director. You define recurring characters an image model
57
+ can reproduce identically: age, build, wardrobe, one distinctive detail. You also cast the NPCs,
58
+ who exist only to make the world feel inhabited.
59
+ Reply with JSON only: {"cast": [{"id": "...", "look": "...", "voice": "..."}],
60
+ "npcs": [{"id": "...", "behaviour": "..."}]}
61
+ ```
62
+
63
+ ## Design the sets the shot list needs. — `set`
64
+
65
+ **Seat** Production Designer · **Department** Art · **Engine** Qwen3-VL-8B via consult('set') · **Deliverable** sets
66
+
67
+ *Why this engine:* Emits buildable plates an image model can render with no further interpretation.
68
+
69
+ **Writes:** `sets`
70
+
71
+ ```text
72
+ You are the Set Designer. You describe places a text-to-image model can build
73
+ as a plate: weather, era, texture, and one landmark that still reads at thumbnail size.
74
+ Reply with JSON only: {"sets": [{"name": "...", "description": "...", "landmark": "..."}]}
75
+ ```
76
+
77
+ ## Light every shot in the list. — `lighting`
78
+
79
+ **Seat** Director of Photography · **Department** Light · **Engine** Qwen3-VL-8B via consult('lighting') · **Deliverable** per-shot lighting
80
+
81
+ *Why this engine:* Deciding light is a language task, so it costs nothing beyond the resident model.
82
+
83
+ **Writes:** `lighting`
84
+
85
+ ```text
86
+ You are the Director of Photography. You own light and colour for every shot:
87
+ key, fill, rim, time of day, palette, and the contrast that survives a two-inch phone screen.
88
+ One entry per shot, matching the shot numbers.
89
+ Reply with JSON only: {"lighting": [{"n": 1, "key": "...", "palette": "...", "mood": "..."}]}
90
+ ```
91
+
92
+ ## Score and sound every shot, including where to drop to silence. — `sound`
93
+
94
+ **Seat** Sound Designer · **Department** Sound · **Engine** Qwen3-VL-8B via consult('sound') · **Deliverable** per-shot sound plan
95
+
96
+ *Why this engine:* Specifying score, foley and silence is writing, and the writing is already paid for.
97
+
98
+ **Writes:** `sound`
99
+
100
+ ```text
101
+ You are the Sound Designer. You specify score, foley, and silence. Silence is
102
+ a tool: cut everything one beat before the turn. One entry per shot, matching the shot numbers.
103
+ Reply with JSON only: {"sound": [{"n": 1, "score": "...", "sfx": "...", "silence": "..."}]}
104
+ ```
105
+
106
+ ## Write the voice-over, shot by shot, and cast the voice. — `narration`
107
+
108
+ **Seat** Narration Writer · **Department** Story · **Engine** Qwen3-VL-8B via consult('narration') · **Deliverable** voice-over lines
109
+
110
+ *Why this engine:* Voice-over and its casting happen in the same pass as the rest of the script.
111
+
112
+ **Writes:** `narration`
113
+
114
+ ```text
115
+ You are the Narration Writer. You write voice-over and cast the voice.
116
+ Narration adds what the picture cannot show and never describes the picture. Under 25 words
117
+ per shot. One entry per shot, matching the shot numbers.
118
+ Reply with JSON only: {"narration": [{"n": 1, "line": "...", "voice": "..."}]}
119
+ ```
120
+
121
+ ## Set the cut pattern, the caption style, and the final runtime. — `editor`
122
+
123
+ **Seat** Editor (cut plan) · **Department** Post · **Engine** Qwen3-VL-8B via consult('editor') · **Deliverable** cut pattern, captions
124
+
125
+ *Why this engine:* Pace and caption decisions are text, so the edit is settled before a frame is rendered.
126
+
127
+ **Writes:** `edit`
128
+
129
+ ```text
130
+ You are the Editor. You own pace, cuts, captions, and aspect. Vertical 9:16.
131
+ Cut on movement or on the turn, never on a beat that has nothing to say.
132
+ Reply with JSON only: {"edit": {"cut_pattern": "...", "captions": "...", "runtime": "..."}}
133
+ ```
134
+
135
+ ## Write the title, the thumbnail brief, and the description. — `publisher`
136
+
137
+ **Seat** Publisher (copy) · **Department** Release · **Engine** Qwen3-VL-8B via consult('publisher') · **Deliverable** title, thumbnail brief
138
+
139
+ *Why this engine:* Title and thumbnail copy are written in the same breath as the film, not bolted on later.
140
+
141
+ **Writes:** `title`, `thumbnail`, `description`
142
+
143
+ ```text
144
+ You are the Publisher. You write the title, the thumbnail brief, and the
145
+ description for a platform that only rereads the first three words.
146
+ Reply with JSON only: {"title": "...", "thumbnail": "...", "description": "..."}
147
+ ```
docs/03-engine-roster.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 03 — Engine Roster: who runs on what, and why
2
+
3
+ *Generated from the live ledger (`docs/assets/crew.json`). Regenerate from the notebook's `CREW`
4
+ object so this table can never drift from the code that enforces it.*
5
+
6
+ Every seat is a **(department, title, engine, artifact, reason)** tuple, and the reason is a claim
7
+ the box can check. `Seat.status` is derived, never asserted: a seat is `LIVE` only when the library
8
+ imports *and* the weights are on disk.
9
+
10
+ ## The whole house (29 seats)
11
+
12
+ | Dept | Seat | Engine / model | License | Artifact | Why this engine |
13
+ |---|---|---|---|---|---|
14
+ | Art | Production Designer | Qwen3-VL-8B via consult('set') | apache-2.0 | sets | Emits buildable plates an image model can render with no further interpretation. |
15
+ | Art | Set Dresser (layout) | Depth Anything V2 + SAM 2 | apache-2.0 | depth maps, mattes | Real depth maps and mattes mean a shot can be re-staged without re-rendering the world. |
16
+ | Camera | Cinematographer (renderer) | LTX-Video / Wan2.2-T2V-A14B | ⚠︎ verify | shot plates | LTX buys seconds-per-iteration hook tests; Wan is spent only on shots that must carry the film. |
17
+ | Camera | Storyboard Artist | FLUX.1-schnell | apache-2.0 | storyboard panels | A storyboard panel costs a fraction of a video render, so bad ideas die before they get expensive. |
18
+ | Cast | Casting Director | Qwen3-VL-8B via consult('casting') | apache-2.0 | cast, npcs | Casting a character is a description problem, which text mode solves at zero extra cost. |
19
+ | Cast | NPC Behaviour | consult() policies + video model | apache-2.0 | background action | Extras run small deterministic policies, so background life is controllable rather than random noise. |
20
+ | Cast | Performance / Lip-sync | LatentSync | openrail++ | performed shots | Lip-sync is driven by the generated audio, so performance stays welded to the voice track. |
21
+ | Cast | Voice Bank | Kokoro-82M | apache-2.0 | voice tracks | 82M params makes a whole script cheap to voice and leaves VRAM for the video models. |
22
+ | Development | Executive Producer | hook-score gate in plain Python | — | greenlight decision | The greenlight rule is readable code you can argue with, not a hidden judgement. |
23
+ | Direction | Director / Coordinator | Qwen3-VL-8B text + order() dispatcher | apache-2.0 | shot list, cut order | Direction is plain Python: the loop that calls each department is a cell you can read, edit and rerun. |
24
+ | Light | Colorist | ffmpeg lut3d/curves + numpy | — | graded master | Deterministic and VRAM-free, so the grade reproduces frame-for-frame on every rerun. |
25
+ | Light | Director of Photography | Qwen3-VL-8B via consult('lighting') | apache-2.0 | per-shot lighting | Deciding light is a language task, so it costs nothing beyond the resident model. |
26
+ | Light | Gaffer (relight) | IC-Light | ⚠︎ verify | relit plates | Relighting a finished plate is far cheaper than re-rendering motion for a lighting note. |
27
+ | Ops | Archivist | HF hub (tkhjeff) + 6.6 TB local disk | — | asset archive | Local disk for working media, HF for the archive, so nothing is ever rendered twice. |
28
+ | Ops | DevOps | opencode agent | — | working toolchain | The box can extend itself: a missing engine becomes a task, not a dead end. |
29
+ | Post | Editor (assembly) | ffmpeg from the bible's edit section | — | master cut | The cut list is data, so the edit is diffable, reviewable and re-renderable. |
30
+ | Post | Editor (cut plan) | Qwen3-VL-8B via consult('editor') | apache-2.0 | cut pattern, captions | Pace and caption decisions are text, so the edit is settled before a frame is rendered. |
31
+ | Post | Titles & Thumbnails | PIL typography + review_shot() | — | title card, thumbnail | The same critic that grades the shots grades the thumbnail, so clickability is measured, not guessed. |
32
+ | Post | VFX / Compositing | rembg + SAM 2 + ffmpeg overlay | — | composited shots | Alpha mattes allow surgical fixes after the render instead of paying for a reshoot. |
33
+ | Release | Analyst | YouTube Analytics API | — | hook recalibration | The metric that actually pays gets fed back into the score the house optimises. |
34
+ | Release | Publisher (copy) | Qwen3-VL-8B via consult('publisher') | apache-2.0 | title, thumbnail brief | Title and thumbnail copy are written in the same breath as the film, not bolted on later. |
35
+ | Sound | Composer | MusicGen | **NC — blocked** | music stem | A distinct score per film instead of one loop recycled across every upload. |
36
+ | Sound | Foley Engine | MMAudio (video-to-audio) | **NC — blocked** | sfx stem | Audio generated from the picture syncs to the action with no hand alignment at all. |
37
+ | Sound | Re-recording Mixer | ffmpeg filter graph | — | final mix | Loudness targets and ducking are exact, free, and re-runnable from a text file. |
38
+ | Sound | Sound Designer | Qwen3-VL-8B via consult('sound') | apache-2.0 | per-shot sound plan | Specifying score, foley and silence is writing, and the writing is already paid for. |
39
+ | Story | Author | Qwen3-VL-8B via consult('author') | apache-2.0 | logline, hook, beats | Writing, directing and critique share one set of weights, so nothing is swapped in and out and no VRAM is doubled. |
40
+ | Story | Compliance Officer | consult() + policy rubric | apache-2.0 | disclosure, policy pass | The rubric lives in the notebook as editable text, so the rules stay auditable rather than implicit. |
41
+ | Story | Continuity / Script Supervisor | look() vision pass | apache-2.0 | continuity notes | One canonical visual judge checks the frames it also scored, so continuity has a single standard. |
42
+ | Story | Narration Writer | Qwen3-VL-8B via consult('narration') | apache-2.0 | voice-over lines | Voice-over and its casting happen in the same pass as the rest of the script. |
43
+
44
+ ## Status legend
45
+
46
+ | Status | Meaning | How it is proven |
47
+ |---|---|---|
48
+ | `LIVE` | engine present and weights cached — may be credited on a released film | `importlib` probe + `snapshots/*/*.safetensors` in the HF cache |
49
+ | `engine ready, weights missing` | code path exists, model not downloaded | probe passes, cache glob fails |
50
+ | `to install` | neither present | probe fails |
51
+
52
+ ## License findings (checked against the HF API, 10 repos)
53
+
54
+ Two seats as originally specified are **non-commercial** and cannot be credited on a monetized
55
+ upload. Both have a clean replacement:
56
+
57
+ | Seat | Original engine | License | Ruling | Replacement |
58
+ |---|---|---|---|---|
59
+ | Foley Engine | `hkchengrex/MMAudio` | cc-by-nc-4.0 | **NC — blocked for monetized work** | `tencent/HunyuanVideo-Foley`, or a CC0 foley library |
60
+ | Composer | `facebook/musicgen-small` | cc-by-nc-4.0 | **NC — blocked for monetized work** | `ace-step/ACE-Step-v1-3.5B` (**Apache-2.0**) |
61
+
62
+ Confirmed commercial-safe: `Qwen/Qwen3-VL-8B-Instruct` (Apache-2.0), `Wan-AI/Wan2.2-{T2V,I2V}-A14B-Diffusers` (Apache-2.0),
63
+ `hexgrad/Kokoro-82M` (Apache-2.0), `black-forest-labs/FLUX.1-schnell` (Apache-2.0, gated — accept
64
+ terms once), `depth-anything/Depth-Anything-V2-Small-hf` (Apache-2.0), `ByteDance/LatentSync` (OpenRAIL++).
65
+
66
+ `Lightricks/LTX-Video` ships its own **LTXV Open Weights License 0.X**: a royalty-free,
67
+ non-exclusive grant with *no* non-commercial clause and *no* revenue threshold in the text.
68
+ ⚠︎ But it is a 14.5 KB bespoke license, not an OSI license. Read it in full before a commercial
69
+ release, and re-read it whenever the pinned model version changes.
70
+
71
+ ## The one-model rule
72
+
73
+ Seventeen of the 29 seats are served by **the same resident 8.8B** (Qwen3-VL). That is a
74
+ deliberate architectural decision, not a shortcut:
75
+
76
+ * **No swap cost.** Loading 17.5 GB takes seconds here, but reloading per seat would dominate a
77
+ script pass that is otherwise pure token generation.
78
+ * **One world model.** Author, Director, Casting, DP, Sound and the critic all reason from the same
79
+ weights, so the hook the Author writes is judged by a critic with the same priors.
80
+ * **VRAM headroom.** 17.6 GB of 97.9 GB used leaves ~80 GB for the renderer; nothing competes.
docs/04-production-rules.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 04 - Production Rules
2
+
3
+ Every rule here names the mechanism that enforces it. A rule with no enforcement is a hope, so if you
4
+ break one of these, something should fail rather than someone getting a scolding.
5
+
6
+ ## I. Story and handoff
7
+
8
+ **R1. The bible is the only handoff.** Work that is not in `production.json` did not happen.
9
+ *Enforced by:* `order()` reads and writes only the bible; a seat has no channel to another seat.
10
+
11
+ **R2. One key, one owner.** No two seats write the same section.
12
+ *Enforced by:* `merge()` filters a seat's reply to the keys in its `writes` list, so a rogue key is
13
+ dropped silently rather than overwriting another department.
14
+
15
+ **R3. The hook is written before the shots.** The first second is decided in development, never
16
+ discovered in the edit.
17
+ *Enforced by:* `beats[0]` must exist before `shots` may be written (Director reads beats).
18
+
19
+ **R4. Every shot must be shootable by one prompt.** One subject, one action, one light.
20
+ *Enforced by:* the Director's charter; a shot that names two actions gets split or cut at G2.
21
+
22
+ ## II. Grading and honesty
23
+
24
+ **R5. No seat grades its own work.** Grading is always another seat's job.
25
+ *Enforced by:* the eyes (`review_shot`) score frames; the Author never scores its own script.
26
+
27
+ **R6. Nothing is reported that was not observed.** A seat's status is *derived* from a probe, never
28
+ asserted by the seat.
29
+ *Enforced by:* `Seat.status` - `LIVE` requires the library to import **and** weights on disk. An empty
30
+ probe spec returns `False`, so an unverifiable seat cannot claim to be ready.
31
+
32
+ **R7. `not run` is not `pass`.** Gates have three states and silence is never one of the good ones.
33
+ *Enforced by:* `Monitor.gates()` returns `not run` until a `gated` event exists.
34
+
35
+ **R8. Every artifact carries its engine, revision and seed**, or it cannot be credited.
36
+ *Enforced by:* `schema/event.schema.json`; a credit without `engine` is incomplete by definition.
37
+
38
+ **R9. The eyes watch every frame that ships.** A film with no scores has not been watched.
39
+ *Enforced by:* `G1` requires a `scored` event at or above the house threshold.
40
+
41
+ ## III. Money, licence and risk
42
+
43
+ **R10. Licence is a gate, not a footnote.** No engine whose terms forbid monetized use may be
44
+ credited on a monetized upload.
45
+ *Enforced by:* `G3` + `docs/assets/licenses.json`. Currently blocks two seats (`MMAudio`,
46
+ `musicgen-small`, both cc-by-nc-4.0).
47
+
48
+ **R11. Check licences before the expensive render, not after.** Discovering a licence problem after a
49
+ four-hour render is the most expensive mistake this house can make.
50
+ *Enforced by:* Running `G3` at engine-selection time; the Compliance Officer reports to the human, not
51
+ the Director.
52
+
53
+ **R12. Nothing is invented about real people or events.** No real likeness, no implied real event, no
54
+ invented persona for the channel.
55
+ *Enforced by:* Compliance rubric + the Studio Head's review. This is the one rule with a human-only
56
+ enforcement path, and it stays that way on purpose.
57
+
58
+ **R13. Synthetic content is disclosed** wherever the platform requires it.
59
+ *Enforced by:* the Publisher's `description` must carry the disclosure line; G4 checks the string.
60
+
61
+ **R14. One film, one premiere.** No near-duplicate uploads.
62
+ *Enforced by:* `Archivist` records the content hash of every master; a repeat hash is an alert, not a
63
+ release. Platform policy on mass-produced content is an existential risk to the channel.
64
+
65
+ **R15. Spend the render on a proven hook.** Cheap gates run before expensive work.
66
+ *Enforced by:* gate ordering (G0 free, G1 one image, G2 one vision pass, G4 the whole render).
67
+
68
+ ## IV. The machine
69
+
70
+ **R16. VRAM is a shared resource.** One large model resident at a time; the eyes stay loaded, the
71
+ renderer is scheduled around them.
72
+ *Enforced by:* `Monitor.health()` reports GPU headroom; today 17.6 GB of 97.9 GB is held by the eyes.
73
+
74
+ **R17. Every render is reproducible from the ledger alone.**
75
+ *Enforced by:* `seed` + `model_rev` + `inputs_hash` on every `rendered` event. If you cannot re-render
76
+ it, you cannot fix it.
77
+
78
+ **R18. A seat that cannot produce valid JSON fails loudly.** No guessing, no repair-by-vibes.
79
+ *Enforced by:* `review_shot` returns `{hook_score: None, error: ...}` with the raw reply attached,
80
+ rather than a plausible-looking fiction.
81
+
82
+ **R19. Nothing is deleted.** The ledger is append-only; no seat may rewrite its own history.
83
+ *Enforced by:* `Monitor` is the only writer, and it only appends.
84
+
85
+ **R20. Archive or it did not happen.** Every master, plate and credit file survives the shoot.
86
+ *Enforced by:* `Archivist`; local disk for working media, HF for the archive.
87
+
88
+ ## V. The human
89
+
90
+ **R21. The house proposes; the human releases.** No seat has publish authority.
91
+ *Enforced by:* there is no upload path in the box. Publishing is a human action.
92
+
93
+ **R22. Waivers are recorded.** Only the Studio Head may waive a gate, and a waiver is an event with
94
+ their name on it. A waived gate is a debt the film carries into release.
95
+ *Enforced by:* `Monitor.record(..., action="gated", result="waived", seat="studio_head")`.
96
+
97
+ **R23. Kill it cheap.** An Executive Producer who never says no is not producing; it is spending.
98
+ *Enforced by:* G0 is a real gate with a real `fail` state, and `the-beam-answers-back` has five gates
99
+ `not run` - it is *written*, not *greenlit*.
docs/05-monitoring.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 05 - Monitoring
2
+
3
+ ## The principle
4
+
5
+ > **Nothing is reported that was not observed.**
6
+
7
+ Every number in a report comes from a line on disk. The monitoring layer does not hold state; it
8
+ derives state from an append-only ledger. That means a report can always be traced back to the event
9
+ that produced it, and no seat can rewrite its own history.
10
+
11
+ ## The ledger
12
+
13
+ `ledger/events.jsonl` - one JSON object per line, append-only, written **only** by `Monitor.record()`.
14
+
15
+ | field | why it exists |
16
+ |---|---|
17
+ | `ts` | when. Written by the Monitor, not the seat - a seat cannot backdate its work. |
18
+ | `production` | which film. A slug, so a film can be resumed by name. |
19
+ | `seat`, `department` | who. Matches the seat keys in the credits ledger. |
20
+ | `action` | what kind of act: `greenlight`, `consulted`, `rendered`, `scored`, `gated`, `released`, `installed`, `failed`. |
21
+ | `artifact` | which piece of the film, e.g. `shots[3]`, `make_test_frame()`. |
22
+ | `engine`, `model_rev` | which model did it, pinned to a revision. |
23
+ | `seed`, `inputs_hash` | makes the act reproducible (R17). |
24
+ | `duration_s`, `vram_peak_mb` | what it cost in time and memory. |
25
+ | `score` | the reviewer's score, when the act was a review. |
26
+ | `gate`, `result` | the verdict, and by implication which gate state a film is in. |
27
+ | `note` | the one thing a human needs to know. |
28
+
29
+ Schema: `schema/event.schema.json`.
30
+
31
+ ## What the Monitor derives
32
+
33
+ | view | derived from | answers |
34
+ |---|---|---|
35
+ | `health()` | GPU, RAM, disk, HF cache, ledger size | is the box able to work? |
36
+ | `rollup()` | events grouped by seat | who is actually doing the work, how long they take, how often they fail |
37
+ | `gates(production)` | `gated` events only | can this film be released? |
38
+ | `hook_series(production)` | `scored` events in order | is the film getting better, or just different? |
39
+ | `report()` | all of the above | the one screen a producer reads |
40
+
41
+ Live example, from the real ledger:
42
+
43
+ ```
44
+ box: GPU 19031/97887 MB used (77.0 GB free) - disk capacity unmeasurable - HF cache 52.6 GB - 12 events
45
+
46
+ # control-frame
47
+ gates: G0:not run G1:fail G2:not run G3:not run G4:not run
48
+ hook scores: [('make_test_frame()', 5.0)] (best 5.0, threshold 7.0)
49
+ ```
50
+
51
+ Note what that report is not doing: it is not pretending the film is fine. The control frame scored
52
+ 5.0 against a threshold of 7.0 and is marked `fail`. The lens probe is a synthetic `make_test_frame()`,
53
+ not a render, and the artifact field says so.
54
+
55
+ The disk line reads **`capacity unmeasurable`** rather than a number, because this container's
56
+ overlayfs reports a synthetic ~9.2 EB. A monitoring system that prints a beautiful, meaningless
57
+ number is worse than one that admits it cannot measure - so `health()` detects the impossible value
58
+ and refuses to report it (R6 applied to the monitor itself).
59
+
60
+ ## Alerts (designed; thresholds in code)
61
+
62
+ | alert | fires when | why it matters |
63
+ |---|---|---|
64
+ | `stale_hook` | a film has > 5 `scored` events and the best is below threshold | the hook is not converging; stop spending |
65
+ | `licence_drift` | a credited engine's licence is not in the cleared set | blocks release, and possibly the whole channel |
66
+ | `seat_silent` | a seat has written nothing for a film that has passed its first render | an unstaffed department in a shipped film |
67
+ | `vram_pressure` | free VRAM < 24 GB with the eyes resident | the next render will OOM, not fail gracefully |
68
+ | `gate_bypass` | a `released` event exists without all five gates `ok` | the one failure that turns a business into a liability |
69
+ | `duplicate_master` | a released master's content hash already exists | platform policy risk (R14) |
70
+ | `json_failure` | a `failed` event whose note mentions parse | a seat is drifting off-contract; fix its charter |
71
+
72
+ ## The boards
73
+
74
+ Four views, in the order a producer actually looks at them:
75
+
76
+ 1. **Box board** - GPU, RAM, disk, HF cache, and what is currently resident. *Built:* `health()`.
77
+ 2. **Crew board** - every seat with title, engine, licence, status and the reason it exists.
78
+ *Built:* the notebook's `credits` cell, generated from `CREW`.
79
+ 3. **Production board** - the bible of one film: premise, beats, shots, cast, sets, and the five gate
80
+ states. *Built:* `show_production(production)` + `Monitor.gates()`.
81
+ 4. **Funnel board** - hook scores over versions, per shot; the only board that predicts revenue.
82
+ *Partly built:* `hook_series()` derives it; it is not yet drawn.
83
+
84
+ ## Cost accounting
85
+
86
+ The ledger records `duration_s` and `vram_peak_mb` per act, which is enough to price a film in
87
+ GPU-seconds. On hardware you own, time is the only real cost - so the interesting figure is
88
+ **seconds of GPU per hook point gained**, computed from consecutive `scored` events. That number is
89
+ what tells you whether to iterate on a script or to kill it.
docs/06-credits.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 06 - Credits
2
+
3
+ ## A credit is a claim, and a claim needs evidence
4
+
5
+ In a human film, a credit is a social fact. Here it is an **auditable record**: a credit exists only
6
+ if the ledger contains events proving that seat did that work with that engine. This is why the
7
+ credits are machine-generated from `CREW` rather than typed into a title card - a credit that cannot
8
+ be traced to an event is a fabrication, and this house does not ship fabrications (R6).
9
+
10
+ ## What earns a credit
11
+
12
+ A seat is credited on a film when **all four** hold:
13
+
14
+ | condition | why |
15
+ |---|---|
16
+ | it has ≥ 1 event for that production | it actually worked on this film |
17
+ | those events carry `engine` and `model_rev` | the work is attributable to a specific model revision |
18
+ | the engine was `LIVE` when the work happened | a seat cannot be credited for a model that was not installed |
19
+ | the engine's licence is cleared for monetized release | a non-commercial engine cannot be credited on a monetized film (R10) |
20
+
21
+ That fourth condition is doing real work today: two seats in the ledger (the Foley Engine and the
22
+ Composer) run on cc-by-nc-4.0 models and are therefore **blocked from credits on anything monetized**
23
+ until replaced. The credit table says so rather than quietly leaving them out.
24
+
25
+ ## The credit record
26
+
27
+ Every finished film ships with `credits.json`:
28
+
29
+ ```json
30
+ {
31
+ "production": "the-beam-answers-back",
32
+ "released": null,
33
+ "gates": {"G0": "ok", "G1": "fail", "G2": "not run", "G3": "not run", "G4": "not run"},
34
+ "billing": [
35
+ {"block": "above the line", "seat": "Author", "department": "Story",
36
+ "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "licence": "apache-2.0",
37
+ "work": "logline, hook, beats", "events": 1}
38
+ ],
39
+ "made_with": ["Qwen/Qwen3-VL-8B-Instruct (Apache-2.0)"],
40
+ "disclosure": "This film was generated with AI models. No real person or event is depicted."
41
+ }
42
+ ```
43
+
44
+ ## How the credits render
45
+
46
+ Real films bill in blocks, and the order carries meaning: the people who decided what the film *is*
47
+ come first, the people who executed it come after, and the vendors come last. This house follows that
48
+ convention, which conveniently puts the models where a film puts its technical vendors:
49
+
50
+ | block | who |
51
+ |---|---|
52
+ | **A film by** Blue Morpho Production | the house card (`house_card()` in the notebook) |
53
+ | **Above the line** | Executive Producer, Director, Author, Narration |
54
+ | **Department blocks** | Cast, Art, Light, Camera, Sound, Post - each seat with its engine in parentheses |
55
+ | **Made with** | the models, pinned to revisions, with licences |
56
+ | **Disclosure** | the synthetic-content line required by the platform |
57
+ | **Studio Head** | the human, last and named, because they owned the cut |
58
+
59
+ ## Why credits matter to this business, concretely
60
+
61
+ 1. **They are the audit trail.** When a video is demonetized or a claim arrives, the credit record
62
+ says which engine made which second, under which licence.
63
+ 2. **They price the film.** Combined with the ledger's `duration_s`, credits show which department
64
+ consumed the budget - and the Camera department always will.
65
+ 3. **They are the learning mechanism.** When a film underperforms, the credits say which seat's
66
+ artifact was on screen at the failure. If the hook failed, the Author and the Cinematographer are
67
+ the suspects, not the Composer.
68
+ 4. **They are honest by construction.** A house that publishes its own org chart cannot quietly
69
+ pretend its output is not synthetic.
70
+
71
+ ## The one credit that is not automated
72
+
73
+ The Studio Head is credited last and named. Everything above them in the billing block is a model
74
+ doing a job; the person who decided the film was worth making, and who carries the consequences of
75
+ publishing it, is not.
docs/07-roadmap.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 07 - Roadmap
2
+
3
+ Ordered by **dependency and cost**, not by appeal. Each phase closes something that is currently
4
+ open, and the house is not allowed to skip forward: a film cannot be graded before it can be shot.
5
+
6
+ ## Phase 2 - The camera (the open hole)
7
+
8
+ *Nothing in this house can render motion yet. The ledger is explicit about it: the Cameraperson's
9
+ seat is `engine ready, weights missing`.*
10
+
11
+ | decision | choice | why |
12
+ |---|---|---|
13
+ | first renderer | **LTX-Video** (`Lightricks/LTX-Video`) | fastest iteration on Blackwell; hook tests are cheap. Licence is bespoke but royalty-free with no NC clause. |
14
+ | hero renderer | **Wan2.2-T2V-A14B-Diffusers** | Apache-2.0, best quality available at this size; spent only on shots that must carry the film. |
15
+ | storyboard | **FLUX.1-schnell** (Apache-2.0, gated) | panels cost a fraction of a video render, so bad ideas die cheap. |
16
+ | aspect | 9:16, ~4-6 s per shot | short-form vertical. |
17
+
18
+ **Closes:** nothing yet - it *opens* G1, which needs a real render to score.
19
+ **Disk:** ~10-30 GB per model; VRAM fits either one alongside the resident 8.8B eyes.
20
+
21
+ ## Phase 3 - The eyes on video, and continuity
22
+
23
+ *The eyes can already read a single frame and score it. They cannot yet watch a clip.*
24
+
25
+ * Score **clips**, not just stills: the hook lives in motion, and a still cannot show a turn.
26
+ * Continuity pass (`G2`): compare each shot's cast/wardrobe/set against the sheets, flag drift.
27
+ * Wire `review_shot` into the render loop so a shot is re-rendered with its `fix` applied, and the
28
+ score is recorded as an event. **This loop is the product** - render, score, fix, re-render.
29
+
30
+ ## Phase 4 - Sound (and the licence repair)
31
+
32
+ | seat | engine | licence |
33
+ |---|---|---|
34
+ | Voice Bank | `hexgrad/Kokoro-82M` | Apache-2.0 - clean |
35
+ | Composer | **`ace-step/ACE-Step-v1-3.5B`** | Apache-2.0 - **replaces the blocked musicgen-small** |
36
+ | Foley | **`tencent/HunyuanVideo-Foley`** (read terms) or a CC0 library | **replaces the blocked MMAudio** |
37
+ | Mixer | ffmpeg filter graph | free, deterministic, re-runnable |
38
+
39
+ **Closes:** `G3` for audio, and unblocks the two seats that currently cannot be credited on a
40
+ monetized film. **This phase is a licensing prerequisite as much as a creative one.**
41
+
42
+ ## Phase 5 - Assembly and the cut
43
+
44
+ * ffmpeg assembles the cut from the bible's `edit` section: the cut list is data, so it is diffable
45
+ and re-renderable.
46
+ * Titles + thumbnails with PIL typography, and the thumbnail graded by `review_shot` - the same
47
+ critic that grades the shots grades the click.
48
+ * Loudness to spec, captions burned in from the narration.
49
+ * **Closes:** `G4`.
50
+
51
+ ## Phase 6 - Release and the feedback loop
52
+
53
+ * Publishing is a **human** action (R21). The house prepares the package; the Studio Head uploads.
54
+ * **Analyst** (`YouTube Analytics API`): retention curve and swipe-away second, fed back into the
55
+ hook score the house optimises. Without this the house optimises a proxy forever.
56
+ * **Closes:** the loop. This is the phase that turns a film pipeline into a business.
57
+
58
+ ## Phase 7 - Self-maintenance
59
+
60
+ * **opencode** as DevOps: a missing engine becomes a task the box can execute, not a dead end.
61
+ * Licence gate automated: `G3` queries the HF API for every credited engine and fails the film, not
62
+ the release.
63
+ * The roster regenerates its own docs from `CREW`, so the credits cannot drift.
64
+
65
+ ## What is deliberately not on the roadmap
66
+
67
+ * **Fine-tuning.** Nothing here trains. The returns do not justify the risk at this scale.
68
+ * **A 3D virtual stage.** FilmAgent builds Unity scenes; we render frames with T2V models. A 3D
69
+ sandbox gives exact camera control but looks like a 3D sandbox - and this house's thesis is
70
+ eye-catchiness, which pixels win over precision.
71
+ * **Scale.** More films is not the plan; *better hooks* is. See `00-charter.md` on mass-produced
72
+ content risk.
docs/08-research-notes.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 08 - Research Notes
2
+
3
+ What this design learned from, what it stole, and what it rejects. Sources checked while writing
4
+ this, not remembered from training.
5
+
6
+ ## FilmAgent (arXiv:2501.12909, HIT Shenzhen / Tsinghua)
7
+
8
+ A multi-agent framework for end-to-end film automation. It simulates crew roles - **director,
9
+ screenwriter, actors, cinematographer** - across three stages: idea development, scriptwriting, and
10
+ cinematography, with *iterative feedback and revision* between agents to verify intermediate scripts
11
+ and reduce hallucination. Human eval: 3.98/5 average.
12
+
13
+ **The finding that justifies this entire house:** despite running on the older GPT-4o, the
14
+ coordinated multi-agent team **outperformed a single, stronger model (o1)**. That is the empirical
15
+ argument for a roster with separated duties instead of one clever prompt - and it is why the credits
16
+ here name a seat per artifact rather than crediting "the AI".
17
+
18
+ **What we take:** role separation; the staged pipeline; the revision loop - which in this house is
19
+ `review_shot` feeding a re-render, i.e. G1 as a loop rather than a checkbox.
20
+ **What we reject:** its 3D virtual space. FilmAgent films inside constructed Unity rooms, which gives
21
+ exact camera control but constrains what the film can look like. This house's thesis is
22
+ eye-catchiness, so it renders frames with text-to-video models instead - we trade camera precision
23
+ for pixels, deliberately.
24
+
25
+ ## MovieAgent (arXiv:2503.07314)
26
+
27
+ Hierarchical chain-of-thought planning that auto-structures scenes, camera settings and
28
+ cinematography, with agents for **director, screenwriter, storyboard artist, location manager**.
29
+
30
+ **What we take:** the hierarchical decomposition (premise to beats to shots to settings) and the
31
+ storyboard artist as a *separate, cheaper* seat than the renderer - hence FLUX.1-schnell for panels
32
+ and a video model only for shots that survive. That split is a cost decision the paper's structure
33
+ makes obvious.
34
+
35
+ ## Real film crew structure
36
+
37
+ Above-the-line / below-the-line is the industry's own division between *who decides the film* and
38
+ *who executes it* (Backstage, StudioBinder, Assemble, SetHero). Credits bill in blocks by
39
+ department, with vendors late.
40
+
41
+ **What we take:** the above/below distinction (`01-org-chart.md`), departmental blocks in the
42
+ billing order (`06-credits.md`), and the vendor position for models - which is exactly where a
43
+ renderer belongs, because it sells a service rather than owning the film.
44
+ **What we adapt:** a real crew has an AD (first assistant director) whose whole job is the call
45
+ sheet and the schedule. Here that role collapses into the Director's `order()` loop, because a
46
+ machine does not need to chase people to set - and the call sheet becomes the gate table.
47
+
48
+ ## Craft rules borrowed from editorial and sound practice
49
+
50
+ * **Cut on movement, or on the turn** - not on a beat boundary. Encoded in the Editor's charter.
51
+ * **Silence before the reveal.** Dropping all sound one beat before a turn is the oldest tension
52
+ trick in the medium, and it is the cheapest hook available to a house with no production budget.
53
+ Encoded in the Sound Designer's charter as a required field (`silence`).
54
+ * **The first second is the whole pitch.** Short-form has no cold open; the hook is development work,
55
+ not edit work. Encoded as R3.
56
+
57
+ ## Platform constraints (the business reality)
58
+
59
+ * YouTube monetization requires **1,000 subscribers + 4,000 public watch hours in 12 months**, or
60
+ **10 million Shorts views in 90 days**. Nothing this house renders pays before that.
61
+ * YouTube requires **disclosing realistic altered or synthetic content**, and separately prohibits
62
+ **mass-produced / repetitious** content. A high-volume pipeline is therefore a policy risk, not
63
+ just a quality risk. This is the single most important external constraint on the design, and it is
64
+ why the roadmap optimises hook quality rather than upload count (R14, `07-roadmap.md`).
65
+
66
+ ## Licence audit (performed while writing this, via the HF API)
67
+
68
+ | model | licence | ruling |
69
+ |---|---|---|
70
+ | `hkchengrex/MMAudio` | cc-by-nc-4.0 | **blocked for monetized work** |
71
+ | `facebook/musicgen-small` | cc-by-nc-4.0 | **blocked for monetized work** |
72
+ | `Lightricks/LTX-Video` | LTXV Open Weights License 0.X | royalty-free grant, no NC clause, no revenue threshold found; bespoke, so re-read on every version bump |
73
+ | `lllyasviel/ic-light` | unlabelled (SD1.5 lineage) | verify before crediting |
74
+ | `Qwen/Qwen3-VL-8B-Instruct`, `Wan-AI/Wan2.2-*`, `hexgrad/Kokoro-82M`, `black-forest-labs/FLUX.1-schnell`, `depth-anything/Depth-Anything-V2-Small-hf` | apache-2.0 | clean |
75
+ | `ByteDance/LatentSync` | openrail++ | usable, use-restrictions apply |
76
+ | `ace-step/ACE-Step-v1-3.5B` | apache-2.0 | clean; **replacement for the blocked composer** |
77
+
78
+ The lesson written into the house as R10/R11: **the licence check belongs at engine-selection time,
79
+ not at release time.** Two of the seats in the original roster were unusable for the stated goal and
80
+ nothing in the pipeline would have caught it.
81
+
82
+ ## Techniques worth stealing next
83
+
84
+ * **Xet-weighted download caching** - already exploited: the 17.5 GB eyes download re-used a
85
+ content-addressed cache, and an `lru_cache`d package probe in `transformers` had to be cleared
86
+ before `accelerate` was visible. Both are recorded here because both will recur.
87
+ * **Score the thumbnail with the same critic that scores the shots** - clickability is then measured
88
+ against one standard rather than guessed at (`06-credits.md`, Phase 5).
docs/assets/crew.json ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "key": "author",
4
+ "department": "Story",
5
+ "title": "Author",
6
+ "backend": "Qwen3-VL-8B via consult('author')",
7
+ "advantage": "Writing, directing and critique share one set of weights, so nothing is swapped in and out and no VRAM is doubled.",
8
+ "artifact": "logline, hook, beats",
9
+ "install": "",
10
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
11
+ "status": "LIVE",
12
+ "on_roster": true
13
+ },
14
+ {
15
+ "key": "director",
16
+ "department": "Direction",
17
+ "title": "Director / Coordinator",
18
+ "backend": "Qwen3-VL-8B text + order() dispatcher",
19
+ "advantage": "Direction is plain Python: the loop that calls each department is a cell you can read, edit and rerun.",
20
+ "artifact": "shot list, cut order",
21
+ "install": "",
22
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
23
+ "status": "LIVE",
24
+ "on_roster": true
25
+ },
26
+ {
27
+ "key": "casting",
28
+ "department": "Cast",
29
+ "title": "Casting Director",
30
+ "backend": "Qwen3-VL-8B via consult('casting')",
31
+ "advantage": "Casting a character is a description problem, which text mode solves at zero extra cost.",
32
+ "artifact": "cast, npcs",
33
+ "install": "",
34
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
35
+ "status": "LIVE",
36
+ "on_roster": true
37
+ },
38
+ {
39
+ "key": "set",
40
+ "department": "Art",
41
+ "title": "Production Designer",
42
+ "backend": "Qwen3-VL-8B via consult('set')",
43
+ "advantage": "Emits buildable plates an image model can render with no further interpretation.",
44
+ "artifact": "sets",
45
+ "install": "",
46
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
47
+ "status": "LIVE",
48
+ "on_roster": true
49
+ },
50
+ {
51
+ "key": "lighting",
52
+ "department": "Light",
53
+ "title": "Director of Photography",
54
+ "backend": "Qwen3-VL-8B via consult('lighting')",
55
+ "advantage": "Deciding light is a language task, so it costs nothing beyond the resident model.",
56
+ "artifact": "per-shot lighting",
57
+ "install": "",
58
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
59
+ "status": "LIVE",
60
+ "on_roster": true
61
+ },
62
+ {
63
+ "key": "sound",
64
+ "department": "Sound",
65
+ "title": "Sound Designer",
66
+ "backend": "Qwen3-VL-8B via consult('sound')",
67
+ "advantage": "Specifying score, foley and silence is writing, and the writing is already paid for.",
68
+ "artifact": "per-shot sound plan",
69
+ "install": "",
70
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
71
+ "status": "LIVE",
72
+ "on_roster": true
73
+ },
74
+ {
75
+ "key": "narration",
76
+ "department": "Story",
77
+ "title": "Narration Writer",
78
+ "backend": "Qwen3-VL-8B via consult('narration')",
79
+ "advantage": "Voice-over and its casting happen in the same pass as the rest of the script.",
80
+ "artifact": "voice-over lines",
81
+ "install": "",
82
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
83
+ "status": "LIVE",
84
+ "on_roster": true
85
+ },
86
+ {
87
+ "key": "editor",
88
+ "department": "Post",
89
+ "title": "Editor (cut plan)",
90
+ "backend": "Qwen3-VL-8B via consult('editor')",
91
+ "advantage": "Pace and caption decisions are text, so the edit is settled before a frame is rendered.",
92
+ "artifact": "cut pattern, captions",
93
+ "install": "",
94
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
95
+ "status": "LIVE",
96
+ "on_roster": true
97
+ },
98
+ {
99
+ "key": "publisher",
100
+ "department": "Release",
101
+ "title": "Publisher (copy)",
102
+ "backend": "Qwen3-VL-8B via consult('publisher')",
103
+ "advantage": "Title and thumbnail copy are written in the same breath as the film, not bolted on later.",
104
+ "artifact": "title, thumbnail brief",
105
+ "install": "",
106
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
107
+ "status": "LIVE",
108
+ "on_roster": true
109
+ },
110
+ {
111
+ "key": null,
112
+ "department": "Camera",
113
+ "title": "Cinematographer (renderer)",
114
+ "backend": "LTX-Video / Wan2.2-T2V-A14B",
115
+ "advantage": "LTX buys seconds-per-iteration hook tests; Wan is spent only on shots that must carry the film.",
116
+ "artifact": "shot plates",
117
+ "install": "HF Lightricks/LTX-Video",
118
+ "weights": "Lightricks/LTX-Video",
119
+ "status": "engine ready, weights missing",
120
+ "on_roster": false
121
+ },
122
+ {
123
+ "key": null,
124
+ "department": "Camera",
125
+ "title": "Storyboard Artist",
126
+ "backend": "FLUX.1-schnell",
127
+ "advantage": "A storyboard panel costs a fraction of a video render, so bad ideas die before they get expensive.",
128
+ "artifact": "storyboard panels",
129
+ "install": "HF black-forest-labs/FLUX.1-schnell",
130
+ "weights": "black-forest-labs/FLUX.1-schnell",
131
+ "status": "engine ready, weights missing",
132
+ "on_roster": false
133
+ },
134
+ {
135
+ "key": null,
136
+ "department": "Art",
137
+ "title": "Set Dresser (layout)",
138
+ "backend": "Depth Anything V2 + SAM 2",
139
+ "advantage": "Real depth maps and mattes mean a shot can be re-staged without re-rendering the world.",
140
+ "artifact": "depth maps, mattes",
141
+ "install": "HF depth-anything-v2, sam2",
142
+ "weights": "depth-anything/Depth-Anything-V2-Small-hf",
143
+ "status": "engine ready, weights missing",
144
+ "on_roster": false
145
+ },
146
+ {
147
+ "key": null,
148
+ "department": "Light",
149
+ "title": "Gaffer (relight)",
150
+ "backend": "IC-Light",
151
+ "advantage": "Relighting a finished plate is far cheaper than re-rendering motion for a lighting note.",
152
+ "artifact": "relit plates",
153
+ "install": "HF lllyasviel/ic-light",
154
+ "weights": "lllyasviel/ic-light",
155
+ "status": "engine ready, weights missing",
156
+ "on_roster": false
157
+ },
158
+ {
159
+ "key": null,
160
+ "department": "Light",
161
+ "title": "Colorist",
162
+ "backend": "ffmpeg lut3d/curves + numpy",
163
+ "advantage": "Deterministic and VRAM-free, so the grade reproduces frame-for-frame on every rerun.",
164
+ "artifact": "graded master",
165
+ "install": "",
166
+ "weights": "",
167
+ "status": "LIVE",
168
+ "on_roster": false
169
+ },
170
+ {
171
+ "key": null,
172
+ "department": "Cast",
173
+ "title": "Voice Bank",
174
+ "backend": "Kokoro-82M",
175
+ "advantage": "82M params makes a whole script cheap to voice and leaves VRAM for the video models.",
176
+ "artifact": "voice tracks",
177
+ "install": "pip kokoro, HF hexgrad/Kokoro-82M",
178
+ "weights": "hexgrad/Kokoro-82M",
179
+ "status": "to install",
180
+ "on_roster": false
181
+ },
182
+ {
183
+ "key": null,
184
+ "department": "Cast",
185
+ "title": "Performance / Lip-sync",
186
+ "backend": "LatentSync",
187
+ "advantage": "Lip-sync is driven by the generated audio, so performance stays welded to the voice track.",
188
+ "artifact": "performed shots",
189
+ "install": "HF ByteDance/LatentSync",
190
+ "weights": "ByteDance/LatentSync",
191
+ "status": "to install",
192
+ "on_roster": false
193
+ },
194
+ {
195
+ "key": null,
196
+ "department": "Cast",
197
+ "title": "NPC Behaviour",
198
+ "backend": "consult() policies + video model",
199
+ "advantage": "Extras run small deterministic policies, so background life is controllable rather than random noise.",
200
+ "artifact": "background action",
201
+ "install": "video model behind it",
202
+ "weights": "Wan-AI/Wan2.2-T2V-A14B-Diffusers",
203
+ "status": "engine ready, weights missing",
204
+ "on_roster": false
205
+ },
206
+ {
207
+ "key": null,
208
+ "department": "Sound",
209
+ "title": "Foley Engine",
210
+ "backend": "MMAudio (video-to-audio)",
211
+ "advantage": "Audio generated from the picture syncs to the action with no hand alignment at all.",
212
+ "artifact": "sfx stem",
213
+ "install": "HF hkchengrex/MMAudio",
214
+ "weights": "hkchengrex/MMAudio",
215
+ "status": "to install",
216
+ "on_roster": false
217
+ },
218
+ {
219
+ "key": null,
220
+ "department": "Sound",
221
+ "title": "Composer",
222
+ "backend": "MusicGen",
223
+ "advantage": "A distinct score per film instead of one loop recycled across every upload.",
224
+ "artifact": "music stem",
225
+ "install": "HF facebook/musicgen-small",
226
+ "weights": "facebook/musicgen-small",
227
+ "status": "engine ready, weights missing",
228
+ "on_roster": false
229
+ },
230
+ {
231
+ "key": null,
232
+ "department": "Sound",
233
+ "title": "Re-recording Mixer",
234
+ "backend": "ffmpeg filter graph",
235
+ "advantage": "Loudness targets and ducking are exact, free, and re-runnable from a text file.",
236
+ "artifact": "final mix",
237
+ "install": "",
238
+ "weights": "",
239
+ "status": "LIVE",
240
+ "on_roster": false
241
+ },
242
+ {
243
+ "key": null,
244
+ "department": "Post",
245
+ "title": "Editor (assembly)",
246
+ "backend": "ffmpeg from the bible's edit section",
247
+ "advantage": "The cut list is data, so the edit is diffable, reviewable and re-renderable.",
248
+ "artifact": "master cut",
249
+ "install": "",
250
+ "weights": "",
251
+ "status": "LIVE",
252
+ "on_roster": false
253
+ },
254
+ {
255
+ "key": null,
256
+ "department": "Post",
257
+ "title": "VFX / Compositing",
258
+ "backend": "rembg + SAM 2 + ffmpeg overlay",
259
+ "advantage": "Alpha mattes allow surgical fixes after the render instead of paying for a reshoot.",
260
+ "artifact": "composited shots",
261
+ "install": "pip rembg",
262
+ "weights": "",
263
+ "status": "to install",
264
+ "on_roster": false
265
+ },
266
+ {
267
+ "key": null,
268
+ "department": "Post",
269
+ "title": "Titles & Thumbnails",
270
+ "backend": "PIL typography + review_shot()",
271
+ "advantage": "The same critic that grades the shots grades the thumbnail, so clickability is measured, not guessed.",
272
+ "artifact": "title card, thumbnail",
273
+ "install": "",
274
+ "weights": "",
275
+ "status": "LIVE",
276
+ "on_roster": false
277
+ },
278
+ {
279
+ "key": null,
280
+ "department": "Story",
281
+ "title": "Continuity / Script Supervisor",
282
+ "backend": "look() vision pass",
283
+ "advantage": "One canonical visual judge checks the frames it also scored, so continuity has a single standard.",
284
+ "artifact": "continuity notes",
285
+ "install": "",
286
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
287
+ "status": "LIVE",
288
+ "on_roster": false
289
+ },
290
+ {
291
+ "key": null,
292
+ "department": "Story",
293
+ "title": "Compliance Officer",
294
+ "backend": "consult() + policy rubric",
295
+ "advantage": "The rubric lives in the notebook as editable text, so the rules stay auditable rather than implicit.",
296
+ "artifact": "disclosure, policy pass",
297
+ "install": "",
298
+ "weights": "Qwen/Qwen3-VL-8B-Instruct",
299
+ "status": "LIVE",
300
+ "on_roster": false
301
+ },
302
+ {
303
+ "key": null,
304
+ "department": "Development",
305
+ "title": "Executive Producer",
306
+ "backend": "hook-score gate in plain Python",
307
+ "advantage": "The greenlight rule is readable code you can argue with, not a hidden judgement.",
308
+ "artifact": "greenlight decision",
309
+ "install": "",
310
+ "weights": "",
311
+ "status": "LIVE",
312
+ "on_roster": false
313
+ },
314
+ {
315
+ "key": null,
316
+ "department": "Release",
317
+ "title": "Analyst",
318
+ "backend": "YouTube Analytics API",
319
+ "advantage": "The metric that actually pays gets fed back into the score the house optimises.",
320
+ "artifact": "hook recalibration",
321
+ "install": "pip google-api-python-client + OAuth",
322
+ "weights": "",
323
+ "status": "to install",
324
+ "on_roster": false
325
+ },
326
+ {
327
+ "key": null,
328
+ "department": "Ops",
329
+ "title": "DevOps",
330
+ "backend": "opencode agent",
331
+ "advantage": "The box can extend itself: a missing engine becomes a task, not a dead end.",
332
+ "artifact": "working toolchain",
333
+ "install": "npm i -g opencode-ai",
334
+ "weights": "",
335
+ "status": "to install",
336
+ "on_roster": false
337
+ },
338
+ {
339
+ "key": null,
340
+ "department": "Ops",
341
+ "title": "Archivist",
342
+ "backend": "HF hub (tkhjeff) + 6.6 TB local disk",
343
+ "advantage": "Local disk for working media, HF for the archive, so nothing is ever rendered twice.",
344
+ "artifact": "asset archive",
345
+ "install": "",
346
+ "weights": "",
347
+ "status": "LIVE",
348
+ "on_roster": false
349
+ }
350
+ ]
docs/assets/licenses.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "repo": "Qwen/Qwen3-VL-8B-Instruct",
4
+ "license": "apache-2.0",
5
+ "downloads": 5744698,
6
+ "gated": false
7
+ },
8
+ {
9
+ "repo": "Lightricks/LTX-Video",
10
+ "license": "other",
11
+ "downloads": 1385498,
12
+ "gated": false
13
+ },
14
+ {
15
+ "repo": "black-forest-labs/FLUX.1-schnell",
16
+ "license": "apache-2.0",
17
+ "downloads": 284069,
18
+ "gated": "auto"
19
+ },
20
+ {
21
+ "repo": "depth-anything/Depth-Anything-V2-Small-hf",
22
+ "license": "apache-2.0",
23
+ "downloads": 1233157,
24
+ "gated": false
25
+ },
26
+ {
27
+ "repo": "lllyasviel/ic-light",
28
+ "license": "?",
29
+ "downloads": 0,
30
+ "gated": false
31
+ },
32
+ {
33
+ "repo": "hexgrad/Kokoro-82M",
34
+ "license": "apache-2.0",
35
+ "downloads": 13293265,
36
+ "gated": false
37
+ },
38
+ {
39
+ "repo": "ByteDance/LatentSync",
40
+ "license": "openrail++",
41
+ "downloads": 0,
42
+ "gated": false
43
+ },
44
+ {
45
+ "repo": "hkchengrex/MMAudio",
46
+ "license": "cc-by-nc-4.0",
47
+ "downloads": 0,
48
+ "gated": false
49
+ },
50
+ {
51
+ "repo": "facebook/musicgen-small",
52
+ "license": "cc-by-nc-4.0",
53
+ "downloads": 188128,
54
+ "gated": false
55
+ },
56
+ {
57
+ "repo": "Wan-AI/Wan2.2-T2V-A14B-Diffusers",
58
+ "license": "apache-2.0",
59
+ "downloads": 198971,
60
+ "gated": false
61
+ }
62
+ ]
ledger/events.jsonl ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"production": "the-beam-answers-back", "seat": "author", "department": "Story", "action": "consulted", "artifact": "wrote logline, hook, beats", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7048428}
2
+ {"production": "the-beam-answers-back", "seat": "director", "department": "Direction", "action": "consulted", "artifact": "wrote shots", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7050004}
3
+ {"production": "the-beam-answers-back", "seat": "casting", "department": "Cast", "action": "consulted", "artifact": "wrote cast, npcs", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7051082}
4
+ {"production": "the-beam-answers-back", "seat": "set", "department": "Art", "action": "consulted", "artifact": "wrote sets", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7051704}
5
+ {"production": "the-beam-answers-back", "seat": "lighting", "department": "Light", "action": "consulted", "artifact": "wrote lighting", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7052214}
6
+ {"production": "the-beam-answers-back", "seat": "sound", "department": "Sound", "action": "consulted", "artifact": "wrote sound", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7052734}
7
+ {"production": "the-beam-answers-back", "seat": "narration", "department": "Story", "action": "consulted", "artifact": "wrote narration", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7053194}
8
+ {"production": "the-beam-answers-back", "seat": "editor", "department": "Post", "action": "consulted", "artifact": "wrote edit", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7053638}
9
+ {"production": "the-beam-answers-back", "seat": "publisher", "department": "Release", "action": "consulted", "artifact": "wrote title, thumbnail, description", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": null, "inputs_hash": "A lighthouse", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "", "result": "ok", "note": "text pass, no render", "ts": 1795346867.7054317}
10
+ {"production": "the-beam-answers-back", "seat": "vision_model", "department": "Story", "action": "installed", "artifact": "Qwen3-VL-8B weights", "engine": "transformers 5.20.1", "model_rev": "0c351dd", "seed": null, "inputs_hash": "", "duration_s": null, "vram_peak_mb": 17591, "score": null, "gate": "", "result": "ok", "note": "accelerate probe was frozen False; lru_cache cleared", "ts": 1795346867.7054777}
11
+ {"production": "control-frame", "seat": "eyes_review", "department": "Story", "action": "scored", "artifact": "make_test_frame()", "engine": "Qwen3-VL-8B", "model_rev": "0c351dd", "seed": 0, "inputs_hash": "", "duration_s": null, "vram_peak_mb": null, "score": 5.0, "gate": "", "result": "ok", "note": "caught 'car irrelevant to theme'; proposed adding a lone astronomer", "ts": 1795346867.7055533}
12
+ {"production": "control-frame", "seat": "executive_producer", "department": "Development", "action": "gated", "artifact": "", "engine": "", "model_rev": "", "seed": null, "inputs_hash": "", "duration_s": null, "vram_peak_mb": null, "score": null, "gate": "G1", "result": "fail", "note": "5.0 < 7.0 threshold \u2014 control frame is not releasable", "ts": 1795346867.7056136}
schema/event.schema.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Blue Morpho Production \u2014 ledger event",
4
+ "type": "object",
5
+ "required": [
6
+ "ts",
7
+ "production",
8
+ "seat",
9
+ "department",
10
+ "action"
11
+ ],
12
+ "properties": {
13
+ "ts": {
14
+ "type": "number",
15
+ "description": "unix seconds, written by the Monitor"
16
+ },
17
+ "production": {
18
+ "type": "string",
19
+ "description": "slug of the film this belongs to"
20
+ },
21
+ "seat": {
22
+ "type": "string",
23
+ "description": "seat key: author|director|gaffer|... or the title"
24
+ },
25
+ "department": {
26
+ "type": "string"
27
+ },
28
+ "action": {
29
+ "enum": [
30
+ "greenlight",
31
+ "consulted",
32
+ "rendered",
33
+ "scored",
34
+ "gated",
35
+ "released",
36
+ "installed",
37
+ "failed"
38
+ ]
39
+ },
40
+ "artifact": {
41
+ "type": "string",
42
+ "description": "what was produced, e.g. shots[3]"
43
+ },
44
+ "engine": {
45
+ "type": "string",
46
+ "description": "model or binary that did the work"
47
+ },
48
+ "model_rev": {
49
+ "type": "string",
50
+ "description": "pinned revision/hash of the engine"
51
+ },
52
+ "seed": {
53
+ "type": [
54
+ "integer",
55
+ "null"
56
+ ]
57
+ },
58
+ "inputs_hash": {
59
+ "type": "string",
60
+ "description": "hash of prompt+seed+parents, for reproducibility"
61
+ },
62
+ "duration_s": {
63
+ "type": [
64
+ "number",
65
+ "null"
66
+ ]
67
+ },
68
+ "vram_peak_mb": {
69
+ "type": [
70
+ "integer",
71
+ "null"
72
+ ]
73
+ },
74
+ "score": {
75
+ "type": [
76
+ "number",
77
+ "null"
78
+ ],
79
+ "description": "review_shot hook_score when action=scored"
80
+ },
81
+ "gate": {
82
+ "type": "string",
83
+ "description": "G0..G4 when action=gated"
84
+ },
85
+ "result": {
86
+ "enum": [
87
+ "ok",
88
+ "fail",
89
+ "skip",
90
+ ""
91
+ ]
92
+ },
93
+ "note": {
94
+ "type": "string"
95
+ }
96
+ }
97
+ }