Skip to content

Fail closed when wizard.default_guidance is a list - #113

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/wizard-default-guidance-2ccd
Sep 7, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/wizard-default-guidance-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

wizard.system_prompt / llm_model are already typed at config load. wizard.default_guidance was not: wizard_config merged a YAML list over the "" default.

This PR requires present wizard.default_guidance to be a YAML string (empty allowed, same as system_prompt). Missing key still uses "".

Test plan

  • ruff check src/ tests/
  • Targeted pytest for list and empty-string values
  • Full pytest tests/ — 656 passed, 1 skipped
  • docgen benchmark vs src/docgen/benchmark_data/baseline.json (quality average 100.0)

Milestone

milestones/wizard-default-guidance.md

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 7, 2026 21:29
wizard_config merged a YAML list over the empty-string default.
Require a YAML string at config load (empty allowed, same as
wizard.system_prompt).

Co-authored-by: jmjava <jmjava@gmail.com>
ruff, pytest (656 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:29
@cursor
cursor Bot merged commit fe60406 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