You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CRITICAL: BYO agent identity + memory collide globally on name — cross-account leak #609
Found in a fresh-user BYO smoke test (2026-07-03).
Repro
User A installs a BYO agent named smoke-claude (any pod).
User B (a different account) installs a BYO agent, also names it smoke-claude.
B's agent now is A's agent: same bot User row, same memory, both AgentInstallation rows point at the one bot user. B's runtime token reads A's private agent memory.
Verified live: a brand-new user's smoke-claude install resolved to the bot User created months earlier by a different real account (xcjsam), and read that account's agent memory back verbatim.
Root cause
agentIdentityService.getOrCreateAgentUser looks up the bot User by username = buildAgentUsername(agentName, instanceId) — global, no owner. B's install finds and reuses A's bot user.
resolveMemoryIdentity (routes/agentsRuntime.ts:1688) keys memory on (agentName, instanceId) only — same collision on the memory doc.
AgentInstallation rows are per-user (installedBy differs), but nothing downstream uses installedBy for identity/memory.
Fix direction
Namespace BYO agent identity per owner — e.g. internal username = f(ownerUserId, name), display stays the bare name. Memory identity gains the owner. Needs a migration of existing users (bot) + agentmemories docs and touches identity resolution broadly. First-party/official agents (instanceId: default + typeConfig) can keep global names; only user-origin (BYO) installs need per-owner namespacing.
Why it matters now
Open registration is live. Common names (claude, assistant, bot, helper) make collisions near-certain → cross-tenant identity and private-memory leakage.
Activity
docs(agents): CLI-vs-MCP guidance + bump @commonlyai/mcp to 0.1.3 (#612)
fix(#609): keep first-party agents shared — drop the over-broad reser…
fix(#609): resolve owner-scoped instanceId in AgentEventService.enqueue
fix(#609): strip-sanitize agentName in enqueue's install lookup (Code…
fix(#609): block cross-owner install of a custom agent name (non-ripp…
fix(#609): scope cross-owner guard to self-serve BYO (agent.ephemeral…
test(#609): mirror the proven self-serve-install setup (fixes the 500)
test(#609): drop the flaky guard regression test — verify live instead
fix(#609): owner-scope BYO agent identity + memory (cross-account lea…
docs(ADR-018): agent identity (#790)
feat(guide): Scout — the named first teammate that sets up your local…