Status: Shipped
PR: #117
Depends on: milestones/hint-segment-create-bool.md (PR #116),
milestones/numeric-config-tunables.md (PR #115),
milestones/generation-model-strings.md (PR #107)
narration-generate / scene-spec-generate wrap generation tunables
in float() / int(). A YAML bool is a subclass of int,
so:
narration_from_source.temperature: truebecame temperature 1.0.max_context_bytes: truebecame a 1-byte context window.max_whisper_words_in_prompt: truebecame 1 (truncate the word stream).
A YAML list or string raised TypeError / ValueError at generate
time, not ConfigError at load.
Fail closed at Config.from_yaml. Present values of:
narration_from_source.temperature/max_context_bytesmanim_scene_generation.temperature/max_context_bytesmax_whisper_segments_in_prompt/max_whisper_words_in_prompt/max_whisper_segment_text_chars
must be YAML numbers (int or float, not bool). Missing keys keep defaults.
- Present tunables must be YAML numbers.
- Tests for bool temperature, list
max_context_bytes, quoted whisper cap, and valid numbers. -
ruff check src/ tests/ -
pytest tests/(677 passed, 1 skipped) -
docgen benchmark(no clock change; meets baseline)
- Nested validation numerics (
ocr.sample_interval_sec, …). - Per-segment
temperaturekeys that generation settings do not currently read. - Coercing numeric strings into numbers.