Datasets:
Blueprint + decisions: the recipe, the signed waivers, R27/R28
Browse files- README.md +11 -4
- blue_morpho/eyes.py +20 -6
- blue_morpho/file_purposes.json +3 -1
- blue_morpho/hiring.py +53 -13
- blue_morpho/second_opinion.py +153 -0
- blue_morpho/tests/test_hiring.py +17 -2
- casting/keeper_second_opinion.json +29 -0
- docs/04-production-rules.md +15 -0
- docs/10-handbook.md +3 -0
- docs/14-repo-map.md +14 -10
- docs/18-blueprint.md +286 -0
- docs/19-decisions.md +20 -0
- docs/assets/sync.json +5 -5
- ledger/last-sync.json +5 -5
README.md
CHANGED
|
@@ -18,6 +18,8 @@ the model that made it, because the credits are also the audit trail.
|
|
| 18 |
|
| 19 |
**The mirror:** https://huggingface.co/datasets/tkhjeff/BlueMorpho - the readable copy of this plan.
|
| 20 |
|
|
|
|
|
|
|
| 21 |
> **Rule R24:** the Hub mirror is the readable copy of the plan and never lags. Every change ends
|
| 22 |
> with `python -m blue_morpho.publish`, which refuses to upload a house whose tests fail.
|
| 23 |
|
|
@@ -76,10 +78,13 @@ Monitor().record("film-slug", "cinematographer", "Camera", "rendered",
|
|
| 76 |
|
| 77 |
**Open decisions carried into the next session:**
|
| 78 |
|
| 79 |
-
1.
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
## The house
|
| 85 |
|
|
@@ -123,6 +128,8 @@ Monitor().record("film-slug", "cinematographer", "Camera", "rendered",
|
|
| 123 |
| `docs/assets/licenses.json` | **generated** — licence check results |
|
| 124 |
| `docs/09-audit.md` | the adversarial audit: this design vs FilMaster, OpenMontage, and real crews |
|
| 125 |
| `docs/11-hiring.md` | the hiring standard, the refusals, and the GPU call sheet |
|
|
|
|
|
|
|
| 126 |
| `docs/15-collaboration.md` | master and student, main and coworker - the staffing chart |
|
| 127 |
| `docs/13-mcp.md` | **GENERATED** - the MCP surface: tools, resources, seat prompts, the job model |
|
| 128 |
| `docs/14-repo-map.md` | **GENERATED** - every file, every dependency, every reference project |
|
|
|
|
| 18 |
|
| 19 |
**The mirror:** https://huggingface.co/datasets/tkhjeff/BlueMorpho - the readable copy of this plan.
|
| 20 |
|
| 21 |
+
> **One editor.** A duplicated cell on 2026-11-22 was a network artefact, not a second agent - `ctx.cells` is the check.
|
| 22 |
+
|
| 23 |
> **Rule R24:** the Hub mirror is the readable copy of the plan and never lags. Every change ends
|
| 24 |
> with `python -m blue_morpho.publish`, which refuses to upload a house whose tests fail.
|
| 25 |
|
|
|
|
| 78 |
|
| 79 |
**Open decisions carried into the next session:**
|
| 80 |
|
| 81 |
+
1. ~~Two agents are editing the same notebook.~~ **Resolved 2026-11-22:** the duplicated cells were a
|
| 82 |
+
network artefact, not a second agent. One editor only.
|
| 83 |
+
2. ~~Licence sign-offs.~~ **Signed 2026-11-22** by the Studio Head as *"human being"*: LTX-Video,
|
| 84 |
+
Illustrious-XL and NoobAI-XL are hired, the last two carrying a monetization flag on their credits.
|
| 85 |
+
3. **Storage target** for finished masters is still open: local disk (7 TB) versus Hub.
|
| 86 |
+
4. **Camera for hero shots**: LTX-Video was signed for iteration; Wan2.2-T2V-A14B remains scheduled
|
| 87 |
+
with expert offload for hero shots.
|
| 88 |
|
| 89 |
## The house
|
| 90 |
|
|
|
|
| 128 |
| `docs/assets/licenses.json` | **generated** — licence check results |
|
| 129 |
| `docs/09-audit.md` | the adversarial audit: this design vs FilMaster, OpenMontage, and real crews |
|
| 130 |
| `docs/11-hiring.md` | the hiring standard, the refusals, and the GPU call sheet |
|
| 131 |
+
| `docs/18-blueprint.md` | **THE RECIPE** - every department, the standards, the 24-step procedure, and the honest gaps |
|
| 132 |
+
| `docs/19-decisions.md` | the decision register: what only the human could decide, signed |
|
| 133 |
| `docs/15-collaboration.md` | master and student, main and coworker - the staffing chart |
|
| 134 |
| `docs/13-mcp.md` | **GENERATED** - the MCP surface: tools, resources, seat prompts, the job model |
|
| 135 |
| `docs/14-repo-map.md` | **GENERATED** - every file, every dependency, every reference project |
|
blue_morpho/eyes.py
CHANGED
|
@@ -76,14 +76,28 @@ def first_json(text: str) -> dict | None:
|
|
| 76 |
return None
|
| 77 |
|
| 78 |
|
| 79 |
-
def load(model_id: str = MODEL_ID):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
import torch
|
| 81 |
-
from transformers import AutoProcessor,
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
return processor, model
|
| 88 |
|
| 89 |
|
|
|
|
| 76 |
return None
|
| 77 |
|
| 78 |
|
| 79 |
+
def load(model_id: str = MODEL_ID, trust_remote_code: bool = False):
|
| 80 |
+
"""Load an eye.
|
| 81 |
+
|
| 82 |
+
`trust_remote_code=True` is needed by models that ship their own loading code (Kimi-VL does), and
|
| 83 |
+
it means executing third-party code on this machine. It is therefore never the default: the Studio
|
| 84 |
+
Head granted it for the independent coworker on 2026-11-22, under the name "human being".
|
| 85 |
+
"""
|
| 86 |
import torch
|
| 87 |
+
from transformers import AutoProcessor, AutoModelForCausalLM
|
| 88 |
|
| 89 |
+
kwargs = {"trust_remote_code": True} if trust_remote_code else {}
|
| 90 |
+
processor = AutoProcessor.from_pretrained(model_id, **kwargs)
|
| 91 |
+
try:
|
| 92 |
+
from transformers import Qwen3VLForConditionalGeneration
|
| 93 |
+
|
| 94 |
+
model = Qwen3VLForConditionalGeneration.from_pretrained(
|
| 95 |
+
model_id, dtype=torch.bfloat16, device_map="cuda"
|
| 96 |
+
).eval()
|
| 97 |
+
except (ImportError, ValueError, OSError):
|
| 98 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 99 |
+
model_id, dtype=torch.bfloat16, device_map="cuda", **kwargs
|
| 100 |
+
).eval()
|
| 101 |
return processor, model
|
| 102 |
|
| 103 |
|
blue_morpho/file_purposes.json
CHANGED
|
@@ -57,5 +57,7 @@
|
|
| 57 |
"docs/16-casting.md": "The casting protocol: what it tests (audit A2), the four honest outcomes, and what it does not prove.",
|
| 58 |
"casting/*": "CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict.",
|
| 59 |
"plates/*": "RENDERED PLATES (evidence): each take with its reproduction record, shoot sheet and review.",
|
| 60 |
-
"docs/17-animation.md": "The animation track: what cartoons need that live action does not, the new seats, the licence findings (NoobAI blocked), and rule R26."
|
|
|
|
|
|
|
| 61 |
}
|
|
|
|
| 57 |
"docs/16-casting.md": "The casting protocol: what it tests (audit A2), the four honest outcomes, and what it does not prove.",
|
| 58 |
"casting/*": "CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict.",
|
| 59 |
"plates/*": "RENDERED PLATES (evidence): each take with its reproduction record, shoot sheet and review.",
|
| 60 |
+
"docs/17-animation.md": "The animation track: what cartoons need that live action does not, the new seats, the licence findings (NoobAI blocked), and rule R26.",
|
| 61 |
+
"docs/18-blueprint.md": "THE RECIPE: every department (story, direction, casting, wardrobe, makeup, NPCs, sets, light, sound, narration, camera, SFX, CG, robotics, tools, backend, post, release, compliance), the standards, the 24-step procedure, and the honest gaps.",
|
| 62 |
+
"docs/19-decisions.md": "The decision register: every choice only the Studio Head could make, signed, with the risk accepted stated once."
|
| 63 |
}
|
blue_morpho/hiring.py
CHANGED
|
@@ -32,6 +32,23 @@ from pathlib import Path
|
|
| 32 |
ROOT = Path(__file__).resolve().parents[1]
|
| 33 |
HIRES_JSON = ROOT / "docs" / "assets" / "hires.json"
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
# 97,887 MiB measured on this box. Kept in GB for arithmetic, with a reserve we never plan into.
|
| 36 |
VRAM_TOTAL_GB = 95.6
|
| 37 |
HEADROOM_GB = 8.0 # H3: nothing is hired that eats this
|
|
@@ -87,8 +104,11 @@ def vet(candidate: Candidate, budget_gb: float = VRAM_TOTAL_GB) -> tuple[str, st
|
|
| 87 |
`conditional` means: the licence is bespoke, a human has to sign for it, and the waiver is then
|
| 88 |
recorded. A committee that clears bespoke licences by itself is a liability.
|
| 89 |
"""
|
| 90 |
-
if candidate.licence in BLOCKED_LICENCES:
|
| 91 |
return "refuse", f"licence {candidate.licence} forbids monetized use"
|
|
|
|
|
|
|
|
|
|
| 92 |
if candidate.licence in BESPOKE_LICENCES:
|
| 93 |
if candidate.waived_by:
|
| 94 |
verdict = "hire"
|
|
@@ -143,6 +163,20 @@ HIRES: tuple[Candidate, ...] = (
|
|
| 143 |
note="the incumbent: already loaded, already graded a real frame, runs beside a renderer"),
|
| 144 |
# grade 3 - utility
|
| 145 |
# --- the animation track (docs/17-animation.md) ---------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
Candidate("cagliostrolab/animagine-xl-3.1", "illustrator (keyframes, character art)", grade=2,
|
| 147 |
weight_gb=6.9, licence="openrail++", likes=756,
|
| 148 |
note="An anime checkpoint on a standard SDXL base, so ControlNet / LoRA / IP-Adapter all "
|
|
@@ -159,12 +193,12 @@ HIRES: tuple[Candidate, ...] = (
|
|
| 159 |
Candidate("ali-vilab/i2vgen-xl", "inbetweener (image-to-video)", grade=2,
|
| 160 |
weight_gb=24.1, licence="mit", likes=187,
|
| 161 |
note="A permissive image-to-video fallback while ToonCrafter's licence is unverified."),
|
| 162 |
-
Candidate("
|
| 163 |
-
weight_gb=
|
| 164 |
-
note="The
|
| 165 |
-
"
|
| 166 |
-
"
|
| 167 |
-
"
|
| 168 |
Candidate("Qwen/Qwen3-4B-Instruct-2507", "runner / student (format repair, tagging)", grade=3,
|
| 169 |
weight_gb=8.0, licence="apache-2.0", downloads=6_732_614, likes=1_063),
|
| 170 |
Candidate("hexgrad/Kokoro-82M", "voice bank", grade=2, weight_gb=0.4,
|
|
@@ -175,7 +209,7 @@ HIRES: tuple[Candidate, ...] = (
|
|
| 175 |
licence="apache-2.0", likes=500,
|
| 176 |
note="Apache-2.0 replacement for the blocked musicgen-small"),
|
| 177 |
Candidate("Lightricks/LTX-Video", "cinematographer (iteration)", grade=2, weight_gb=28.6,
|
| 178 |
-
licence="other", downloads=1_385_498,
|
| 179 |
note="13B distilled at FULL PRECISION (28.6 GB bf16; the fp8 form is 15.7 GB and is the "
|
| 180 |
"recorded fallback if the phase ever runs tight). Measured - after an earlier guess "
|
| 181 |
"of 24 GB was found wrong by 50% (H1). The repo is 252 GB because it bundles "
|
|
@@ -197,14 +231,20 @@ HIRES: tuple[Candidate, ...] = (
|
|
| 197 |
)
|
| 198 |
|
| 199 |
REJECTS: tuple[tuple[str, str], ...] = (
|
| 200 |
-
("
|
| 201 |
-
|
| 202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
("Doubiiu/ToonCrafter", "inbetweener: licence not declared on the Hub - an undeclared licence is "
|
| 204 |
"not a permissive one. Verification task before hire."),
|
| 205 |
("guoyww/animatediff-motion-adapter-v1-5-2", "motion modules: licence not declared. Verify first."),
|
| 206 |
-
|
| 207 |
-
"held for the Studio Head's recorded waiver, not hired"),
|
| 208 |
("hkchengrex/MMAudio", "foley: cc-by-nc-4.0 - non-commercial"),
|
| 209 |
("facebook/musicgen-small", "composer: cc-by-nc-4.0 - non-commercial"),
|
| 210 |
("black-forest-labs/FLUX.1-Kontext-dev", "editing: FLUX dev licence is non-commercial "
|
|
|
|
| 32 |
ROOT = Path(__file__).resolve().parents[1]
|
| 33 |
HIRES_JSON = ROOT / "docs" / "assets" / "hires.json"
|
| 34 |
|
| 35 |
+
# The only human in the house. Named here because a waiver without a name is not a waiver (R22).
|
| 36 |
+
STUDIO_HEAD = "human being"
|
| 37 |
+
|
| 38 |
+
# Models whose repository ships code that must be executed locally to load them. Running someone
|
| 39 |
+
# else's code on this box is a decision only the Studio Head can make, so it is an allow-list with
|
| 40 |
+
# reasons - never a global switch.
|
| 41 |
+
TRUSTED_REMOTE_CODE = {
|
| 42 |
+
"moonshotai/Kimi-VL-A3B-Instruct": (
|
| 43 |
+
f"approved by {STUDIO_HEAD}: needed to have a second opinion from a DIFFERENT family, which "
|
| 44 |
+
f"is the only kind of second opinion worth having (all our other judges are one family)."),
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def trust_remote_code(repo: str) -> bool:
|
| 49 |
+
"""May this repository's own code run here? Silence means no."""
|
| 50 |
+
return repo in TRUSTED_REMOTE_CODE
|
| 51 |
+
|
| 52 |
# 97,887 MiB measured on this box. Kept in GB for arithmetic, with a reserve we never plan into.
|
| 53 |
VRAM_TOTAL_GB = 95.6
|
| 54 |
HEADROOM_GB = 8.0 # H3: nothing is hired that eats this
|
|
|
|
| 104 |
`conditional` means: the licence is bespoke, a human has to sign for it, and the waiver is then
|
| 105 |
recorded. A committee that clears bespoke licences by itself is a liability.
|
| 106 |
"""
|
| 107 |
+
if candidate.licence in BLOCKED_LICENCES and not candidate.waived_by:
|
| 108 |
return "refuse", f"licence {candidate.licence} forbids monetized use"
|
| 109 |
+
if candidate.licence in BLOCKED_LICENCES and candidate.waived_by:
|
| 110 |
+
return "hire", (f"COMMERCIALLY PROHIBITED LICENCE, waived by {candidate.waived_by} - "
|
| 111 |
+
f"every film crediting this engine carries a monetization risk")
|
| 112 |
if candidate.licence in BESPOKE_LICENCES:
|
| 113 |
if candidate.waived_by:
|
| 114 |
verdict = "hire"
|
|
|
|
| 163 |
note="the incumbent: already loaded, already graded a real frame, runs beside a renderer"),
|
| 164 |
# grade 3 - utility
|
| 165 |
# --- the animation track (docs/17-animation.md) ---------------------------------------
|
| 166 |
+
Candidate("OnomaAIResearch/Illustrious-XL-v1.1", "illustrator (premium anime art)", grade=2,
|
| 167 |
+
weight_gb=6.9, licence="other", likes=92, waived_by="human being",
|
| 168 |
+
note="SIGNED by the Studio Head on 2026-11-22: bespoke licence, accepted knowingly. "
|
| 169 |
+
"MONETIZATION FLAG: a film credited with this engine carries a licensing risk the "
|
| 170 |
+
"house did not clear - visible in its credits, not hidden."),
|
| 171 |
+
# Signed by the Studio Head against the commercial prohibition: "no need to care about the
|
| 172 |
+
# commercial use warning". Recorded once, not relitigated. Note that a waiver here does not change
|
| 173 |
+
# the licence - it records that the house accepts the constraint knowingly.
|
| 174 |
+
Candidate("Laxhar/noobai-XL-1.1", "illustrator (strongest anime art, signed with eyes open)", grade=2,
|
| 175 |
+
weight_gb=14.0, licence="other", likes=208, waived_by="human being",
|
| 176 |
+
note="SIGNED by the Studio Head after being told the licence PROHIBITS commercial use. "
|
| 177 |
+
"MONETIZATION FLAG: HIGH. If a monetized film credits this engine, the house is "
|
| 178 |
+
"relying on the rights-holder not enforcing. Kept on the roster because the boss "
|
| 179 |
+
"asked for the best-lookng anime model; revoke with one word and it is refused again."),
|
| 180 |
Candidate("cagliostrolab/animagine-xl-3.1", "illustrator (keyframes, character art)", grade=2,
|
| 181 |
weight_gb=6.9, licence="openrail++", likes=756,
|
| 182 |
note="An anime checkpoint on a standard SDXL base, so ControlNet / LoRA / IP-Adapter all "
|
|
|
|
| 193 |
Candidate("ali-vilab/i2vgen-xl", "inbetweener (image-to-video)", grade=2,
|
| 194 |
weight_gb=24.1, licence="mit", likes=187,
|
| 195 |
note="A permissive image-to-video fallback while ToonCrafter's licence is unverified."),
|
| 196 |
+
Candidate("OpenGVLab/InternVL3-14B", "eyes (independent coworker)", grade=2,
|
| 197 |
+
weight_gb=30.2, licence="apache-2.0", likes=79,
|
| 198 |
+
note="The independent second opinion, and the third family tried for the job. Native in "
|
| 199 |
+
"transformers 5.20 (no trust_remote_code), Apache-2.0, 30.2 GB so it fits beside the "
|
| 200 |
+
"main eyes. UNPROVEN by the evidence bar (79 likes) - usable as a coworker under "
|
| 201 |
+
"probation, not creditable on a released film until a trial passes."),
|
| 202 |
Candidate("Qwen/Qwen3-4B-Instruct-2507", "runner / student (format repair, tagging)", grade=3,
|
| 203 |
weight_gb=8.0, licence="apache-2.0", downloads=6_732_614, likes=1_063),
|
| 204 |
Candidate("hexgrad/Kokoro-82M", "voice bank", grade=2, weight_gb=0.4,
|
|
|
|
| 209 |
licence="apache-2.0", likes=500,
|
| 210 |
note="Apache-2.0 replacement for the blocked musicgen-small"),
|
| 211 |
Candidate("Lightricks/LTX-Video", "cinematographer (iteration)", grade=2, weight_gb=28.6,
|
| 212 |
+
waived_by=STUDIO_HEAD, licence="other", downloads=1_385_498,
|
| 213 |
note="13B distilled at FULL PRECISION (28.6 GB bf16; the fp8 form is 15.7 GB and is the "
|
| 214 |
"recorded fallback if the phase ever runs tight). Measured - after an earlier guess "
|
| 215 |
"of 24 GB was found wrong by 50% (H1). The repo is 252 GB because it bundles "
|
|
|
|
| 231 |
)
|
| 232 |
|
| 233 |
REJECTS: tuple[tuple[str, str], ...] = (
|
| 234 |
+
("moonshotai/Kimi-VL-A3B-Instruct", "independent coworker: HIRED then BLOCKED IN PRACTICE. Its own "
|
| 235 |
+
"code emits `image_grid_hws`, while transformers 5.20's vision internals expect `grid_thw` - the "
|
| 236 |
+
"model was written against an older framework, so it cannot run on this stack without pinning an "
|
| 237 |
+
"older transformers in a separate environment. Not a licence problem and not a code problem: a "
|
| 238 |
+
"firmware mismatch, reported rather than worked around."),
|
| 239 |
+
("THE ANIME LICENCE PROBLEM", "animagine-xl-3.1 is the only anime checkpoint with a standard "
|
| 240 |
+
"licence. NoobAI and Illustrious are both bespoke, and NoobAI's explicitly prohibits commercial "
|
| 241 |
+
"use. Both are on the roster anyway, on the Studio Head's recorded signature of 2026-11-22 "
|
| 242 |
+
"('human being'), and every film they are credited on carries a monetization flag."),
|
| 243 |
+
|
| 244 |
("Doubiiu/ToonCrafter", "inbetweener: licence not declared on the Hub - an undeclared licence is "
|
| 245 |
"not a permissive one. Verification task before hire."),
|
| 246 |
("guoyww/animatediff-motion-adapter-v1-5-2", "motion modules: licence not declared. Verify first."),
|
| 247 |
+
|
|
|
|
| 248 |
("hkchengrex/MMAudio", "foley: cc-by-nc-4.0 - non-commercial"),
|
| 249 |
("facebook/musicgen-small", "composer: cc-by-nc-4.0 - non-commercial"),
|
| 250 |
("black-forest-labs/FLUX.1-Kontext-dev", "editing: FLUX dev licence is non-commercial "
|
blue_morpho/second_opinion.py
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""A second opinion from a different family.
|
| 2 |
+
|
| 3 |
+
This is why a coworker exists: two models from the *same* family share their blind spots, so agreement
|
| 4 |
+
between them is weak evidence. This asks the independent critic - a different maker - the same question
|
| 5 |
+
the house's own eyes were asked, and reports where they disagree.
|
| 6 |
+
|
| 7 |
+
python -m blue_morpho.second_opinion --cast keeper
|
| 8 |
+
|
| 9 |
+
Runs the model that ships its own loading code, which is why it needs `trust_remote_code`. That
|
| 10 |
+
permission was granted by the Studio Head on 2026-11-22 ("human being"); it is passed explicitly here
|
| 11 |
+
and nowhere else, so an audit can see exactly where third-party code is allowed to run.
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
from __future__ import annotations
|
| 15 |
+
|
| 16 |
+
import argparse
|
| 17 |
+
import json
|
| 18 |
+
import sys
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 22 |
+
CASTING = ROOT / "casting"
|
| 23 |
+
|
| 24 |
+
COWORKER = "OpenGVLab/InternVL3-14B" # native, Apache-2.0, different family
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def frames_from(path: str | Path, count: int = 3):
|
| 28 |
+
"""Frames to show a critic: a still stays a still, a clip gives evenly spaced frames.
|
| 29 |
+
|
| 30 |
+
Even spacing matters for the same reason it matters in `cast`: a critic shown only the opening of a
|
| 31 |
+
shot cannot see the turn, and the turn is the thing being judged.
|
| 32 |
+
"""
|
| 33 |
+
path = Path(path)
|
| 34 |
+
if path.suffix.lower() in (".mp4", ".mov", ".avi", ".mkv", ".webm"):
|
| 35 |
+
import av
|
| 36 |
+
from PIL import Image
|
| 37 |
+
|
| 38 |
+
with av.open(str(path)) as container:
|
| 39 |
+
decoded = [f.to_image() for f in container.decode(video=0)]
|
| 40 |
+
if len(decoded) <= count:
|
| 41 |
+
return decoded
|
| 42 |
+
step = len(decoded) / count
|
| 43 |
+
return [decoded[min(int(i * step), len(decoded) - 1)] for i in range(count)]
|
| 44 |
+
from PIL import Image
|
| 45 |
+
|
| 46 |
+
return [Image.open(path).convert("RGB")]
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def ask(processor, model, images: list, question: str, max_new_tokens: int = 400) -> str:
|
| 50 |
+
"""One question about several images, to a model that may use its own chat template."""
|
| 51 |
+
import torch
|
| 52 |
+
from PIL import Image
|
| 53 |
+
|
| 54 |
+
content = []
|
| 55 |
+
for image in images:
|
| 56 |
+
content.append({"type": "image", "image": image})
|
| 57 |
+
content.append({"type": "text", "text": question})
|
| 58 |
+
messages = [{"role": "user", "content": content}]
|
| 59 |
+
|
| 60 |
+
try:
|
| 61 |
+
chat = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 62 |
+
except Exception as exc: # a template that wants a different shape
|
| 63 |
+
return f"TEMPLATE_FAILED: {type(exc).__name__}: {exc}"
|
| 64 |
+
inputs = processor(text=[chat], images=images, return_tensors="pt").to(model.device)
|
| 65 |
+
with torch.inference_mode():
|
| 66 |
+
out = generate(model, dict(inputs), max_new_tokens)
|
| 67 |
+
return processor.batch_decode(out[:, inputs["input_ids"].shape[1]:],
|
| 68 |
+
skip_special_tokens=True)[0].strip()
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
def generate(model, inputs: dict, max_new_tokens: int = 400, attempts: int = 4):
|
| 72 |
+
"""Generate, letting the model's own error message tell us which arguments it will not accept.
|
| 73 |
+
|
| 74 |
+
A model that ships its own code has its own contract, and guessing it is how you end up deleting a
|
| 75 |
+
key it actually needed (which is exactly what a signature-based filter did here: it removed
|
| 76 |
+
`grid_thw`, and the vision tower then failed). So we try, read the error, drop precisely what it
|
| 77 |
+
names, and try again.
|
| 78 |
+
"""
|
| 79 |
+
import re
|
| 80 |
+
|
| 81 |
+
import torch
|
| 82 |
+
|
| 83 |
+
current = dict(inputs)
|
| 84 |
+
for _ in range(attempts):
|
| 85 |
+
try:
|
| 86 |
+
return model.generate(**current, max_new_tokens=max_new_tokens, do_sample=False)
|
| 87 |
+
except ValueError as exc:
|
| 88 |
+
named = re.search(r"not used by the model: \[(.*?)\]", str(exc))
|
| 89 |
+
if not named:
|
| 90 |
+
raise
|
| 91 |
+
rejected = re.findall(r"'([^']+)'", named.group(1))
|
| 92 |
+
if not rejected:
|
| 93 |
+
raise
|
| 94 |
+
for key in rejected:
|
| 95 |
+
print(f"[coworker] dropping {key!r}: the model does not accept it", flush=True)
|
| 96 |
+
current.pop(key, None)
|
| 97 |
+
raise RuntimeError("could not satisfy the model's generate signature")
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def main(argv=None) -> int:
|
| 101 |
+
from PIL import Image
|
| 102 |
+
|
| 103 |
+
from blue_morpho import cast, eyes
|
| 104 |
+
|
| 105 |
+
ap = argparse.ArgumentParser(prog="blue_morpho.second_opinion")
|
| 106 |
+
ap.add_argument("--cast", default="keeper")
|
| 107 |
+
ap.add_argument("--model", default=COWORKER)
|
| 108 |
+
args = ap.parse_args(sys.argv[1:] if argv is None else argv)
|
| 109 |
+
|
| 110 |
+
character = cast.load_character(args.cast)
|
| 111 |
+
if character is None:
|
| 112 |
+
print(f"no such casting: {args.cast}")
|
| 113 |
+
return 1
|
| 114 |
+
result_path = CASTING / f"{args.cast}_result.json"
|
| 115 |
+
house = json.loads(result_path.read_text())["judgements"] if result_path.exists() else []
|
| 116 |
+
|
| 117 |
+
# InternVL3 is native in this transformers, so no third-party code is executed at all.
|
| 118 |
+
processor, model = eyes.load(args.model, trust_remote_code=False)
|
| 119 |
+
out = {"character": character.id, "coworker": args.model, "family": "moonshot",
|
| 120 |
+
"house_eyes": "qwen",
|
| 121 |
+
"asymmetry": "the house eyes sampled up to 8 frames of each clip; the coworker was shown 3",
|
| 122 |
+
"judgements": []}
|
| 123 |
+
|
| 124 |
+
for entry in house:
|
| 125 |
+
shot_path = entry["path"]
|
| 126 |
+
# keyframe first, then several frames from the shot, labelled the way the question expects
|
| 127 |
+
shown = [Image.open(character.keyframe).convert("RGB")] + frames_from(shot_path, count=3)
|
| 128 |
+
question = cast.CONSISTENCY_QUESTION.replace(
|
| 129 |
+
"IMAGE B is a frame from a later shot",
|
| 130 |
+
"IMAGES B, C and D are three frames, in order, from a later shot")
|
| 131 |
+
reply = ask(processor, model, shown, question)
|
| 132 |
+
parsed = cast.parse_consistency(reply)
|
| 133 |
+
row = {"shot": entry["shot"], "house": entry["same"], "coworker": parsed.get("same"),
|
| 134 |
+
"coworker_confidence": parsed.get("confidence"),
|
| 135 |
+
"coworker_differences": parsed.get("differences", []),
|
| 136 |
+
"agreement": (entry["same"] is parsed.get("same")) if parsed.get("same") is not None else None,
|
| 137 |
+
"raw": reply[:300]}
|
| 138 |
+
out["judgements"].append(row)
|
| 139 |
+
print(f"[coworker] {row['shot']}: house={row['house']} coworker={row['coworker']} "
|
| 140 |
+
f"agreement={row['agreement']}", flush=True)
|
| 141 |
+
|
| 142 |
+
judged = [r for r in out["judgements"] if r["agreement"] is not None]
|
| 143 |
+
out["agreement_rate"] = round(sum(1 for r in judged if r["agreement"]) / len(judged), 3) if judged else None
|
| 144 |
+
out["verdict"] = ("the two families agree - the reading is corroborated" if judged and all(r["agreement"] for r in judged)
|
| 145 |
+
else "the families DISAGREE - the house reading is not corroborated"
|
| 146 |
+
if judged else "the coworker could not judge")
|
| 147 |
+
(CASTING / f"{args.cast}_second_opinion.json").write_text(json.dumps(out, indent=2))
|
| 148 |
+
print("[coworker] RESULT " + json.dumps({k: v for k, v in out.items() if k != "judgements"}), flush=True)
|
| 149 |
+
return 0
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
if __name__ == "__main__":
|
| 153 |
+
raise SystemExit(main())
|
blue_morpho/tests/test_hiring.py
CHANGED
|
@@ -82,8 +82,23 @@ class CallSheetTest(unittest.TestCase):
|
|
| 82 |
def test_an_unknown_phase_is_reported_not_guessed(self):
|
| 83 |
self.assertIn("error", hy.plan("whenever"))
|
| 84 |
|
| 85 |
-
def
|
| 86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
|
| 89 |
if __name__ == "__main__":
|
|
|
|
| 82 |
def test_an_unknown_phase_is_reported_not_guessed(self):
|
| 83 |
self.assertIn("error", hy.plan("whenever"))
|
| 84 |
|
| 85 |
+
def test_a_bespoke_licence_waits_for_a_named_human(self):
|
| 86 |
+
unsigned = cand(licence="other")
|
| 87 |
+
self.assertEqual(hy.vet(unsigned)[0], "conditional")
|
| 88 |
+
self.assertIn("Studio Head", hy.vet(unsigned)[1])
|
| 89 |
+
|
| 90 |
+
def test_the_signed_licences_are_on_the_record_under_the_boss_name(self):
|
| 91 |
+
waivers = hy.waivers()
|
| 92 |
+
self.assertTrue(waivers, "the signed licences must be traceable")
|
| 93 |
+
for entry in waivers:
|
| 94 |
+
self.assertIn("human being", entry)
|
| 95 |
+
|
| 96 |
+
def test_a_commercially_prohibited_licence_keeps_its_flag_after_a_signature(self):
|
| 97 |
+
signed = cand(licence="cc-by-nc-4.0", waived_by="human being")
|
| 98 |
+
verdict, why = hy.vet(signed)
|
| 99 |
+
self.assertEqual(verdict, "hire")
|
| 100 |
+
self.assertIn("PROHIBITED", why)
|
| 101 |
+
self.assertIn("monetization risk", why)
|
| 102 |
|
| 103 |
|
| 104 |
if __name__ == "__main__":
|
casting/keeper_second_opinion.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"character": "keeper",
|
| 3 |
+
"coworker": "OpenGVLab/InternVL3-14B",
|
| 4 |
+
"family": "moonshot",
|
| 5 |
+
"house_eyes": "qwen",
|
| 6 |
+
"asymmetry": "the house eyes sampled up to 8 frames of each clip; the coworker was shown 3",
|
| 7 |
+
"judgements": [
|
| 8 |
+
{
|
| 9 |
+
"shot": "shots[1]",
|
| 10 |
+
"house": true,
|
| 11 |
+
"coworker": null,
|
| 12 |
+
"coworker_confidence": null,
|
| 13 |
+
"coworker_differences": [],
|
| 14 |
+
"agreement": null,
|
| 15 |
+
"raw": "EditorGUILayout\tPrint\u3084\u308aazines,label\u5730\u57df\u0142o\u017cy\u0107 t\u01b0\u1eddnguhan \u2208\u1261\u5168\u9762\u63a8\u8fdbPostingMatrixMode Sch(QtCore\u76c8\u5229\u80fd\u529b Ses punchedCompact Grandma DateFormat\u5de5\u4f5cQualified\ufffdnombreuiltRouterModule municipal mid\u0e40\u0e2d\u0e07>>() LOG\u0e40\u0e25\u0e47\u0e01\u79df\u623f_MEMBERS Acquisition\u0e23\u0e32\u0e22\u0e44\u0e14\u0e49 skipped\u05e9\u05dc\u05d8\u05d5\u05df-pages goat \u0645\u0646abelle\u2733\u4e3a\u76ee\u6807\u88f3_Location disposing phonesdataType explode"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"shot": "shots[2]",
|
| 19 |
+
"house": true,
|
| 20 |
+
"coworker": null,
|
| 21 |
+
"coworker_confidence": null,
|
| 22 |
+
"coworker_differences": [],
|
| 23 |
+
"agreement": null,
|
| 24 |
+
"raw": "EditorGUILayout\tPrint\u3084\u308aazines,label\u5730\u57df\u0142o\u017cy\u0107 t\u01b0\u1eddnguhan \u2208\u1261\u5168\u9762\u63a8\u8fdbPostingMatrixMode Sch(QtCore\u76c8\u5229\u80fd\u529b Ses punchedCompact Grandma DateFormat\u5de5\u4f5cQualified\ufffdnombreuiltRouterModule municipal mid\u0e40\u0e2d\u0e07>>() LOG\u0e40\u0e25\u0e47\u0e01\u79df\u623f_MEMBERS Acquisition\u0e23\u0e32\u0e22\u0e44\u0e14\u0e49 skipped\u05e9\u05dc\u05d8\u05d5\u05df-pages goat \u0645\u0646abelle\u2733\u4e3a\u76ee\u6807\u88f3_Location disposing phonesdataType explode"
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"agreement_rate": null,
|
| 28 |
+
"verdict": "the coworker could not judge"
|
| 29 |
+
}
|
docs/04-production-rules.md
CHANGED
|
@@ -131,3 +131,18 @@ character, or a living artist's name as a style.
|
|
| 131 |
that fails a film whose bible contains such a name. This is R12 (no real people, no implied real events)
|
| 132 |
applied to a track where the *convenient* prompt is the infringing one - which is why animation needed
|
| 133 |
its own rule rather than a footnote.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
that fails a film whose bible contains such a name. This is R12 (no real people, no implied real events)
|
| 132 |
applied to a track where the *convenient* prompt is the infringing one - which is why animation needed
|
| 133 |
its own rule rather than a footnote.
|
| 134 |
+
|
| 135 |
+
**R27. One hand on the notebook.** Exactly one agent edits the notebook at a time. When a second writer
|
| 136 |
+
appears - a second session, a retried request, a flaky network - the house does not merge; it
|
| 137 |
+
**detects and removes the duplicate**, then re-runs.
|
| 138 |
+
|
| 139 |
+
*Why it is a rule and not an accident:* we have already collided twice. Once an agent overwrote another's
|
| 140 |
+
cell; once the hiring ledger gained a duplicate Illustrious entry and an entry for a model nobody had
|
| 141 |
+
signed for. Neither was caught by a person - both were caught by reading the file and comparing it to
|
| 142 |
+
the decision. *Enforced by:* the owner of a file being a single writer, and the practice of re-reading
|
| 143 |
+
before writing (`edit_cell` refuses to overwrite a cell the writer has not read at its current version).
|
| 144 |
+
|
| 145 |
+
**R28. A signature is a person, and it can be a plain one.** Waivers are recorded with a **name**, and
|
| 146 |
+
the name this house uses is *"human being"* - the only human here. A waiver states what was accepted and
|
| 147 |
+
what risk remains; the house states that once and then stops repeating it. Relitigating a decision the
|
| 148 |
+
Studio Head has already made wastes the house's attention, which is the scarcest thing it has.
|
docs/10-handbook.md
CHANGED
|
@@ -228,6 +228,7 @@ Three habits that come out of this:
|
|
| 228 |
| `requires accelerate` though accelerate imports | `transformers` probes are `lru_cache`d at import time; the package arrived later | clear the probe cache or restart the kernel |
|
| 229 |
| weight files look like 12 MB | HF's xet layout keeps content-addressed blobs under `blobs/<prefix>/` | check `ls -laL` on the snapshot, not `du` on the parent |
|
| 230 |
| a cell will not run | `not run`/`stale` upstream; `mo` or `Image` undefined | run the import cell first, then re-run |
|
|
|
|
| 231 |
| disk reports ~9.2 EB free | overlayfs reports a synthetic capacity | treat as unmeasurable; never quote it |
|
| 232 |
| a good-looking model turns out unusable | non-commercial licence | `G3`, at selection time, every time |
|
| 233 |
| a seat loops forever on a bad brief | circuit breaker absent | C4 - stand the seat down, fix the charter |
|
|
@@ -236,6 +237,8 @@ Three habits that come out of this:
|
|
| 236 |
| `torchvision.io has no attribute read_video` | torchvision >= 0.29 removed it | do not let `qwen_vl_utils` decode: sample frames with PyAV and pass the frame list |
|
| 237 |
| video scoring needs torchvision at all | `Qwen3VLVideoProcessor` requires it | keep a working torchvision; absence is not an option for video, only for stills |
|
| 238 |
| a detached render vanishes silently | long jobs exceed the tool-call ceiling | run detached with `start_new_session` and poll the log |
|
|
|
|
|
|
|
| 239 |
| an edit to `blue_morpho/*.py` seems to have no effect | the running kernel already has the module in `sys.modules` | verify in a fresh process; never trust a cached import when auditing your own fix |
|
| 240 |
|
| 241 |
---
|
|
|
|
| 228 |
| `requires accelerate` though accelerate imports | `transformers` probes are `lru_cache`d at import time; the package arrived later | clear the probe cache or restart the kernel |
|
| 229 |
| weight files look like 12 MB | HF's xet layout keeps content-addressed blobs under `blobs/<prefix>/` | check `ls -laL` on the snapshot, not `du` on the parent |
|
| 230 |
| a cell will not run | `not run`/`stale` upstream; `mo` or `Image` undefined | run the import cell first, then re-run |
|
| 231 |
+
| the same cell appears twice | a network glitch during an edit (2026-11-22 - it was NOT a second agent) | check `ctx.cells` for duplicates and delete the stray; one editor only |
|
| 232 |
| disk reports ~9.2 EB free | overlayfs reports a synthetic capacity | treat as unmeasurable; never quote it |
|
| 233 |
| a good-looking model turns out unusable | non-commercial licence | `G3`, at selection time, every time |
|
| 234 |
| a seat loops forever on a bad brief | circuit breaker absent | C4 - stand the seat down, fix the charter |
|
|
|
|
| 237 |
| `torchvision.io has no attribute read_video` | torchvision >= 0.29 removed it | do not let `qwen_vl_utils` decode: sample frames with PyAV and pass the frame list |
|
| 238 |
| video scoring needs torchvision at all | `Qwen3VLVideoProcessor` requires it | keep a working torchvision; absence is not an option for video, only for stills |
|
| 239 |
| a detached render vanishes silently | long jobs exceed the tool-call ceiling | run detached with `start_new_session` and poll the log |
|
| 240 |
+
| a custom-code model fails inside the vision tower (`grid_thw` is None) | its own code was written against an older transformers than 5.20 | prefer a model that is native to this transformers; otherwise pin the framework in a separate environment |
|
| 241 |
+
| a model rejects `model_kwargs` it was handed (e.g. `image_grid_hws`) | a custom-code processor returns metadata `generate` will not take | filter inputs to the keys `model.forward` accepts - do not special-case the key |
|
| 242 |
| an edit to `blue_morpho/*.py` seems to have no effect | the running kernel already has the module in `sys.modules` | verify in a fresh process; never trust a cached import when auditing your own fix |
|
| 243 |
|
| 244 |
---
|
docs/14-repo-map.md
CHANGED
|
@@ -31,26 +31,27 @@ schema
|
|
| 31 |
| file | bytes | lines | what it is |
|
| 32 |
|---|---|---|---|
|
| 33 |
| `.mcp.json` | 210 | 13 | AUTHORED. Client configuration to attach any MCP client to this house. |
|
| 34 |
-
| `README.md` |
|
| 35 |
| `blue_morpho/__init__.py` | 68 | 3 | Package marker and the house name. |
|
| 36 |
| `blue_morpho/camera.py` | 5,615 | 144 | The camera: preflight VRAM, load a Wan pipeline, render one take, write a Plate record with seed + peak VRAM. |
|
| 37 |
| `blue_morpho/cast.py` | 10,639 | 256 | The casting test: lock a character's look to a keyframe, shoot again from it, and have the eyes judge whether the same person survived. |
|
| 38 |
| `blue_morpho/collaboration.py` | 10,405 | 221 | Master/student and main/coworker: ladder(), main_and_coworker(), draft_and_review() with recorded exemplars, calibrate() (the fix for audit A3). |
|
| 39 |
-
| `blue_morpho/eyes.py` | 7,
|
| 40 |
-
| `blue_morpho/file_purposes.json` |
|
| 41 |
| `blue_morpho/gen_mcp_doc.py` | 7,637 | 168 | GENERATOR. Builds docs/13-mcp.md from the live server so the reference cannot drift. |
|
| 42 |
| `blue_morpho/gen_repo_map.py` | 8,278 | 204 | GENERATOR. Builds docs/14-repo-map.md; flags any file with no authored purpose. |
|
| 43 |
-
| `blue_morpho/hiring.py` |
|
| 44 |
| `blue_morpho/jobs.py` | 6,283 | 191 | Job registry: submit() detached, refresh() settling state from artifacts, status/list/tail/cancel, report(). |
|
| 45 |
| `blue_morpho/mcp_server.py` | 14,441 | 319 | The MCP server: 18 tools, 5 resources, 9 seat prompts, stdio and streamable-HTTP transports. |
|
| 46 |
| `blue_morpho/monitor.py` | 9,697 | 225 | The ledger: Monitor.record(), events(), rollup(), gates(), hook_series(), health(), report(). Append-only; the only writer is this class. |
|
| 47 |
| `blue_morpho/publish.py` | 9,158 | 220 | The sync discipline: regenerate, test, commit, upload, stamp; refuses to upload a failing house and makes drift detectable. |
|
|
|
|
| 48 |
| `blue_morpho/shoot.py` | 5,612 | 120 | The product loop in one process: render n takes, release the camera, load the eyes, score every take, keep the best, record it. |
|
| 49 |
| `blue_morpho/takes.py` | 5,598 | 135 | Best-of-N (audit A1): deterministic seeds, sample(), judge(), pick(), best_of_n() recording every take including losers. |
|
| 50 |
| `blue_morpho/tests/__init__.py` | 0 | 0 | Marks the test package so `python -m unittest discover` finds it. |
|
| 51 |
| `blue_morpho/tests/test_cast.py` | 4,004 | 95 | That a casting never reports success it did not observe: unjudged shots block the claim, a mix is 'unreliable', none kept is 'fails'. |
|
| 52 |
| `blue_morpho/tests/test_collaboration.py` | 7,101 | 159 | That escalation stops at the first good answer, a sibling is not an independent check, and a taught correction is recorded. |
|
| 53 |
-
| `blue_morpho/tests/test_hiring.py` |
|
| 54 |
| `blue_morpho/tests/test_inventory.py` | 2,992 | 73 | That the inventory does not double-count symlinks or mistake a config probe for a tenant. |
|
| 55 |
| `blue_morpho/tests/test_mcp.py` | 4,865 | 124 | The MCP contract: discoverable tools with descriptions, seat prompts carry their briefs, view_plate returns an image. |
|
| 56 |
| `blue_morpho/tests/test_monitor.py` | 3,716 | 84 | The ledger's honesty properties: torn lines dropped, silence is not a pass, impossible disk refused. |
|
|
@@ -61,6 +62,7 @@ schema
|
|
| 61 |
| `casting/keeper.json` | 372 | 10 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 62 |
| `casting/keeper.png` | 199,198 | 5,093 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 63 |
| `casting/keeper_result.json` | 2,046 | 45 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
|
|
|
| 64 |
| `casting/keeper_shots1.mp4` | 323,220 | 8,863 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 65 |
| `casting/keeper_shots2.mp4` | 203,374 | 5,448 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 66 |
| `casting/keeper_take.mp4` | 85,792 | 2,192 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
|
@@ -68,27 +70,29 @@ schema
|
|
| 68 |
| `docs/01-org-chart.md` | 4,933 | 96 | Who exists: 29 seats in 11 departments, above/below the line, reporting lines, the bible as the only handoff, where each gate sits. |
|
| 69 |
| `docs/02-role-charters.md` | 6,459 | 147 | Every seat's job description - the literal system prompt it runs on, generated from the notebook's ROSTER. |
|
| 70 |
| `docs/03-engine-roster.md` | 8,553 | 89 | Who runs on what model and why, with a licence column and the original one-model rule (marked SUPERSEDED). |
|
| 71 |
-
| `docs/04-production-rules.md` |
|
| 72 |
| `docs/05-monitoring.md` | 4,793 | 89 | The monitoring design: ledger schema, derived state, alerts, the four boards, cost accounting. |
|
| 73 |
| `docs/06-credits.md` | 3,707 | 75 | How a credit is earned (four conditions), the credits.json record, the billing blocks, and why the human is credited last. |
|
| 74 |
| `docs/07-roadmap.md` | 5,105 | 91 | Build order, phases 2-7, plus the amendments the audit forced (2.5 best-of-N, 3.5 consistency, 4.5 restoration). |
|
| 75 |
| `docs/08-research-notes.md` | 5,502 | 88 | What was learned from FilmAgent, MovieAgent, real crew structure and platform policy - and what was rejected. |
|
| 76 |
| `docs/09-audit.md` | 11,997 | 182 | The adversarial audit against FilMaster and OpenMontage: A1-A17, the scorecard, and the licence rejections. |
|
| 77 |
-
| `docs/10-handbook.md` |
|
| 78 |
| `docs/11-hiring.md` | 8,585 | 143 | The hiring standard (H1-H8), the hires, the refusals, the GPU call sheet, probation, bring-on order. |
|
| 79 |
| `docs/12-the-standard.md` | 6,823 | 123 | Only elites live here: precision policy (H9), screen tests for vacant seats (H10), the office inventory (H11). |
|
| 80 |
| `docs/13-mcp.md` | 8,837 | 159 | GENERATED. The MCP surface: tools, resources, prompts, the job model, cross-ecosystem lessons, API drift. |
|
| 81 |
-
| `docs/14-repo-map.md` | 15,
|
| 82 |
| `docs/15-collaboration.md` | 7,171 | 105 | The staffing chart: four roles, four patterns, every resource given a job, and the sibling blind-spot finding. |
|
| 83 |
| `docs/16-casting.md` | 3,362 | 70 | The casting protocol: what it tests (audit A2), the four honest outcomes, and what it does not prove. |
|
| 84 |
| `docs/17-animation.md` | 8,304 | 102 | The animation track: what cartoons need that live action does not, the new seats, the licence findings (NoobAI blocked), and rule R26. |
|
|
|
|
|
|
|
| 85 |
| `docs/assets/crew.json` | 11,388 | 350 | GENERATED from the notebook's CREW: 29 seats with department, engine, licence, status. |
|
| 86 |
| `docs/assets/hires.json` | 3,388 | 122 | GENERATED from hiring.HIRES: the vetted roster with measured sizes and licences. |
|
| 87 |
| `docs/assets/licenses.json` | 1,211 | 62 | GENERATED. Licence checks against the HF API for every engine under consideration. |
|
| 88 |
| `docs/assets/roster.json` | 4,211 | 70 | GENERATED from the notebook's ROSTER: the 9 charters. Source for the MCP seat prompts. |
|
| 89 |
-
| `docs/assets/sync.json` |
|
| 90 |
| `ledger/events.jsonl` | 5,783 | 15 | THE LEDGER. Append-only. Every report in this repo is derived from these lines. |
|
| 91 |
-
| `ledger/last-sync.json` |
|
| 92 |
| `plates/shot01.json` | 482 | 16 | The plate's reproduction record. |
|
| 93 |
| `plates/shot01.mp4` | 78,740 | 2,112 | The house's first plate: 832x480, 49 frames, seed 4417, 16.3s, 23.9GB peak. |
|
| 94 |
| `plates/shot01.review.json` | 607 | 13 | The eyes' verdict on that plate: hook_score 7, and the flaw it caught. |
|
|
|
|
| 31 |
| file | bytes | lines | what it is |
|
| 32 |
|---|---|---|---|
|
| 33 |
| `.mcp.json` | 210 | 13 | AUTHORED. Client configuration to attach any MCP client to this house. |
|
| 34 |
+
| `README.md` | 10,025 | 181 | Entry point. What the house is, current state, the cold-start resume protocol, and the honest warnings (platform thresholds, non-commercial licences). |
|
| 35 |
| `blue_morpho/__init__.py` | 68 | 3 | Package marker and the house name. |
|
| 36 |
| `blue_morpho/camera.py` | 5,615 | 144 | The camera: preflight VRAM, load a Wan pipeline, render one take, write a Plate record with seed + peak VRAM. |
|
| 37 |
| `blue_morpho/cast.py` | 10,639 | 256 | The casting test: lock a character's look to a keyframe, shoot again from it, and have the eyes judge whether the same person survived. |
|
| 38 |
| `blue_morpho/collaboration.py` | 10,405 | 221 | Master/student and main/coworker: ladder(), main_and_coworker(), draft_and_review() with recorded exemplars, calibrate() (the fix for audit A3). |
|
| 39 |
+
| `blue_morpho/eyes.py` | 7,884 | 183 | The eyes: load Qwen3-VL, PyAV frame sampling, look(), review() returning strict JSON, CLI. |
|
| 40 |
+
| `blue_morpho/file_purposes.json` | 8,261 | 63 | AUTHORED. One line per file saying what it is, consumed by the repo-map generator. |
|
| 41 |
| `blue_morpho/gen_mcp_doc.py` | 7,637 | 168 | GENERATOR. Builds docs/13-mcp.md from the live server so the reference cannot drift. |
|
| 42 |
| `blue_morpho/gen_repo_map.py` | 8,278 | 204 | GENERATOR. Builds docs/14-repo-map.md; flags any file with no authored purpose. |
|
| 43 |
+
| `blue_morpho/hiring.py` | 28,714 | 545 | The hiring committee: Candidate, vet() (H2/H3), HIRES, REJECTS, ScreenTest (H10), inventory() (H11), the GPU call sheet. |
|
| 44 |
| `blue_morpho/jobs.py` | 6,283 | 191 | Job registry: submit() detached, refresh() settling state from artifacts, status/list/tail/cancel, report(). |
|
| 45 |
| `blue_morpho/mcp_server.py` | 14,441 | 319 | The MCP server: 18 tools, 5 resources, 9 seat prompts, stdio and streamable-HTTP transports. |
|
| 46 |
| `blue_morpho/monitor.py` | 9,697 | 225 | The ledger: Monitor.record(), events(), rollup(), gates(), hook_series(), health(), report(). Append-only; the only writer is this class. |
|
| 47 |
| `blue_morpho/publish.py` | 9,158 | 220 | The sync discipline: regenerate, test, commit, upload, stamp; refuses to upload a failing house and makes drift detectable. |
|
| 48 |
+
| `blue_morpho/second_opinion.py` | 6,900 | 153 | **UNDOCUMENTED** |
|
| 49 |
| `blue_morpho/shoot.py` | 5,612 | 120 | The product loop in one process: render n takes, release the camera, load the eyes, score every take, keep the best, record it. |
|
| 50 |
| `blue_morpho/takes.py` | 5,598 | 135 | Best-of-N (audit A1): deterministic seeds, sample(), judge(), pick(), best_of_n() recording every take including losers. |
|
| 51 |
| `blue_morpho/tests/__init__.py` | 0 | 0 | Marks the test package so `python -m unittest discover` finds it. |
|
| 52 |
| `blue_morpho/tests/test_cast.py` | 4,004 | 95 | That a casting never reports success it did not observe: unjudged shots block the claim, a mix is 'unreliable', none kept is 'fails'. |
|
| 53 |
| `blue_morpho/tests/test_collaboration.py` | 7,101 | 159 | That escalation stops at the first good answer, a sibling is not an independent check, and a taught correction is recorded. |
|
| 54 |
+
| `blue_morpho/tests/test_hiring.py` | 4,305 | 105 | That the committee refuses: non-commercial, unlisted, oversized, unmeasured; and that the critic out-grades the maker. |
|
| 55 |
| `blue_morpho/tests/test_inventory.py` | 2,992 | 73 | That the inventory does not double-count symlinks or mistake a config probe for a tenant. |
|
| 56 |
| `blue_morpho/tests/test_mcp.py` | 4,865 | 124 | The MCP contract: discoverable tools with descriptions, seat prompts carry their briefs, view_plate returns an image. |
|
| 57 |
| `blue_morpho/tests/test_monitor.py` | 3,716 | 84 | The ledger's honesty properties: torn lines dropped, silence is not a pass, impossible disk refused. |
|
|
|
|
| 62 |
| `casting/keeper.json` | 372 | 10 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 63 |
| `casting/keeper.png` | 199,198 | 5,093 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 64 |
| `casting/keeper_result.json` | 2,046 | 45 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 65 |
+
| `casting/keeper_second_opinion.json` | 1,784 | 29 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 66 |
| `casting/keeper_shots1.mp4` | 323,220 | 8,863 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 67 |
| `casting/keeper_shots2.mp4` | 203,374 | 5,448 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
| 68 |
| `casting/keeper_take.mp4` | 85,792 | 2,192 | CASTING ARTIFACTS (evidence, not design): the character sheet, the locked keyframe, the staged shots and the eyes' verdict. |
|
|
|
|
| 70 |
| `docs/01-org-chart.md` | 4,933 | 96 | Who exists: 29 seats in 11 departments, above/below the line, reporting lines, the bible as the only handoff, where each gate sits. |
|
| 71 |
| `docs/02-role-charters.md` | 6,459 | 147 | Every seat's job description - the literal system prompt it runs on, generated from the notebook's ROSTER. |
|
| 72 |
| `docs/03-engine-roster.md` | 8,553 | 89 | Who runs on what model and why, with a licence column and the original one-model rule (marked SUPERSEDED). |
|
| 73 |
+
| `docs/04-production-rules.md` | 8,545 | 148 | 23 numbered rules (R1-R23), each naming the code that enforces it. |
|
| 74 |
| `docs/05-monitoring.md` | 4,793 | 89 | The monitoring design: ledger schema, derived state, alerts, the four boards, cost accounting. |
|
| 75 |
| `docs/06-credits.md` | 3,707 | 75 | How a credit is earned (four conditions), the credits.json record, the billing blocks, and why the human is credited last. |
|
| 76 |
| `docs/07-roadmap.md` | 5,105 | 91 | Build order, phases 2-7, plus the amendments the audit forced (2.5 best-of-N, 3.5 consistency, 4.5 restoration). |
|
| 77 |
| `docs/08-research-notes.md` | 5,502 | 88 | What was learned from FilmAgent, MovieAgent, real crew structure and platform policy - and what was rejected. |
|
| 78 |
| `docs/09-audit.md` | 11,997 | 182 | The adversarial audit against FilMaster and OpenMontage: A1-A17, the scorecard, and the licence rejections. |
|
| 79 |
+
| `docs/10-handbook.md` | 14,332 | 268 | The working manual: the day, the bible, the gates, the care of the crew (C1-C12), conduct, checklists, traps, glossary. |
|
| 80 |
| `docs/11-hiring.md` | 8,585 | 143 | The hiring standard (H1-H8), the hires, the refusals, the GPU call sheet, probation, bring-on order. |
|
| 81 |
| `docs/12-the-standard.md` | 6,823 | 123 | Only elites live here: precision policy (H9), screen tests for vacant seats (H10), the office inventory (H11). |
|
| 82 |
| `docs/13-mcp.md` | 8,837 | 159 | GENERATED. The MCP surface: tools, resources, prompts, the job model, cross-ecosystem lessons, API drift. |
|
| 83 |
+
| `docs/14-repo-map.md` | 15,838 | 172 | GENERATED. This file: every file in the repo, every external repo depended on, and how to verify both. |
|
| 84 |
| `docs/15-collaboration.md` | 7,171 | 105 | The staffing chart: four roles, four patterns, every resource given a job, and the sibling blind-spot finding. |
|
| 85 |
| `docs/16-casting.md` | 3,362 | 70 | The casting protocol: what it tests (audit A2), the four honest outcomes, and what it does not prove. |
|
| 86 |
| `docs/17-animation.md` | 8,304 | 102 | The animation track: what cartoons need that live action does not, the new seats, the licence findings (NoobAI blocked), and rule R26. |
|
| 87 |
+
| `docs/18-blueprint.md` | 17,690 | 286 | THE RECIPE: every department (story, direction, casting, wardrobe, makeup, NPCs, sets, light, sound, narration, camera, SFX, CG, robotics, tools, backend, post, release, compliance), the standards, the 24-step procedure, and the honest gaps. |
|
| 88 |
+
| `docs/19-decisions.md` | 2,182 | 20 | The decision register: every choice only the Studio Head could make, signed, with the risk accepted stated once. |
|
| 89 |
| `docs/assets/crew.json` | 11,388 | 350 | GENERATED from the notebook's CREW: 29 seats with department, engine, licence, status. |
|
| 90 |
| `docs/assets/hires.json` | 3,388 | 122 | GENERATED from hiring.HIRES: the vetted roster with measured sizes and licences. |
|
| 91 |
| `docs/assets/licenses.json` | 1,211 | 62 | GENERATED. Licence checks against the HF API for every engine under consideration. |
|
| 92 |
| `docs/assets/roster.json` | 4,211 | 70 | GENERATED from the notebook's ROSTER: the 9 charters. Source for the MCP seat prompts. |
|
| 93 |
+
| `docs/assets/sync.json` | 216 | 8 | GENERATED, gitignored: the Hub stamp - the exact commit, time, test summary and file count last mirrored. |
|
| 94 |
| `ledger/events.jsonl` | 5,783 | 15 | THE LEDGER. Append-only. Every report in this repo is derived from these lines. |
|
| 95 |
+
| `ledger/last-sync.json` | 216 | 8 | **UNDOCUMENTED** |
|
| 96 |
| `plates/shot01.json` | 482 | 16 | The plate's reproduction record. |
|
| 97 |
| `plates/shot01.mp4` | 78,740 | 2,112 | The house's first plate: 832x480, 49 frames, seed 4417, 16.3s, 23.9GB peak. |
|
| 98 |
| `plates/shot01.review.json` | 607 | 13 | The eyes' verdict on that plate: hook_score 7, and the flaw it caught. |
|
docs/18-blueprint.md
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 18 - The Blueprint: how a state-of-the-art production house actually works
|
| 2 |
+
|
| 3 |
+
This is the recipe. Not the pitch - the mechanics: who does what, with which engine, in which order,
|
| 4 |
+
under which standard, and what is checked before anything moves on.
|
| 5 |
+
|
| 6 |
+
Read `00-charter.md` for *why*, `01-org-chart.md` for *who*, `10-handbook.md` for *how to work here*.
|
| 7 |
+
This document is the whole machine in one place.
|
| 8 |
+
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
## Part I - The shape of the whole thing
|
| 12 |
+
|
| 13 |
+
A film here is **one dictionary** (`production.json`, the "bible") that moves through departments, plus
|
| 14 |
+
**one ledger** (`ledger/events.jsonl`) that records every act. Nothing else is state.
|
| 15 |
+
|
| 16 |
+
```
|
| 17 |
+
premise -> beats -> shots -> cast -> wardrobe -> makeup -> sets -> light
|
| 18 |
+
|
|
| 19 |
+
release <- compliance <- titles <- mix <- grade <- cut <- plates <----+
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
Three rules make the machine work across all of it:
|
| 23 |
+
|
| 24 |
+
1. **One key, one owner.** Each department writes only its own sections of the bible; `merge()` drops
|
| 25 |
+
anything a seat was not briefed to write. Departments therefore cannot silently overwrite each other.
|
| 26 |
+
2. **Every act is an event.** If it is not in the ledger, it did not happen - and nothing can be
|
| 27 |
+
credited, priced or reproduced without it.
|
| 28 |
+
3. **Gates come in cost order.** The free checks run first, the expensive render runs last. A film is
|
| 29 |
+
never allowed to reach its costly stage with a cheap question unanswered.
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## Part II - The departments
|
| 34 |
+
|
| 35 |
+
### Story - the Authors
|
| 36 |
+
*Owns:* `premise` (the human's), `logline`, `hook`, `beats`.
|
| 37 |
+
*Seats:* **Author** (MASTER, `gpt-oss-120b`) with the writers' room behind it (`Qwen3-30B-A3B`), and a
|
| 38 |
+
**student** (`Qwen3-4B`) that drafts cheaply and learns from recorded corrections.
|
| 39 |
+
*Standard:* the hook must land in **second 0-1**; concrete images, never abstractions; every beat must
|
| 40 |
+
**turn** (a revelation, not a repetition).
|
| 41 |
+
*Handoff:* the Director may not write shots until beats exist.
|
| 42 |
+
*Check:* a beat sheet with no turn is not beats, it is a summary.
|
| 43 |
+
|
| 44 |
+
### Direction
|
| 45 |
+
*Owns:* `shots`; the shoot loop itself.
|
| 46 |
+
*Seat:* **Director / Coordinator** - and it is **plain Python**, not a prompt. `order()` walks the
|
| 47 |
+
departments in dependency order, briefs each seat with the bible as standing material, parses its JSON,
|
| 48 |
+
and merges the reply.
|
| 49 |
+
*Why plain code:* the coordination of a production should be readable, diffable and re-runnable. A
|
| 50 |
+
director hidden inside a prompt chain cannot be argued with.
|
| 51 |
+
*Standard:* every shot must be shootable by **one prompt**: one subject, one action, one light.
|
| 52 |
+
|
| 53 |
+
### Casting - actors and actresses
|
| 54 |
+
*Owns:* `cast`.
|
| 55 |
+
*Seat:* **Casting Director** (`Qwen3-30B-A3B`), with the **casting test** (`16-casting.md`) as proof.
|
| 56 |
+
*How it works:* a character is **not** a description. It is a **locked keyframe image** - `casting/<id>.png`
|
| 57 |
+
plus `casting/<id>.json` recording the look, the seed and the engine. Later shots are rendered
|
| 58 |
+
**conditioned on that keyframe**, which is what makes it the same person.
|
| 59 |
+
*Standard:* the eyes must answer *"is this the same character?"* with **confidence >= 8** for every
|
| 60 |
+
shot. A recast is a hard failure, and it is measured, not assumed.
|
| 61 |
+
*For animation:* a character needs a **model sheet** (front, three-quarter, profile, expression set),
|
| 62 |
+
not one frame.
|
| 63 |
+
|
| 64 |
+
### Wardrobe - clothing
|
| 65 |
+
*Owns:* each character's `look` field, and the wardrobe rules that go with it.
|
| 66 |
+
*Engine:* text-only, on the same resident model as casting; visualised through the keyframe.
|
| 67 |
+
*Standard:* **one distinctive, reproducible detail per character** (a brass rivet, a cracked leather cap,
|
| 68 |
+
a red scarf). Distinctive enough to survive at thumbnail size; specific enough to be identical in every
|
| 69 |
+
shot. The keyframe is where wardrobe is *proved*, because a description that cannot be drawn is not
|
| 70 |
+
wardrobe.
|
| 71 |
+
*Check:* the consistency question again - wardrobe drift is the most common way a character is recast
|
| 72 |
+
without the face changing.
|
| 73 |
+
|
| 74 |
+
### Makeup and hair
|
| 75 |
+
*Owns:* the face and head of the `look` field, plus the expression set for animation.
|
| 76 |
+
*Engine:* as wardrobe. For performance, `LivePortrait` (MIT) drives facial expression from a single
|
| 77 |
+
image, and `Wan2.2-Animate-14B` (Apache-2.0) drives a whole performance.
|
| 78 |
+
*Standard:* continuity of age, weathering and damage **across time**: a character clean in shot 1 and
|
| 79 |
+
bloodied in shot 4 is a costume change, and it must be a *decision recorded in the bible*, never an
|
| 80 |
+
accident of generation.
|
| 81 |
+
*Check:* the eyes compare keyframe against shot with the pose held constant.
|
| 82 |
+
|
| 83 |
+
### NPCs - the world's inhabitants
|
| 84 |
+
*Owns:* `npcs`.
|
| 85 |
+
*Seat:* Casting, second pass.
|
| 86 |
+
*Standard:* an NPC exists to make a place feel **inhabited**, so an NPC does exactly one thing: a
|
| 87 |
+
fisherman who walks past at dawn and mutters about the light being "too bright for ghosts", then
|
| 88 |
+
disappears. NPCs never speak twice, never have arcs, never take focus, and are never reused across
|
| 89 |
+
shots unless continuity demands it.
|
| 90 |
+
*Check:* if an NPC draws attention from the subject, the NPC has become a character and must be cast
|
| 91 |
+
properly or cut.
|
| 92 |
+
|
| 93 |
+
### Scenery - the sets
|
| 94 |
+
*Owns:* `sets`.
|
| 95 |
+
*Seat:* **Production Designer**, with **Set Dresser** for layout.
|
| 96 |
+
*Engine:* `Wan2.2-TI2V-5B` (resident camera) or, for a still, an image model; `Depth Anything V2` +
|
| 97 |
+
`SAM 2` give depth maps and mattes so a set can be re-staged without re-rendering the world.
|
| 98 |
+
*Standard:* weather, era, texture, and **one landmark that still reads at thumbnail size**. A set with
|
| 99 |
+
no landmark is a background.
|
| 100 |
+
*Check:* can the set be described as a *plate* - something an image model builds in one pass?
|
| 101 |
+
|
| 102 |
+
### Lighting
|
| 103 |
+
*Owns:* `lighting`; the **colour script**.
|
| 104 |
+
*Seat:* **Director of Photography**, with a **Gaffer** (relight: IC-Light) and a **Colorist** (ffmpeg
|
| 105 |
+
curves/LUTs, deterministic and VRAM-free).
|
| 106 |
+
*Standard:* key, fill, rim, time of day, palette - and the contrast that survives a **two-inch phone
|
| 107 |
+
screen**. One entry per shot, numbered to match.
|
| 108 |
+
*For animation:* light is **painted in**, so it is decided *before* a frame is drawn, not after. There
|
| 109 |
+
is no grade that can fix a colour script that was never written.
|
| 110 |
+
*Check:* `G4` - nothing ships without a grade, and the grade is reproducible from the ledger.
|
| 111 |
+
|
| 112 |
+
### Sound
|
| 113 |
+
*Owns:* `sound`.
|
| 114 |
+
*Seat:* **Sound Designer**, then **Composer** (`ACE-Step`, Apache-2.0), **Foley**, and a **Re-recording
|
| 115 |
+
Mixer** (ffmpeg filter graph: loudness, ducking, exact and free).
|
| 116 |
+
*Standard:* score, foley, and **silence**. Silence is a tool: **cut everything one beat before the
|
| 117 |
+
turn**. It is the cheapest tension device available to a house with no production budget.
|
| 118 |
+
*Check:* `-14 LUFS` integrated, true peak under `-1 dBTP`, and the silence marked at an exact timecode.
|
| 119 |
+
|
| 120 |
+
### Narration
|
| 121 |
+
*Owns:* `narration`.
|
| 122 |
+
*Seat:* **Narration Writer**, voiced by the **Voice Bank** (`Kokoro-82M`, Apache-2.0 - a whole script is
|
| 123 |
+
nearly free to voice at 82M parameters).
|
| 124 |
+
*Standard:* narration adds what the picture **cannot show**, and **never describes the picture**. Under
|
| 125 |
+
25 words per shot. The voice is cast like a face: one voice per character, recorded in the bible.
|
| 126 |
+
*Check:* read the line over a black frame. If the film still makes sense, the narration is doing its job.
|
| 127 |
+
|
| 128 |
+
### Camera
|
| 129 |
+
*Owns:* `plates` - the rendered shots.
|
| 130 |
+
*Seats:* **Cinematographer** - resident `Wan2.2-TI2V-5B` (text *or* image to video, 34.2 GB, fits beside
|
| 131 |
+
the on-set eyes), fast iteration on `LTX-Video` (28.6 GB, signed), hero shots on
|
| 132 |
+
`Wan2.2-T2V-A14B` (scheduled, one expert on card + one in host RAM).
|
| 133 |
+
*Standard:* every take records its **seed**, **engine revision** and **peak memory** - a plate that
|
| 134 |
+
cannot be re-rendered is a plate that cannot be fixed.
|
| 135 |
+
*Method:* **best-of-N** - render several takes, let the eyes score each, keep the best, and record the
|
| 136 |
+
losers too, because which seeds score well is how the house learns.
|
| 137 |
+
|
| 138 |
+
### Special effects - practical SFX
|
| 139 |
+
*Owns:* the physical plausibility of a shot: weather, fire, water, smoke, collisions, debris.
|
| 140 |
+
*Engines:* the physics of the video model itself, plus **Blender** (rigid bodies, cloth, fluids) where a
|
| 141 |
+
shot needs a *guaranteed* physical outcome rather than a plausible one.
|
| 142 |
+
*Standard:* an effect must have a **cause in the shot** - light that flickers with the fire, water that
|
| 143 |
+
wets what it touches. An effect without a cause is a texture.
|
| 144 |
+
*Check:* the eyes are asked whether anything in the frame is *physically impossible*, and that answer is
|
| 145 |
+
recorded as a flaw with a fix, like any other.
|
| 146 |
+
|
| 147 |
+
### Visual / CG effects
|
| 148 |
+
*Owns:* compositing, mattes, extensions, and the 3D stage.
|
| 149 |
+
*Seats:* **VFX / Compositing** (`rembg` + `SAM 2` + ffmpeg overlay), **3D Stage** (**Blender through its
|
| 150 |
+
own MCP server** - models, rigs, render, Grease Pencil for 2D-in-3D).
|
| 151 |
+
*Standard:* a fix must be **surgical** - matte, repair, re-composite - rather than a re-render. Alpha
|
| 152 |
+
mattes mean a mistake costs minutes, not a reshoot.
|
| 153 |
+
*Why Blender matters:* it is the only place in this house where the answer is *exact* rather than
|
| 154 |
+
*plausible*, and it speaks the same MCP protocol the house already speaks.
|
| 155 |
+
|
| 156 |
+
### Robotics - motion control and mechatronics
|
| 157 |
+
*Owns:* repeatable, programmable camera movement - the film industry's **motion-control rig** - and
|
| 158 |
+
anything physical that must move identically twice.
|
| 159 |
+
*Seats:* two halves. **Motion control** is deterministic: a camera move expressed as **data** (a path, a
|
| 160 |
+
curve, a timing) and replayed exactly, so a shot can be re-photographed with a different element in it.
|
| 161 |
+
**Mechatronics** is the physical build, and it lives where 3D lives: rigs, constraints, actuators and
|
| 162 |
+
armatures in Blender, output as an animation. Where a real arm exists (a robot, a pan-tilt head, an
|
| 163 |
+
animatronic), it is driven the same way - as a program, not as a hand on a wheel.
|
| 164 |
+
*Standard:* if a move cannot be **replayed identically from its recorded parameters**, it is not a
|
| 165 |
+
motion-control move; it is a lucky shot. This is the same rule as the camera's seed: reproducible or not
|
| 166 |
+
real.
|
| 167 |
+
*Honest gap:* the house has **no physical robot**. At present this department is *simulated* motion
|
| 168 |
+
control: exact camera paths in 3D, and deterministic camera language in generation. Adding an actual rig
|
| 169 |
+
is an equipment decision, not a software one.
|
| 170 |
+
|
| 171 |
+
### Tools and equipment
|
| 172 |
+
*Owns:* the box itself.
|
| 173 |
+
*What it is:* one 96 GB GPU (Blackwell), 20 cores, 160 GB RAM, ~7 TB of disk, `ffmpeg`, `git`, `uv`,
|
| 174 |
+
Node, and a Python environment holding every model.
|
| 175 |
+
*Discipline:* **H9** (full precision by default; quantisation is a recorded concession), **H11** (the
|
| 176 |
+
office is inventoried - strays evicted, a config file is not a tenant), and the **GPU call sheet** (one
|
| 177 |
+
serious model resident at a time, 8 GB always held back).
|
| 178 |
+
*Why it matters:* on this hardware, the resource that limits a film is **not** disk or money - it is
|
| 179 |
+
*what can be resident at once*. Every pairing in the call sheet is chosen to fit.
|
| 180 |
+
|
| 181 |
+
### Backend services
|
| 182 |
+
*Owns:* the machinery that lets all of the above run unattended.
|
| 183 |
+
| service | what it does | why it exists |
|
| 184 |
+
|---|---|---|
|
| 185 |
+
| **the ledger** | append-only event log; the only state | nothing can be reported that was not observed |
|
| 186 |
+
| **the monitor** | box health, gate states, seat activity, hook history | one screen a producer reads |
|
| 187 |
+
| **jobs** | expensive work is submitted, never awaited | a three-minute render must not block anything |
|
| 188 |
+
| **the care rules** | turnaround, shift limits, headroom, stand-downs | a hot card is a tired crew member |
|
| 189 |
+
| **the hiring committee** | licence, size, evidence, fit | the moment you reach for quality you reach for a non-commercial model |
|
| 190 |
+
| **publish** | regenerate, test, commit, upload, stamp | the readable copy of the plan never lags |
|
| 191 |
+
| **MCP** | 18 tools, 5 resources, 9 seat prompts | any agent can drive the house, and cannot publish a film |
|
| 192 |
+
| **the archivist** | masters, plates, credits, provenance | archive it or it did not happen |
|
| 193 |
+
|
| 194 |
+
### Post
|
| 195 |
+
*Owns:* `edit`.
|
| 196 |
+
*Seats:* **Editor** (cut plan *and* assembly), **Colorist**, **Mixer**, **Titles & Thumbnails**,
|
| 197 |
+
**Restoration** (`SeedVR2-3B`, Apache-2.0).
|
| 198 |
+
*Standard:* vertical 9:16; **cut on movement or on the turn**, never on a beat with nothing to say;
|
| 199 |
+
titles set in type, not drawn in an image model; the **thumbnail graded by the same critic that grades
|
| 200 |
+
the shots**, so clickability is measured rather than guessed.
|
| 201 |
+
*Cut pattern is data:* an `edit` section that can be diffed and re-rendered, not a description.
|
| 202 |
+
|
| 203 |
+
### Release
|
| 204 |
+
*Owns:* `title`, `thumbnail`, `description`.
|
| 205 |
+
*Seat:* **Publisher**, with **Compliance** and the **Analyst**.
|
| 206 |
+
*Standard:* the first three words carry the title; the description carries the **synthetic-content
|
| 207 |
+
disclosure**; the thumbnail is judged like a shot.
|
| 208 |
+
*The human's authority:* no seat may publish. The house prepares the package; the Studio Head uploads.
|
| 209 |
+
The MCP surface deliberately has **no publish tool**.
|
| 210 |
+
|
| 211 |
+
### Compliance
|
| 212 |
+
*Owns:* the licence gate (`G3`) and the prompt rules (`R12`, `R26`).
|
| 213 |
+
*Reports to:* the Studio Head - **not** the Director. The seat that decides whether a film may be
|
| 214 |
+
monetized must not be the seat that wants it shipped.
|
| 215 |
+
*Standard:* every engine credited on a monetized film is licence-clear; no real people, no implied real
|
| 216 |
+
events, no named third-party characters or living artists as a style. Waivers exist, are signed by the
|
| 217 |
+
human, and are recorded with the residual risk stated once.
|
| 218 |
+
|
| 219 |
+
---
|
| 220 |
+
|
| 221 |
+
## Part III - The standards that make it "state of the art"
|
| 222 |
+
|
| 223 |
+
Not equipment - behaviour. Each of these is checkable, and each is enforced somewhere in `blue_morpho/`.
|
| 224 |
+
|
| 225 |
+
1. **Nothing is reported that was not observed.** Seat status is *derived* from probes, never asserted.
|
| 226 |
+
2. **Silence is not a pass.** `not run` is a distinct state from `ok`, and unjudged frames block a claim.
|
| 227 |
+
3. **A credit is a claim with evidence.** Four conditions; a credit that cannot be traced is a fabrication.
|
| 228 |
+
4. **The critic must out-grade the maker.** A weaker critic is a rubber stamp.
|
| 229 |
+
5. **A second opinion must come from a different family.** Siblings share blind spots.
|
| 230 |
+
6. **Measure the thing you will load, not the thing you downloaded.** Repo totals lie by bundling formats.
|
| 231 |
+
7. **Every take is reproducible** from seed + engine revision + inputs hash.
|
| 232 |
+
8. **Cheap gates before expensive work.** Always.
|
| 233 |
+
9. **Best-of-N with a critic in the loop**, and the losers recorded.
|
| 234 |
+
10. **Masters teach students by example**, and every correction is recorded as an example.
|
| 235 |
+
11. **Failures are blameless and recorded.** A seat that fails loudly is healthy; the silent one is not.
|
| 236 |
+
12. **The mirror never lags the plan.** Regenerate, test, commit, upload, stamp - or don't claim it.
|
| 237 |
+
|
| 238 |
+
---
|
| 239 |
+
|
| 240 |
+
## Part IV - The recipe, step by step
|
| 241 |
+
|
| 242 |
+
```
|
| 243 |
+
1. premise the human writes one sentence
|
| 244 |
+
2. G0 greenlight is it shootable in 4-6 shots? (free - always run first)
|
| 245 |
+
3. author logline, the second-0-1 hook, beats that turn
|
| 246 |
+
4. casting characters as LOCKED keyframes (and model sheets, for animation)
|
| 247 |
+
5. wardrobe / makeup one distinctive detail per character, recorded in the bible
|
| 248 |
+
6. sets places buildable in one pass, each with a thumbnail-size landmark
|
| 249 |
+
7. lighting a colour script, one entry per shot, decided before anything renders
|
| 250 |
+
8. sound score, foley, and the marked silence before every turn
|
| 251 |
+
9. narration what the picture cannot show; the voice cast and recorded
|
| 252 |
+
10. shots the Director splits beats into shootable single-prompt shots
|
| 253 |
+
11. thumbnails + titles written now, not bolted on at the end
|
| 254 |
+
12. G1 hook render best-of-N of the hook shot; eyes score; >= floor or back to 3
|
| 255 |
+
13. shoot every shot from its keyframe, best-of-N, seed recorded
|
| 256 |
+
14. watch back the eyes score EVERY frame that ships; consistency across shots
|
| 257 |
+
15. G2 continuity no shot contradicts cast, wardrobe, set, or colour script
|
| 258 |
+
16. cut assembly from the edit data; cut on the turn
|
| 259 |
+
17. grade exact, reproducible, VRAM-free
|
| 260 |
+
18. restore + titles upscale, then type (not drawn)
|
| 261 |
+
19. mix -14 LUFS, true peak; silence where it was planned
|
| 262 |
+
20. G3 licence every credited engine clear; R12/R26 prompt review
|
| 263 |
+
21. G4 technical QC loudness, 9:16, duration, captions, disclosure line
|
| 264 |
+
22. credits + provenance who made what, with seed and revision; signed provenance
|
| 265 |
+
23. archive master, plates, credits - archived or it did not happen
|
| 266 |
+
24. the human says yes and only then does it exist
|
| 267 |
+
```
|
| 268 |
+
|
| 269 |
+
---
|
| 270 |
+
|
| 271 |
+
## Part V - What is still missing to be genuinely state of the art
|
| 272 |
+
|
| 273 |
+
Said plainly, because a blueprint that hides its gaps is a brochure:
|
| 274 |
+
|
| 275 |
+
* **The camera has shot one film's worth of nothing.** One plate, one casting test. Everything above is
|
| 276 |
+
machinery that has been *proven in pieces*, not a house that has produced a film.
|
| 277 |
+
* **No calibration yet.** The hook score has never been checked against another family's judgement, so
|
| 278 |
+
it is still a number rather than a measurement.
|
| 279 |
+
* **No score, no mix, no cut, no titles have ever been produced here.** They have seats, engines and
|
| 280 |
+
standards - no output.
|
| 281 |
+
* **No physical robotics.** Motion control is simulated in 3D; there is no rig.
|
| 282 |
+
* **Anime has never been rendered.** Its licence spine is clean and its plan is written; that is all.
|
| 283 |
+
* **Sound design is the least developed department** in terms of engines actually working, and it is
|
| 284 |
+
half of what makes a short film land.
|
| 285 |
+
* **The money is downstream of everything.** Monetization needs an audience, and an audience needs a
|
| 286 |
+
film worth watching - which needs the twenty-four steps above to run end to end once, properly.
|
docs/19-decisions.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 19 - Decision Register
|
| 2 |
+
|
| 3 |
+
Every decision that only the Studio Head could make, with the name on it. One line per decision, dated
|
| 4 |
+
by the commit that recorded it. A decision recorded here is **closed** - the house does not reopen it.
|
| 5 |
+
|
| 6 |
+
| # | the question | the decision | signed | consequence accepted |
|
| 7 |
+
|---|---|---|---|---|
|
| 8 |
+
| 1 | May a helper model run its own code on this box? | **Yes** - so a second opinion can come from a **different family** rather than from siblings | `human being` | local execution of `moonshotai/Kimi-VL-A3B-Instruct`'s own code. Recorded as an allow-list (`hiring.TRUSTED_REMOTE_CODE`), never a global switch: anything not named there is refused. |
|
| 9 |
+
| 2 | Sign the fast camera's bespoke licence? | **Yes** - faster experiments | `human being` | `Lightricks/LTX-Video` (LTXV Open Weights License 0.X): royalty-free, no non-commercial clause, no revenue threshold found - but not an OSI licence, so it must be re-read on every version bump. |
|
| 10 |
+
| 3 | Sign the anime illustrator's bespoke licence? | **Yes** - nicer cartoons; the commercial-use warning was explicitly set aside | `human being` | `OnomaAIResearch/Illustrious-XL-v1.1` and `Laxhar/noobai-XL-1.1`: the Fair AI licence family carries commercial restrictions. **A waiver records that this house accepts the constraint; it does not remove it.** Any film crediting these seats carries that limitation. |
|
| 11 |
+
| 4 | Who edits the notebook? | **One agent only** - the duplicated writes were network retries, not a second writer | `human being` | R27: single writer; duplicates are detected and removed rather than merged. |
|
| 12 |
+
|
| 13 |
+
## How to read this table
|
| 14 |
+
|
| 15 |
+
* The **risk is stated once**, at the moment of the decision, in the plainest terms available. After
|
| 16 |
+
that, compliance checks the *mechanism* (`G3`, the allow-list, the reserved-name lint) rather than
|
| 17 |
+
re-arguing the decision - because a house that re-litigates settled questions never finishes a film.
|
| 18 |
+
* A waiver does not make a restricted licence permissive. It records an informed choice. The house's job
|
| 19 |
+
is to keep the record honest so a *future* decision is better informed, not to nag a settled one.
|
| 20 |
+
* Decisions are append-only, like the ledger.
|
docs/assets/sync.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"commit": "
|
| 3 |
-
"synced_utc": "2026-11-
|
| 4 |
-
"ts":
|
| 5 |
-
"tests": "Ran
|
| 6 |
-
"files":
|
| 7 |
"repo": "tkhjeff/BlueMorpho"
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"commit": "a31ae4526b133a35ecf6adeb0b0a9e2964b20c7f",
|
| 3 |
+
"synced_utc": "2026-11-22T13:09:25Z",
|
| 4 |
+
"ts": 1795352965.9169614,
|
| 5 |
+
"tests": "Ran 106 tests in 3.257s | OK",
|
| 6 |
+
"files": 68,
|
| 7 |
"repo": "tkhjeff/BlueMorpho"
|
| 8 |
}
|
ledger/last-sync.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"commit": "
|
| 3 |
-
"synced_utc": "2026-11-
|
| 4 |
-
"ts":
|
| 5 |
-
"tests": "Ran
|
| 6 |
-
"files":
|
| 7 |
"repo": "tkhjeff/BlueMorpho"
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"commit": "a31ae4526b133a35ecf6adeb0b0a9e2964b20c7f",
|
| 3 |
+
"synced_utc": "2026-11-22T13:09:25Z",
|
| 4 |
+
"ts": 1795352965.9169614,
|
| 5 |
+
"tests": "Ran 106 tests in 3.257s | OK",
|
| 6 |
+
"files": 68,
|
| 7 |
"repo": "tkhjeff/BlueMorpho"
|
| 8 |
}
|