Number of sampled shadow envelopes dropped because InFlightCount >= MaxInFlight, across every run using this
coordinator; a run counts its own drops from ShadowDispatchResult.Dropped.
Number of currently active background shadow tasks.
Shadow dispatch. Starts the record's champion audit write (returned as ChampionAudit, which the caller awaits
before its batch reports done, so those writes are bounded by the batch and never left running), and defers all
publisher and challenger execution to a future tick so synchronous work inside a runner never blocks the
champion path; concurrent challenger tasks are capped at MaxInFlight.
OptionalcontextUser: UserInfoOptionalprovider: IMetadataProviderOptionaloptions: DispatchShadowScoreOptionsExecute a single shadow envelope (called either by the WorkQueue consumer or background runner),
starting the MaxLatencyMs timer and AbortController BEFORE invoking the challenger runner,
and persisting the Role: 'Challenger' audit record.
OptionalcontextUser: UserInfoOptionalprovider: IMetadataProviderOptionalonWorkSettled: (settledPromise: Promise<unknown>) => voidWait for all currently in-flight background shadow tasks to settle (used by tests and graceful shutdown).
Determine whether a live champion invocation should be mirrored to the challenger.
Rejects non-number SampleRate values (e.g. uncoerced strings) and configurations lacking
both ChallengerModelID and ChallengerPromptID.
Coordinates sampling, non-blocking
WorkQueuepublication, bounded-timeout challenger execution, andRole: 'Challenger'audit persistence.