Skip to content

chore: refresh the checked-in Ruby control surface - #89

Merged
AdamMusa merged 2 commits into
codex/engine-initializationfrom
chore/refresh-ruby-surface
Nov 2, 2026
Merged

AdamMusa merged 2 commits into
codex/engine-initializationfrom
chore/refresh-ruby-surface

Conversation

@AdamMusa

Copy link
Copy Markdown
Owner

Depends on #81, which adds test/contract/ruflet_control_surface.json. Until #81 merges, this PR's diff also shows #81's commit; review the last commit.

What

Regenerates the engine's checked-in Ruby control surface (packages/ruflet/test/contract/ruflet_control_surface.json, read by contract rule C3) from ruflet main @ 43928509.

The copy in #81 was generated before ruflet #30 (text_input_action on TextField) and #38 (chevron on ListTile) merged. That staleness is what QA's audit reported as two "new" findings. Both are merged now (gh pr view: #30 merged 2026-10-29T00:34Z, #38 00:48Z).

The diff also adds the wire types merged since then: CarouselView, DraggableScrollableSheet, FittedBox, FormRow, IndexedStack, ListSection, Table and TableRow. Summary: 412 entries (374 visual, 38 services), 213 wire types.

How

ruby tool/sync_ruby_surface.rb --ruby <ruflet main checkout>, then --check (rc 0). The generator is tools/control_surface.rb from ruflet#59. #59 is approved but not merged yet, so the tool was copied into a throwaway ruflet origin/main worktree; the file is byte-identical to #59's head a40d1528.

Tests

Data-only change; no Dart code changes.

Add the shared control kernel every control will migrate onto: a pure-data
ControlSpec, PropReader as the only reader of wire keys, ControlEvents as the
only event dispatcher, ControlCore/FocusableCore for client state and focus,
and CoreHost as the single owner of a control's invoke listener and layout
keywords (re-bound when Ruby replaces the control in place). ToggleLabel,
TileToggleCore, CoreSemantics, RawProp and TextOrWidget are the neutral
pieces the first migrations share.

The control-core contract test checks every migrated control against rules
C1-C8 (skin isolation, core purity, spec equals Ruby KEYWORDS, skin
consumption, lifecycle, completeness, event and semantics parity, and a
report-only legacy ratchet). The manifest starts empty; the runtime rules run
against a test-only probe core and the static rules against adversarial
fixtures. The JSON snapshot harness and the Ruby control surface copy (with
tool/sync_ruby_surface.rb) support the migration PRs.
Regenerate test/contract/ruflet_control_surface.json from ruflet main
43928509 with tools/control_surface.rb (ruflet #59). It now includes the
keywords merged since the first copy, among them ListTile chevron (ruflet #38)
and TextField text_input_action (ruflet #30), and the controls added since
(CarouselView, DraggableScrollableSheet, FittedBox, FormRow, IndexedStack,
ListSection, Table, TableRow).
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.

1 participant