Files
Agent-System/.doc/ops/short-term/2026-09-21-taskrun-scope-persist.md
weichenandCursor 7ff0fb5cdd docs(test): record task scope alias acceptance on dev
Chen Wei's intake request against a bd_intake snapshot now creates a run, and the chat window still returns the turn after refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 05:09:39 +00:00

1.4 KiB
Raw Permalink Blame History

title, status, created, updated, owner, branch, worktree, mutex
title status created updated owner branch worktree mutex
任务作用域键归一化与失败对话落库 done 2026-09-21 2026-09-21 Cursor fix/taskrun-scope-persist-2026-09-21 - projectinstance+taskrun

任务作用域键归一化与失败对话落库

目标

新工作流实例使用 bd_* 任务键时,前端仍发送旧键(如 intake)不再返回 TASK_SCOPE_UNRESOLVED;若作用域仍无法解析,本轮用户消息与失败回复先落库。

范围

  • ResolveMessageScopeForTask、TaskKeyToStage、文档任务查找使用 workflowdef.SameTaskKey
  • POST /api/v1/tasks/runs 在 409 早退前写入 user + assistant 消息
  • 前端 TASK_SCOPE_UNRESOLVED 文案

非目标

  • 不改快照数据、不改 schema
  • 不晋升 test/main
  • 不改 production_ready

步骤

  1. 键别名归一化与回归测试
  2. 409 路径落库与回归测试
  3. dev rebuild 与陈威项目 6579 实测

验收标准

  • live 实例快照为 bd_intake、请求 intake 时任务创建成功(202)
  • 无法解析时 chat_messages 仍有用户句与失败回复
  • 刷新后该会话不再为空

相关链接

  • Test report: .doc/test-reports/2026-09-21-taskrun-scope-persist-test-report.md

证据 / 备注

dev 库实例 366(项目 6579)快照任务键为 bd_intake。陈威 user_id=398,会话 sess-p6579-u398 修复前 0 条消息。