From ab90d10544f17a805728a889ad8a0eb411491190 Mon Sep 17 00:00:00 2001 From: Chen Gu Date: Sun, 8 Mar 2026 11:44:16 +0800 Subject: [PATCH] Implement v1 multi-agent task board with workflow visualization --- memory/2026-03-08.md | 1 + org/dashboard/README.md | 35 ++++++ org/dashboard/index.html | 187 ++++++++++++++++++++++++++++++++ org/dashboard/tasks.sample.json | 53 +++++++++ 4 files changed, 276 insertions(+) create mode 100644 org/dashboard/README.md create mode 100644 org/dashboard/index.html create mode 100644 org/dashboard/tasks.sample.json diff --git a/memory/2026-03-08.md b/memory/2026-03-08.md index ad88106..69fd913 100644 --- a/memory/2026-03-08.md +++ b/memory/2026-03-08.md @@ -9,3 +9,4 @@ - 新增互动偏好:希望 Val 利用 heartbeat 主动发起对话;初始策略为“超过 1 小时未聊天则主动轻聊一次”,后续可按作息自适应调整。 - 多智能体治理边界:Val 对“明显不应认可”的动作可直接否决;重大/不明确决策需上报谷老板最终拍板,谷老板保留最终否决权。 - 已根据《宪章v1》完成初版组织落地文档:`org/CONSTITUTION_v1.md`、`org/ROLE_CARDS.md`、`org/VAL_RUNBOOK.md`。 +- 已完成“多 Agent 任务看板(状态流转可视化)”首版实现:`org/dashboard/index.html` + `tasks.sample.json` + `README.md`,支持样例加载与自定义 JSON 导入。 diff --git a/org/dashboard/README.md b/org/dashboard/README.md new file mode 100644 index 0000000..847d382 --- /dev/null +++ b/org/dashboard/README.md @@ -0,0 +1,35 @@ +# 多 Agent 任务看板(状态流转可视化) + +## 快速使用 + +1. 打开 `index.html`(直接双击或本地静态服务) +2. 默认加载 `tasks.sample.json` +3. 也可点击右上角上传你自己的 JSON 数据 + +## 数据格式 + +```json +{ + "boardName": "看板名称", + "updatedAt": "2026-03-08T11:45:00+08:00", + "columns": ["Intake", "Draft", "Audit", "Approve/Reject", "Dispatch", "Execute", "Verify", "Report", "Archive"], + "tasks": [ + { + "id": "T-001", + "title": "任务标题", + "owner": "工部", + "priority": "high", + "state": "Execute", + "risk": "low", + "tags": ["dashboard"], + "summary": "一句话描述" + } + ] +} +``` + +## 说明 + +- 看板内置三省六部状态流转提示 +- 显示进行中、待审计、已完成、高风险四项统计 +- 适合作为 Val 进行任务总调度时的可视化面板 diff --git a/org/dashboard/index.html b/org/dashboard/index.html new file mode 100644 index 0000000..509d622 --- /dev/null +++ b/org/dashboard/index.html @@ -0,0 +1,187 @@ + + + + + + Val 多 Agent 任务看板 + + + +
+
+
+

Val 多 Agent 任务看板

+

等待加载数据...

+
+
+ + +
+
+ +
+
+

状态总览

+
+
+
+

三省六部流转图

+
+ Intake + 中书 Draft + 门下 Audit + 尚书 Dispatch + 六部 Execute + Verify + Report + Archive +
+
铁律:工部执行前需要门下+兵部双签;失败先进入刑部。
+
+
+ +
+

任务看板

+
+
+
+ + + + diff --git a/org/dashboard/tasks.sample.json b/org/dashboard/tasks.sample.json new file mode 100644 index 0000000..953ca80 --- /dev/null +++ b/org/dashboard/tasks.sample.json @@ -0,0 +1,53 @@ +{ + "boardName": "Val 多 Agent 任务看板", + "updatedAt": "2026-03-08T11:45:00+08:00", + "columns": [ + "Intake", + "Draft", + "Audit", + "Approve/Reject", + "Dispatch", + "Execute", + "Verify", + "Report", + "Archive" + ], + "tasks": [ + { + "id": "T-001", + "title": "实现多 Agent 任务看板(状态流转可视化)", + "owner": "工部", + "priority": "high", + "state": "Execute", + "risk": "low", + "tags": ["dashboard", "workflow"], + "summary": "前端页面 + 状态统计 + 流转图", + "createdAt": "2026-03-08 11:42", + "updatedAt": "2026-03-08 11:46" + }, + { + "id": "T-002", + "title": "审查执行前安全红线", + "owner": "兵部", + "priority": "high", + "state": "Audit", + "risk": "medium", + "tags": ["security"], + "summary": "确认无外发、无不可逆破坏动作", + "createdAt": "2026-03-08 11:43", + "updatedAt": "2026-03-08 11:44" + }, + { + "id": "T-003", + "title": "定义汇报模板并统一输出格式", + "owner": "礼部", + "priority": "medium", + "state": "Verify", + "risk": "low", + "tags": ["style", "report"], + "summary": "结论优先 + 风险提示 + 选项推荐", + "createdAt": "2026-03-08 11:44", + "updatedAt": "2026-03-08 11:46" + } + ] +}