Documentation
Table of Contents

Method RecordAsync

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.dll

RecordAsync(DocumentId, long, IReadOnlyList<ShadowDifference>, bool, CancellationToken)

Records what one check found for a version run side by side: the running tally a developer reads to decide on a promotion. Called once per check for each version that ReadCandidateAsync(DocumentId, long, CancellationToken) returned sets for. A failure is logged and never changes the check's decision.

ValueTask RecordAsync(DocumentId document, long sequence, IReadOnlyList<ShadowDifference> differences, bool compared, CancellationToken ct)

Parameters

document DocumentId

The rule document.

sequence long

The version run side by side.

differences IReadOnlyList<ShadowDifference>

The rules whose verdicts differed in this check; empty when they all agreed.

compared bool

True when one of the version's sets is named by the check and is for its checkpoint, so its rules were evaluated; false when nothing of it applied to this check, and differences is empty.

ct CancellationToken

Cancels the write.

Returns

ValueTask