Repository navigation
t27f: vf_layout resolver (T27F-003) - #13242
Merged
Merged
Conversation
Adds specs/t27f/vf_layout.t27: resolves a valid visual-factory graph plus its viewport to one integer rectangle per node. Two passes: intrinsic sizes bottom-up, then flex placement top-down (stack row or column, one-level grid, gap/padding/margin, align, justify, grow/shrink/basis, min/max clamps, md direction override). Reads VfGraph from visual_factory_contract.t27; that file is unchanged. Tests: 14 written, expected rectangles hand-computed in the brief. t27c test-report: 14 pass, 0 FAIL, vacuous 0. t27b test: 14 passed. Closes #13217 Refs #13214 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
This was referenced Nov 7, 2026
gHashTag
marked this pull request as ready for review
November 7, 2026 10:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
T27F-003, the layout resolver of the visual factory. Closes #13217, refs epic #13214. Builds on T27F-002 (#13216, PR #13227, master 18ffbb4).
What changes
One new file,
specs/t27f/vf_layout.t27. It resolves a valid visual-factory graph plus its viewport to one integer rectangle per node, in two passes: intrinsic sizes bottom-up, then flex placement top-down.Covered: kind to base primitive (card -> container), display stack or one-level grid, direction row or column, the md direction override from the md breakpoint up, gap, padding, margin, align, justify, grow, shrink, basis, and min/max clamps. Integer pixels only.
Not covered, by design: Yoga or CSS parity, nested grids, text measurement.
specs/t27f/visual_factory_contract.t27is imported and is not edited.Verification
Run in a T27OS shell-cell pane, not on the Mac.
t27c test-report specs/t27f/vf_layout.t27: 14 tests, 14 pass, FAIL 0, vacuous 0.t27b test specs/t27f/vf_layout.t27: 14 passed, exit 0.Not verified
Draft, no auto-merge.
🤖 Generated with Claude Code