Skip to content

[coordination][deferred] Cross-agent delegation (delegate a goal to another instance's brain) #159

Closed

Description

@serge-ivo

DEFERRED — needs a real second consumer beyond Coder. Generalize delegate so a coordinator hands a GOAL to ANOTHER instance/agent's brain (its AgentDO), which owns execution with its own tools/memory/guardrails — the manager+workers shape for the multi-agent marketplace. Do NOT build speculatively; wait for the second consumer. Part of #154 + epic #58.

Activity

  1. added
    backendBackend / Worker / API work
    coordinationAgent coordination / delegation primitives
    on Aug 3, 2026
  2. added a commit that references this issue on Aug 3, 2026
  3. serge-ivo commented on Aug 3, 2026

    @serge-ivo
    ContributorAuthor

    The second consumer has arrived

    This was deferred with "needs a real second consumer beyond Coder — do NOT build speculatively." That gate is now met: the requirement is configurable multi-layer supervision — a user wiring agents to oversee other agents, at arbitrary depth, as configuration rather than code.

    Design: docs/supervision.md.

    Rather than building this directly, it should now fall out of:

    Cross-agent delegation is then the natural consequence of those four, not separate work. Keeping this open as the outcome to verify against.

  4. serge-ivo commented on Aug 4, 2026

    @serge-ivo
    ContributorAuthor

    Live as of 67eb915 — lib/delegate-instance.ts + POST /v1/instances/:id/delegate.

    This was deferred with "needs a real second consumer — do NOT build speculatively", then gated behind #183/#184/#185. All three landed, so it is on. Each is enforced on the delegation path, not assumed:

    Delegation is logged under the parent's trace, so a multi-level tree reads as one run — the join choreography normally lacks.

    11 tests, including the two that matter: a non-subordinate target is refused and never starts a workflow, and depth comes from a 2-level graph rather than the request.

  5. serge-ivo commented on Aug 4, 2026

    @serge-ivo
    ContributorAuthor

    Done in 67eb915, with capability routing in c9f093f and checkability in 25b3871. Proven in production: Coder Lead delegated to Repo Coder, run completed done in 1 of 2 iterations. Graph membership, derived depth, inherited budget and onBehalfOf-only authority are all enforced on the delegation path.

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

    backendBackend / Worker / API workcoordinationAgent coordination / delegation primitives

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions