Class GovernanceMetadataBudget
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
DefaultMaxKeyLength
Gets the default recommended maximum metadata key length, in characters.
public const int DefaultMaxKeyLength = 64
Field Value
DefaultMaxSerializedBytes
Gets the default recommended estimated serialized metadata size, in UTF-8 bytes.
public const int DefaultMaxSerializedBytes = 8192
Field Value
DefaultMaxValueLength
Gets the default recommended maximum metadata value length, in characters.
public const int DefaultMaxValueLength = 512
Field Value
Properties
MaxCount
Gets the maximum number of normalized metadata entries allowed by the budget.
public int MaxCount { get; }
Property Value
MaxKeyLength
Gets the maximum normalized metadata key length allowed by the budget, in characters.
public int MaxKeyLength { get; }
Property Value
MaxSerializedBytes
Gets the maximum estimated serialized metadata size allowed by the budget, in UTF-8 bytes.
public int MaxSerializedBytes { get; }
Property Value
MaxValueLength
Gets the maximum normalized metadata value length allowed by the budget, in characters.
public int MaxValueLength { get; }
Property Value
Recommended
Gets the recommended governance metadata budget.
public static GovernanceMetadataBudget Recommended { get; }
Property Value
ReservedKeyFragments
Gets normalized reserved or discouraged metadata key fragments.
public IReadOnlyList<string> ReservedKeyFragments { get; }
Property Value
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
maxCountintmaxKeyLengthintmaxValueLengthintmaxSerializedBytesintreservedKeyFragmentsIEnumerable<string>