ShtukbaseStandard
集合/work/tasks.md

智能体任务

智能体的工作:要做什么,何时算完成,我们在等待什么,以及哪条需求、阶段、义务或风险在它背后。

页面字段(6)
icon🤖
itemTypeAgentTask
items{mode: path,path: /work/tasks,recursive: false}
writeTo/work/tasks
properties{taskId: {kind: text,label: 编号,pinned: true},status: {kind: phase,contour: /work/contours/tasks,label: 状态},initiative: {kind: relation,collection: /work/initiatives,label: 专项},owner: {kind: relation,collection: /business/people,label: 责任人},priority: {kind: select,label: 优先级,options: [{name: P0,label: P0:现在,color: red},{name: P1,label: P1:接下来,color: orange},{name: P2,label: P2:之后,color: blue}]},size: {kind: select,label: 规模,options: [{name: S,label: S:一两个小时,color: green},{name: M,label: M:半天,color: yellow},{name: L,label: L:一天或更久,color: purple}]},executor: {kind: select,label: 由谁来做,options: [{name: person,label: 人员,color: gray},{name: professional,label: 该方向的专业智能体,color: blue},{name: worker,label: 工作智能体,color: green}]},milestone: {kind: relation,collection: /work/milestones,label: 里程碑},dependsOn: {kind: relation,collection: /work/tasks,multiple: true,label: 依赖于},stream: {kind: text,label: 工作流},profile: {kind: text,label: 启动配置(模型、投入度)},doneWhen: {kind: text,label: 完成条件},evidence: {kind: text,label: 确认依据},holdReason: {kind: text,label: 为何搁置},implements: {kind: relation,collection: /product/requirements,multiple: true,label: 实现需求},value: {kind: text,label: 对用户来说,什么会改变},kind: {kind: select,label: 任务类型,options: [{name: chore,label: 技术性:服务于一项具有收益的任务,color: gray}]},enables: {kind: relation,collection: /work/tasks,multiple: true,label: 服务于任务},stage: {kind: relation,collection: /deal/stages,label: 交易阶段},fulfills: {kind: relation,collection: /deal/obligations,label: 履行一项义务},waitsFor: {kind: relation,collection: /deal/obligations,multiple: true,label: 等待一项义务},waitsForOwner: {kind: relation,collection: /work/owner-tasks,multiple: true,label: 等待所有者},waitsForAnswer: {kind: relation,collection: /knowledge/questions,multiple: true,label: 等待一个答复},waitsForDecision: {kind: relation,collection: /knowledge/decisions,multiple: true,label: 等待一项决定},mitigates: {kind: relation,collection: /deal/risks,multiple: true,label: 降低风险}}
views[{id: tasks--board,name: 按状态,layout: board,fields: {},board: {preview: page-content,cardSize: small,wrap: true},grouping: {by: status,colorBy: status},sorting: [{propertyId: priority,direction: ascending}],properties: [{name: title,visible: true},{name: taskId,visible: true},{name: priority,visible: true},{name: size,visible: true},{name: initiative,visible: true},{name: owner,visible: true}]},{id: tasks--table,name: 全部任务,layout: table,fields: {},sorting: [{propertyId: taskId,direction: ascending}],properties: [{name: title,visible: true,width: 420},{name: taskId,visible: true},{name: status,visible: true},{name: initiative,visible: true},{name: priority,visible: true},{name: size,visible: true},{name: owner,visible: true},{name: dependsOn,visible: true},{name: implements,visible: true},{name: stage,visible: true}]},{id: tasks--waiting,name: 等待中,layout: table,fields: {},filters: [{id: waiting,type: condition,propertyId: status,operator: equals,value: waiting}],properties: [{name: title,visible: true,width: 420},{name: taskId,visible: true},{name: waitsFor,visible: true},{name: waitsForOwner,visible: true},{name: waitsForAnswer,visible: true},{name: waitsForDecision,visible: true},{name: doneWhen,visible: true}]}]

智能体任务是由智能体完成的工作。人必须亲自完成的事,单独列于所有者任务中。

任务回答的问题是“要做什么,以及何时算完成”。完成条件写在字段“完成条件”中,确认依据写在字段“确认依据”中。

任务为什么需要,可以从向上的链接看出:

  • “实现需求”——它构建哪项产品行为;
  • “交易阶段”——它属于哪一次交付;
  • “履行一项义务”——它完成了我们哪项承诺;
  • “降低风险”——它降低了哪项风险。

每项任务都为产品带来收益——满足以下三条之一:

  1. “实现需求”(implements)指向一条产品需求或能力。
  2. 尚无规格:字段“对用户来说,什么会改变”(value)为一句话,并且 implements 指向一条同时新建的、带有 status: proposal 的需求草案。规格由任务逐步形成;随后由所有者确认该草案。
  3. 没有产品意义的技术性任务(移动文件、升级依赖):“任务类型” kind: chore 与“服务于任务”(enables)——一项带有其所服务之收益的任务。“移动文件”本身不是任务。

没有收益的任务由 w16 检查找出(包的动作 task-value:bun .shtukbase/packages/tasks/checks/w16_task_value.ts):它写明缺少什么,以及三条路径中该选哪一条。调度器不会启动这样的任务:它会带着同样的理由交给协调者作决定。

若任务在等待另一方的输入,则义务写在字段“等待一项义务”中。若它在等待人员本人的一步(权限、答复、批准),则它是字段“等待所有者”中的所有者任务。问题的答复是字段“等待一个答复”,决定是字段“等待一项决定”。在这些完成之前,任务无法进入工作:它留在“等待中”状态。更详细的内容见任务流程轮廓。

字段“实现需求”“交易阶段”“履行一项义务”“等待一项义务”和“降低风险”通往产品层与交易层。它们在那些层安装时才填写。任务的方向可通过其专项看出。里程碑只有在早于其专项的里程碑时,才设在任务上。

包 任务 会把此页面放在 /work/tasks.md。源文本