Skip to content

t27f: vf_layout resolver (T27F-003) - #13242

Merged
gHashTag merged 1 commit into
masterfrom
claude/t27f-003-vf-layout
Nov 7, 2026
Merged

gHashTag merged 1 commit into
masterfrom
claude/t27f-003-vf-layout

Conversation

@gHashTag

@gHashTag gHashTag commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

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.t27 is 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.
  • Expected rectangles in the tests were computed by hand before the code was written, then pinned: the contract sample graph at 375 and 1280 px, the md override at 375, 639, 640 and 1280, plus padding, margin, shrink, grow, clamps, align, justify and grid.
  • Local lefthook gates (foreign-budget, own-language, secret scan) passed.

Not verified

  • No seal was saved; none is required for this file by CI today.
  • Numeric rectangles only. No visual check has been done.
  • Master carries three red checks that are not from this branch (scan, duplicate-bodies, documented subcommands). They wait on other PRs and are not touched here.

Draft, no auto-merge.

🤖 Generated with Claude Code

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>
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-07 09:30:14 UTC

Summary

Status Count
Total Open PRs 43
PRs with Failing Checks 41
PRs with All Checks Green 2
READY 2
FAILING 41
PENDING 0
NO CHECKS YET 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e75b498e5e79 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

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.

T27F-003: registry resolution, layout, core components (vf_layout.t27)

1 participant