Path: redb-route/redb.Route.Llm/Engine/Governance/IShadowRunner.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm/Engine/Governance/IShadowRunner.cs ---- using redb.Route.Llm.Providers; namespace redb.Route.Llm.Engine.Governance; /// /// Optional shadow runner — when enabled, every primary provider call is also /// executed against an alternate factory, results compared and the divergence /// recorded via the for offline review. /// The user-visible response always comes from the primary call; the shadow run /// never affects routing. /// public interface IShadowRunner { /// True when a shadow run should be executed alongside the primary. bool Enabled { get; } /// /// Executes the shadow call. Implementations should be fire-and-forget from /// the caller's perspective — exceptions must not propagate. /// /// Provider used for the visible response. /// Request that was sent to the primary provider. /// Primary provider response — for divergence comparison. /// Cancellation token. Task RunAsync( ILlmProvider primary, LlmRequest request, LlmResponse primaryResponse, CancellationToken ct = default); } /// Default no-op shadow runner — disabled, never executes anything. public sealed class NoopShadowRunner : IShadowRunner { /// public bool Enabled => false; /// public Task RunAsync(ILlmProvider primary, LlmRequest request, LlmResponse primaryResponse, CancellationToken ct = default) => Task.CompletedTask; }