Skip to content

Fail closed when scene-spec layout gaps coerce bools to 1.0 - #148

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/scene-spec-layout-gaps-2ccd
Sep 8, 2026
Merged

Fail closed when scene-spec layout gaps coerce bools to 1.0#148
cursor[bot] merged 2 commits into
mainfrom
cursor/scene-spec-layout-gaps-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Problem

PR #147 typed wait_word / run_time / sizes / page_transition_run_time. Layout gaps still went through float() at compile.

first_row_title_buff: true became 1.0 and looked like a valid gap. A quoted "0.6" raised at compile, not at validate_scene_spec.

Change

  • Present layout.first_row_title_buff / row_gap / column_gap must be YAML numbers (not bool)
  • Missing keys keep compile defaults
  • Density floors (MIN_TITLE_ROW_BUFF) stay warnings

Gate

  • ruff check src/ tests/ green
  • pytest tests/ — 821 passed, 1 skipped
  • docgen benchmark meets src/docgen/benchmark_data/baseline.json (no clock change; no --update-baseline)

Out of scope

Milestone: milestones/scene-spec-layout-gaps.md

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 8, 2026 01:13
first_row_title_buff / row_gap / column_gap still went through float(),
so true became 1.0 and looked like a valid gap. Require YAML numbers when
present; missing keys keep compile defaults.

Co-authored-by: jmjava <jmjava@gmail.com>
ruff green; pytest 821 passed, 1 skipped; docgen benchmark meets baseline.

Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava marked this pull request as ready for review September 8, 2026 01:14
@cursor
cursor Bot merged commit 5c0ec4a into main Sep 8, 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