Skip to main content

Behavior

<Sidecar> renders a <Parallel> with two <Task> children: the primary keeps the component id, writes to output, and is the node downstream code reads; the sidecar (${id}-sidecar) shares the prompt, runs with continueOnFail: true, and writes to sidecarOutput or output by default. Both tasks share the scorers prop; Smithers records live results in _smithers_scorers per task node id, so bunx smthrs scores RUN_ID lists the primary and sidecar rows separately. computeSidecarDelta(rows, { primaryNodeId, sidecarNodeId, scorerId }) derives primaryScore, sidecarScore, delta, and cheaperWins from persisted scorer rows only.

Notes

  • The sidecar can fail without failing the workflow, and its result never replaces the primary’s.
  • delta is primaryScore - sidecarScore.
  • cheaperWins is sidecarScore >= primaryScore.

Source

The <Sidecar> implementation and the files it imports, straight from the package source. This section is generated; edit the source, not this block.