You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(runtime-host): specialize storage-root composition to interactive roots #3037
Runtime Host composition is generic over StorageRootKind, but StorageRootKind currently has exactly one member: interactive.
The generic parameter propagates through:
RuntimeHostCompositionContext
RuntimeHostCompositionFactory
RuntimeHostCompositionSource
RuntimeHostKernelOptions
RuntimeHostKernel.start()
Because the kernel stores a non-generic internal option type, it also needs eraseRootKind() to bridge the generic facade back to the same single concrete kind.
There is no second Runtime Host producer or consumer that benefits from this abstraction.
Proposed change
Specialize Runtime Host composition and kernel types to StateRootOwner<'interactive'>.
Remove the Runtime Host storage-root kind generic parameters.
Remove eraseRootKind() and the associated type adaptation.
Preserve the existing storage-root authentication, ownership, locking, and lifecycle behavior.
Acceptance criteria
Runtime Host composition types are no longer generic over StorageRootKind.
RuntimeHostKernel.start() accepts the concrete interactive root owner.
eraseRootKind() is removed.
Existing Runtime Host compositions compile without type assertions or replacement adapters.
Storage-root identity, authentication, and lease behavior remain unchanged.
Focused Runtime Host tests, type checking, and formatting pass.
Non-goals
Adding a new storage-root kind.
Changing storage marker or ownership formats.
Changing root locking or process-residency behavior.
Removing retainUntilProcessExit().
Generalizing Runtime Host for hypothetical execution authorities.
Context
Verified on main at 1a71db5c0fa85771330354360388ecf47ba95c2e.
Activity
Sun-GLiang commentedon Aug 15, 2026
Hi, I’d like to work on this issue.
My plan:
Storage-root authentication, ownership, locking, lease, and lifecycle behavior will remain unchanged.