docs(workflow): state forward-only background marker and lost-run limits

This commit is contained in:
Turtle committed 2026-10-03 02:32:09 +08:00
1 parent a4af361ed7
commit 34aef8c140
6 files changed
+10 -8

No files matched your search

@@ -18,8 +18,8 @@
en: 6907136f28e48c90
zh: 02f8298485f3d8e7
/2026-10-03-workflow-run-background/compatibility:
en: cf2c2afecf21a46c
zh: 5a4279a82ba51d10
en: cdcfa251bd45ee28
zh: 593c290c4ee9b868
/2026-10-03-workflow-run-background/verification:
en: 0539b2ac90f058bf
zh: 6ead6a707c3b3121
@@ -35,7 +35,7 @@ changes:
<a id="compatibility"></a>
## Compatibility
Existing records remain valid. Absence means a foreground run, which matches every record written before background runs and every foreground run. The Web workflow node uses the marker to stop inferring interruption from the closed Tool Step of a run that belongs to a background job.
Existing records remain valid. Writers add the marker only from this change onward: in new records, absence means a foreground run, while background runs recorded earlier also lack it and keep their interrupted presentation after the Tool Step closes. The Web workflow node uses the marker to stop inferring interruption from the closed Tool Step of a run that belongs to a background job.
<a id="verification"></a>
## Verification
@@ -35,7 +35,7 @@ changes:
<a id="compatibility"></a>
## 兼容性
已有记录仍然有效。缺失表示前台运行,与后台运行出现之前写入的记录以及所有前台运行一致。Web 工作流节点使用该标记,不再根据已关闭的工具 Step 推断后台作业所属运行已中断。
已有记录仍然有效。写入方从本变更起才写入该标记:新记录中缺失表示前台运行;此前记录的后台运行同样缺少该标记,工具 Step 关闭后仍显示为已中断。Web 工作流节点使用该标记,不再根据已关闭的工具 Step 推断后台作业所属运行已中断。
<a id="verification"></a>
## 验证
@@ -42,8 +42,8 @@
en: ca75c51c89c2c9b0
zh: de54f3467ef3b9be
/deepseek-ai-dsh-client-ui-workflow-run/known-limitations-and-deferred-work:
en: a422da4780d6a379
zh: 928d28951773e477
en: c7346285846dd51a
zh: 56d8171fcc6b1d80
/deepseek-ai-dsh-client-ui-workflow-run/known-limitations-and-deferred-work/dev-note:
en: e67f633dc6fe7773
zh: 3bb0c20c93f16f98
+2 -1
View File
@@ -86,7 +86,8 @@ None; this package neither assembles nor sends a provider request.
These limits define which runs produce records and what the node exposes; they are current package constraints.
- **Only top-level calls through `dsh-tool-workflow` produce these records** — nested PTC mode calls and direct `WorkflowEngine` consumers do not.
- **A background run lost without terminal events stays running** — its Step closure carries no liveness fact, and the session log records no job loss after a process crash.
- **A background run lost without terminal events stays running** — its Step closure carries no liveness fact, and the session log records no job loss after a process crash or after a failed append disables recording for that run.
- **Background runs recorded before the background marker still show as interrupted** — their `tool-workflow/run-start` lacks the marker, so the node treats them as foreground runs.
- **Navigation is intentionally live-only** — terminal members remain visible for review but never expose a cold-session opener from this node.
- **The node shows run, phase, member identity, and status only** — scripts, outputs, errors, logs, usage, static topology, and controls remain outside this surface.
+2 -1
View File
@@ -86,7 +86,8 @@ kind: "package-reference"
这些限制定义哪些运行会产生记录、节点暴露什么;它们是当前包约束。
- **只有经 `dsh-tool-workflow` 发起的顶层调用会生成这些记录**:嵌套 PTC mode 调用和直接 `WorkflowEngine` 消费方不会生成。
- **未写终点事件就丢失的后台运行保持运行中**:其 Step 关闭不表示存活状态,进程崩溃后会话日志也不记录作业丢失。
- **未写终点事件就丢失的后台运行保持运行中**:其 Step 关闭不表示存活状态,进程崩溃或追加失败停止该运行的记录后,会话日志也不记录作业丢失。
- **后台标记出现之前记录的后台运行仍显示为已中断**:其 `tool-workflow/run-start` 缺少该标记,节点把它们视为前台运行。
- **导航刻意只面向实时运行**:终态成员继续保留供复盘,但本节点永不为其提供冷会话入口。
- **节点只显示运行、阶段、成员身份与状态**:脚本、输出、错误、日志、用量、静态拓扑与控制操作都不属于本界面。