Is it absolutely necessary that we keep the workers keyed by the user ID? If two users have an agent that has the exact same code for execute, can we not just reuse that worker?
Makes total sense ... You're not missing a secret reason we must key workers by user for isolation.
Also: a worker's identity includes the deploy version, so every platform deploy starts every worker over. Narrowing the key to only what changes behavior fixes that.
To be clear my goal here is primarily to cut my own costs and then hopefully we can pass those cost savings on to users through higher entitlements or reduced pricing.
...this is a pretty impactful change. I'm fine with the agent shipping it and deploying it autonomously but I want it to do rigorous manual testing of the preview deploy.
Shipped: deploys no longer reset workers. Testing showed sharing one worker across users isn't safe yet, so the per-user key stays. User pricing is unchanged for now.