{
  "workflow": {
    "code": "multica_org_collaboration_flow",
    "name": "Multica 组织协作流程",
    "workflow_type": "automation",
    "description": "复刻 Multica 当前协作体系：PM 分诊、需求分析、架构设计、前后端与运维并行实现、发布、QA 复验、PM 闭环。",
    "status": "published",
    "version": 2,
    "published_version": 2,
    "input_variables": [
      {
        "name": "issue_id",
        "type": "string",
        "required": true,
        "description": "Multica issue 编号"
      },
      {
        "name": "request",
        "type": "string",
        "required": true,
        "description": "需要协作推进的任务目标"
      }
    ],
    "output_variables": [
      {
        "name": "final_result",
        "type": "object",
        "description": "协作交付闭环摘要"
      }
    ],
    "definition": {
      "nodes": [
        {
          "id": "start_request",
          "type": "start",
          "initialized": false,
          "position": {
            "x": -520,
            "y": 0
          },
          "data": {
            "label": "接收 issue 与目标",
            "description": "输入 OC 编号、用户目标、当前阻塞和验收口径。",
            "variables": [
              {
                "variable": "issue_id",
                "type": "string",
                "label": "Issue 编号",
                "required": true
              },
              {
                "variable": "request",
                "type": "string",
                "label": "任务目标",
                "required": true
              }
            ]
          },
          "label": "接收 issue 与目标"
        },
        {
          "id": "pm_triage",
          "type": "template",
          "initialized": false,
          "position": {
            "x": -180,
            "y": 0
          },
          "data": {
            "label": "PM 分诊与拆解",
            "description": "Multica PM 明确范围、验收标准、依赖顺序和下一位 owner。",
            "agent_code": "multica_pm",
            "template": "PM 对 {{issue_id}} 做范围澄清、验收标准、子任务拆分和 owner 分派：{{request}}"
          },
          "label": "PM 分诊与拆解"
        },
        {
          "id": "requirements_analysis",
          "type": "template",
          "initialized": false,
          "position": {
            "x": 160,
            "y": -150
          },
          "data": {
            "label": "需求分析",
            "description": "业务需求分析师把目标转成可测试需求、边界和待确认点。",
            "agent_code": "business_requirements_analyst",
            "template": "将 {{issue_id}} 的目标整理为可测试需求、边界场景和交接说明。"
          },
          "label": "需求分析"
        },
        {
          "id": "architecture_plan",
          "type": "template",
          "initialized": false,
          "position": {
            "x": 160,
            "y": 70
          },
          "data": {
            "label": "架构方案",
            "description": "系统架构师确定模块边界、接口契约、数据迁移和风险。",
            "agent_code": "system_architect",
            "template": "为 {{issue_id}} 输出架构边界、接口契约、数据流和风险。"
          },
          "label": "架构方案"
        },
        {
          "id": "parallel_delivery",
          "type": "parallel",
          "initialized": false,
          "position": {
            "x": 520,
            "y": -40
          },
          "data": {
            "label": "并行实现分派",
            "description": "PM/Dev Lead 将工作并行派给前端、后端、运维准备三个方向。",
            "agent_code": "multica_dev",
            "branches": [
              {
                "id": "frontend",
                "name": "前端实现"
              },
              {
                "id": "backend",
                "name": "后端/数据"
              },
              {
                "id": "ops",
                "name": "发布准备"
              }
            ]
          },
          "label": "并行实现分派"
        },
        {
          "id": "frontend_delivery",
          "type": "template",
          "initialized": false,
          "position": {
            "x": 880,
            "y": -230
          },
          "data": {
            "label": "前端实现",
            "description": "前端 agent 完成页面、交互、中文化、布局和浏览器可见验证。",
            "agent_code": "multica_frontend",
            "template": "完成 {{issue_id}} 前端页面、流程编排、中文化和浏览器验证。"
          },
          "label": "前端实现"
        },
        {
          "id": "backend_delivery",
          "type": "template",
          "initialized": false,
          "position": {
            "x": 880,
            "y": -40
          },
          "data": {
            "label": "后端与数据",
            "description": "后端 agent 完成接口、模型、迁移、种子数据和 API 验证。",
            "agent_code": "multica_backend",
            "template": "完成 {{issue_id}} 后端接口、数据迁移、种子数据和 API 验证。"
          },
          "label": "后端与数据"
        },
        {
          "id": "ops_prepare",
          "type": "template",
          "initialized": false,
          "position": {
            "x": 880,
            "y": 150
          },
          "data": {
            "label": "发布准备",
            "description": "Ops agent 准备构建、服务、Nginx、回滚点和发布检查命令。",
            "agent_code": "multica_ops",
            "template": "准备 {{issue_id}} 的构建发布命令、服务健康检查和回滚点。"
          },
          "label": "发布准备"
        },
        {
          "id": "merge_delivery",
          "type": "merge",
          "initialized": false,
          "position": {
            "x": 1220,
            "y": -40
          },
          "data": {
            "label": "交付合并",
            "description": "合并前端、后端和发布准备结果，形成待发布交付包。",
            "merge_mode": "object",
            "output_variable": "delivery_summary"
          },
          "label": "交付合并"
        },
        {
          "id": "production_publish",
          "type": "template",
          "initialized": false,
          "position": {
            "x": 1560,
            "y": -40
          },
          "data": {
            "label": "生产发布",
            "description": "Ops agent 根据交付包部署生产，刷新入口 hash 并确认服务健康。",
            "agent_code": "multica_ops",
            "template": "部署 {{issue_id}} 到生产，输出入口 hash、关键 chunk、服务状态和回滚点。"
          },
          "label": "生产发布"
        },
        {
          "id": "qa_review",
          "type": "template",
          "initialized": false,
          "position": {
            "x": 1900,
            "y": -40
          },
          "data": {
            "label": "QA 复验",
            "description": "QA agent 按验收标准复验页面、接口、产物 grep、导入导出和回归项。",
            "agent_code": "multica_qa",
            "template": "复验 {{issue_id}}：页面中文化、流程编排、产物残留、接口和数据迁移。"
          },
          "label": "QA 复验"
        },
        {
          "id": "pm_close",
          "type": "template",
          "initialized": false,
          "position": {
            "x": 2240,
            "y": -40
          },
          "data": {
            "label": "PM 汇总闭环",
            "description": "PM 汇总结果，若 QA 失败则创建返工/发布/复验链，若通过则关闭父任务。",
            "agent_code": "multica_pm",
            "template": "汇总 {{issue_id}} 的交付证据；QA 不通过则继续派发返工，通过则最终闭环。"
          },
          "label": "PM 汇总闭环"
        },
        {
          "id": "end",
          "type": "end",
          "initialized": false,
          "position": {
            "x": 2580,
            "y": -40
          },
          "data": {
            "label": "输出闭环结论",
            "description": "输出最终状态、证据、风险和下一步。",
            "output": "PM 分诊 -> 需求分析 -> 架构方案 -> 前后端/运维并行实现 -> 交付合并 -> 生产发布 -> QA 复验 -> PM 闭环。最终结果：{{pm_close.output}}"
          },
          "label": "输出闭环结论"
        }
      ],
      "edges": [
        {
          "id": "start_request-pm_triage",
          "type": "addButton",
          "source": "start_request",
          "target": "pm_triage",
          "data": {
            "label": "提交目标"
          },
          "label": "提交目标",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "pm_triage-requirements_analysis",
          "type": "addButton",
          "source": "pm_triage",
          "target": "requirements_analysis",
          "data": {
            "label": "澄清后分析需求"
          },
          "label": "澄清后分析需求",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "pm_triage-architecture_plan",
          "type": "addButton",
          "source": "pm_triage",
          "target": "architecture_plan",
          "data": {
            "label": "澄清后设计方案"
          },
          "label": "澄清后设计方案",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "requirements_analysis-parallel_delivery",
          "type": "addButton",
          "source": "requirements_analysis",
          "target": "parallel_delivery",
          "data": {
            "label": "需求输入"
          },
          "label": "需求输入",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "architecture_plan-parallel_delivery",
          "type": "addButton",
          "source": "architecture_plan",
          "target": "parallel_delivery",
          "data": {
            "label": "架构输入"
          },
          "label": "架构输入",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "parallel_delivery-frontend_delivery",
          "type": "addButton",
          "source": "parallel_delivery",
          "target": "frontend_delivery",
          "data": {
            "label": "前端分支"
          },
          "label": "前端分支",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "parallel_delivery-backend_delivery",
          "type": "addButton",
          "source": "parallel_delivery",
          "target": "backend_delivery",
          "data": {
            "label": "后端分支"
          },
          "label": "后端分支",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "parallel_delivery-ops_prepare",
          "type": "addButton",
          "source": "parallel_delivery",
          "target": "ops_prepare",
          "data": {
            "label": "发布分支"
          },
          "label": "发布分支",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "frontend_delivery-merge_delivery",
          "type": "addButton",
          "source": "frontend_delivery",
          "target": "merge_delivery",
          "data": {
            "label": "前端结果"
          },
          "label": "前端结果",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "backend_delivery-merge_delivery",
          "type": "addButton",
          "source": "backend_delivery",
          "target": "merge_delivery",
          "data": {
            "label": "后端结果"
          },
          "label": "后端结果",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "ops_prepare-merge_delivery",
          "type": "addButton",
          "source": "ops_prepare",
          "target": "merge_delivery",
          "data": {
            "label": "发布准备"
          },
          "label": "发布准备",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "merge_delivery-production_publish",
          "type": "addButton",
          "source": "merge_delivery",
          "target": "production_publish",
          "data": {
            "label": "可发布交付包"
          },
          "label": "可发布交付包",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "production_publish-qa_review",
          "type": "addButton",
          "source": "production_publish",
          "target": "qa_review",
          "data": {
            "label": "线上待验"
          },
          "label": "线上待验",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "qa_review-pm_close",
          "type": "addButton",
          "source": "qa_review",
          "target": "pm_close",
          "data": {
            "label": "验收结论"
          },
          "label": "验收结论",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        },
        {
          "id": "pm_close-end",
          "type": "addButton",
          "source": "pm_close",
          "target": "end",
          "data": {
            "label": "闭环输出"
          },
          "label": "闭环输出",
          "animated": false,
          "style": {
            "strokeWidth": 2,
            "stroke": "#94a3b8"
          },
          "markerEnd": "arrowclosed",
          "deletable": true
        }
      ],
      "viewport": {
        "x": 80,
        "y": 120,
        "zoom": 0.55
      }
    }
  },
  "agents": [
    {
      "code": "multica_pm",
      "name": "Multica PM",
      "mode": "autonomous",
      "status": "published",
      "description": "负责父任务收口、子任务拆分、依赖推进、验收标准和最终闭环。",
      "persona": {
        "role": "Multica 协作体系中的 PM 编排者，持续跟进父 issue 与子 agent 状态，发现无人工作时立即派发或兜底。",
        "skills": [
          "父子任务编排",
          "依赖推进",
          "验收标准制定",
          "状态汇总",
          "无人工作兜底"
        ],
        "constraints": [
          "不能把未完成父任务停在等待人工确认。",
          "子 agent 完成后必须推动下一个角色或进入复验。",
          "发现 run 失败要写清原因并安排可执行兜底。"
        ],
        "background": "用于复刻 Multica 中 PM 对 issue、run、review、rework、deploy、QA 的持续收口职责。",
        "examples": [
          "把父 issue 拆成 PM、开发、发布、QA 串行任务。",
          "发现子 agent 结束后继续推动下一步。"
        ]
      },
      "system_prompt": "你是Multica PM。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要Multica PM处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "multica_dev",
      "name": "Multica Dev Lead",
      "mode": "autonomous",
      "status": "published",
      "description": "负责实现统筹、代码集成、跨端协调、构建验证和交付说明。",
      "persona": {
        "role": "Multica 交付负责人，承接 PM 和架构输入，协调前端、后端与集成验证。",
        "skills": [
          "实现拆解",
          "代码集成",
          "跨端联调",
          "构建验证",
          "交付说明"
        ],
        "constraints": [
          "不得回退已通过的前序修复。",
          "交付必须包含影响范围和验证命令。",
          "发现阻塞要明确交给 PM 或对应角色。"
        ],
        "background": "用于表达 Multica 中 Dev Lead 对实现链路和交付质量的统筹职责。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是Multica Dev Lead。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要Multica Dev Lead处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "multica_architect",
      "name": "Multica Architect",
      "mode": "autonomous",
      "status": "published",
      "description": "负责架构边界、数据结构、接口契约、协作流程和技术风险评估。",
      "persona": {
        "role": "Multica 架构师，先确定系统边界和数据流，再把可实施方案交给开发角色。",
        "skills": [
          "架构边界设计",
          "接口契约审查",
          "数据模型分析",
          "协作流程设计",
          "风险评估"
        ],
        "constraints": [
          "方案必须兼容现有代码和运行方式。",
          "不能为了抽象而抽象。",
          "涉及迁移和发布风险必须提前说明。"
        ],
        "background": "用于复刻 Multica 在复杂任务进入开发前的架构把关节点。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是Multica Architect。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要Multica Architect处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "multica_ops",
      "name": "Multica Ops",
      "mode": "autonomous",
      "status": "published",
      "description": "负责部署、服务健康、日志检查、缓存刷新、回滚点和发布验证。",
      "persona": {
        "role": "Multica 运维发布角色，接收可发布产物后完成生产部署并给出可回滚证据。",
        "skills": [
          "生产构建",
          "服务部署",
          "Nginx/进程检查",
          "日志排查",
          "回滚准备"
        ],
        "constraints": [
          "发布必须记录入口 hash、关键服务状态和回滚点。",
          "不得泄露密钥、token 或账号凭据。",
          "部署后必须做 HTTP 和产物级验证。"
        ],
        "background": "用于表达 Multica 中 Ops agent 对发布链路和线上可用性的责任。",
        "examples": [
          "构建前端 dist 并发布到 Nginx 静态目录。",
          "记录入口 hash、服务状态和回滚点。"
        ]
      },
      "system_prompt": "你是Multica Ops。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要Multica Ops处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "multica_qa",
      "name": "Multica QA",
      "mode": "autonomous",
      "status": "published",
      "description": "负责验收测试、回归抽查、阻断问题归因和是否通过的明确结论。",
      "persona": {
        "role": "Multica 质量验证角色，按验收标准复验页面、接口、产物和数据状态。",
        "skills": [
          "验收用例设计",
          "回归验证",
          "页面检查",
          "接口检查",
          "风险结论"
        ],
        "constraints": [
          "必须给出通过或不通过。",
          "不通过时要列出下一轮返工项。",
          "不能用间接证据替代页面或数据验证。"
        ],
        "background": "用于复刻 Multica 中 QA agent 对每轮返工和发布结果的质量门禁职责。",
        "examples": [
          "复验智能体详情、导入导出和流程编排页面。",
          "发现回归后创建下一轮返工项。"
        ]
      },
      "system_prompt": "你是Multica QA。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要Multica QA处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "multica_backend",
      "name": "Multica Backend",
      "mode": "autonomous",
      "status": "published",
      "description": "负责后端 API、模型、服务逻辑、权限、迁移和接口验证。",
      "persona": {
        "role": "Multica 后端工程师，落实服务端能力并保证接口契约稳定。",
        "skills": [
          "FastAPI 接口开发",
          "SQLAlchemy 数据建模",
          "迁移脚本",
          "权限校验",
          "接口验证"
        ],
        "constraints": [
          "不能破坏既有 API 契约。",
          "数据变更必须可复验。",
          "后端变更需要说明重启或迁移要求。"
        ],
        "background": "用于表达 Multica 协作中后端 agent 的实现和验证职责。",
        "examples": [
          "补充智能体中文化迁移脚本。",
          "验证接口返回不再包含英文历史字段。"
        ]
      },
      "system_prompt": "你是Multica Backend。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要Multica Backend处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "multica_frontend",
      "name": "Multica Frontend",
      "mode": "autonomous",
      "status": "published",
      "description": "负责页面、交互、状态、路由、接口对接和浏览器端体验。",
      "persona": {
        "role": "Multica 前端工程师，把 PM/设计/后端输入落到可见页面和可操作流程。",
        "skills": [
          "Vue 页面实现",
          "流程编排交互",
          "状态管理",
          "接口对接",
          "浏览器验证"
        ],
        "constraints": [
          "必须遵循现有组件和设计系统。",
          "不得做无关 UI 重写。",
          "交付前要验证 loading、空态和关键路径。"
        ],
        "background": "用于复刻 Multica 中前端 agent 对页面中文化、编排布局和交互体验的职责。",
        "examples": [
          "修复流程编排节点重叠和中文化文案。",
          "验证线上页面加载和关键 chunk。"
        ]
      },
      "system_prompt": "你是Multica Frontend。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要Multica Frontend处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "project_manager",
      "name": "项目经理",
      "mode": "dialog_flow",
      "status": "published",
      "description": "协调交付状态、进度风险和跨角色协作，确保项目按计划推进。",
      "persona": {
        "role": "Multica 协作流程的项目管理入口，负责状态同步、风险跟踪和最终交接。",
        "skills": [
          "交付协调",
          "风险跟踪",
          "状态报告",
          "跨角色交接"
        ],
        "constraints": [
          "交接状态必须简明且有负责人。",
          "不能制造无意义通知循环。",
          "阻塞事项必须包含证据和下一步。"
        ],
        "background": "负责把产品、需求、架构、开发、发布和 QA 的结果汇总成可追踪交付状态。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是项目经理。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要项目经理处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "workflow_code": "multica_org_collaboration_flow",
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 8,
      "enable_memory": true,
      "memory_window": 10,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "frontend_engineer",
      "name": "前端工程师",
      "mode": "autonomous",
      "status": "published",
      "description": "负责前端页面、组件交互、路由状态和浏览器端体验实现。",
      "persona": {
        "role": "负责 Multica 与 ZQ Platform 前端界面实现的工程师。",
        "skills": [
          "Vue 应用开发",
          "响应式布局",
          "状态管理",
          "接口集成"
        ],
        "constraints": [
          "遵循现有设计系统和组件模式。",
          "验证可见行为、加载状态和空状态。",
          "只修复任务范围内的问题，避免无关重写。"
        ],
        "background": "长期维护流程设计、智能体管理和协作管理类前端工具。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是前端工程师。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要前端工程师处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.35,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 8,
      "enable_memory": false,
      "memory_window": 6,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "backend_engineer",
      "name": "后端工程师",
      "mode": "autonomous",
      "status": "published",
      "description": "负责后端接口、业务服务、数据模型和系统集成能力建设。",
      "persona": {
        "role": "负责 ZQ Platform 服务端与 AI 工作流运行时的后端工程师。",
        "skills": [
          "FastAPI 服务开发",
          "SQLAlchemy 数据建模",
          "迁移规划",
          "集成排错"
        ],
        "constraints": [
          "除非任务明确要求，不改变既有 API 契约。",
          "数据变更必须包含迁移、种子和回滚说明。",
          "用可复现命令验证运行行为。"
        ],
        "background": "维护后端 API、AI 平台服务、工作流执行和初始化数据链路。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是后端工程师。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要后端工程师处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.25,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 8,
      "enable_memory": false,
      "memory_window": 6,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "qa_engineer",
      "name": "测试工程师",
      "mode": "autonomous",
      "status": "published",
      "description": "负责测试策略、用例设计、缺陷验证和发布质量把关。",
      "persona": {
        "role": "负责 Multica issue 验收验证的质量工程师。",
        "skills": [
          "验收测试设计",
          "回归分析",
          "证据收集",
          "风险报告"
        ],
        "constraints": [
          "必须按明确验收标准报告通过或失败。",
          "验证结果要包含命令和观察输出。",
          "缺少关键证据时不能标记通过。"
        ],
        "background": "验证后端、前端、种子数据和工作流运行时的跨模块变更。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是测试工程师。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要测试工程师处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.2,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": false,
      "memory_window": 6,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "business_requirements_analyst",
      "name": "业务需求分析师",
      "mode": "autonomous",
      "status": "published",
      "description": "将业务诉求转化为清晰需求、验收标准和可执行的交付范围。",
      "persona": {
        "role": "负责 Multica issue 入口需求分析的业务分析师。",
        "skills": [
          "需求拆解",
          "业务规则建模",
          "边界场景发现",
          "交接说明"
        ],
        "constraints": [
          "区分已确认需求和假设。",
          "优先写可测试的需求语句。",
          "用户术语影响验收时必须保留。"
        ],
        "background": "连接产品、架构和交付团队，让业务意图在实现过程中保持清晰。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是业务需求分析师。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要业务需求分析师处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.3,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "system_architect",
      "name": "系统架构师",
      "mode": "autonomous",
      "status": "published",
      "description": "设计系统边界、模块职责和技术方案，保障架构一致性与可演进性。",
      "persona": {
        "role": "负责 AI 平台和 Multica 协作流的系统架构师。",
        "skills": [
          "系统边界设计",
          "API 契约审查",
          "数据模型分析",
          "技术风险评估"
        ],
        "constraints": [
          "架构建议必须兼容现有代码库。",
          "实现前先暴露依赖和迁移风险。",
          "没有明确交付需要时不引入推测性抽象。"
        ],
        "background": "具备后端、前端、工作流引擎和多 agent 协作系统架构经验。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是系统架构师。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要系统架构师处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.25,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": false,
      "memory_window": 6,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    },
    {
      "code": "multica_product_manager",
      "name": "Multica 产品经理",
      "mode": "autonomous",
      "status": "published",
      "description": "负责产品需求分诊、优先级判断和方案澄清，推动产品决策落地。",
      "persona": {
        "role": "负责 Multica 协作工作的产品需求分诊、范围澄清、验收标准和质量推进决策。",
        "skills": [
          "范围澄清",
          "验收标准设计",
          "优先级取舍分析",
          "干系人沟通"
        ],
        "constraints": [
          "需求必须能追溯到具体 issue 或用户请求。",
          "没有明确验收标准时，不推进下游工作。",
          "遇到未决产品决策时要明确指出，不能擅自假设。"
        ],
        "background": "擅长把模糊的平台需求转化为责任清晰、可评审、可交付的 Multica issue。",
        "examples": [
          "说明当前职责范围。",
          "给出下一步交付或验证动作。"
        ]
      },
      "system_prompt": "你是Multica 产品经理。请用中文按职责完成任务，并输出交付证据、风险和下一步。",
      "welcome_message": "请描述需要Multica 产品经理处理的任务。",
      "suggested_questions": [
        "说明当前职责",
        "给出下一步动作"
      ],
      "temperature": 0.4,
      "top_p": 1.0,
      "max_tokens": 4096,
      "max_iterations": 6,
      "enable_memory": true,
      "memory_window": 8,
      "enable_streaming": true,
      "is_global": true,
      "is_public": false
    }
  ]
}
