Skip to content

[Workflow] 实现 Debug projection、durable stepping 与 restart recovery #299

Description

@s1p21

上游决策

实施范围

  • 实现 OS-only Debug Task launch、debug projection 与 debugger command Interface,并继续创建 Backend-shaped WorkflowTask/WorkflowNodeJob。
  • 从 Task snapshot 计算多起始 frontier、active 与 out-of-scope;disabled/out-of-scope 不创建 Job,运行时 skipped 必须有真实 Job。
  • 持久化并恢复 Admission Hold、scoped permit、causal step fence、命令幂等键、Task applied source 和 SSE outbox。
  • Composite invocation 不创建 synthetic Job/Hold;只从真实内部 Job/Hold 派生 composite stop。
  • OS restart 时恢复 pending/Hold/permit/fence;未知物理结果进入 reconciling 并保留 fenced claim,禁止自动重复下发。
  • 发布 D-116 的 workflow.runtime.changed invalidation,REST 继续作为状态真值。

验收

  • 单元与 service/API integration tests 覆盖多起始点、disabled/out-of-scope/skipped、重复 attempt、branch-local step、composite step、transparent output readiness、SSE replay、stale Hold 409 和 restart recovery。
  • 所有 DTO、UUID、状态和值形态保持冻结 Backend 前端合同;不修改 Backend。
  • 为跨仓 E2E 提供临时 SQLite 与确定性 fake device/action fixture。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions