Table of Contents

Class GovernanceMetadataSanitizationResult

Namespace
AsiBackbone.Core.Metadata
Assembly
AsiBackbone.Core.dll

Represents the provider-neutral result of governance metadata sanitation and budget validation.

public sealed class GovernanceMetadataSanitizationResult
Inheritance
GovernanceMetadataSanitizationResult
Inherited Members

Properties

Action

Gets the strongest action produced by classification, sanitation, and budget validation.

public GovernanceMetadataSanitizationAction Action { get; }

Property Value

GovernanceMetadataSanitizationAction

BudgetValidation

Gets the budget validation result evaluated after classifier redaction and dropping are complete.

public GovernanceMetadataBudgetValidationResult BudgetValidation { get; }

Property Value

GovernanceMetadataBudgetValidationResult

CanProceed

Gets a value indicating whether the sanitized metadata may continue to downstream processing.

public bool CanProceed { get; }

Property Value

bool

IsDenied

Gets a value indicating whether sanitation denied the metadata collection.

public bool IsDenied { get; }

Property Value

bool

Reasons

Gets stable machine-readable reasons produced by classifiers or budget validation.

public IReadOnlyList<OperationReason> Reasons { get; }

Property Value

IReadOnlyList<OperationReason>

SanitizedMetadata

Gets metadata that may be passed forward when CanProceed is true.

public IReadOnlyDictionary<string, string> SanitizedMetadata { get; }

Property Value

IReadOnlyDictionary<string, string>

Remarks

This collection is empty when sanitation is denied so callers cannot accidentally persist or emit a denied payload.

Methods

Create(GovernanceMetadataSanitizationAction, IReadOnlyDictionary<string, string>, IReadOnlyList<OperationReason>, GovernanceMetadataBudgetValidationResult)

Creates a governance metadata sanitation result.

public static GovernanceMetadataSanitizationResult Create(GovernanceMetadataSanitizationAction action, IReadOnlyDictionary<string, string> sanitizedMetadata, IReadOnlyList<OperationReason> reasons, GovernanceMetadataBudgetValidationResult budgetValidation)

Parameters

action GovernanceMetadataSanitizationAction

The strongest sanitation action.

sanitizedMetadata IReadOnlyDictionary<string, string>

The safe metadata available for downstream processing.

reasons IReadOnlyList<OperationReason>

The classifier and budget reasons.

budgetValidation GovernanceMetadataBudgetValidationResult

The post-sanitation budget validation result.

Returns

GovernanceMetadataSanitizationResult

A governance metadata sanitation result.

ThrowIfDenied(string?)

Throws an ArgumentException when sanitation denied the metadata collection.

public void ThrowIfDenied(string? parameterName = null)

Parameters

parameterName string

The optional caller parameter name associated with the metadata.