Interface TeamClient

All Known Implementing Classes:
LocalTeamClient

public interface TeamClient
Client for AgentTeams coordination (Claude-parity task board + mailbox).

Implementations: LocalTeamClient (BaseStore CAS) and control-plane HTTP.

  • Method Details

    • listTasks

      reactor.core.publisher.Mono<List<TeamTask>> listTasks(String namespace, String teamName)
      Lists all tasks on the team board.
    • createTask

      reactor.core.publisher.Mono<TeamTask> createTask(String namespace, String teamName, String subject, String description, List<String> blockedBy, String owner)
      Creates a pending task; owner may be blank (unassigned).
    • assignTask

      reactor.core.publisher.Mono<TeamTask> assignTask(String namespace, String teamName, String taskId, String owner, long expectedVersion)
      Lead-assigns a pending task to owner (stays pending).
    • claimTask

      reactor.core.publisher.Mono<TeamTask> claimTask(String namespace, String teamName, String taskId, String claimedBy, long expectedVersion)
      Claims a pending unblocked task into in_progress when owner is empty (self-claim) or already equals claimedBy (assignee starts).

      expectedVersion <= 0 means "claim at the current store version" (models often omit the optimistic lock token).

    • completeTask

      reactor.core.publisher.Mono<TeamTask> completeTask(String namespace, String teamName, String taskId, String result)
      Completes an in-progress task. Notifies the lead with the result.
    • failTask

      reactor.core.publisher.Mono<TeamTask> failTask(String namespace, String teamName, String taskId, String reason)
      Marks a non-terminal task failed. Notifies the lead with the reason.
    • unclaimTask

      reactor.core.publisher.Mono<TeamTask> unclaimTask(String namespace, String teamName, String taskId, long expectedVersion)
      Unclaims an in-progress task back to pending.
    • listClaimableTasks

      reactor.core.publisher.Mono<List<TeamTask>> listClaimableTasks(String namespace, String teamName, String forMember)
      Returns unblocked pending tasks the caller can start: unassigned open-board tasks, plus (when forMember is non-blank) pending tasks already assigned to that member.
    • listClaimableTasks

      default reactor.core.publisher.Mono<List<TeamTask>> listClaimableTasks(String namespace, String teamName)
      Open-board claimable tasks only (forMember blank).
    • sendMessage

      reactor.core.publisher.Mono<TeamMessage> sendMessage(String namespace, String teamName, String from, String to, String content)
      Point-to-point team mailbox message.
    • broadcastMessage

      reactor.core.publisher.Mono<List<TeamMessage>> broadcastMessage(String namespace, String teamName, String from, String content)
      Broadcast mailbox message to all other members (to empty on CP).
    • listMessages

      reactor.core.publisher.Mono<List<TeamMessage>> listMessages(String namespace, String teamName, int limit)
      Lists recent team messages.
    • listMembers

      reactor.core.publisher.Mono<List<TeamMemberInfo>> listMembers(String namespace, String teamName)
      Lists team members.
    • spawnMember

      reactor.core.publisher.Mono<Void> spawnMember(String namespace, String teamName, String name, String agentRef, String prompt)
      Dynamically spawn a teammate (lead).
    • shutdownMember

      reactor.core.publisher.Mono<Void> shutdownMember(String namespace, String teamName, String memberName)
      Shutdown / remove a teammate (lead).
    • submitPlan

      reactor.core.publisher.Mono<Void> submitPlan(String namespace, String teamName, String memberName, String planText)
      Worker submits a plan for lead approval.
    • approvePlan

      reactor.core.publisher.Mono<Void> approvePlan(String namespace, String teamName, String memberName)
      Lead approves a member plan.
    • rejectPlan

      reactor.core.publisher.Mono<Void> rejectPlan(String namespace, String teamName, String memberName)
      Lead rejects a member plan.
    • createTeam

      reactor.core.publisher.Mono<TeamInfo> createTeam(TeamCreateSpec spec)
      Creates a store-backed team and seed members.
    • completeTeam

      reactor.core.publisher.Mono<Void> completeTeam(String namespace, String teamName)
      Marks the team completed (retention TTL; not immediate delete).