Documentation
Table of Contents

Class GuardrailDecision

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.dll

The outcome of one guardrail check: whether the operation may proceed, the sets it was checked against, the violations and detections, the settings the operation runs under, and a stamp per set. Pass it to Ensure(GuardrailDecision) before the operation proceeds.

public sealed class GuardrailDecision
Inheritance
object
GuardrailDecision
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Remarks

A check fails closed: it is refused, with Refusal saying why, when no set was named, a named set is not loaded, the source cannot supply its rules, a set leaves a required subject uncovered or holds a detect-only rule on a security subject. An operation proceeds only when Allowed is true.

Constructors

GuardrailDecision()

Creates a decision. The check creates these; a test may create its own.

Properties

Allowed

True when the operation may proceed: nothing refused the check and no enforced rule failed.

Checkpoint

The checkpoint that was checked.

Detections

The detect-only rules that failed; they refuse nothing.

Refusal

Why the check refused the operation beside or before any rule's verdict; null when it did not refuse.

Sets

The names of the sets the check named (the client's default sets when it named none), in order, found or not; Stamps lists the ones that were found.

Settings

The settings the operation runs under, resolved for this check, by name.

ShadowDifferences

The rules whose verdicts differed between the running version and a version run side by side (Shadows), in the order of the shadows and their rules; empty when the client runs no shadows or every verdict agreed. They never change Allowed: only the running version decides.

Stamps

One stamp per named set that was found, naming the version the decision was made under.

Violations

The enforced rules that failed; empty when none.