refactor(workflow): stop assuming a human decides

An approval, ask or park can be resolved by an operator, a rule, a
classifier or automatically, so the vocabulary stops naming a person:

- step type human.approve -> workflow.approve
- park class needs_human -> needs_decision (ParkNeedsDecision)
- event kinds human_* -> operator_*
- alert kind task.needs_human -> task.needs_decision
- status grouping "needs you" -> "needs attention"

0061 rewrites the stored values, including the approval step type in the
workflow-definitions resource and each task's pinned definition, with the
digest recomputed so resumed tasks still match.
This commit is contained in:
sam committed 2026-10-25 17:31:16 +11:00
1 parent fc609171ca
commit f2b8681611
76 files changed
+373 -329

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ type ToolSetOptions struct {
// bypass the agent loop's read-only and protected-path enforcement.
ExcludeToolsets []string
// Approval is the human-consent gate for tools marked RequiresApproval.
// Approval is the operator-consent gate for tools marked RequiresApproval.
// Nil means no approver is configured — such tools are omitted from the
// built set rather than failing at call time.
Approval tools.ApprovalRequester
@@ -124,7 +124,7 @@ func BuildToolSetFrom(entries []tools.ToolEntry, opts ToolSetOptions) (aicore.To
// A tool that requires approval must not appear in a set built without
// an approver: the model would see a tool it can never invoke. With an
// approver present the tool is built and the execute closure gates each
// call on the human's decision.
// call on the operator's decision.
if entry.Classification.IsApprovalRequired() && opts.Approval == nil {
continue
}