Repository navigation
Conversation
392d13b to
0ee9f17
Compare
663c5b2 to
3e6d13b
Compare
3e6d13b to
7c6461b
Compare
7c6461b to
71fbd53
Compare
71fbd53 to
0f85ac8
Compare
0f85ac8 to
2a4d17a
Compare
2a4d17a to
db76b08
Compare
db76b08 to
93ef582
Compare
c62b8ab to
6c2d4d0
Compare
6c2d4d0 to
4acfe57
Compare
4acfe57 to
eea72e1
Compare
46f19d3 to
e8da24a
Compare
e8da24a to
105a2d2
Compare
|
Closing because the admission and retirement safeguards in this complete six-file patch are already implemented, with newer ownership refinements, on main (
Runtime long-poll admission still classifies browser-host attaches separately, aborts/releases on disconnect, and reserves capacity for ordinary waits. Main has intentionally advanced from this draft’s single 25% host budget to a 50% global host budget with a per-device half-share and a combined 75% ask+host ceiling, preserving the wait reservation while allowing two devices. |
Summary
This is the fourth inert layer for STA-4150, stacked on #14484. Production RPC registration and capability advertisement remain disabled.
Causal evidence
On the parent branch, one unchanged oracle failed three ways: a second identity on one connection was admitted, a fifth identity for one paired device was admitted, and closed page placement had no retirement API. Those cases are now bounded and exact.
Fresh review then found two additional lifecycle failures before publication: delayed cleanup could erase a replacement placement, and four devices could occupy all 16 shared long-poll slots. Retirement now requires the exact placement object, and a real injected WebSocket test proves host saturation still admits an ordinary wait and socket close aborts/releases both classes.
Validation
pnpm typecheckDeliberately deferred before activation