Repository navigation
refactor(universal): extract the host-neutral hook-cell kernel (issue-58 L2 spike) - #64
Merged
Merged
Conversation
4 of 5 tasks
Huxpro
commented
Aug 18, 2026
Huxpro
left a comment
Owner
Author
There was a problem hiding this comment.
Verified the extraction line-by-line: depsEqual, isThenable, thenable tracking, the effect create/cleanup runners, effect-event deactivation, and every cell/queue type are byte-identical moves with dependencies entering only as type parameters, and the kernel file genuinely has zero imports (the structural test pins that). Guard suites plus the full octane/octane-prod projects passing supports the zero-drift claim. One inline note on what the boundary test actually pins vs what its name claims — worth tightening before the next slice, which is where semantic drift risk actually begins.
Generated by Claude Code
…-58 L2 spike) Hook cell shapes, hook update-queue value types, and the pure cell helpers move to universal-kernel.ts with owner and batch types as parameters; universal-core binds the generics and re-exports the public types, so behavior and the public surface are unchanged. Remaining extraction seams are inventoried in docs/lynx-specialized-target-l0.md §5. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
Per review: the standalone helper assertions do not prove core wiring; the comment now routes that guarantee to the universal-* behavioral suites. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
Huxpro
force-pushed
the
claude/octane-issue-58-l2-kernel-spike
branch
from
August 18, 2026 16:08
09e0cd5 to
4924e40
Compare
This was referenced Aug 18, 2026
Closed
Huxpro
changed the base branch from
claude/octane-issue-58-l1-lynx-target
to
new-lynx
August 19, 2026 17:12
Huxpro
marked this pull request as ready for review
August 19, 2026 17:12
This was referenced Aug 19, 2026
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 the L1 PR (#63); the kernel-extraction spike that #61 (L2 of the #58 roadmap) calls for as its first step.
packages/octane/src/universal-kernel.tsnow owns the host-neutral first slice of the hook kernel:EffectHookonly as a type parameter;UniversalHookUpdateQueueand applied-update shapes), with the transition batch as a type parameter;depsEqual,isThenable, thenable tracking, the effect create/cleanup runners, and effect-event cell deactivation.universal-core.tsbinds the generics (EffectHook<UniversalOwnerRecord>, queue types overUniversalTransitionBatch) and re-exports the public types (LinkedStateOptions,LinkedStatePrevious), so runtime behavior and the public surface are unchanged — this is a mechanical move that answers the fresh-core-vs-extraction question's first gate: the cells separate cleanly.The remaining seams, in extraction order for the L2 core proper, are now inventoried in
docs/lynx-specialized-target-l0.md§5 (owner abstraction;scheduleOwnerinjection; transition-batch globals + root services;formatUniversalId/ warm-memo cache /readBridgeContext; owner claiming last).ComponentMemoHookstays renderer-facing in universal-core by design.Validation
pnpm typecheck(repo-wide, clean)lynxproject: 25 files / 340 tests greenuniversal-scheduling,universal-event-scope,universal-retained-suspense,universal-activity,universal-renderer): 10 files / 334 tests greenpackages/octane/tests/universal-kernel-boundary.test.ts: pins the kernel's zero-import host-neutrality contract and exercises the extracted runtime helpers directlypnpm test(full repo run beyond the projects above not executed in-session)Risk / follow-ups
scheduleOwner) is where drift risk begins — it should land with the same guard-suite discipline.slotstables emitted by feat(compiler): target 'lynx' — create-function template emission for the Lynx main thread (issue-58 L1) #63 are its compiler-side input.Provenance
agent-authored)Generated by Claude Code