apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: manual-approval
  labels:
    dagweave.io/catalog-item: manual-approval
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.0"
    dagweave.io/catalog-category: "Approval"
spec:
  entrypoint: approve
  templates:
    - name: approve
      inputs:
        parameters:
          # Informational message shown to the approver describing what they are
          # approving. Surfaced on the suspended node; it does not affect execution.
          - name: message
            default: "Manual approval required. Resume this node to continue."
      # A suspend node pauses the workflow indefinitely until a human resumes it
      # (Argo UI "Resume", `argo resume <workflow>`, or the resume API). No image or
      # container runs — the node simply blocks downstream steps until approved.
      suspend: {}
