Build a human_override artifact for downgrading human_review_required
on a plan re-sync. Validates that the reason is substantive (≥20
characters after trimming edge whitespace), the approver is an email,
and no control characters appear in either field (audit-log safety).
approvedAt defaults to the current ISO timestamp. Callers recording
a retroactive approval should pass the human's decision time explicitly.
Throws Error with a descriptive message on invalid input.
Build a
human_overrideartifact for downgradinghuman_review_requiredon a plan re-sync. Validates that the reason is substantive (≥20 characters after trimming edge whitespace), the approver is an email, and no control characters appear in either field (audit-log safety).approvedAtdefaults to the current ISO timestamp. Callers recording a retroactive approval should pass the human's decision time explicitly.Throws
Errorwith a descriptive message on invalid input.