Repository navigation
refactor(universal): extract hook owner scheduling seam (issue-66 A2) - #68
Merged
Merged
Conversation
Move the minimal committed/draft hook-owner contracts into the host-neutral kernel and bind scheduleOwner through one injected core callback. Preserve profiling and root scheduling as renderer policy, with a render-through-public-root state/reducer guard and disposed-owner coverage. Agent-Authored-By: TraeCode <[email protected]> Trae-Session: 01a015c8-dc52-71b3-b929-2b5d818926bf
This was referenced Aug 18, 2026
Huxpro
marked this pull request as ready for review
August 19, 2026 18:27
This was referenced Aug 31, 2026
Merged
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.
Summary
Stacked on #67; Phase A2 of #66. This is the first behavioral-risk kernel extraction slice:
universal-kernel.tsnow owns the minimal committed/draft hook-owner contracts: hook storage, update queues, disposed lifetime, and speculativeneedsRenderscheduleOwneris bound once through an injected callback; profiling androot.scheduleOwnedremain universal-core policyTransition globals/root services and owner claiming are intentionally untouched; those remain the ordered A3 seams.
Red-green / differential evidence
{state:1,reduced:2}instead of{state:3,reduced:6}; both dev/prod copies failed. Restoring the callback returned the guard to green.universal-scheduling,universal-event-scope,universal-retained-suspense,universal-activity,universal-renderer, kernel guard): 12 files / 340 tests green.Same-window performance evidence
node benchmarks/universal-leaf-update/run.mjs 5, B/A/B/A, A1 base vs this slice:No systematic regression or performance improvement is claimed; the small changes are within cross-window noise and the semantic controls stayed correct.
Validation
pnpm synchmr.test.ts+deferred-hydration.test.tsin octane-prod — 2 files / 50 tests greenreact-hosted/web3-island.test.tsassertions — 2 project files / 4 tests passEMFILE, 55,190 repeated watcher errors), causing 2 suite/test timeouts and one hydration wait failure. The latter two pass isolated; web3 assertions pass but its dev-server watcher still reports the same environment error.pnpm test(full repository)Risk / follow-ups
Provenance
agent-authored)