Documentation

Collaboration

AgentHub collaboration turns a local agent run into a visible team workflow. This page describes the intended product boundary for shared sessions, reviews, approvals, and integration entries.

Collaboration Surfaces

SurfaceRoleCurrent wording
DesktopLocal operator control and approvalPreview-ready local path
WebHub-backed team workbenchPreview/development path
Hub ServerSessions, projects, devices, routing, auditIn progress
Feishu/LarkBot, cards, H5/workbench entryIn development
Remote/Cloud EdgeAuthorized non-local execution targetIn development

Public docs should not imply that a team can use every surface in production until runtime evidence exists. The correct claim is that the architecture and local preview path are shaped, while full Web + Hub + Edge collaboration is still being completed.

Shared Session Model

A collaborative session should have:

  • a TokenDance ID subject and product session;
  • project or workspace context;
  • a selected Agent Profile and runtime adapter;
  • a target Edge and workspace policy;
  • transcript, tool events, diff, artifacts, and approval history;
  • audit events for routing, permission, and final state.

Desktop may host the local execution view. Web may host the Hub-backed shared view. Hub should be the source for team-visible state and authorization.

Review And Approval Flow

AgentHub should make review steps explicit:

  1. A user or integration creates a task.
  2. Hub records the task and resolves project authorization.
  3. Hub routes to an authorized Edge target.
  4. Edge starts the runtime adapter and streams normalized events.
  5. Desktop/Web renders transcript, tool state, diff, and artifacts.
  6. The user approves or rejects writes, commands, or publish actions.
  7. Hub records the final state and audit events.

If any step is missing, the UI should show a specific blocked state rather than pretending the run is still active.

Team Roles

Use simple role language until a more formal permission model is published:

RoleTypical ability
OwnerManage project settings, members, devices, and release gates
MaintainerStart runs, review diffs, approve normal writes
ReviewerInspect transcript, diff, and artifacts; comment or request changes
OperatorRun assigned tasks on an authorized Edge
ViewerRead shared state without approving actions

Authorization remains product-local after TokenDance ID authentication. TokenDance ID tells AgentHub who the user is; AgentHub decides what that user can do.

Integration Entries

External entries should create Hub tasks, not bypass Hub:

EntryRequired boundary
Feishu/Lark botVerify event signature, resolve account binding, queue slow work
Feishu/Lark cardRespond within 3 seconds and continue asynchronously
Web requestUse a Hub session and product authorization
AutomationUse a scoped service identity and audit trail
Remote Edge routeRequire target authorization and device proof

Feishu OAuth, GitHub OAuth, and Google OAuth belong in TokenDance ID. Product-side integrations should consume TokenDance ID identity and product-local permissions.

Evidence For A Collaboration Claim

Before docs or marketing claim a collaboration capability as live, collect:

ClaimEvidence
Shared transcriptTwo authenticated clients see the same run state
Team approvalAn approval action records actor, action, target, and result
Web routingWeb creates a task through Hub, not a direct Local Edge
Feishu taskAn event verifies signature, resolves binding, creates a Hub task, responds fast
Remote EdgeHub authorizes target, Edge enforces workspace policy, audit captures route

If evidence is missing, use "in progress" or "in development" wording.

Failure States

Collaboration UI should expose blocked states:

  • user not authenticated through TokenDance ID;
  • project membership missing;
  • Edge unavailable;
  • runtime adapter unavailable;
  • workspace policy blocked;
  • approval required;
  • integration binding missing;
  • event queue delayed;
  • route denied.

Related pages: Hub And Edge, Workflows, Feishu/Lark Integration, and Security.