Documentation
Table of Contents

Property Shadows

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.dll

Shadows

Versions of rule documents to run side by side with the running versions, typically candidates saved with Activate false; empty, the default, runs none.

[Experimental("INTENTSHARP002")]
public IReadOnlyList<ShadowVersion> Shadows { get; init; }

Property Value

IReadOnlyList<ShadowVersion>

Remarks

On every check, after the running sets decide, each listed version's sets that the check names and that are for its checkpoint are evaluated detect-only on the same subjects, settings and described entities, with no model call by the built-in kinds and without the coverage rules (SI-1, SI-2). A rule whose verdict differs from the running version's is reported in ShadowDifferences, and the source keeps a running tally. Only the running version decides (SI-3): Allowed, the violations, the detections and the settings are the same with or without shadows. Promotion is the store's ActivateAsync(DocumentId, long, CancellationToken), never automatic.

The source must implement IGuardrailShadowSource, as the IntentSharp.Guardrails package's rule file source does: Build throws InvalidOperationException naming the source's type when it does not, or when there is no source, and ArgumentException when an entry is null, names no document or has a sequence below 1. A repeated entry runs once.