Raised by the review of PR #305 (issue #272) and left undone deliberately.
What happens
createWorkspaceProjectionSweeper runs every 30 seconds and exchanges the configured bootstrap token on each pass, per server. That is 2880 exchanges a day against one server.
What it costs
Each exchange mints a new session. Nothing consumes them and nothing prunes them, so the session store grows all day for a reconciler that usually has nothing to do.
The review framed this as spending a one-time pairing token before anyone spawns. That specific framing is wrong and worth correcting here: the environment bootstrap token is durable and re-exchangeable, verified today by exchanging it repeatedly against a running server and getting 200 each time. So nothing is burned. What accumulates is sessions.
What would close this
- Cache the access token and re-exchange only when it is near expiry.
- Or exchange once at sweeper start and refresh on a 401.
Source
Integration review of PR #305.
Raised by the review of PR #305 (issue #272) and left undone deliberately.
What happens
createWorkspaceProjectionSweeperruns every 30 seconds and exchanges the configured bootstrap token on each pass, per server. That is 2880 exchanges a day against one server.What it costs
Each exchange mints a new session. Nothing consumes them and nothing prunes them, so the session store grows all day for a reconciler that usually has nothing to do.
The review framed this as spending a one-time pairing token before anyone spawns. That specific framing is wrong and worth correcting here: the environment bootstrap token is durable and re-exchangeable, verified today by exchanging it repeatedly against a running server and getting 200 each time. So nothing is burned. What accumulates is sessions.
What would close this
Source
Integration review of PR #305.