Table of Contents

Class GovernanceMetadataBudget

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

Defines optional host-owned budget limits for governance metadata dictionaries.

public sealed class GovernanceMetadataBudget
Inheritance
GovernanceMetadataBudget
Inherited Members

Remarks

The budget is intentionally advisory and helper-oriented. AsiBackbone cannot determine whether host-provided metadata is sensitive in a specific deployment, but hosts can use these limits to keep audit and governance metadata bounded before durable storage, emission, or signing.

Fields

DefaultMaxCount

Gets the default recommended maximum number of metadata entries.

public const int DefaultMaxCount = 32

Field Value

int

DefaultMaxKeyLength

Gets the default recommended maximum metadata key length, in characters.

public const int DefaultMaxKeyLength = 64

Field Value

int

DefaultMaxSerializedBytes

Gets the default recommended estimated serialized metadata size, in UTF-8 bytes.

public const int DefaultMaxSerializedBytes = 8192

Field Value

int

DefaultMaxValueLength

Gets the default recommended maximum metadata value length, in characters.

public const int DefaultMaxValueLength = 512

Field Value

int

Properties

MaxCount

Gets the maximum number of normalized metadata entries allowed by the budget.

public int MaxCount { get; }

Property Value

int

MaxKeyLength

Gets the maximum normalized metadata key length allowed by the budget, in characters.

public int MaxKeyLength { get; }

Property Value

int

MaxSerializedBytes

Gets the maximum estimated serialized metadata size allowed by the budget, in UTF-8 bytes.

public int MaxSerializedBytes { get; }

Property Value

int

MaxValueLength

Gets the maximum normalized metadata value length allowed by the budget, in characters.

public int MaxValueLength { get; }

Property Value

int

Gets the recommended governance metadata budget.

public static GovernanceMetadataBudget Recommended { get; }

Property Value

GovernanceMetadataBudget

ReservedKeyFragments

Gets normalized reserved or discouraged metadata key fragments.

public IReadOnlyList<string> ReservedKeyFragments { get; }

Property Value

IReadOnlyList<string>

Methods

Create(int, int, int, int, IEnumerable<string>?)

Creates a governance metadata budget.

public static GovernanceMetadataBudget Create(int maxCount = 32, int maxKeyLength = 64, int maxValueLength = 512, int maxSerializedBytes = 8192, IEnumerable<string>? reservedKeyFragments = null)

Parameters

maxCount int
maxKeyLength int
maxValueLength int
maxSerializedBytes int
reservedKeyFragments IEnumerable<string>

Returns

GovernanceMetadataBudget