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
documentDocumentIdThe rule document.
sequencelongThe version run side by side.
differencesIReadOnlyList<ShadowDifference>The rules whose verdicts differed in this check; empty when they all agreed.
comparedboolTrue 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
differencesis empty.ctCancellationTokenCancels the write.
Returns
- ValueTask