Skip to content

refactor(ui): complete owned input and frame scheduling - #1366

Merged
GLinnik21 merged 4 commits into
mainfrom
UI_backlog
Nov 13, 2026
Merged

GLinnik21 merged 4 commits into
mainfrom
UI_backlog

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Summary

  • Finish the UI ownership migration: remove legacy navigation/press publications, the shadow app press, and the global idle/damage adapters.
  • Route keyboard/pointer commits, deferred rendering wakes, publication damage, and actual-swap acknowledgement through the owning dispatcher.
  • Prevent premature settled screenshots, preserve late draw work, and advance the developer replay census to AppFrameV5.
  • Retain migration regressions and add independent-owner, source-pass, nested Settings and adapter-resurrection checks.

Validation

Passed locally through WSL on the pinned Rust toolchain:

  • make check-cargo-unit-default
  • make check-cargo-unit-hostsim
  • make check-cargo-lint (including feature checks)
  • make check-nodef
  • ci/check-deps.sh, ci/check-statics.sh, and new negative gate self-tests

This PR is also intended to run the complete CI equivalent of make check and the ARM cross-build in clean runners. Local full Python validation was limited by Python 3.10/Windows checkout constraints; 28 SessionMachine shape findings were reproduced unchanged on the HEAD baseline. The local ARM compiler is not installed. No native-device or pixel-parity result is claimed.

Compatibility

Old developer recordings are explicitly rejected by the AppFrameV5 state fingerprint rather than replayed under different press semantics.

- Remove legacy navigation, press and global present adapters.

- Address deferred rendering and publication effects to their owner.

- Preserve late frame work and revalidate settled screenshots.

- Add ownership regressions and explicit replay compatibility boundary.
- Refresh reviewed generated-type certificates and mutation regressions.

- Preserve frozen V4 key-only grading without restoring a shadow input owner.

- Decode current codec-6 boot profiles and reject unsupported legacy pointer inputs.

- Keep all committed recording hashes and replay assertions unchanged.
- Preserve reviewed UI ownership identities and main dependency pins.

- Resolve the generated certificate pin; validate merged cargo, Python and nodef gates.
The unchanged Python harness passed locally in 624s, exceeding the 600s CI job budget. Allow 900s (15 minutes) for the measured suite without cutting tests or changing other job limits.
@GLinnik21
GLinnik21 merged commit 6a74d2a into main Nov 13, 2026
22 checks passed
@GLinnik21
GLinnik21 deleted the UI_backlog branch November 13, 2026 23:38
GLinnik21 added a commit that referenced this pull request Nov 14, 2026
…um certificate

`machine/src/machine.rs` is pinned whole-file in `ci/proofs/platform-generated-enums.json`
and `ci/readonly_generated.py`, so #1385's rewrite of the `Canon` byte loops failed
`check-machine-shape.py` (the machine-shape audit lost its certificate for the newtype id
structs, so every shared opaque payload read as unproven) and `test_readonly_generated.py`.

What the certificate certifies from machine.rs is the `newtype!` macro and its ten `u32`
invocations: `declarations()` lexes exactly those and emits `pub struct Name(pub u32)`.
The PR's change is `impl Canon` and `canon_tests`, from line 882 on; lines 1-881 are
byte-identical, the extracted declarations are identical, and the FNV-1a byte stream is pinned
by the new `canon_is_fnv_1a_over_tagged_little_endian_bytes` test. So the new file hash is
added to `MACHINE_SOURCES`, the certificate is regenerated with `produce_certificate`
(only the machine.rs hash list and one review line change) and `CERTIFICATE_SHA256` is the
hash of that certificate. The way #1358 and #1366 updated it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21 added a commit that referenced this pull request Nov 15, 2026
## Draft scope

Continue the new UI migration on current main, separately from already-merged #1366. No automatic merge or ready-for-review transition is requested.

