Orchid.Hook.ApplyInterventions (orchid_intervention v0.1.3)

Copy Markdown View Source

Runner hook that applies non-input interventions to step outputs.

Execution Model

For each step that has matching interventions on its output keys:

  1. Short-circuit check — if every output key is covered by an intervention whose short_circuit?/0 returns true, the step body is bypassed entirely and intervention data is returned as the result.

  2. Normal execution + merge — otherwise the step runs normally, then each output key with an intervention is post-processed via the intervention's merge/2 callback. Keys without interventions are passed through unchanged.

Output Format

Always returns {:ok, [Param]} (list format).