I used AI tools to help draft and edit this post. I checked the facts and the wording, and the original lives at geekindata.com . The diagrams are on that page.
Hosted agents move the runtime. Your front door stays
Key takeaways
A hosted agent moves the runtime: your code, in a container, with its own identity and endpoint. It does not move sign-in, app roles, or which user may open which session.
Move an agent off a prompt agent only when the agent itself needs code a prompt agent cannot express. A nicer deploy story is not a reason.
The credential your backend calls with sets the isolation scope. Call with the app's own identity and no user header, and every user lands in one scope.
Per-user isolation for your own users needs a user header and a custom role, and even then the platform does not fence delegated users from each other. Your session map does.
Guardrails can fail open while everything returns HTTP 200.…