- Execute all eleven app-effect families through one owned dispatcher FIFO and taken-head runner, retaining sender lifetime, frozen ReturnState, budgets, cancellation/refusal and exactly-once completion.
- Capture screen runtime policy, all thirteen effective profile preferences, install/running language and complete immutable player presentation at the app boundary. Controlled hosts use explicit inputs and explicit native-port capability, never ambient diagnostic/preference fallbacks.
- Bind strict CURRENT V11 bootstrap/writer/reader contracts; reject unknown/noncanonical fields and underspecified unpublished profiles. Refund only dropped scalar-row JSON reservations, without changing peak/retained-data limits.
- Add targeted source and negative-control gates, captured-policy/runtime tests, strict replay refusal accounting and the exact-byte current Filmography fixture. Existing recording directories and ALPHABET remain unchanged. CURRENT requires SAME; only the approved historical dynamic-Content scheduler profile expects exact early refusal, never a fixture-name/hash exception.

## Ownership and integration

Based on main `8859e4bad1838f154a90bbb5885fd48d928c7d72`, independently confirmed through origin and GitHub git/ref. The patch was extracted semantically against the recovered source's original base, excluding EOL-only recovery churn and unrelated work, then applied three-way in a separate clean branch/worktree. The source worktree's HEAD, logical index, raw index and tracked bytes are independently checked unchanged.

129 owned paths: 127 from reviewed migration changes plus four newly added paths, minus two excluded paths. Exclusions retain incoming main's outgoing-stop timing fix and the entire original fixture inventory, including its README. No source-tree replacement, old-PR restack, closed-branch push, toolchain/dependency downgrade, private report or local runtime is included. Incoming Rust 1.100.0, dependency identities, Canon optimization and CI timing fixes remain intact. Generated-unit-enum proof adds only the reviewed exact merged machine identity; generator grammar, namespace/writer contracts and negative controls remain strict.

## Verification

Exact proposed Git tree `f26920af41cd524121f5b725fa909b8fcb25eaab` matches the native staged tree and independent Linux mirror. On incoming pinned Rust 1.100.0 / Python 3.12.16, all inherited GIT_* variables removed and bounded two-job Rust execution:

- Final full `make check`: PASS, 568.98 seconds. Cargo lint/default/hostsim and Python phases all pass; 136 registered rest steps pass. Harness: 745 tests, OK, four existing skips. Default app 1418/0, screens 2168/0, appkit 955/0, media 2134/0; hostsim app 1621/0 and media 2414/0. Media retains its 100 existing ignored tests.
- All six final configurations PASS: shipping, bare, play-uri, play-feed, devtriggers and hostsim.
- Focused current/legacy bootstrap and actual fixture preflight, replay parser 24, fixture/privacy class 13, CI registry 16, generated-proof mutations, UI-boundary controls, FIFO routing and poisoned nested-Git isolation PASS. Full DepGates selector regression PASS after integrating the new rules with main's selector contract.
- Full-patch outbound/private-path scan and guard controls PASS; native diff whitespace check PASS. All original fixtures and ALPHABET are untouched; added manifest/segment match their officially imported bytes exactly.

Two integration-oracle failures were fixed before the final run: patch export framing at the manifest's absent final newline, and new source rules not yet registered in main's selective gate protocol. Neither fix changes fixture bytes, weakens production policy or relaxes a test. Prior recovered-source software-renderer results (six SAME plus two exact historical refusals) remain separate evidence, not a fresh renderer claim for this integrated tree. Remote exact-head CI, simulator replay and ARM artifacts are pending publication and must be reviewed independently.

## Deliberately incomplete acceptance

This is a DRAFT, not whole-project UI acceptance. ARM/native build artifacts require remote CI verification; local SDK is absent. Native TV/video-plane/glyph/performance, accepted accelerated visuals, WSLg transport, the full 70-route scenario matrix, architecture census and cached-modal acceptance remain unverified. Earlier private software-renderer evidence is logical replay evidence only, not hardware or visual approval. No account/provider/TV/system changes or SDK downloads were made.
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