董宏凯
1aeee86984
fix(maf): harden stage-4 quality gate (P0/P1)
...
P0-1 migration: detect the same-named stage-3 execution_stage CHECK by sqltext (must contain rework + manager_review), SQLite rebuild / PG-MySQL drop+add, PG boolean default TRUE, validate_schema checks constraint content + seat_tasks status CHECK/unique/FKs; tests start from a real stage-3 schema.
P0-2: a missing/invalid manager review (timeout/exception/empty/invalid JSON/missing per-seat decision) is never an acceptance - system rework under the cap, contract fallback (reassign/controlled_gap/ask_user) afterwards, source=system events.
P0-3: unaccepted deliveries are isolated from the fact ledger, cross-review and final report (deferred merge, delivery_json envelope, accepted_task_results in checkpoint, accepted-only synthesis, no turn_results fallback).
P0-4: seat-task init is atomic get-or-create over the full expected set; recovery fills missing tasks without overwriting frozen contracts; quality gate blocks missing required tasks.
P1: zero config values honoured; duplicate detection persists SHA-256 conclusion digests in history (survives restarts); findings never satisfy evidence, evidence_refs must resolve to trusted ledger refs (unverified_evidence_ref); conversation SSE projection tests added and manager/finalizer messages are no longer mislabelled as seat.delivery.submitted.
2026-08-07 00:04:55 +08:00
董宏凯
ddf83f7728
代码提交
2026-08-03 19:27:54 +08:00
董宏凯 and Cursor
99642fca6c
feat(maf): conversation-driven MAF roundtable (R1/R2) + server-owned stage-3 dispatch
...
Backend:
- Conversation API at /api/maf-roundtable/conversations: create/list/detail,
paginated messages, atomic send+run start, owner-only isolation,
admin read-only diagnostic access
- SSE real-time event stream (GET /conversations/{id}/stream) backed by
ConversationEventHub + conversation_events store; multi-worker deployment doc
- Deterministic server-owned stage-3 dispatch contracts (dispatch_contracts.py):
routing resolved from trusted MAF deployment config instead of manager-chosen
agent ids; config.yaml keeps stage-3 routing deployment-owned
(default_manager_agent_id / seat ids / business_routes / max_seats_per_run)
- Conversation persistence (conversations/messages stores) + v2 migration script
- Tests: conversations, conversation stream, migration, phase3 conversation dispatch
Frontend:
- Vitest test infra for MAF (vitest.maf.config.ts + test:maf script) with
component tests for ApprovalCard/RunHeader/SessionsPage and use-maf-events
- Session form lib, flow-graph dialog / run-detail / sessions page updates,
routes and nav tweaks
- Docs: R0 legacy interaction baseline mapping, updated implementation plan
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-03 12:09:47 +08:00
董宏凯
a55992e31c
fix(maf): harden phase 5 approval safety
2026-08-02 14:32:49 +08:00
董宏凯 and Cursor
f82363d81f
feat(maf): Phase 5 - action coordinator, approval flow, frontend MAF roundtable pages
...
- Backend: action_coordinator, capability_snapshot, event_normalizer, tool_executor updates
- Backend: approved_tool_executor with write guard, action leases, migration script
- Frontend: maf-roundtable module (API client, event timeline, approval cards, fact flow panel)
- Frontend: MafRoutes, MafSessionsPage, MafRunDetailPage
- Tests: action_leases, migration_phase5, phase5_entry_e2e, real_write_e2e/http_e2e
- Docs: update implementation plan
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 13:07:21 +08:00
董宏凯 and Cursor
e690475e6e
feat(maf-roundtable): add Phase-1 multi-agent roundtable infrastructure
...
Ship an independent, feature-flag-gated MAF roundtable skeleton with six
isolated tables, atomic single-transaction run launch/cancel, owner-scoped
read/write split, shared config enums, and HTTP/concurrency regression tests.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 01:07:05 +08:00
董宏凯
45df500a9c
代码提交
2026-07-24 10:33:28 +08:00
董宏凯
08ce3dda73
merge: integrate dhk-dev into dhk-1
2026-07-23 10:38:48 +08:00
fengxiangdebaozi
1bc203b5cd
岗位会商
2026-07-22 15:40:00 +08:00
fengxiangdebaozi
97ce19973d
docs(position-roundtable): plan delivery workflow
2026-07-21 19:31:08 +08:00
fengxiangdebaozi
85e119db08
feat(position-roundtable): add standalone position collaboration
2026-07-21 17:50:24 +08:00
董宏凯
54190d7a83
提交代码
2026-07-01 19:24:23 +08:00
董宏凯 and Claude Opus 4.8
3d2cc9e5cd
fix(深链会商): Step2 文件产物虚拟预览仅在有内容时用,否则回退 HTTP 按创建者解析(修复跨账号看不到)
...
- useStep2Orchestration.openArtifactPreview: stub 无内容(str_replace/跨账号草稿恢复)时不再短路,
回退到 artifacts HTTP 接口,并优先用子席位 thread(roundtable 线程→后端按对话创建者解析+放行跨账号)
- findSeatArtifactSource 一并返回 stub 捕获的 content 供判断
- 附:模板数据转换器「源数据抽取」手工测试清单文档
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-23 21:47:46 +08:00
fengxiangdebaozi
6b49741e69
代码修改
2026-06-16 10:05:54 +08:00
董宏凯 and Cursor
c702119e66
feat(ui): 浅蓝主题、外观设置与圆桌看板主题适配,优化工作区布局
...
新增 lightblue 主题与外观设置联动,圆桌 Step3 看板/report 统一配色;工作区侧边栏、输入框与轻应用 iframe 主题参数同步更新。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-14 12:43:16 +08:00
董宏凯 and Claude Opus 4.8
391409b6c0
feat(圆桌): 查看运行中作业改为接管回前端续跑 + 后台挂起续跑方案文档
...
- onView 运行中/待澄清作业改走 takeOverRunningJob:cancelJob 停后端 →
handleLoadDraft 恢复作业真实线程/协调名/对话 → 解除只读闸门 →
resumeLiveTakeover 在作业线程上由前端继续实时流式编排
- hydrateFromDraft 同步写 threadIdsRef/coordinatorNameRef,使接管同帧可读真实线程
- 新增 docs/multi-agent-后台挂起续跑实现方案.md(仅方案,待实现)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-13 18:49:19 +08:00
董宏凯
d5f319d9cb
@
...
feat(圆桌): Step3 三产物并行 + 大屏多页模式 + 后台挂起查看恢复流程
后台挂起 Step3:
- engine 总结报告/结果绘制/大屏数据 asyncio.gather 三流并行,故障隔离
- request.state 回归修复(进程内虚拟 request 补 state),恢复后台报告
- ROUNDTABLE_JOB_GATEWAY 默认 inprocess;产物自愈重试(截断/缺失纠偏)
- 大屏后端只产 report-json(dashboardJson),前端按当前主题渲染
结果绘制大屏多页模式(模式二):
- report-template 模板渲染(report-json→大屏HTML),零截断、主题跟随
- 与模式一同款交互(流式+沙箱+可修改);沙箱新窗口打开按钮
最终方案展示:左侧席位栏+总控头像、交付/文件合并、收展动画、内联沙箱
后台挂起查看=恢复实时流程:
- handleLoadDraft 返回 Promise,await hydrate 后订阅 streamJob SSE 跟随
- saveDraftNow 强制存(发起前+查看前各一次)防丢
第二步优化:总控判断串/并行(并行单列可写)、席位上下文+交付模板、
peerDeliveries、失败重试、共识标记、流程图小窗(缩放/拖动/并行批)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
@
2026-06-13 10:36:46 +08:00
Administrator
e74ef4b7dc
Merge branch 'ji' into master
2026-06-12 18:28:13 +08:00
吉鑫升 and Claude Fable 5
81f2a48c6d
feat: 公开嵌入页主题支持外部指定 + 排行榜入口移至左上角
...
- 公开页(/share、/public、/roundtable-share)新增 ?theme= 与
deerflow:set-theme postMessage 两种外部主题指定方式,经
usePublicEmbedTheme 接成 next-themes forcedTheme,不写 localStorage
- 排行榜入口从欢迎语旁移到 workspace-header 左上角应用名旁
- 新增 docs/embed-public-pages-theme.md 嵌入主题使用文档
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-06-12 15:12:17 +08:00
董宏凯
75258db0a2
提交
2026-06-12 00:38:17 +08:00
董宏凯 and Cursor
a4a9a4d26e
AI 写作四阶段内置智能体 Phase 1-4 落地
...
新增 ai-writing-researcher/outliner/writer/editor 种子 agent、_agent_runner 与 use_builtin_agents 灰度开关;四节点可按 flag 切换 SOUL 模式;时间线补大纲规划师配色并更新改造文档。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-11 22:58:38 +08:00
董宏凯
55aab67383
需求梳理
2026-06-11 22:09:35 +08:00
Administrator
87e0ae683e
Merge remote-tracking branch 'origin/master' into ji
...
# Conflicts:
# offline-backend-20260512/backend/app/gateway/app.py
# offline-backend-20260512/backend/config.yaml
# offline-backend-20260512/backend/packages/harness/deerflow/persistence/models/__init__.py
# offline-backend-20260512/backend/packages/harness/deerflow/runtime/checkpointer/async_provider.py
2026-06-10 09:09:26 +08:00
吉鑫升
8113b822c5
docs: add product knowledge base plan
2026-06-08 16:02:43 +08:00
董宏凯 and Claude Opus 4.8
7b8c11852e
feat(roundtable): 圆桌 Step2 分层 DAG 编排(并行/沙箱双模式 + 流程图 + 按需取全文)
...
数据模型/编辑器:链条加 stages 分层(前后端 + alembic 20260607_03);BusinessChainEditorPage 竖列 Stage 编辑 + 底部只读流程图预览;lib/dag-types + chain-stages 纯逻辑(含单测)。
调度(runDagOrchestration,方案 A 总控驱动):每个 stage 由总控经 agent_orchestration 派活给计划钉死的席位,批内 Promise.all 并行、批间 barrier 串行;末尾交回 runOrchestration 收口。抑制 leader 预广播 + 干净席位任务,根治『席位模仿派活』。
执行子模式:快速(双列·产物走正文·禁写文件 seat_parallel)/ 沙箱(单列·写 .md·沙箱跟随预览 seat);统一禁 bash(防 .py 脚本),提示词禁 .py。
显示:头像条 + 两列/单列 + ref 全量累积 + 节流 flush(仅选中渲染);DAG 流程图弹窗(按 stage 分列,节点随执行点亮,只到共识);沙箱跟随当前席位(防错位 + 修第一个席位自动开沙箱)。
按需取全文:新增 harness 只读工具 read_peer_delivery(从 run context 取网关注入的前序席位完整交付),席位默认看摘要、需要时取全文。
修:宽表溢出、并行自动下滑、data-lov-id Fragment 警告等。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-07 21:20:58 +08:00
董宏凯 and Claude Opus 4.8
2e689e4482
docs(roundtable): 圆桌 DAG 编排 + 并行执行显示分步需求文档
...
锁定三项设计决策:分层 Stage(非自由连线)、并行跳过 leader 前端直派、主区固定 2 列(窄屏降 1 列)。含数据模型/编辑器交互/并行调度/禁写文件/高性能流式渲染/分步实现计划(Phase 1-8)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-07 21:20:58 +08:00
fengxiangdebaozi
b0fdeab995
代码修改
2026-06-05 18:58:28 +08:00
fengxiangdebaozi
9bbd04d6cf
后台挂起功能优化
2026-06-05 10:59:56 +08:00
fengxiangdebaozi
19399482e1
后台挂起
2026-06-04 20:00:58 +08:00
fengxiangdebaozi
10334ddfe1
feat: AI writing history, Word export, roundtable dispatch chain
2026-06-04 15:40:15 +08:00
董宏凯
016f921cf0
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-server into dhk-1
2026-06-03 16:28:34 +08:00
董宏凯 and Cursor
aea7724cdb
修复 embed 跨域并持久化圆桌 Step3 结果
...
- Gateway 默认 CORS 白名单增加 5174,embed 文档补充跨域配置说明
- 圆桌草稿新增 step3 快照字段与迁移,结果绘制 HTML 可随草稿恢复
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-03 16:27:42 +08:00
fengxiangdebaozi
79d87ad661
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-server into dhk-1
2026-06-03 16:22:51 +08:00
董宏凯 and Cursor
40ba81ee6a
新增 iframe 结果接口与圆桌 Step3 结果绘制
...
- 公开 API:GET /api/public/embed/sessions/{sessionId}/result 返回 messages、generated_text、generated_files
- 圆桌 Step3:内置 roundtable-report 智能体、report/init 与结果绘制 UI
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-03 13:57:37 +08:00
fengxiangdebaozi
ab876fc7d8
feat(ai-writing): 支持用户粘贴已有大纲并按结构生成
...
表单可提交 userOutline,后端解析/归一用户大纲并关联素材;补充大纲测试用例与右侧编辑器滑词/段落菜单文档。
2026-06-03 11:43:44 +08:00
fengxiangdebaozi
02eee4bd3e
页面修改
2026-06-02 21:25:44 +08:00
fengxiangdebaozi
fb43c036f6
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-server into dhk-1
2026-06-02 21:15:53 +08:00
fengxiangdebaozi
9ae6184dc1
业务链条
2026-06-02 21:15:46 +08:00
董宏凯
7efedc7b44
ai写作修改
2026-06-02 20:36:22 +08:00
董宏凯
ea50540bd5
样式修改
2026-05-31 18:23:34 +08:00
董宏凯
8e909ef1c1
ui规范
2026-05-31 18:11:17 +08:00
董宏凯
7ad42ccf16
ui规范
2026-05-31 16:48:43 +08:00
董宏凯 and Cursor
23d6f9efc2
圆桌 Step1:支持多澄清实时展示与合并提交
...
流式解析 ask_clarification 逐题渲染澄清卡;草稿恢复 selectedAgents 修复参与角色;Step3 隐藏左侧栏让报告区全宽。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-31 14:23:43 +08:00
董宏凯 and Cursor
838cae0d2d
圆桌草稿持久化:localStorage 迁至后端 MySQL
...
新增 /api/roundtable-drafts 草稿 CRUD 与会话级推荐历史;前端 useDraftPersistence 改走 api/drafts,删除本地 drafts.ts。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-31 00:23:25 +08:00
董宏凯 and Cursor
de597b602a
圆桌 Step2:固定协调员单例、优化调度性能、修正研讨中状态
...
将 roundtable-coordinator 改为内置单例避免重复创建;legacy sync 加 TTL 减少 runs/stream 延迟;前端仅当前发言者显示研讨中。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-28 23:23:40 +08:00
fengxiangdebaozi
24d4934c27
代码提交
2026-05-27 17:47:20 +08:00
董宏凯
1ff8860b98
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-server into dhk-1
2026-05-27 17:20:47 +08:00
董宏凯
198fc18c50
报告沙箱
2026-05-27 17:20:41 +08:00
fengxiangdebaozi
35c313b689
开发文档
2026-05-27 16:02:07 +08:00
fengxiangdebaozi
9bd049923e
多智能体页面结构修改
2026-05-26 23:20:50 +08:00