executeActions
executeActions(
ctx,command,actions,audit?):Promise<ExecuteResult>
Defined in: src/pipeline/actions.ts:68
The ONLY write path of every pipeline. Order of defenses: dry-run short-circuit (callers report the plan instead), confirmation gate above the threshold, ensureLabels pre-flight (typo guard — labels are asserted before any email moves), then grouped bulk addLabels and one archive pass. Each successful addLabels chunk is audited BEFORE the next chunk runs, so an interrupted run resumes without duplicating work.
Parameters
Section titled “Parameters”command
Section titled “command”string
actions
Section titled “actions”audit?
Section titled “audit?”Returns
Section titled “Returns”Promise<ExecuteResult>