Skip to content

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.

PipelineContext

string

PlannedAction[]

TsvAudit

Promise<ExecuteResult>