Lightning.Runs.Handlers.CompleteStep (Lightning v2.19.0-pre)
View SourceSchema to validate the input attributes of a completed step.
output_dataclip may arrive either as a JSON-encoded string (older
workers) or already decoded — a map, list, or scalar (newer workers).
See maybe_decode_dataclip/1. Map values are stored as-is; non-map
values are wrapped as %{"value" => x} before persistence.