< Summary

Information
Class: Intentum.Runtime.Audit.IntentAuditEvent
Assembly: Intentum.Runtime
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Runtime/Audit/IntentAuditEvent.cs
Line coverage
25%
Covered lines: 2
Uncovered lines: 6
Coverable lines: 8
Total lines: 23
Line coverage: 25%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.Runtime/Audit/IntentAuditEvent.cs

#LineLine coverage
 1using Intentum.Runtime.Policy;
 2
 3namespace Intentum.Runtime.Audit;
 4
 5/// <summary>
 6/// Append-only audit event for an intent inference or policy decision (input hash, model/policy version, user override)
 7/// Use for compliance: record which input, model version, policy version produced which intent/decision, and whether a 
 8/// </summary>
 9/// <param name="InputHash">Hash of the behavior space or input (e.g. SHA256 of serialized events) for reproducibility w
 10/// <param name="ModelVersion">Version or identifier of the intent model used (e.g. "rule-v1", "onnx-2025-01").</param>
 11/// <param name="PolicyVersion">Version or identifier of the policy used (e.g. "policy-v2").</param>
 12/// <param name="UserOverride">True when a human override was applied (e.g. corrected intent or decision).</param>
 13/// <param name="RecordedAt">When the audit event was recorded (UTC).</param>
 14/// <param name="IntentName">Inferred intent name.</param>
 15/// <param name="Decision">Policy decision (Allow, Block, Observe, etc.).</param>
 116public sealed record IntentAuditEvent(
 017    string InputHash,
 018    string? ModelVersion,
 019    string? PolicyVersion,
 020    bool UserOverride,
 021    DateTimeOffset RecordedAt,
 022    string IntentName,
 123    PolicyDecision Decision);