9ed3e64a91
Move SESSION_ID and friends above the vi.mock factories so the mock closures don't depend on vitest hoisting magic capturing TDZ-undefined locals. The previous layout worked because factories aren't invoked until the module under test is imported (after const initialization), but a refactor that imports earlier would break the closure silently.