World's first open-source, agentic video production system. 12 production pipelines, 100+ tools, 700+ agent skill and production-knowledge files. Turn your AI coding assistant into a full video production studio.
Python agentagentic-aiaiclaudecopilotcursorelevenlabsffmpegfluximage-generationopen-sourceopenaipythonremotionstable-diffusiontext-to-speechtext-to-videovideo-generationvideo-production
fix(delivery): recompute motion requirement after source-led override
Your Name84532dae63ad
diff --git a/lib/delivery_promise.py b/lib/delivery_promise.pyindex 9d99b96e..9f3bad39 100644--- a/lib/delivery_promise.py+++ b/lib/delivery_promise.py@@ -227,14 +227,14 @@ def classify_from_brief(if user_intent.get("motion_required") is False and promise_type == PromiseType.MOTION_LED:promise_type = PromiseType.HYBRID- motion_required = user_intent.get("motion_required", promise_type in (- PromiseType.MOTION_LED, PromiseType.AVATAR_PRESENTER,- ))-source_required = user_intent.get("has_footage", False)if source_required and promise_type not in (PromiseType.SOURCE_LED, PromiseType.LOCALIZATION):promise_type = PromiseType.SOURCE_LED+ motion_required = user_intent.get("motion_required", promise_type in (+ PromiseType.MOTION_LED, PromiseType.AVATAR_PRESENTER,+ ))+tone_mode = user_intent.get("tone", "corporate")quality_floor = user_intent.get("quality", "presentable")diff --git a/tests/tools/test_delivery_promise.py b/tests/tools/test_delivery_promise.pynew file mode 100644index 00000000..9a6fe1c6--- /dev/null+++ b/tests/tools/test_delivery_promise.py@@ -0,0 +1,26 @@+from lib.delivery_promise import PromiseType, classify_from_brief+++def test_classify_from_brief_source_led_reclassification_clears_motion_requirement() -> None:+ promise = classify_from_brief("talking-head", {"has_footage": True})++ assert promise.promise_type == PromiseType.SOURCE_LED+ assert promise.source_required is True+ assert promise.motion_required is False+++def test_classify_from_brief_explicit_motion_override_survives_reclassification() -> None:+ promise = classify_from_brief(+ "talking-head",+ {"has_footage": True, "motion_required": True},+ )++ assert promise.promise_type == PromiseType.SOURCE_LED+ assert promise.motion_required is True+++def test_classify_from_brief_avatar_defaults_stay_motion_required_without_footage() -> None:+ promise = classify_from_brief("talking-head", {})++ assert promise.promise_type == PromiseType.AVATAR_PRESENTER+ assert promise.motion_required is True