Skip to content

Delegate an issue to an agent and let the work come back as a pull request #403

Closed as not planned

Description

@imshashank

The loop most teams actually want from an agent is: assign an issue, the agent works on it somewhere else, a pull request appears, review happens on GitHub, and the issue closes when the PR merges. Orbit has most of the pieces and none of the glue.

What exists: git_link records the pull request to issue relationship, the GitHub webhook receives PR events, #215 is defining an agent as an assignable actor, and #126 is defining outbound webhooks.

What to build

  • Assign to an agent from the issue and from MCP. An agent identity comes from Agents as a first class actor, assignable and attributed #215. The assignment is a normal issue update: activity row, realtime fan-out, notification to the agent's owner.
  • An outbound event on assignment, through Outbound webhooks #126, carrying the issue, the agent, the workspace and a short-lived token the runner can use to call back. This is what an external runner (a CI job, a hosted agent, a developer's machine) listens for. Orbit never runs the agent itself.
  • The way back. The runner opens a PR with the issue identifier in the branch or title, which the existing GitHub integration links. Add the narrow GitHub lifecycle automation rules #193's narrow rules move the issue to in review on PR open and to done on merge.
  • Visible state. While the agent holds the issue it should read as "delegated" on the board and in the detail view, with the owning human shown next to the agent, so a stalled delegation has a name attached.
  • Escalation. A delegated issue with no PR and no session activity (see Agent sessions on an issue: progress, questions and completion in the thread #404) after N hours notifies the owner. Choose N per workspace with a sane default.

Rules

  • The agent never gets more than its owner has: the token in the event carries the intersection of the grant scopes and the owner's role, the property Agents as a first class actor, assignable and attributed #215 tests for.
  • Delegation is a normal write through packages/core. No special path.
  • A workspace with no outbound webhook configured can still assign to an agent; the event simply has nowhere to go, and the UI says so.

Depends on

#215 for the agent identity, #126 for delivery, #193 for the state moves on PR events. Design comment first, on the event payload and the callback token.

Activity

  1. added
    enhancement
    needs design
    p1 high
    area: mcp
    area: integrations
    area: ai
    size: large
    points: 8
    schema change
    blocked
    on Sep 6, 2026
  2. github-actions commented on Nov 6, 2026

    @github-actions

    This issue has had no activity for 60 days, so it is being marked stale.

    If it still matters, say so and it stays open. Adding what you have
    learned since filing it helps more than a bump on its own. Otherwise it
    will close in 14 days, and closing is not a judgement, it just keeps the
    list honest about what is actually being worked on. Reopening is always
    fine.

  3. added
    stale
    on Nov 6, 2026
  4. github-actions commented on Nov 20, 2026

    @github-actions

    Closing this after 60 days without activity and 14 days after it was
    marked stale. If you are still hitting this, comment and we will reopen
    it. No need to file a new one.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: aiarea: integrationsarea: mcpblockedenhancementneeds designp1 highpoints: 8schema changesize: largestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions