Process API
Group Task references into an ordered, reusable workflow.
Kubernetes resource
The Process v1alpha1 chart schema requires spec.steps. Each step requires id, name, and taskRef; optional maxReworkAttempts bounds rework. The current chart schema does not specify arbitrary branching or a general workflow DSL.
apiVersion: core.kaigents.io/v1alpha1
kind: Process
metadata:
name: example-process
spec:
maxReworkAttempts: 2
steps:
- id: research-step
name: Research
taskRef: researchDesign and execution boundary
Order steps so that outputs can be verified before a dependent action. Each taskRef names a Task; confirm that its Agent and required tools are resolvable in the namespace. maxReworkAttempts is an optional Process schema setting, but the current Temporal Work Request workflow uses a code-level maximum of three rework attempts. Do not assume a manifest override is honored without verifying your adapter wiring.
- A Process is a reusable definition, not an accepted Run.spec.target.kind in v1alpha1.
- A Work Request handled by the Temporal adapter executes ordered Work Items, passes the previous result to the next step, and optionally waits for an approval signal.
- There is no arbitrary conditional branching or automatic transaction rollback in the chart schema; model compensating actions explicitly.
Inspect
kubectl get processes -n kaigents
kubectl get process example-process -n kaigents -o yaml
kubectl explain process.spec.steps --api-version=core.kaigents.io/v1alpha1