Skip to content

Fail closed when narration or scene-generation model is a list - #107

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/generation-model-strings-2ccd
Sep 7, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/generation-model-strings-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

YAML lists for narration_from_source.model / system_prompt and manim_scene_generation.model / system_prompt / scene_spec_system_prompt were coerced with str() into values like "['gpt-4o']" and sent to the chat API as the model name or system prompt.

This PR requires those present keys to be YAML strings at Config.__post_init__. model must be non-empty; system_prompt / scene_spec_system_prompt may be empty (same as wizard.system_prompt). Missing keys still use code defaults.

Test plan

  • ruff check src/ tests/
  • Targeted pytest for the new list-value ConfigError cases
  • Full pytest tests/ — 636 passed, 1 skipped
  • docgen benchmark vs src/docgen/benchmark_data/baseline.json (quality average 100.0)

Milestone

milestones/generation-model-strings.md

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 7, 2026 21:07
YAML lists for narration_from_source.model / system_prompt and
manim_scene_generation.model / system_prompt / scene_spec_system_prompt
were str()'d into bracketed strings sent to the chat API. Require those
present keys to be YAML strings at config load.

Co-authored-by: jmjava <jmjava@gmail.com>
ruff, pytest (636 passed, 1 skipped), and docgen benchmark are green.

Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava marked this pull request as ready for review September 7, 2026 21:08
@cursor
cursor Bot merged commit 063a607 into main Sep 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants