Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

name: op-overlay-delta-vs-stage
kind: operator
category: OVERLAY
operator: OVERLAY_DELTA_VS_STAGE
description: Whole-chain additive delta of target stage's result against the reference stage's result.
type: reference
applies_to: process
examples_tags: [overlay, before-after]

Lives on a chain request’s overlays; layers land on the chain response’s overlays, per-stage overlays untouched. No Response.Components.

Use when

A process-chain stage’s result minus an earlier stage’s result at the same coordinate, in the later stage’s own units.

Questions it answers:

  • How many records or how much revenue does each filtering stage remove?
  • How far does the refined stage’s figure move from the first stage’s?

Use something else:

  • OVERLAY_INDEX_VS_STAGE when you want a ratio rather than a gap.

Params

NameTypeDefaultDescription
fieldstring—OUTPUT LABEL of the aggregation to score on the target and the reference stage (label, else TYPE_field) or an expanded element column <label>[<elem>] (params.expand); absent = each stage’s aggregations[0]; rows key on group columns only; a stage lacking it → PULSE_OVERLAY_FIELD_UNKNOWN (details.which / stage_index).

scope required, echoed verbatim — the capability declares total (there is no chain scope). A chain overlay has no level / within. ref required — {"index": N} or {"name": "stage-id"}. target — same form, default the latest stage.

Host shape

CHAIN — a process chain; the reference and target stages’ result shape (scalar / series / matrix). Subtractive twin of the stage index.

Output

Shape inherited from target stage. Per-coordinate target − reference, in the target stage’s units. Layer summary.baseline = 0.

Contract

  • Weight: not read; a weight in force is skipped.
  • Streaming: buffered only.

Gotchas

  • SERIES host: an undefined value (NaN — a mean over a group with no value, an unanswered element) on either side is a MISSING point, as on the request host — the entry keeps its key with NO statistic (absent, not null), no warning, out of summary.count.
  • No division — zero reference never raises PULSE_OVERLAY_REF_ZERO. Distinct from the ratio twin.
  • Target shape ≠ ref shape → PULSE_OVERLAY_CHAIN_STAGE_SHAPE_DIVERGENT WARNING on predict-chain and at runtime (chain stays valid and runs; empty layer).
  • An empty or unknown ref → PULSE_OVERLAY_REFERENCE_UNKNOWN; unknown target → PULSE_OVERLAY_TARGET_UNKNOWN.
  • Buffered (runs after every stage finalizes).

See