Run 对象
Run 是一次具体执行。它像锁版印刷:执行开始后,必须冻结当时的 Flow、Profile、Skill binding 和 Policy,避免后续修改影响复盘。
spec 字段
| 字段 | 要求 | 说明 |
|---|---|---|
flowRef | 必填 | 指向要执行或解释的 Flow。 |
profileRefs | 可选 | 本次 Run 追加或覆盖的 Profile。 |
policyRefs | 可选 | 本次 Run 使用的 Policy。 |
bindings | 可选 | capability 到具体 Skill / Adapter 的解析。 |
snapshot | 推荐 | 锁定 hash、generation 和 resolved refs。 |
mode | 可选 | explain、dryRun、execute。 |
最小示例
status 字段
| 字段 | 说明 |
|---|---|
phase | 当前阶段,例如 Planned、Running、WaitingForCheckpoint、Completed。 |
observedGeneration | status 对应的 Run generation。 |
currentStage | 当前 stage id。 |
conditions | 细粒度状态。 |
observedSideEffects | 实际观测到的副作用。 |
artifacts | 产物引用。 |
常见 conditions
RunPlannedStageStartedArtifactProducedCheckpointRequiredCheckpointApprovedUndeclaredSideEffectObservedRunCompletedRunFailed