deerflow-code/offline-backend-20260512/backend/app/gateway/position_role_defaults.py
2026-09-07 18:24:55 +08:00

48 lines
1.4 KiB
Python

"""Built-in roles for the position-roundtable workbench.
These ids are part of the persisted business-chain contract. Administrators
may rename, reorder or disable the roles, but a startup seed only inserts
missing entries and therefore never overwrites production configuration.
"""
from __future__ import annotations
POSITION_ROLE_SEED: list[dict[str, object]] = [
{
"id": "intelligence",
"name": "测试分析岗",
"description": "识别任务意图、补齐约束并确认业务链条",
"role_type": "intent",
"enabled": True,
"is_builtin": True,
"sort_order": 0,
},
{
"id": "planning",
"name": "组织测试岗",
"description": "承接上游信息并进行组织测试",
"role_type": "standard",
"enabled": True,
"is_builtin": True,
"sort_order": 1,
},
{
"id": "solution",
"name": "方案设计岗",
"description": "承接上游结果并形成方案产物",
"role_type": "standard",
"enabled": True,
"is_builtin": True,
"sort_order": 2,
},
{
"id": "evaluation",
"name": "综合测试岗",
"description": "测试链条产物并提出综合建议",
"role_type": "standard",
"enabled": True,
"is_builtin": True,
"sort_order": 3,
},
]