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
A fresh current-main five-second sample of 30,000 production Context create/destroy iterations attributes the leading engine leaf to Shape transition construction: 257 samples in Shape.transitionFromState, 147 in transition publication, and 158 top-of-stack samples in the platform AES path reached by repeated secure-random requests. Every Shape currently requests a new 128-bit SipHash seed when its first transition map is created, even though all Shapes already share one realm lifetime and allocator.
This is diagnostic attribution, not a public timing claim.
Goal
Request secure entropy once for each root Shape, then derive a distinct keyed SipHash seed for every transition map from that realm-owned secret and a monotonic per-realm domain value. Preserve the current collision-resistant expected search bound without process-global mutable state, cross-realm sharing, predictable public keys, or entropy fallbacks.
Scope
Add a root-owned transition-key source whose lifetime exactly matches the Shape tree.
Fail Context creation closed when the single secure seed cannot be obtained, matching the current security contract.
Derive a separate key for each transition map with explicit domain separation and thread-safe unique allocation under parallel Shape publication.
No constant or public seed, weak PRNG, entropy-error fallback, process-global key/counter, shared mutable Shape tree, skipped transition caching, disabled locking, or benchmark-only fast path.
No changes to stacks, queues, jobs, Promise, Worker, or Map/Set iterator surfaces.
Acceptance
One secure entropy request initializes each root Shape; every transition-map key is uniquely derived within that realm.
Fixed-seed tests prove deterministic domain separation and distinct adjacent keys.
Parent: #479
Related: #461, #493
Profile finding
A fresh current-main five-second
sampleof 30,000 productionContextcreate/destroy iterations attributes the leading engine leaf to Shape transition construction: 257 samples inShape.transitionFromState, 147 in transition publication, and 158 top-of-stack samples in the platform AES path reached by repeated secure-random requests. Every Shape currently requests a new 128-bit SipHash seed when its first transition map is created, even though all Shapes already share one realm lifetime and allocator.This is diagnostic attribution, not a public timing claim.
Goal
Request secure entropy once for each root Shape, then derive a distinct keyed SipHash seed for every transition map from that realm-owned secret and a monotonic per-realm domain value. Preserve the current collision-resistant expected search bound without process-global mutable state, cross-realm sharing, predictable public keys, or entropy fallbacks.
Scope
No-workaround rules
Acceptance