-
Notifications
You must be signed in to change notification settings - Fork 15
[待开发]Workflow 运行与发布契约 ADR #1187
Copy link
Copy link
Open
Labels
area:apiPublic API or protocol contract workPublic API or protocol contract workarea:runtimeRuntime and execution behaviorRuntime and execution behaviorarea:workflowWorkflow authoring and orchestration UXWorkflow authoring and orchestration UXchild-issueChild implementation issueChild implementation issuecontractContract or API semantics changeContract or API semantics changegrade:g3Cross-domain decision or implementation workCross-domain decision or implementation worklevel:l1Decision issue / ADRDecision issue / ADRneeds-adrNeeds an ADR or explicit architecture decisionNeeds an ADR or explicit architecture decisionparent-issueParent tracking issueParent tracking issuephase:readyIssue is shaped and ready for implementationIssue is shaped and ready for implementationpriority:p1High priorityHigh priorityrisk:highHigh risk if implemented incorrectlyHigh risk if implemented incorrectlysize:mMedium implementation and review sizeMedium implementation and review sizetype:designDesign or contract shaping workDesign or contract shaping work
Description
Metadata
Metadata
Assignees
Labels
area:apiPublic API or protocol contract workPublic API or protocol contract workarea:runtimeRuntime and execution behaviorRuntime and execution behaviorarea:workflowWorkflow authoring and orchestration UXWorkflow authoring and orchestration UXchild-issueChild implementation issueChild implementation issuecontractContract or API semantics changeContract or API semantics changegrade:g3Cross-domain decision or implementation workCross-domain decision or implementation worklevel:l1Decision issue / ADRDecision issue / ADRneeds-adrNeeds an ADR or explicit architecture decisionNeeds an ADR or explicit architecture decisionparent-issueParent tracking issueParent tracking issuephase:readyIssue is shaped and ready for implementationIssue is shaped and ready for implementationpriority:p1High priorityHigh priorityrisk:highHigh risk if implemented incorrectlyHigh risk if implemented incorrectlysize:mMedium implementation and review sizeMedium implementation and review sizetype:designDesign or contract shaping workDesign or contract shaping work
Type
Fields
No fields configured for issues without a type.
Issue 元数据
type:designarea:workflowarea:apiarea:runtimelevel:l1grade:g3priority:p1risk:highsize:mphase:readyneeds-adrcontractparent-issuechild-issue已确认事实
ApplicationType::Workflow的正式产品形态,复用现有 orchestration runtime / logs / monitoring,不新建平行顶层资源。workflow_start、workflow_end;后续 workflow 专属节点也按应用类型命名空间区分。/api/ex/{slug}、同步 / 异步运行和同步自定义返回值。ADR 草案
Context
AgentFlow 已稳定,但 Workflow 的定位是系统工作流内置工作补充,不应继续暴露 AgentFlow 的聊天 / Agent API 语义。仓库已有 Application、flow、orchestration runtime、public API docs、logs、monitoring 和 TaskQueue 基础能力。
Decision
workflow_start定义输入参数和同步超时时间,workflow_end定义返回字段。/api/ex/{slug};保存时验证 slug、方法、路径参数、query 参数、form 参数、body 参数,冲突或无效则失败。/api/ex/{slug}由稳定 dispatcher 进入后端发布配置;具体路径、方法、参数和响应 schema 注册到全局 OpenAPI。workflow_end投影,成功时直接返回字段对象;异步模式返回run_id/status;同步等待或超过workflow_start超时时间返回202 + run_id/status。不可协商不变量
start/answer作为 workflow 专属起止节点类型名。/api/ex/{slug}不开放给 runtime plugin 任意注册 host route。待验证假设
workflow_end返回字段投影。TaskQueue能支撑异步运行入口和定时触发第一版,不需要在本阶段引入完整调度平台。不采用方案
/api/agent/v1/runs。POST或 body-only 参数。/api/ex/{slug}只放到应用内 API docs。验收证据
执行边界
生命周期