Skip to content

The workspace projection sweep re-exchanges its bootstrap token every 30 seconds #306

Open

Description

@pseudoseed

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.

Activity

  1. added
    area/tower
    on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tower

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions