Skip to content

Agents as a first class actor, assignable and attributed #215

Open

Description

@imshashank

An AI agent connected to Orbit over MCP currently acts as the person who authorised it. Everything it does is attributed to that human. Read the board, file an issue, move a card, and the activity feed says a person did it.

That was the right first decision, because it made permissions simple and correct. It does not survive contact with teams actually using agents, because:

  • You cannot tell what a person did from what their agent did
  • You cannot assign work to an agent, because an agent is not an assignee
  • You cannot see what agents are doing across the workspace
  • An audit log, once it exists, would attribute an agent's action to a human who was asleep

What to build

Agents as a first class actor.

  • An agent identity in the workspace, created by an admin, with a name and an avatar, visibly distinct from a person everywhere it appears
  • Bound to an MCP grant, so the existing OAuth and scope machinery still decides what it may do. mcp_grant already binds a client and a user to a workspace, and the granted scopes already gate the tool set
  • An agent's permissions are the intersection of its own grant and the permissions of the human who authorised it. It must never be a way to get more access than the person who set it up has. This is the property to write tests for
  • Assignable. An issue assigned to an agent shows the agent, and the agent can find its own queue through MCP
  • Attributed. issue_activity and any audit entry record the agent as actor and the authorising human as the principal behind it. audit_log.actor_type already exists and already defaults to user, which suggests this was anticipated

A visible surface. Somewhere that lists the workspace's agents, what they are permitted to do, when they last acted, and what they have been doing. An admin has to be able to answer "what is this thing doing in my workspace" and to revoke it in one click.

Questions to settle first

  • Does an agent occupy a seat, a role, or neither? Orbit has no seats and never will, so this is purely about the permission model. Probably a role, but say which
  • Can an agent be the only assignee? If a piece of work is assigned to an agent and the agent stops running, nobody is watching it. Consider requiring a human owner alongside, or an escalation when an agent-assigned issue goes stale
  • What happens when the authorising human leaves? Their grant should die with their account, which means agents bound to them stop. That is the correct and surprising behaviour, and it needs to be visible before it happens rather than discovered afterwards

Files

  • packages/db/src/schema/oauth.ts for mcp_grant
  • packages/db/src/schema/org.ts for members and roles
  • packages/shared/src/policy
  • packages/mcp-server/src/tools/identity.ts
  • packages/db/src/schema/work.ts for assignment and activity
  • apps/web/src/app/(app)/settings/

Needs design

Comment with your answers to the three questions above before writing code. The permission intersection in particular is a security property, and getting it wrong is the kind of mistake that is hard to walk back once people rely on it.

Activity

  1. added this to the AI and agents milestone on Aug 8, 2026
  2. added
    enhancement
    needs design
    p1 high
    area: mcp
    area: policy
    area: ai
    on Aug 8, 2026
  3. moved this to Needs design in Orbit roadmapon Aug 8, 2026
  4. added
    size: extra large
    points: 13
    schema change
    on Aug 8, 2026
  5. yxr-2025 commented on Sep 6, 2026

    @yxr-2025
    Contributor

    I’m preparing to start working on this issue. I’m still researching and thinking through the relationship between humans and AI collaboration. If you have any thoughts, I’d be happy to hear from you.
    I’ll address these three questions one by one in the follow-up.

  6. imshashank commented on Sep 6, 2026

    @imshashank
    ContributorAuthor

    @yxr-2025 glad you are taking this. Answers to the three questions so you are not designing in the dark:

    Seat, role, or neither. Neither in the sense of a new role. An agent is an actor bound to a grant and to the human who created it, and its effective permissions are the intersection of the grant scopes and that human's role. It never holds a role of its own, so it can never be promoted above its owner. Write the test for that property first.

    Can an agent be the only assignee. Yes, but the owning human is always shown next to it and is the one notified when the agent goes quiet. Escalation on a stale agent-assigned issue is in #403 and #404; you do not need to build it here, only leave the owner visible.

    When the owner leaves. Their grants die with their account, so their agents stop. That is correct. Make it visible before it happens: the agents page (#406) lists each agent's owner, and removing a member with agents shows what will stop and offers to reassign the agent's open issues.

    Two more things worth knowing: audit_log.actor_type already exists for exactly this attribution, and #194 will record agent as actor and owner as principal, so keep that pair on issue_activity too. And the follow-ups that build on your work are #402, #403, #404 and #405, so a design comment here that keeps them possible is worth more than a large first PR.

  7. yxr-2025 commented on Sep 17, 2026

    @yxr-2025
    Contributor

    Hi, I’ve spent a lot of time thinking about the design of issue #215.

    I believe there’s a safe default principle here: by default, other people should not be able to control my agent. Following from that, they should not be able to assign tasks to my agent either.

    That said, in team collaboration, there may be legitimate cases where someone needs to direct another person’s agent. So I think we may eventually need to distinguish between personal agents and workspace agents.

  8. yxr-2025 commented on Nov 23, 2026

    @yxr-2025
    Contributor

    Hi, I’m stepping back from this issue. The Actor schema, readers and UI, MCP compatibility, read-only Agent consent, and controlled Issue writes have landed in #516, #564, #562, #565, and #566.

    The Outbox proposal is in #569. The implementation is still open, and the discussion there has the context on recovery for older clients. Feel free to reassign this issue if someone else wants to pick up the remaining work. Thanks for all the reviews and guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: aiarea: mcparea: policyenhancementneeds designp1 highpoints: 13schema changesize: extra large

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions