Thing 2.0 cut 5a: layout (Taffy, device pixels, a Measure seam for text) #15

Merged
eureka merged 29 commits from hands/thing2-layout into main 2026-11-28 05:33:05 +00:00
Owner

Layout runs the one solver, Taffy 0.16, over the resolved, bound tree (thing:ruling:thing2-one-solver-taffy), in device pixels with rounding at one adapter (thing2:ruling:layout-in-device-px; Percent is percent points per thing2:ruling:percent-is-percent-points). A style slot Taffy cannot take, or a length past 2^21 device px, takes its initial value with one StyleValueInvalid (thing2:ruling:layout-invalid-style-initial); an out-of-range measure or aspect ratio leaves the node unconstrained with a diagnostic; a non-finite scale or viewport is refused. After Taffy, any coordinate past 2^21 device px (where f32 keeps 1/8 px) refuses the layout with LayoutOutOfRange and the caller keeps its last good layout. Text plugs in later through the Taffy-free Measure trait; images measure through it (thing2:ruling:image-extent-bound-site). The stack is sized from the measured depth, so 1,023-level chains of every display kind run on a default thread. Deterministic across runs and profiles; goldens for every fixture but f05/f06 (5b), at several scales.

Spec thing2:cut_spec:cut-layout.r1; reports h1-h5; Soul s1-s5 (s5 holds). 221 tests. Known limit filed: thing2:follow_up:layout-basis-sum-precheck.

🤖 Generated with Claude Code

Layout runs the one solver, Taffy 0.16, over the resolved, bound tree (`thing:ruling:thing2-one-solver-taffy`), in device pixels with rounding at one adapter (`thing2:ruling:layout-in-device-px`; Percent is percent points per `thing2:ruling:percent-is-percent-points`). A style slot Taffy cannot take, or a length past 2^21 device px, takes its initial value with one StyleValueInvalid (`thing2:ruling:layout-invalid-style-initial`); an out-of-range measure or aspect ratio leaves the node unconstrained with a diagnostic; a non-finite scale or viewport is refused. After Taffy, any coordinate past 2^21 device px (where f32 keeps 1/8 px) refuses the layout with LayoutOutOfRange and the caller keeps its last good layout. Text plugs in later through the Taffy-free `Measure` trait; images measure through it (`thing2:ruling:image-extent-bound-site`). The stack is sized from the measured depth, so 1,023-level chains of every display kind run on a default thread. Deterministic across runs and profiles; goldens for every fixture but f05/f06 (5b), at several scales. Spec `thing2:cut_spec:cut-layout.r1`; reports h1-h5; Soul s1-s5 (s5 holds). 221 tests. Known limit filed: `thing2:follow_up:layout-basis-sum-precheck`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
layout tests: each edge of the bound refuses
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 4m27s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 3m34s
d338f23356
eureka merged commit 2c08d99992 into main 2026-11-28 05:33:05 +00:00
eureka deleted branch hands/thing2-layout 2026-11-28 05:33:05 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Thing!15
No description provided.