agentscope-ai / agentscope-ai/AgentTeams
manager 变可选后,导致 跨team协同丧失可能 || manager becomes optional, resulting in the loss of cross-team collaboration.
- Vorherrschende Sprache
- Go
- Sterne
- 5.6k
- Forks
- 692
- Ø Merge
- 5 T. 4 Std.
- Gemergte PRs (30 T.)
- 23
Beschreibung
原有设计下,若team具有跨team协同的需求,还可以通过manager进行传递(建立新任务),虽然具有一定程度的失真,但确实能够运行;在现有设计下 manager cli和control将变得不再具备此职能,为保证跨team协同仍然可做(**这实际上是强需求场景**),据此提出以下proposal,建立形成task route(这也可以作为task管理的重要基础框架),其流程大致如下所示
新流程 Step 1:Human L2 向 Leader A 发需求
这一步不变。
入口仍然是:
• Leader DM
新流程 Step 2:Leader A 在本 Team 内创建主任务
Leader A 不只是“心里知道有任务”,而是正式创建:
• Task task-A-001
• ownerTeam = Team A
• requester = Human L2
• assignee = Team A
• status = planning / active
新流程 Step 3:Leader A 发现需要 Team B 协作
此时不是“去跟 Manager 报告一个模糊需求”,而是创建一个正式的委托:
• TaskDelegation del-001
• fromTask = task-A-001
• fromTeam = Team A
• toTeam = Team B
• requestedCapability = backend-review / security-audit / docs-support
• requestedDeliverable = ...
• status = requested
新流程 Step 4:路由策略决定由谁审批
这里可以有两种模式:
模式 A:Manager 审批制
Leader A 发 delegation request 后:
• Manager 审批
• Manager 选择 Team B / 调整优先级 / 仲裁配额
• 批准后 TaskDelegation 生效
模式 B:策略直连制
如果 policy 允许:
• Team A 可直接向 Team B 发协作请求
• Manager 只被抄送 / 异步感知
• 不必同步介入
这一步是任务模型带来的巨大灵活性。
新流程 Step 5:Team B 的 Leader 收到一个“协作任务”
Team B 收到的不是“Manager 普通委托”,而是一个明确带来源的任务:
• sourceTask = task-A-001
• requesterTeam = Team A
• assignedTeam = Team B
• contract = 只负责 deliverable X
• resultDestination = task-A-001 / Team A
于是 Team B 可以在本地生成:
• Task task-B-201
• linkedFrom = task-A-001
• localOwner = Team B
• assignee = Leader B / workers
• status = accepted
新流程 Step 6:Team B 内部拆解执行
这一步和现在差不多:
• simple task
• DAG project
• team-state / local task runtime
但控制面上已经有 formal task mapping。
新流程 Step 7:Team B 完成后,结果直接回挂到协作任务上
完成后不是“只回 Manager”,而是:
• 更新 TaskResult for task-B-201
• 更新 TaskDelegation del-001 = completed
• 把结果 attach 到 task-A-001 的 dependency output
然后:
• Team A 的 Leader A 能看到
• Manager 可见但不是唯一中转
• Human L2 也可按权限看到
新流程 Step 8:Leader A 继续主任务推进
Leader A 拿到 Team B 的结果后,继续推进:
• 本 Team 后续子任务
• 请求 revision
• 发起新的 delegation
---
Under the original design, if the team has cross-team collaboration needs, it can also be transferred (create new tasks) through the manager. Although there is a certain degree of distortion, it can indeed run; under the existing design, the manager cli and control will no longer have this function. In order to ensure that cross-team collaboration can still be done (**This is actually a strong demand scenario**), the following proposal is put forward to establish a task route (which can also be used as an important basic framework for task management). The process is roughly as follows
New process Step 1: Human L2 sends demands to Leader A
This step remains unchanged.
The entrance is still:
• Leader DM
New process Step 2: Leader A creates a main task within this Team
Leader A doesn’t just “know in his heart that there is a task”, but is formally created:
• Task task-A-001
• ownerTeam = Team A
• requester = Human L2
• assignee = Team A
• status = planning/active
New process Step 3: Leader A finds that Team B needs to collaborate
At this time, instead of “reporting a vague requirement to the Manager”, we create a formal delegation:
• TaskDelegation del-001
• fromTask = task-A-001
• fromTeam = Team A
• toTeam = Team B
• requestedCapability = backend-review/security-audit/docs-support
• requestedDeliverable = ...
• status = requested
New process Step 4: Routing policy determines who approves
There are two modes possible here:
Mode A: Manager approval system
After Leader A sends delegation request:
• Manager Approval
• Manager Select Team B/Adjust Priority/Quorum Quota
• TaskDelegation takes effect after approval
Mode B: Strategic direct connection system
If policy allows:
• Team A can directly send collaboration requests to Team B
• Manager is CC-only / asynchronously aware
• No need for simultaneous intervention
This step is where the task model brings tremendous flexibility.
New process Step 5: Team B’s Leader receives a “collaboration task”
What Team B received was not a "Manager ordinary delegation", but a task with a clear source:
• sourceTask = task-A-001
• requesterTeam = Team A
• assignedTeam = Team B
• contract = only responsible for deliverable X
• resultDestination = task-A-001 / Team A
So Team B can be generated locally:
• Task task-B-201
• linkedFrom = task-A-001
• localOwner = Team B
• assignee = Leader B / workers
• status = accepted
New process Step 6: Internal dismantling and execution of Team B
This step is pretty much the same as now:
• simple task
• DAG project
• team-state / local task runtime
But there is already formal task mapping on the control surface.
New process Step 7: After Team B completes, the results will be directly linked to the collaboration task
After completion, instead of "just return to Manager", you will:
• Update TaskResult for task-B-201
• Update TaskDelegation del-001 = completed
• Attach the results to the dependency output of task-A-001
Then:
• Leader A of Team A can see
• Manager is visible but not the only transit
• Human L2 can also be seen by permissions
New process Step 8: Leader A continues to advance the main task
After Leader A gets the results of Team B, it continues to advance:
• Subsequent subtasks for this Team
• Request a revision
• Initiate a new delegation
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.