Files
nexus/wiki/concepts/Workflow-Architecture.md
2026-04-20 16:01:56 +08:00

1.2 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
Workflow Architecture concept
workflow-design
systems-design
process-engineering
specialized-workflow-architect
2026-04-20

Definition

Workflow Architecture 是一种把系统行为建模为工作流树的方法:先发现入口,再定义每一步的成功条件、失败分支、恢复动作、可观察状态和清理责任。

Core Principles

  • 先发现,再设计
  • 先 happy path再分支
  • 每个步骤都必须有 timeout
  • 每个失败都必须有 recovery path
  • 每个资源都必须进入 cleanup inventory
  • 每个交接都必须有明确 contract
  • 每个 spec 都必须接受现实验证

Key Building Blocks

  • Workflow Registry系统中所有工作流的权威清单
  • Handoff Contract系统边界的 payload / response / timeout / recovery 定义
  • Observable States客户、操作员、数据库、日志的状态定义
  • ABORT_CLEANUP失败后的逆向销毁流程
  • Reality Checker将 spec 与实际实现对齐的验证步骤