Skip to content

refactor(ui): enforce owned runtime and presentation events - #1420

Merged
GLinnik21 merged 7 commits into
mainfrom
review/ui-owned-runtime-20261116
Nov 17, 2026
Merged

GLinnik21 merged 7 commits into
mainfrom
review/ui-owned-runtime-20261116

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve the reviewed borrowed runtime ownership, typed effect FIFO, passive frame observation and strict presentation/session codecs.
  • Integrate current main ordinarily, retaining its incoming tests and logic; adapt the PLAY-key regression to a scoped runtime bridge loan.
  • Make the side-reader regression measure its delta through the actual worker seam instead of racing a manual global write.
  • Authenticate the four immutable historical recordings by bounded parsing and exact raw hashes before reporting the typed V13 owner-input/presentation refusal. Unknown, current, corrupted and truncated recordings never earn an expected refusal.
  • Add a new synthetic current V13 anchor through the actual simulator producer, product recorder, official privacy check and import. Preserve the four old recordings and privacy alphabet byte-for-byte.
  • Register its exact current profile and producer-pinned manifest shape at independent CLI/privacy boundaries. Permit only closed path-typed enum slots; reject unknown fingerprints, extra/truncated fields and private/token values without a fixture-name exception.
  • Preserve current main's Dolby Vision/version/on-deck, closed HDR diagnostics and release-workflow changes. Fix only the timeout-report selftest's early-closing grep -q pipelines under pipefail; retain every verdict/return-code/timing/cleanup predicate and add repeated long-report and negative controls.

Verification

The new current anchor v13-owned-input-content replayed all 1,216 frames and grades in Targets and Resolve: each inner simulator process returned raw exit 0, SAME, all eight difference counters zero. Its imported manifest adds only anchor: true; initial state/hash and segment bytes remain the producer's. The actual shared replay driver ran all five recordings in both modes: these two current SAME processes plus eight historical processes, each raw exit 1 with the exact typed early owner-input/presentation refusal; zero unexpected outcomes. The older directory ending in -current is historical, not the current anchor.

The incoming merged hostsim compile failure was reproduced before the bridge-loan fix. The complete hostsim unit suite then passed, including the incoming PLAY-key test, measured side-reader regression and historical-profile negative controls. All 22 strict replay-policy controls passed.

Earlier integrated local components passed Rust/cargo and all 140 Python/shell/C rest steps; after the fixture-boundary repair, all 746 harness tests (four existing skips), 72 outbound controls, 22 replay-policy controls, source/dependency, lint, extension and shipping checks passed. The actual first published-head CI passed default/hostsim unit tests, harness, lint, ARM assertions and all simulator/current-replay jobs; its only failing rest step was the timeout-report selftest assertion. A standalone probe demonstrated printf returning SIGPIPE (141) despite grep accepting the expected text. Full-consumption matching fixes that assertion without weakening its predicates.

The new ordinary main merge's pre-selftest tree exactly matched that CI's actual combined source tree, including all 17 incoming paths. The only further change is the selftest assertion and regressions. Frozen final checks passed the actual complete selftest three times, affected workflow/TV-lock Python controls, source/dependency, named lint and shipping. These are component-level receipts, not a claimed final single make check exit 0. New exact-head CI and a source-bound fresh ARM/native acceptance remain separate landing requirements; the earlier artifact is quarantined, not substituted.

Landing hold

Draft until every applicable check for the published head is green and fresh ARM/native acceptance names that exact full head. Host results do not establish television rendering, decoding or performance. Landing uses only the repository's exact-head gate and squash-merge tool, without bypasses.

- Lend runtime owners and route typed effects through one product-frame authority.

- Fence player receipts, observers, modal and page-image policy by their owner.

- Add portable extension, codec and boundary regression evidence.
- Pin the V12 fixture expectation without rewriting its bytes or admitting it as V13.
- Read the pinned channel with tomllib for the isolated compiler proof.
- Keep historical toolchain descriptions tied to the tested repository revision.
- Adapt incoming runtime and side-reader regressions to their owned seams.
- Authenticate immutable historical profiles and add the producer-recorded current anchor.
- Close current manifest privacy slots and verify exact profiles with negative controls.
- Preserve current main's Dolby Vision, HDR and release integration.
- Consume timeout reports fully without weakening any verdict predicate.
- Cover long reports repeatedly and retain the negative controls.
- Pin the statvfs snapshot while asserting the exact closest-ancestor lookup.

- Keep the real-volume check without comparing mutable free-byte readings.
@GLinnik21
GLinnik21 marked this pull request as ready for review November 17, 2026 02:40
@GLinnik21
GLinnik21 merged commit 8750203 into main Nov 17, 2026
16 checks passed
@GLinnik21
GLinnik21 deleted the review/ui-owned-runtime-20261116 branch November 17, 2026 02:41
tiper added a commit to tiper/fin-native that referenced this pull request Nov 17, 2026
GLinnik21 added a commit that referenced this pull request Nov 17, 2026
…ns and a droplet close (#1444)

The glass menus (Library and Watchlist Sort & Filter, the +N list, the profile menu) open and
close like iOS 26's glass menus, fitted frame by frame to a 60 fps reference recording.

The opener is consumed: the glass detaches from it as a bead while the opener fades, and the panel
stands over it. This reverses design review S11/S12, under which the opener stayed lifted on top.

Open: underdamped rect springs (height leads, width follows 26 ms later); the glass is a round lens
of radius min(w,h)/2 until near full size, then eases to the panel radius; the rows ride their own
lens spring (about 0.65 when first shown, a peak near 1.11, 1.0 by ~360 ms) and are cut by the
lens's round edge; the dim follows the morph (Popover::dim, Scrim::following).

Close: a droplet. The slab bulges, then drains on separate width and height springs, folds through
a smooth-min neck into a re-forming blob that whitens toward the opener's fill (u_mrg_tint in
fs_glass.frag), and hands the opener back at ~233 ms with the dim at 0 on that frame. The fold
consumes the table's tail, so the drawn slab drains without a collapse.

Shared mechanisms:
- A rounded clip in the painter: ClipScope::open_rounded_in in ui, rclip_set (single writer with a
  generation counter) in gfx, and a rounded-rect SDF in authored px (shaders/rclip.glsl) compiled
  into PLX_RCLIP variants of fs_src and fs_tex, bound only while a rounded clip is live, plus a
  third clip slot in fs_text_ink. The plain programs stay byte-identical. The rect program's LOC_*
  statics became a by-value RectUniforms. A split card's interior keeps the unmasked program.
- Spring::land_if_still and motion::FRAME_DT_CLAMP: every morph spring lands exactly on the step
  it stops moving, so a late idle step no longer redraws a settled menu.

Frame cost on a menu's close:
- Popover::release drops only the ground-stage snapshot, not the page snapshot.
- Home raises damage on Uncover/Restored only when its catalog changed.
- The account chip lift's owner is decided once at the mount (Dispatcher::settle_lift) and the chip
  is painted every frame through widgets::lift_ground.
- bind_owner (#1420) keeps the page snapshot when a layer whose host stayed Live merely starts
  closing (ModalCacheKey::began_closing, ModalPresentation::kept_host_live); a layer that froze its
  host (Sheet, Alert, Opaque{snapshot:true}) still retakes the page.

Measured on the TV (ARM release profile, mock accounts): the Library Sort & Filter close's first
frame went from 146% to 65% of the GPU budget per refresh, and missed refreshes over the close from
32 to 3. The account menu's close-start retake (a Sheet, already on main) and the Library's
rows-visible headroom (96% median) are left for a follow-up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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