Contracts first
Applications can depend on stable requests, responses, messages, usage records, streaming deltas, model descriptors, tools, and response formats while leaving the concrete runtime replaceable.
UAIX.LmRuntime / Package guide
Runtime-neutral inference contracts, runtime settings, diagnostics, and governance interfaces.
Required For runtime-neutral contracts
UAIX.LmRuntime.Abstractions
Stable runtime contracts, request and response models, diagnostics, and governance interfaces.
Stable public interfaces, canonical inference contracts, runtime settings, and diagnostics for pure C# local LLM runtime packages.
dotnet add package UAIX.LmRuntime.Abstractions
<PackageReference Include="UAIX.LmRuntime.Abstractions" />
Version policy: The documentation deliberately omits UAIX.LmRuntime package version numbers. Resolve and pin versions through your normal dependency-management and lock-file process.
None within the UAIX.LmRuntime package family.
Applications can depend on stable requests, responses, messages, usage records, streaming deltas, model descriptors, tools, and response formats while leaving the concrete runtime replaceable.
The inference contract exposes both a complete response and IAsyncEnumerable streaming deltas, with cooperative CancellationToken flow.
Budget, review, evidence, claim-boundary, constraint, quarantine, and memory-firewall APIs are separate policies. They do not silently alter model mathematics.
These are the main public entry points. The generated reference below includes the documented public package surface.
IInferenceRuntime IInferenceSession IModelAdapter ITokenizer InferenceRequest InferenceResponse LlmMessage StreamingDelta RuntimeOptions IRuntimeBudgetGovernor IReviewGatePolicy IMemoryFirewall Examples use the documented public package surface. Paths, identities, runtime identifiers, device evidence, and application policy remain host inputs.
Accept any IInferenceRuntime implementation and construct a provider-neutral request.
using UAIX.LmRuntime.Abstractions;
using UAIX.LmRuntime.Contracts;
public static class InferenceExample
{
/// <summary>
/// Executes one provider-neutral inference request.
/// </summary>
/// <param name="runtime">The runtime implementation that will execute the request.</param>
/// <param name="model">The model identifier understood by the runtime.</param>
/// <param name="prompt">The user prompt to submit.</param>
/// <param name="cancellationToken">A token used to cancel the operation.</param>
/// <returns>The normalized inference response.</returns>
public static Task<InferenceResponse> GenerateAsync(
IInferenceRuntime runtime,
string model,
string prompt,
CancellationToken cancellationToken)
{
ArgumentNullException.ThrowIfNull(runtime);
ArgumentException.ThrowIfNullOrWhiteSpace(model);
ArgumentException.ThrowIfNullOrWhiteSpace(prompt);
var request = new InferenceRequest
{
Model = model,
Messages =
[
LlmMessage.System("Answer directly and identify uncertainty."),
LlmMessage.User(prompt)
],
MaxOutputTokens = 256,
Temperature = 0,
TopP = 1,
UseMemory = false
};
return runtime.GenerateAsync(request, cancellationToken);
}
}
Stream text without coupling the caller to a concrete runtime implementation.
using System.Runtime.CompilerServices;
using UAIX.LmRuntime.Abstractions;
using UAIX.LmRuntime.Contracts;
public static class StreamingExample
{
/// <summary>
/// Yields non-empty text fragments from a streaming inference operation.
/// </summary>
/// <param name="runtime">The runtime implementation that produces deltas.</param>
/// <param name="request">The normalized inference request.</param>
/// <param name="cancellationToken">A token used to cancel enumeration and generation.</param>
/// <returns>An asynchronous sequence of text fragments.</returns>
public static async IAsyncEnumerable<string> StreamTextAsync(
IInferenceRuntime runtime,
InferenceRequest request,
[EnumeratorCancellation] CancellationToken cancellationToken)
{
ArgumentNullException.ThrowIfNull(runtime);
ArgumentNullException.ThrowIfNull(request);
await foreach (StreamingDelta delta in runtime
.StreamAsync(request, cancellationToken)
.WithCancellation(cancellationToken))
{
if (!string.IsNullOrEmpty(delta.Text))
{
yield return delta.Text;
}
}
}
}
Use ITokenizer when an orchestration layer should not know which concrete tokenizer is active.
using UAIX.LmRuntime.Abstractions;
using UAIX.LmRuntime.Contracts;
/// <summary>
/// Counts the tokens consumed by a normalized chat transcript.
/// </summary>
/// <param name="tokenizer">The tokenizer implementation used by the target model.</param>
/// <param name="messages">The ordered chat messages to count.</param>
/// <returns>The token count and tokenizer identity.</returns>
static TokenCountResult CountChatTokens(
ITokenizer tokenizer,
IReadOnlyList<LlmMessage> messages)
{
ArgumentNullException.ThrowIfNull(tokenizer);
ArgumentNullException.ThrowIfNull(messages);
return tokenizer.CountTokens(messages);
}
RuntimeOptions exposes governance and resource settings as normal application configuration; enabling a flag does not substitute for implementing the corresponding policy.
using UAIX.LmRuntime.Contracts;
var options = new RuntimeOptions
{
DefaultModel = "local-model",
MaxContextTokens = 8_192,
MaxMemoryEntries = 0,
EnableTeleodynamicGovernance = false,
EnableConstraintPolicy = true,
EnableClaimBoundaryPolicy = true,
EnableReviewGatePolicy = true,
ReturnNoOpResponseOnGovernanceDenial = true,
ReturnNoOpResponseOnClaimBoundaryViolation = true,
ReturnNoOpResponseOnReviewGateRequired = true,
QuarantineGeneratedNeedsHumanReview = true,
FailOnEvidenceLedgerError = true
};
Boundary: Policy flags describe orchestration intent. The application must supply and test concrete policy implementations.
Expand a type to review its documented public fields, properties, constructors, methods, parameter descriptions, and return descriptions.
AdapterStatusUAIX.LmRuntime.Contracts
3 members
Represents normalized adapter status information.
StatusCode
Gets the provider status code, if applicable.
RequestId
Gets the provider request identifier, if supplied by the backend.
Message
Gets a normalized warning or diagnostic message.
FinishReasonUAIX.LmRuntime.Contracts
8 members
Identifies why an inference response stopped.
Unknown
The provider or backend did not return a reason.
Stop
The model naturally stopped.
Length
The model hit the configured maximum output token budget.
ToolCall
The model emitted or requested a tool call.
ContentFilter
The runtime stopped generation because content was filtered.
Cancelled
The request was cancelled.
Error
The backend reported an execution error.
PolicyDenied
The runtime selected no-op because policy, budget, or claim-boundary rules blocked automatic execution.
InferenceRequestUAIX.LmRuntime.Contracts
14 members
Represents a provider-neutral inference request.
Model
Gets the requested model identifier.
ConversationId
Gets the conversation identifier when one is present.
Messages
Gets the message sequence.
MaxOutputTokens
Gets the maximum output token budget.
Temperature
Gets the sampling temperature.
TopP
Gets the nucleus sampling probability cutoff.
TopK
Gets the top-k sampling cutoff when one is present.
Seed
Gets the deterministic sampler seed when one is present.
StopSequences
Gets stop sequences used to terminate generation.
Tools
Gets tool definitions available to the model.
ToolChoice
Gets tool selection guidance.
ResponseFormat
Gets the requested response format.
Metadata
Gets caller-supplied metadata propagated to adapters and diagnostics.
UseMemory
Gets a value indicating whether .uai memory should be injected before execution.
InferenceResponseUAIX.LmRuntime.Contracts
11 members
Represents a normalized inference response.
ResponseId
Gets the response identifier.
ConversationId
Gets the conversation identifier when one is present.
Model
Gets the resolved model identifier.
Provider
Gets the provider or backend name.
OutputText
Gets the output text.
FinishReason
Gets the legacy textual finish reason.
FinishReasonKind
Gets the strongly typed finish reason.
CreatedUtc
Gets the UTC creation timestamp.
Usage
Gets normalized usage data.
AdapterStatus
Gets normalized adapter status information.
GovernanceReceipt
Gets the governance receipt emitted by budget or claim-boundary policy.
InferenceUsageUAIX.LmRuntime.Contracts
4 members
Represents normalized model usage data.
InputTokens
Gets the input token count.
OutputTokens
Gets the output token count.
CachedInputTokens
Gets the provider-cached input token count when available.
EstimatedCostMicros
Gets the estimated cost in one-millionth currency units, if known.
LlmMessageUAIX.LmRuntime.Contracts
8 members
Represents a canonical chat or completion message.
Role
Gets the message role.
Content
Gets the text content for the message.
ToolCallId
Gets the tool call identifier associated with a tool message when one is present.
System(string)
Creates an immutable system-role LLM message from caller-supplied content.
contentReturns: A new system-role message whose content is never null.
Developer(string)
Creates an immutable developer-role LLM message from caller-supplied content.
contentReturns: A new developer-role message whose content is never null.
User(string)
Creates an immutable user-role LLM message from caller-supplied content.
contentReturns: A new user-role message whose content is never null.
Assistant(string)
Creates an immutable assistant-role LLM message from caller-supplied content.
contentReturns: A new assistant-role message whose content is never null.
Tool(string,string)
Creates an immutable tool-role LLM message correlated to the supplied tool call.
toolCallIdcontentReturns: A new tool-role message containing the supplied correlation identifier and non-null content.
LlmRoleUAIX.LmRuntime.Contracts
5 members
Identifies the role of a message in a canonical inference request.
System
System-level instruction context.
Developer
Developer-level instruction context.
User
End-user message content.
Assistant
Assistant message content.
Tool
Tool input or output content.
MemoryQueryUAIX.LmRuntime.Contracts
3 members
Represents a query against .uai memory entries.
ConversationId
Gets the conversation identifier filter when one is present.
Text
Gets full-text query text when one is present.
MaxEntries
Gets the maximum number of entries to return.
ModelDescriptorUAIX.LmRuntime.Contracts
6 members
Describes a model visible to the runtime.
ModelId
Gets the model identifier.
Provider
Gets the provider or backend name.
SupportsStreaming
Gets a value indicating whether streaming is supported.
IsLocal
Gets a value indicating whether the model executes locally.
ContextLength
Gets the maximum context length in tokens.
Capabilities
Gets capability names exposed by the model.
ProviderErrorUAIX.LmRuntime.Contracts
4 members
Represents a normalized adapter or provider error.
Code
Gets the normalized error code.
Message
Gets the error message.
Retriable
Gets a value indicating whether retry may be safe.
RetryAfter
Gets the suggested retry delay when available.
ResponseFormatUAIX.LmRuntime.Contracts
3 members
Describes structured output requirements for a response.
Kind
Gets the response format kind.
JsonSchema
Gets the JSON schema document used when is .
Strict
Gets a value indicating whether the backend should enforce strict schema adherence when supported.
ResponseFormatKindUAIX.LmRuntime.Contracts
3 members
Identifies the canonical output format mode.
Text
Free-form text response.
JsonObject
JSON object response.
JsonSchema
JSON schema-constrained response.
RuntimeOptionsUAIX.LmRuntime.Contracts
24 members
Defines runtime orchestration settings.
DefaultModel
Gets the default model identifier.
MaxMemoryEntries
Gets the maximum number of memory entries injected into a request.
MaxMemoryCharacters
Gets the maximum memory characters injected into the system context.
MaxContextTokens
Gets the maximum context tokens accepted by the orchestrator before adapter execution.
EnableTeleodynamicGovernance
Gets a value indicating whether Teleodynamic governance gates are evaluated before execution.
ReturnNoOpResponseOnGovernanceDenial
Gets a value indicating whether budget-denied requests return a no-op response instead of throwing.
EnableConstraintPolicy
Gets a value indicating whether request-side constraint rules are evaluated before adapter execution.
EnableClaimBoundaryPolicy
Gets a value indicating whether generated text is evaluated against claim-boundary rules.
ReturnNoOpResponseOnClaimBoundaryViolation
Gets a value indicating whether claim-boundary violations return a no-op response.
EnableReviewGatePolicy
Gets a value indicating whether slow-loop review gates are evaluated before execution.
ReturnNoOpResponseOnReviewGateRequired
Gets a value indicating whether review-gated requests return a no-op response instead of throwing.
QuarantineGeneratedNeedsHumanReview
Gets a value indicating whether generated items needing human review are written to the quarantine ledger.
FailOnEvidenceLedgerError
Gets a value indicating whether ledger append errors should fail inference.
AvailableResourceBudget
Gets the available resource budget used by the default governor.
ViabilityFloor
Gets the minimum resource reserve below which automatic actions are blocked.
MaxToolDefinitions
Gets the maximum number of tool definitions exposed to a request.
MaxUncertaintyScore
Gets the maximum uncertainty score accepted in the automatic lane.
TokenCostWeight
Gets the resource weight assigned to each token.
ToolDefinitionCost
Gets the resource weight assigned to each exposed tool definition.
MemoryEntryCost
Gets the resource weight assigned to each injected memory entry.
ReviewMinuteCost
Gets the resource weight assigned to each declared review minute.
UncertaintyCost
Gets the resource weight assigned to normalized uncertainty.
ClaimBoundaryRules
Gets additional claim-boundary rules used by the default claim policy.
ConstraintRules
Gets additional request-side constraint rules used by the default constraint policy.
StreamingDeltaUAIX.LmRuntime.Contracts
8 members
Represents a normalized streaming inference event.
Type
Gets the event type.
ResponseId
Gets the response identifier.
Text
Gets the text delta for text events.
ToolCallId
Gets the tool-call identifier for tool deltas.
ToolArgumentsDelta
Gets a tool-call argument delta.
Usage
Gets the usage payload when available.
Error
Gets an error message for error events.
CreatedUtc
Gets the UTC event timestamp.
StreamingEventTypeUAIX.LmRuntime.Contracts
6 members
Identifies the type of a streaming inference event.
Start
The stream has started.
Delta
The event contains text delta content.
ToolCallDelta
The event contains a tool-call delta.
Usage
The event contains usage information.
Completed
The stream completed successfully.
Error
The stream completed with an error.
TokenCountResultUAIX.LmRuntime.Contracts
2 members
Represents tokenizer count output.
TokenCount
Gets the token count.
Tokenizer
Gets the tokenizer name.
ToolChoiceUAIX.LmRuntime.Contracts
2 members
Defines runtime guidance for model tool selection.
Automatic
Gets a value indicating whether tool selection is automatic.
RequiredToolName
Gets a required tool name when a specific tool must be used.
ToolDefinitionUAIX.LmRuntime.Contracts
3 members
Defines a callable tool exposed through the canonical inference contract.
Name
Gets the tool name.
Description
Gets the tool description.
JsonSchema
Gets the JSON schema document used to validate tool arguments.
UaiFileMemoryOptionsUAIX.LmRuntime.Contracts
6 members
Defines settings for the .uai file memory store.
RootDirectory
Gets the root directory for .uai memory files.
MemoryFileName
Gets the memory file name.
IncludeShortTermMemoryFiles
Gets a value indicating whether short-term .sui memory files are included when reading memory.
ShortTermMemoryDirectoryName
Gets the directory name under the .uai root that contains short-term .sui memory files.
ShortTermMemoryFilePattern
Gets the file search pattern used to discover short-term memory units.
SkipInvalidEntries
Gets a value indicating whether invalid entries should be skipped instead of throwing.
UaiMemoryEntryUAIX.LmRuntime.Contracts
6 members
Represents a persisted .uai memory entry.
EntryId
Gets the memory entry identifier.
ConversationId
Gets the associated conversation identifier.
Role
Gets the memory role.
Content
Gets the persisted memory content.
CreatedUtc
Gets the UTC creation timestamp.
ContentSha256
Gets the SHA-256 hash of normalized content.
RuntimeTelemetryNamesUAIX.LmRuntime.Diagnostics
16 members
Defines stable telemetry names emitted by the runtime core.
SourceName
The ActivitySource and Meter name.
RequestCounter
Request counter metric name.
FailureCounter
Failure counter metric name.
RequestDurationMs
Request duration histogram metric name.
BudgetDecisionCounter
Teleodynamic budget decision counter metric name.
BlockedActionCounter
Teleodynamic blocked action counter metric name.
ClaimBoundaryViolationCounter
Claim-boundary violation counter metric name.
ReviewGateDecisionCounter
Slow-loop review-gate decision counter metric name.
QuarantineRecordCounter
Quarantine record counter metric name.
ConstraintDecisionCounter
Request-side constraint decision counter metric name.
ConstraintViolationCounter
Request-side constraint violation counter metric name.
EvidenceReceiptCounter
Evidence receipt counter metric name.
TeleodynamicControlDecisionCounter
Explicit teleodynamic control-cycle decision counter metric name.
TeleodynamicNoOpCounter
Explicit teleodynamic control-cycle no-op counter metric name.
MemoryFirewallDecisionCounter
Memory-firewall decision counter metric name.
MemoryQuarantineCounter
Memory-firewall quarantine counter metric name.
BudgetDecisionStatusUAIX.LmRuntime.Governance
4 members
Identifies the outcome of a runtime budget evaluation.
Unknown
The decision has not been evaluated.
Approved
The requested action is affordable under the configured viability budget.
Blocked
The requested action is blocked and should not execute automatically.
NoOpSelected
No-op was selected as the dominant safe action.
ClaimBoundaryDecisionUAIX.LmRuntime.Governance
6 members
Represents the result of applying claim-boundary rules to text.
Allowed
Gets a value indicating whether the text stayed within claim boundaries.
ViolatedRuleIds
Gets violated rule identifiers.
NoOpReason
Gets the selected no-op reason when the decision blocks output.
Message
Gets a bounded decision message.
SafeReplacementText
Gets a replacement text that can be emitted in automatic lanes.
CreatedUtc
Gets the UTC decision timestamp.
ClaimBoundaryRuleUAIX.LmRuntime.Governance
5 members
Defines a bounded claim-boundary rule applied to generated text or runtime claims.
RuleId
Gets the stable rule identifier.
Pattern
Gets the case-insensitive text pattern that triggers the rule.
Severity
Gets the rule severity.
NoOpReason
Gets the no-op reason associated with this rule.
Message
Gets the human-readable rule message.
ClaimBoundarySeverityUAIX.LmRuntime.Governance
3 members
Identifies how strongly a claim-boundary rule should affect runtime behavior.
Advisory
The rule adds advisory context only.
Warning
The rule should be logged and surfaced for review.
Block
The rule should block or replace output in automatic lanes.
ClaimLifecycleStatusUAIX.LmRuntime.Governance
6 members
Identifies the bounded evidence lifecycle assigned to a runtime or release claim.
Raw
The claim has been captured but has not received an evidence review.
Reviewed
The claim and cited evidence have received an initial review.
Bounded
The claim is constrained to an explicit domain, digest, environment, and evidence scope.
Promoted
The bounded claim has received explicit human approval for its intended publication lane.
Restricted
The claim remains usable only under narrower restrictions than originally requested.
Rejected
The claim has been rejected and cannot be promoted without a new evidence cycle.
ClaimStatusUAIX.LmRuntime.Governance
6 members
Identifies the evidence status assigned to a claim, generated artifact, or externally visible output.
Unknown
No claim status was supplied.
PublicReadyTemplate
The artifact is a buyer-safe methodology template and does not claim a specific client outcome.
GeneratedNeedsHumanReview
The artifact was generated or transformed by automation and requires human review before promotion.
ApprovedPublicOutcome
The artifact is an approved public outcome with reviewed evidence.
MachineReadableEvidence
The artifact is a machine-readable evidence payload intended for agents and due-diligence workflows.
Quarantined
The artifact is quarantined and cannot be promoted automatically.
ClaimTransitionDecisionUAIX.LmRuntime.Governance
5 members
Reports whether a requested claim-lifecycle transition is permitted by evidence and authority rules.
ClaimId
Gets the stable claim identifier.
Allowed
Gets a value indicating whether the requested transition is allowed.
EffectiveStatus
Gets the status that remains effective after policy evaluation.
NoOpReason
Gets the no-op reason when the requested transition is denied.
Message
Gets the bounded policy explanation.
ClaimTransitionRequestUAIX.LmRuntime.Governance
11 members
Describes one requested transition in the explicit claim-evidence lifecycle.
ClaimId
Gets the stable claim identifier.
CurrentStatus
Gets the currently recorded claim lifecycle status.
RequestedStatus
Gets the requested claim lifecycle status.
IndependentEvidenceCount
Gets the number of independent evidence references attached to the claim.
DomainBounded
Gets a value indicating whether the claim has an explicit domain and applicability boundary.
ResourceTracePresent
Gets a value indicating whether a candidate-bound resource trace supports the claim.
AuditTracePresent
Gets a value indicating whether an auditable decision trace supports the claim.
HumanApproved
Gets a value indicating whether an authorized human reviewer approved the requested promotion.
ProximityOnlyEvidence
Gets a value indicating whether the transition is justified only by association with a nearby approved claim.
BoundaryViolation
Gets a value indicating whether a claim-boundary violation was identified.
Rationale
Gets the bounded reviewer rationale attached to restrictive or terminal transitions.
ConstraintClosureReportUAIX.LmRuntime.Governance
6 members
Reports whether active work and constraint nodes participate in closed maintenance cycles.
RegistryId
Gets the analyzed registry identifier.
Closed
Gets a value indicating whether every active work and constraint node participates in a closed cycle.
StronglyConnectedComponents
Gets strongly connected components in deterministic node-identifier order.
OpenNodeIds
Gets active node identifiers that do not participate in a closed directed cycle.
RetirementCandidateIds
Gets active nodes marked for bounded retirement because maintenance burden exceeds evidence strength.
Diagnostics
Gets validation diagnostics for duplicate identifiers, missing endpoints, or invalid values.
ConstraintDecisionUAIX.LmRuntime.Governance
8 members
Represents the result of request-side constraint evaluation.
Allowed
Gets a value indicating whether automatic execution may proceed.
RequiresReview
Gets a value indicating whether the resulting artifact requires review before promotion.
NoOpReason
Gets the selected no-op reason when automatic execution is blocked.
MatchedRuleIds
Gets matched rule identifiers.
EvidenceReferences
Gets evidence references associated with this decision.
Message
Gets a bounded explanation suitable for logs and receipts.
SafeReplacementText
Gets the safe replacement text when no-op is selected.
CreatedUtc
Gets the UTC decision timestamp.
ConstraintEdgeUAIX.LmRuntime.Governance
4 members
Defines one directed maintenance or channeling relationship in a work-constraint graph.
SourceNodeId
Gets the source node identifier.
TargetNodeId
Gets the target node identifier.
Relationship
Gets the bounded relationship label, such as maintains, channels, depends-on, or verifies.
Strength
Gets the normalized relationship strength in the inclusive range from zero through one.
ConstraintNodeUAIX.LmRuntime.Governance
6 members
Defines one bounded node in the work-constraint closure graph.
NodeId
Gets the stable node identifier.
Kind
Gets the semantic role of the node.
Status
Gets the lifecycle state of the node.
MaintenanceBurden
Gets the non-negative recurring maintenance burden attributed to the node.
EvidenceStrength
Gets the non-negative evidence strength associated with the node.
Metadata
Gets bounded metadata attached to the node.
ConstraintNodeKindUAIX.LmRuntime.Governance
4 members
Identifies the role a node plays in a work-constraint registry.
Unknown
No node role was supplied.
Work
The node represents work that consumes resources and maintains constraints.
Constraint
The node represents a constraint that channels or limits work.
Evidence
The node represents evidence that supports a work or constraint decision.
ConstraintNodeStatusUAIX.LmRuntime.Governance
3 members
Identifies the current lifecycle state of a work-constraint registry node.
Active
The node is active and participates in closure analysis.
Frozen
The node is frozen and remains auditable but cannot be expanded automatically.
Retired
The node is retired and excluded from active closure analysis.
ConstraintRegistrySnapshotUAIX.LmRuntime.Governance
4 members
Captures one immutable work-constraint graph supplied to closure analysis.
RegistryId
Gets the stable registry identifier.
Nodes
Gets the graph nodes.
Edges
Gets the directed graph edges.
CapturedUtc
Gets the UTC time at which the registry snapshot was captured.
ConstraintRuleUAIX.LmRuntime.Governance
5 members
Defines an evidence-bounded runtime constraint rule.
RuleId
Gets the stable rule identifier.
Scope
Gets the inspected request surface.
Pattern
Gets the case-insensitive substring pattern matched by the default policy.
Severity
Gets the severity applied when the pattern is matched.
Message
Gets the bounded explanation for the decision receipt.
ConstraintScopeUAIX.LmRuntime.Governance
5 members
Identifies the request surface inspected by a constraint rule.
All
Inspect all supported request surfaces.
Messages
Inspect message content.
Metadata
Inspect metadata keys and values.
Tools
Inspect tool names, descriptions, and schemas.
ResponseFormat
Inspect response-format hints and schemas.
ConstraintSeverityUAIX.LmRuntime.Governance
3 members
Identifies how strongly a runtime constraint rule affects automatic execution.
Information
The rule only records an informational observation.
ReviewRequired
The rule permits execution but marks the artifact as needing review before promotion.
Block
The rule blocks automatic execution and selects no-op.
EvidenceReferenceUAIX.LmRuntime.Governance
5 members
Identifies a source used to justify a governance decision.
Source
Gets the evidence source name.
Path
Gets the evidence path or stable identifier.
Sha256
Gets the SHA-256 hash when the evidence is file-backed.
Span
Gets the line, byte, or section span when one is present.
Note
Gets a bounded note describing why the evidence is relevant.
GovernanceActionKindUAIX.LmRuntime.Governance
8 members
Identifies a Teleodynamic structural operator selected by the runtime control plane.
Unknown
No operator was specified.
Add
Add a bounded structure such as a tool, memory edge, adapter, or prompt template.
Merge
Merge overlapping structures after evidence shows lower maintenance burden.
Split
Split a structure into narrower lanes when evidence shows ambiguous or overloaded behavior.
Retire
Retire a structure whose maintenance burden is no longer justified.
NoOp
Select no mutation because evidence, budget, or claim boundaries do not justify action.
Reactivate
Reactivate a previously frozen structure after fresh evidence repays its maintenance burden.
Freeze
Freeze a structure so it remains auditable while automatic expansion and promotion are disabled.
GovernanceDecisionReceiptUAIX.LmRuntime.Governance
14 members
Represents an immutable evidence-bearing receipt for a runtime governance decision.
ReceiptId
Gets the stable receipt identifier.
PackageVersion
Gets the package version that emitted the receipt.
Model
Gets the associated model identifier.
ConversationId
Gets the conversation identifier when one is present.
Action
Gets the selected structural operator.
NoOpReason
Gets the selected no-op reason when applicable.
BudgetDecision
Gets the budget decision that contributed to the receipt.
ClaimBoundaryDecision
Gets the claim-boundary decision that contributed to the receipt.
ConstraintDecision
Gets the request-side constraint decision that contributed to the receipt.
ReviewGateDecision
Gets the slow-loop review-gate decision that contributed to the receipt.
QuarantineRecord
Gets the quarantine record emitted for the receipt, when one was written.
EvidenceReferences
Gets evidence references associated with the receipt.
Metadata
Gets bounded metadata for downstream audit and telemetry correlation.
CreatedUtc
Gets the UTC receipt timestamp.
MemoryFirewallPolicyUAIX.LmRuntime.Governance
8 members
Defines source, freshness, contradiction, entropy, and review boundaries for memory promotion.
MaximumEntropyScore
Gets the maximum entropy accepted in the automatic memory lane.
MinimumTrustScore
Gets the minimum source trust accepted in the automatic memory lane.
MaximumShortTermAge
Gets the maximum age of short-term packets before retirement.
MaximumMediumTermAge
Gets the maximum age of medium-term packets before retirement.
MaximumLongTermAge
Gets the maximum age of long-term packets before re-review is required.
MinimumLongTermEvidenceReferences
Gets the minimum evidence count required for durable long-term promotion.
RequireHumanReviewForLongTerm
Gets a value indicating whether long-term promotion requires explicit human review.
ReviewContradictions
Gets a value indicating whether contradiction always routes a packet to review.
MemoryPacketUAIX.LmRuntime.Governance
14 members
Describes a privacy-preserving memory packet using provenance and integrity metadata rather than raw content.
PacketId
Gets the stable packet identifier.
Tier
Gets the requested source-routed memory tier.
Source
Gets the bounded provenance source.
DeclaredContentSha256
Gets the content SHA-256 declared by the producer.
ObservedContentSha256
Gets the independently observed content SHA-256 supplied to the firewall.
EntropyScore
Gets the normalized entropy or unresolved uncertainty score.
TrustScore
Gets the normalized trust score assigned to the packet source.
IsCorrupt
Gets a value indicating whether an upstream integrity check marked the packet corrupt.
HasContradiction
Gets a value indicating whether the packet contradicts active memory.
ContradictionReferences
Gets bounded references to memories or evidence involved in a contradiction.
EvidenceReferences
Gets evidence references supporting provenance, trust, or contradiction analysis.
Metadata
Gets bounded metadata that excludes raw memory content.
CreatedUtc
Gets the UTC packet creation time.
ExpiresUtc
Gets the explicit UTC expiry time when one is present.
MemoryFirewallRequestUAIX.LmRuntime.Governance
4 members
Describes the requested disposition and review proof evaluated by the memory firewall.
Packet
Gets the packet to evaluate.
RequestedStatus
Gets the requested packet status.
HumanReviewed
Gets a value indicating whether explicit human review was completed.
ReviewReference
Gets a bounded review reference when human review was completed.
MemoryFirewallDecisionUAIX.LmRuntime.Governance
7 members
Represents the memory-firewall disposition for one packet.
PacketId
Gets the packet identifier.
Status
Gets the resulting firewall status.
Reason
Gets the primary firewall reason.
TargetTier
Gets the target memory tier when promotion is allowed.
Message
Gets a bounded explanation of the disposition.
CreatedUtc
Gets the UTC time at which the firewall decision was produced.
PromotionAllowed
Gets a value indicating whether the requested promotion was approved.
MemoryTierUAIX.LmRuntime.Governance
3 members
Identifies a source-routed memory tier managed by the memory firewall.
ShortTerm
Ephemeral context retained only for the immediate execution window.
MediumTerm
Reviewable working memory retained across a bounded sequence of interactions.
LongTerm
Durable memory that requires provenance, contradiction checks, and governed promotion.
MemoryPacketStatusUAIX.LmRuntime.Governance
6 members
Identifies the current firewall disposition of a memory packet.
Candidate
The packet has not yet passed a firewall decision.
Quarantined
The packet is isolated from active retrieval while evidence or integrity is unresolved.
ReviewRequired
The packet is structurally valid but requires an explicit human or policy review.
Promoted
The packet may be persisted in the approved target tier.
Rejected
The packet is invalid or unsafe to retain as active memory.
Retired
The packet is no longer eligible for active retrieval because it expired or was superseded.
MemoryFirewallReasonUAIX.LmRuntime.Governance
11 members
Identifies the primary reason for a memory-firewall disposition.
None
No firewall restriction was required.
MissingSource
The packet does not identify a bounded source.
InvalidDigest
A declared or observed content digest is not a valid SHA-256 value.
DigestMismatch
The observed content digest does not match the packet declaration.
CorruptPacket
The packet was explicitly marked corrupt.
StalePacket
The packet exceeded its freshness or expiry boundary.
ExcessiveEntropy
The packet entropy or uncertainty exceeds the automatic-lane threshold.
LowTrust
The packet source trust score is below the configured threshold.
Contradiction
The packet conflicts with one or more active memory references.
ReviewRequired
The requested tier or disposition requires explicit review.
EvidenceRequired
The requested promotion does not carry sufficient evidence references.
NoOpReasonUAIX.LmRuntime.Governance
16 members
Identifies why the runtime selected no-op.
None
No no-op reason applies.
InsufficientBudget
The requested work would exceed the available runtime budget.
ViabilityFloor
The requested work would cross the configured viability floor.
ExcessiveUncertainty
The uncertainty score is too high for an automatic action.
ReviewRequired
The requested work requires human review before promotion.
ClaimBoundaryViolation
The request or output crosses a claim boundary.
UnsupportedAction
The requested operator is not supported in the current lane.
WeakEvidence
The evidence packet is too weak to justify a structural mutation.
HardLimitExceeded
The request exceeds a hard token, memory, or tool-count limit.
ConstraintViolation
The request crossed a configured runtime constraint.
NoFeasibleImprovement
No feasible proposal produced enough bounded benefit to dominate explicit no-op.
MaintenanceCycleOpen
The work-constraint registry contains active structure outside a closed maintenance cycle.
PromotionEvidenceMissing
The requested claim promotion lacks candidate-bound evidence required by the lifecycle policy.
ProximityOnlyEvidence
The requested claim promotion relies only on proximity to another approved claim.
PhaseUnstable
The current structural phase is unstable and does not permit the requested automatic action.
IrreversibleAction
The proposed action lacks a documented rollback path required for automatic execution.
QuarantineRecordUAIX.LmRuntime.Governance
11 members
Represents an append-only quarantine ledger record for generated or unreviewed runtime artifacts.
RecordId
Gets the stable quarantine record identifier.
PackageVersion
Gets the package version that emitted the quarantine record.
ArtifactKind
Gets the artifact kind associated with the quarantine record.
Model
Gets the associated model identifier.
ConversationId
Gets the conversation identifier when one is present.
ClaimStatus
Gets the evidence status assigned to the quarantined item.
ReviewGateStatus
Gets the review-gate status that caused the record.
Reason
Gets the reason the item was quarantined or review-gated.
EvidenceReferences
Gets evidence references associated with the quarantined item.
Metadata
Gets bounded metadata for downstream review tools.
CreatedUtc
Gets the UTC record timestamp.
ResourceEconomyInputUAIX.LmRuntime.Governance
13 members
Describes the measured benefits and burdens of one observation or proposed structural action.
CorrelationId
Gets the stable correlation identifier copied into the transition record.
PredictiveGain
Gets observed predictive-loss reduction expressed as a non-negative raw gain.
ActionCost
Gets the estimated one-time cost of validating and applying the action.
MaintenanceCost
Gets the estimated recurring cost of retaining and reviewing the resulting structure.
EnergyCost
Gets the estimated energy or compute cost associated with the action.
MemoryCost
Gets the estimated memory cost associated with the action.
ReviewCost
Gets the estimated human-review cost associated with the action.
UncertaintyCost
Gets an explicit uncertainty cost already expressed in resource units.
UncertaintyScore
Gets normalized proposal uncertainty in the inclusive range from zero through one.
CountAsObservation
Gets a value indicating whether the committed transition represents a fast-loop observation.
CountAsStructuralReservation
Gets a value indicating whether the committed transition represents a structural reservation.
EvidenceReferences
Gets evidence references supporting the gain and cost measurements.
TransitionUtc
Gets the zero-offset UTC timestamp assigned to the transition.
ResourceEconomyPolicyUAIX.LmRuntime.Governance
13 members
Defines the bounded resource-economy policy used when structural proposals and observations are evaluated.
The policy makes predictive gain, action cost, maintenance burden, compute, memory, review, uncertainty, viability, and capacity explicit so a structural action cannot be justified by accuracy alone.
InitialResource
Gets the resource balance assigned to a newly created stateful economy.
Capacity
Gets the maximum resource balance retained after a transition.
ViabilityFloor
Gets the minimum resource balance required for an automatically approved action.
DecayRate
Gets the fraction of the current resource balance removed as natural decay during each observation.
PredictiveGainWeight
Gets the multiplier applied to measured predictive gain.
ActionCostWeight
Gets the multiplier applied to one-time action cost.
MaintenanceCostWeight
Gets the multiplier applied to recurring maintenance cost.
EnergyCostWeight
Gets the multiplier applied to estimated compute or energy cost.
MemoryCostWeight
Gets the multiplier applied to memory cost.
ReviewCostWeight
Gets the multiplier applied to human-review cost.
UncertaintyReserve
Gets the resource reserve charged for a fully uncertain proposal.
UncertaintyReserveRatio
Gets the fraction of the current balance protected in addition to the viability floor.
MinimumNetGain
Gets the minimum positive net resource change required before growth is preferred over no-op.
ResourceEconomyStateUAIX.LmRuntime.Governance
16 members
Captures the endogenous resource state carried between fast observations and structural-control cycles.
This state is independent from model weights and inference tensors. It records bounded accounting context used by the slow-loop control plane and cannot alter deterministic parity mode without an explicit external actuator.
Cycle
Gets the monotonically increasing committed transition number.
CurrentResource
Gets the current resource balance available to sustain runtime structure.
CumulativePredictiveGain
Gets the cumulative weighted predictive gain accepted by the resource economy.
CumulativeDecay
Gets the cumulative endogenous decay charged by the resource economy.
CumulativeActionCost
Gets the cumulative weighted one-time action cost charged by the resource economy.
CumulativeMaintenanceCost
Gets the cumulative weighted maintenance cost charged by the resource economy.
CumulativeEnergyCost
Gets the cumulative weighted energy or compute cost charged by the resource economy.
CumulativeMemoryCost
Gets the cumulative weighted memory cost charged by the resource economy.
CumulativeReviewCost
Gets the cumulative weighted human-review cost charged by the resource economy.
CumulativeUncertaintyReserve
Gets the cumulative uncertainty reserve charged by the resource economy.
ObservationCount
Gets the number of accepted fast-loop observations.
StructuralReservationCount
Gets the number of approved structural reservations.
Capacity
Gets the configured capacity used to normalize resource-retention metrics.
ViabilityFloor
Gets the configured viability floor used by the current economy.
UpdatedUtc
Gets the UTC time at which the state was produced.
ViabilityMargin
Gets current resource minus the configured viability floor.
ResourceEconomyTransitionUAIX.LmRuntime.Governance
20 members
Reports the deterministic resource transition associated with an observation or structural proposal.
CorrelationId
Gets the observation or reservation identifier associated with the transition.
PreviousState
Gets the state supplied before the transition.
NextState
Gets the candidate state after gain, decay, costs, and capacity bounds are applied.
WeightedGain
Gets the weighted gain credited to the transition.
DecayCost
Gets the natural decay charged to the transition.
ProtectedReserve
Gets the resource reserve protected in proportion to the previous balance.
EffectiveViabilityFloor
Gets the effective viability boundary after the protected reserve is added to the policy floor.
WeightedActionCost
Gets the weighted one-time action cost.
WeightedMaintenanceCost
Gets the weighted recurring maintenance cost.
WeightedEnergyCost
Gets the weighted compute or energy cost.
WeightedMemoryCost
Gets the weighted memory cost.
WeightedReviewCost
Gets the weighted human-review cost.
WeightedUncertaintyCost
Gets the uncertainty cost and reserve charged to the transition.
WeightedCost
Gets the total weighted action, maintenance, compute, memory, review, and uncertainty cost.
NetChange
Gets the unconstrained net resource change before capacity clamping.
Viable
Gets a value indicating whether the transition remains above the configured viability floor.
NoOpReason
Gets the no-op reason when the transition is not viable or does not repay its burden.
EvidenceReferences
Gets the evidence references supporting the transition inputs.
Message
Gets the bounded diagnostic explaining the transition outcome.
CreatedUtc
Gets the UTC time at which the transition was produced.
ReviewGateDecisionUAIX.LmRuntime.Governance
9 members
Represents the result of slow-loop review gate evaluation.
Status
Gets the review-gate status.
Allowed
Gets a value indicating whether automatic execution may proceed.
NoOpReason
Gets the no-op reason when automatic execution is blocked.
ReviewState
Gets the review-state label assigned to the work.
TriggeredRuleIds
Gets triggered review rule identifiers.
EvidenceReferences
Gets evidence references used by the review decision.
Metadata
Gets bounded metadata for review and audit systems.
Message
Gets the bounded review-gate message.
CreatedUtc
Gets the UTC review-gate timestamp.
ReviewGateRequestUAIX.LmRuntime.Governance
9 members
Describes runtime work that may require slow-loop review before execution or promotion.
Model
Gets the model identifier associated with the request.
ConversationId
Gets the conversation identifier when one is present.
Action
Gets the requested structural operator.
UncertaintyScore
Gets the normalized uncertainty score declared by the caller or derived by the orchestrator.
ToolDefinitions
Gets the number of tool definitions exposed to the request.
EstimatedReviewMinutes
Gets the estimated review effort in minutes.
EvidenceReferences
Gets evidence references used to justify the action.
Metadata
Gets bounded request metadata used by the policy.
CreatedUtc
Gets the UTC timestamp when the review request was created.
ReviewGateStatusUAIX.LmRuntime.Governance
5 members
Identifies the slow-loop review gate disposition.
Unknown
No review decision has been made.
NotRequired
No additional review is required for the selected lane.
Approved
The work is already approved for the selected lane.
ReviewRequired
Human review is required before promotion or mutation.
Blocked
The work is blocked by review policy and must select no-op.
RuntimeBudgetUAIX.LmRuntime.Governance
12 members
Defines resource-economy limits used by the runtime budget governor.
AvailableResource
Gets the available resource budget for the evaluated action.
ViabilityFloor
Gets the minimum reserve below which automatic structural growth is blocked.
MaxInputTokens
Gets the maximum accepted input-token count before a hard limit block.
MaxOutputTokens
Gets the maximum accepted output-token count before a hard limit block.
MaxToolDefinitions
Gets the maximum number of tool definitions accepted before a hard limit block.
MaxMemoryEntries
Gets the maximum number of injected memory entries accepted before a hard limit block.
MaxUncertaintyScore
Gets the maximum uncertainty score accepted in an automatic lane.
TokenCostWeight
Gets the resource cost assigned to each token considered by the request.
ToolDefinitionCost
Gets the resource cost assigned to each exposed tool definition.
MemoryEntryCost
Gets the resource cost assigned to each injected memory entry.
ReviewMinuteCost
Gets the resource cost assigned to each declared review minute.
UncertaintyCost
Gets the resource cost assigned to uncertainty after normalization.
RuntimeBudgetDecisionUAIX.LmRuntime.Governance
10 members
Represents a resource-economy decision for a runtime action.
Status
Gets the decision status.
Action
Gets the selected or requested structural operator.
NoOpReason
Gets the no-op reason when no-op was selected.
Approved
Gets a value indicating whether the action may continue automatically.
ActionCost
Gets the computed action cost.
AvailableResource
Gets the configured available resource value used during evaluation.
ViabilityFloor
Gets the configured viability floor used during evaluation.
Message
Gets a bounded decision message.
CreatedUtc
Gets the UTC decision timestamp.
EvidenceReferences
Gets evidence references used by the decision.
RuntimeBudgetRequestUAIX.LmRuntime.Governance
12 members
Describes a request or structural action being evaluated by the runtime budget governor.
Model
Gets the model identifier associated with the action.
ConversationId
Gets the conversation identifier associated with the action when one is present.
Action
Gets the requested structural operator.
InputTokens
Gets the input-token count after prompt and memory preparation.
OutputTokens
Gets the requested output-token count.
ToolDefinitions
Gets the number of tool definitions exposed to the model.
MemoryEntries
Gets the number of memory entries injected into the prompt.
RetrievalFanOut
Gets the retrieval fan-out declared by the caller or retriever.
EstimatedReviewMinutes
Gets the expected human review burden in minutes.
UncertaintyScore
Gets the normalized uncertainty score in the range zero to one.
Source
Gets a bounded source label for the evaluated action.
EvidenceReferences
Gets evidence references associated with the decision.
StructuralChangeDecisionUAIX.LmRuntime.Governance
9 members
Represents the budget, review, and evidence disposition for a proposed structural change.
Status
Gets the decision status.
Action
Gets the selected structural operator.
NoOpReason
Gets the no-op reason when no mutation may occur.
BudgetDecision
Gets the resource-budget decision.
ReviewGateDecision
Gets the review-gate decision.
GovernanceReceipt
Gets the governance receipt emitted for the decision.
QuarantineRecord
Gets the quarantine record when the decision is held for review.
Message
Gets the bounded decision message.
CreatedUtc
Gets the UTC decision timestamp.
StructuralChangeDecisionStatusUAIX.LmRuntime.Governance
3 members
Identifies the disposition of a proposed structural change.
Approved
The proposal was approved for the caller's mutation lane.
RequiresReview
The proposal was converted to slow-loop review.
NoOpSelected
No mutation is allowed.
StructuralChangeRequestUAIX.LmRuntime.Governance
16 members
Describes a slow-loop structural change proposed for runtime configuration, memory, tools, prompts, or backend routing.
ChangeId
Gets the caller-provided change identifier.
Action
Gets the requested structural operator.
TargetKind
Gets the type of structure being changed.
TargetName
Gets the structure name or stable key.
Model
Gets the model affected by the change when one is present.
ConversationId
Gets the conversation affected by the change when one is present.
EstimatedTokens
Gets the estimated token cost of validating or applying the change.
EstimatedOutputTokens
Gets the estimated generated-token cost of validation or rollback evidence.
ToolDefinitions
Gets the number of tool definitions affected by the change.
MemoryEntries
Gets the number of memory entries affected by the change.
RetrievalFanOut
Gets the retrieval fan-out required to validate the change.
EstimatedReviewMinutes
Gets the estimated human review minutes required before promotion.
UncertaintyScore
Gets the normalized uncertainty score for the change.
ClaimText
Gets claim text associated with the change, if any.
EvidenceReferences
Gets evidence references supporting the requested change.
Metadata
Gets bounded metadata used for receipts and audit correlation.
StructuralObservationWindowUAIX.LmRuntime.Governance
10 members
Captures bounded fast-loop measurements used by the slow-loop structural phase detector.
SampleCount
Gets the number of observations represented by the window.
CurrentLoss
Gets the current normalized predictive loss.
PreviousLoss
Gets the normalized predictive loss from the preceding window.
CurrentComplexity
Gets the current normalized structural complexity.
PreviousComplexity
Gets the normalized structural complexity from the preceding window.
ActionRate
Gets the normalized rate of structural actions in the current window.
DriftScore
Gets the normalized cross-context or cross-window behavioral drift score.
ViabilityMargin
Gets the resource balance minus the configured viability floor.
MaintenancePressure
Gets the normalized recurring maintenance pressure.
ReviewPressure
Gets the normalized human-review pressure associated with recent changes.
StructuralPhaseUAIX.LmRuntime.Governance
7 members
Identifies the bounded structural regime inferred from a recent observation window.
Unknown
The observation window is too small or invalid for classification.
UnderStructured
Loss remains high while complexity is low and viable growth remains available.
Growth
Loss is improving while bounded structural change remains economically viable.
PhaseLocked
Loss, complexity, and action rate are stable within configured tolerances.
OverStructured
Complexity and maintenance burden are growing without sufficient predictive improvement.
ResourceConstrained
The resource margin is too small to support additional automatic structure.
Drifting
Behavior has changed materially across contexts or observation periods.
StructuralPhaseAssessmentUAIX.LmRuntime.Governance
5 members
Reports the structural phase and bounded reasoning derived from an observation window.
Phase
Gets the classified structural phase.
Confidence
Gets the normalized confidence in the classification.
LossDelta
Gets the current-minus-previous loss delta.
ComplexityDelta
Gets the current-minus-previous complexity delta.
Message
Gets the bounded explanation for the classification.
StructuralPhasePolicyUAIX.LmRuntime.Governance
11 members
Defines deterministic thresholds for structural phase classification.
MinimumSampleCount
Gets the minimum number of observations required for classification.
HighLossThreshold
Gets the loss level above which a low-complexity system is considered under-structured.
LowComplexityThreshold
Gets the complexity level below which a high-loss system may be considered under-structured.
GrowthImprovementThreshold
Gets the minimum loss improvement required to classify a window as bounded growth.
StableLossDelta
Gets the maximum absolute loss change accepted as phase-locked stability.
StableComplexityDelta
Gets the maximum absolute complexity change accepted as phase-locked stability.
StableActionRate
Gets the maximum action rate accepted as phase-locked stability.
DriftThreshold
Gets the drift score at or above which the phase is classified as drifting.
ComplexityGrowthThreshold
Gets the complexity-growth threshold used to identify over-structured behavior.
MaintenancePressureThreshold
Gets the maintenance-pressure threshold used to identify over-structured behavior.
ReviewPressureThreshold
Gets the review-pressure threshold used to identify over-structured behavior.
StructuralProposalUAIX.LmRuntime.Governance
15 members
Describes one reversible candidate considered by the slow structural-control loop.
ProposalId
Gets the stable proposal identifier used by evidence and trace records.
Action
Gets the proposed structural operator.
Target
Gets the stable name of the affected structure.
ExpectedPredictiveGain
Gets the expected predictive-loss reduction produced by the proposal.
ComplexityDelta
Gets the signed structural-complexity change; negative values reduce complexity.
ActionCost
Gets the one-time cost of validating and applying the proposal.
MaintenanceCost
Gets the recurring cost of retaining the resulting structure.
EnergyCost
Gets the estimated energy or compute cost of the proposal.
MemoryCost
Gets the estimated memory cost of the proposal.
ReviewCost
Gets the expected human-review cost of the proposal.
UncertaintyScore
Gets the normalized proposal uncertainty in the inclusive range from zero through one.
Reversible
Gets a value indicating whether the proposal can be rolled back through a documented inverse action.
RequiresHumanReview
Gets a value indicating whether the proposal requires explicit human approval before application.
EvidenceReferences
Gets the evidence references that justify the proposal estimates.
Metadata
Gets bounded metadata attached to the proposal.
StructuralProposalEvaluationUAIX.LmRuntime.Governance
6 members
Reports the viability and local objective for one structural proposal.
Proposal
Gets the evaluated proposal.
ResourceTransition
Gets the resource transition predicted for the proposal.
Objective
Gets the local objective, where lower values represent a more favorable bounded action.
Feasible
Gets a value indicating whether all automatic-action gates were satisfied.
NoOpReason
Gets the reason the proposal was excluded when it was not feasible.
Message
Gets the bounded diagnostic explaining the evaluation.
TeleodynamicControlRequestUAIX.LmRuntime.Governance
11 members
Aggregates one opt-in slow-loop evaluation without exposing or mutating model inference state.
CycleId
Gets the stable control-cycle identifier.
Proposals
Gets the structural proposals considered during the cycle.
ResourceState
Gets the resource state observed before the cycle.
ResourcePolicy
Gets the resource-economy policy.
DecisionPolicy
Gets the proposal-scoring and safety policy.
ConstraintRegistry
Gets the work-constraint registry snapshot.
ObservationWindow
Gets the recent fast-loop observation window.
PhasePolicy
Gets the structural-phase threshold policy.
ClaimTransition
Gets a claim-lifecycle transition evaluated during the cycle when one is present.
CreatedUtc
Gets the zero-offset UTC time assigned to the control cycle and trace entry.
Metadata
Gets bounded metadata copied into the decision trace.
TeleodynamicControlResultUAIX.LmRuntime.Governance
5 members
Reports the complete bounded output of one opt-in teleodynamic control cycle.
PhaseAssessment
Gets the structural phase inferred from the observation window.
ConstraintClosure
Gets the work-constraint closure analysis.
Decision
Gets the selected structural proposal or explicit no-op decision.
ClaimDecision
Gets the claim-lifecycle decision when one is present.
TraceEntry
Gets the tamper-evident trace entry appended for the cycle.
TeleodynamicDecisionUAIX.LmRuntime.Governance
8 members
Reports the deterministic selection made across structural proposals and the explicit no-op candidate.
DecisionId
Gets the stable decision identifier.
SelectedAction
Gets the selected action, including explicit no-op.
SelectedProposalId
Gets the selected proposal identifier, or when no-op wins.
NoOpReason
Gets the reason no-op was selected, or for an actionable proposal.
Evaluations
Gets all bounded proposal evaluations in stable proposal-identifier order.
SelectedTransition
Gets the resource transition associated with the selected proposal or the unchanged no-op state.
Message
Gets the bounded explanation for the selected action.
CreatedUtc
Gets the UTC time at which the decision was produced.
TeleodynamicDecisionPolicyUAIX.LmRuntime.Governance
8 members
Defines deterministic scoring and safety rules for choosing among structural proposals and no-op.
MaximumProposals
Gets the maximum number of proposals accepted in one bounded evaluation.
MaximumUncertainty
Gets the maximum uncertainty accepted for an automatically actionable proposal.
MinimumEvidenceCount
Gets the minimum evidence-reference count required for an automatically actionable proposal.
ComplexityWeight
Gets the weight applied to absolute structural-complexity growth in the local objective.
UncertaintyWeight
Gets the weight applied to uncertainty in the local objective.
NoOpAdvantage
Gets the non-negative advantage a proposal must have over no-op before it can be selected.
RequireReversibleAutomaticAction
Gets a value indicating whether automatic proposal selection requires a documented rollback path.
DeferHumanReviewProposals
Gets a value indicating whether proposals requiring human review are excluded from automatic selection.
TeleodynamicTraceEntryUAIX.LmRuntime.Governance
4 members
Represents one immutable entry in the SHA-256-linked teleodynamic decision trace.
Sequence
Gets the one-based sequence number assigned by the trace chain.
Request
Gets the canonical event request stored by the entry.
PreviousHash
Gets the preceding entry hash, or 64 zero characters for the first entry.
ContentHash
Gets the lowercase SHA-256 digest covering the sequence, previous hash, and canonical request fields.
TeleodynamicTraceRequestUAIX.LmRuntime.Governance
8 members
Describes the canonical fields appended to the tamper-evident teleodynamic decision trace.
EventId
Gets the stable decision or event identifier.
EventKind
Gets the bounded event kind.
Action
Gets the selected governance action.
NoOpReason
Gets the no-op reason when no structural action was selected.
ResourceBefore
Gets the resource balance observed before the event.
ResourceAfter
Gets the resource balance selected after the event.
CreatedUtc
Gets the UTC event time supplied by the orchestrator.
Metadata
Gets bounded metadata serialized in ordinal key order.
TraceChainVerificationResultUAIX.LmRuntime.Governance
3 members
Reports whether a teleodynamic trace chain is structurally and cryptographically intact.
Valid
Gets a value indicating whether every sequence, predecessor hash, and content hash is valid.
FirstInvalidSequence
Gets the one-based sequence number of the first invalid entry, or zero when the chain is valid.
Message
Gets the bounded verification diagnostic.
IClaimBoundaryPolicyUAIX.LmRuntime.Abstractions
1 member
Evaluates generated text against bounded claim-boundary rules.
EvaluateAsync(string,System.Collections.Generic.IReadOnlyList<UAIX.LmRuntime.Governance.ClaimBoundaryRule>,System.Threading.CancellationToken)
Evaluates the async against the supplied policy and bounded observation state.
textrulescancellationTokenReturns: An asynchronous ValueTask<ClaimBoundaryDecision> that completes with the result of IClaimBoundaryPolicy.EvaluateAsync: Evaluates the async against the supplied policy and bounded observation state. Fault and cancellation states are propagated without a successful partial result.
IClaimLifecyclePolicyUAIX.LmRuntime.Abstractions
1 member
Enforces explicit evidence, boundary, and human-authority transitions for runtime claims.
Evaluate(UAIX.LmRuntime.Governance.ClaimTransitionRequest)
Evaluates the supplied request against the supplied policy and bounded observation state.
requestReturns: The ClaimTransitionDecision result produced by IClaimLifecyclePolicy.Evaluate for this contract: Evaluates the supplied request against the supplied policy and bounded observation state. It is published only after all documented validation and ownership transitions succeed.
IConstraintClosureAnalyzerUAIX.LmRuntime.Abstractions
1 member
Analyzes a bounded work-constraint registry for closed maintenance cycles and retirement candidates.
Analyze(UAIX.LmRuntime.Governance.ConstraintRegistrySnapshot)
Computes deterministic graph closure information for the supplied registry snapshot.
snapshotReturns: The closure report, including validation diagnostics and retirement candidates.
IConstraintPolicyUAIX.LmRuntime.Abstractions
1 member
Evaluates request-side constraints before budgeted execution is allowed.
EvaluateAsync(UAIX.LmRuntime.Contracts.InferenceRequest,System.Collections.Generic.IReadOnlyList<UAIX.LmRuntime.Governance.ConstraintRule>,System.Threading.CancellationToken)
Evaluates the request against configured constraint rules.
requestrulescancellationTokenReturns: An asynchronous ValueTask<ConstraintDecision> that completes with the result of IConstraintPolicy.EvaluateAsync: Evaluates the request against configured constraint rules. Fault and cancellation states are propagated without a successful partial result.
IEvidenceLedgerUAIX.LmRuntime.Abstractions
1 member
Appends immutable governance evidence receipts.
AppendAsync(UAIX.LmRuntime.Governance.GovernanceDecisionReceipt,System.Threading.CancellationToken)
Appends the async to the current IEvidenceLedger state after validating capacity, ordering, and ownership constraints.
receiptcancellationTokenReturns: A task that represents completion of the asynchronous operation.
IInferenceRuntimeUAIX.LmRuntime.Abstractions
2 members
Defines the public runtime orchestration API.
GenerateAsync(UAIX.LmRuntime.Contracts.InferenceRequest,System.Threading.CancellationToken)
Generates the async through the deterministic execution path owned by IInferenceRuntime.
requestcancellationTokenReturns: An asynchronous Task<InferenceResponse> that completes with the result of IInferenceRuntime.GenerateAsync: Generates the async through the deterministic execution path owned by IInferenceRuntime. Fault and cancellation states are propagated without a successful partial result.
StreamAsync(UAIX.LmRuntime.Contracts.InferenceRequest,System.Threading.CancellationToken)
Streams the async in observable sequence order while honoring caller cancellation.
requestcancellationTokenReturns: The normalized streaming events, enumerated in source order with caller cancellation and failure propagation governed by StreamAsync.
IInferenceSessionUAIX.LmRuntime.Abstractions
3 members
Defines a stateful inference session with explicit prefill and decode phases.
SessionId
Gets the session identifier.
PrefillAsync(UAIX.LmRuntime.Contracts.InferenceRequest,System.Threading.CancellationToken)
Prefills the async into the current model state after validating token and cache bounds.
requestcancellationTokenReturns: The number of prompt tokens accepted by the session.
DecodeNextAsync(System.Threading.CancellationToken)
Decodes the next token or text chunk from the session.
cancellationTokenReturns: An asynchronous ValueTask<StreamingDelta> that completes with the result of IInferenceSession.DecodeNextAsync: Decodes the next token or text chunk from the session. Fault and cancellation states are propagated without a successful partial result.
IMemoryFirewallUAIX.LmRuntime.Abstractions
1 member
Evaluates source-routed memory packets before they can enter an active retrieval tier.
Evaluate(UAIX.LmRuntime.Governance.MemoryFirewallRequest)
Evaluates packet provenance, integrity, freshness, entropy, trust, contradiction, evidence, and review state.
requestReturns: The memory region containing the supplied request, bounded to the validated range owned by the result.
IModelAdapterUAIX.LmRuntime.Abstractions
4 members
Defines the execution boundary for provider-hosted or local models.
ProviderName
Gets the provider or backend name.
GetModelAsync(string,System.Threading.CancellationToken)
Gets model metadata for the requested model.
modelcancellationTokenReturns: An asynchronous ValueTask<ModelDescriptor> that completes with the result of IModelAdapter.GetModelAsync: Gets model metadata for the requested model. Fault and cancellation states are propagated without a successful partial result.
GenerateAsync(UAIX.LmRuntime.Contracts.InferenceRequest,System.Threading.CancellationToken)
Generates the async through the deterministic execution path owned by IModelAdapter.
requestcancellationTokenReturns: An asynchronous Task<InferenceResponse> that completes with the result of IModelAdapter.GenerateAsync: Generates the async through the deterministic execution path owned by IModelAdapter. Fault and cancellation states are propagated without a successful partial result.
StreamAsync(UAIX.LmRuntime.Contracts.InferenceRequest,System.Threading.CancellationToken)
Streams the async in observable sequence order while honoring caller cancellation.
requestcancellationTokenReturns: The normalized streaming event sequence, enumerated in source order with caller cancellation and failure propagation governed by StreamAsync.
IQuarantineLedgerUAIX.LmRuntime.Abstractions
1 member
Writes append-only records for generated or unreviewed artifacts that require quarantine.
AppendAsync(UAIX.LmRuntime.Governance.QuarantineRecord,System.Threading.CancellationToken)
Appends the async to the current IQuarantineLedger state after validating capacity, ordering, and ownership constraints.
recordcancellationTokenReturns: A task that represents completion of the asynchronous operation.
IResourceEconomyEngineUAIX.LmRuntime.Abstractions
1 member
Advances the structural-control resource economy using explicit gain and cost inputs.
Evaluate(UAIX.LmRuntime.Governance.ResourceEconomyState,UAIX.LmRuntime.Governance.ResourceEconomyInput,UAIX.LmRuntime.Governance.ResourceEconomyPolicy)
Evaluates the supplied state against the supplied policy and bounded observation state.
stateinputpolicyReturns: The ResourceEconomyTransition result produced by IResourceEconomyEngine.Evaluate for this contract: Evaluates the supplied state against the supplied policy and bounded observation state. It is published only after all documented validation and ownership transitions succeed.
IReviewGatePolicyUAIX.LmRuntime.Abstractions
1 member
Evaluates slow-loop review gates before consequential runtime work proceeds.
EvaluateAsync(UAIX.LmRuntime.Governance.ReviewGateRequest,System.Threading.CancellationToken)
Evaluates whether a request can continue in the automatic lane.
requestcancellationTokenReturns: An asynchronous ValueTask<ReviewGateDecision> that completes with the result of IReviewGatePolicy.EvaluateAsync: Evaluates whether a request can continue in the automatic lane. Fault and cancellation states are propagated without a successful partial result.
IRuntimeBudgetGovernorUAIX.LmRuntime.Abstractions
1 member
Evaluates whether runtime work can proceed under the configured resource economy.
EvaluateAsync(UAIX.LmRuntime.Governance.RuntimeBudgetRequest,UAIX.LmRuntime.Governance.RuntimeBudget,System.Threading.CancellationToken)
Evaluates the requested runtime work against a resource budget.
requestbudgetcancellationTokenReturns: An asynchronous ValueTask<RuntimeBudgetDecision> that completes with the result of IRuntimeBudgetGovernor.EvaluateAsync: Evaluates the requested runtime work against a resource budget. Fault and cancellation states are propagated without a successful partial result.
IStructuralChangePlannerUAIX.LmRuntime.Abstractions
1 member
Evaluates proposed structural mutations through budget, no-op, evidence, and review gates.
PlanAsync(UAIX.LmRuntime.Governance.StructuralChangeRequest,UAIX.LmRuntime.Governance.RuntimeBudget,System.Threading.CancellationToken)
Plans the disposition for a proposed structural change.
requestbudgetcancellationTokenReturns: An asynchronous ValueTask<StructuralChangeDecision> that completes with the result of IStructuralChangePlanner.PlanAsync: Plans the disposition for a proposed structural change. Fault and cancellation states are propagated without a successful partial result.
IStructuralOperatorEngineUAIX.LmRuntime.Abstractions
1 member
Converts resource and claim-boundary decisions into an auditable structural operator receipt.
DecideAsync(UAIX.LmRuntime.Governance.RuntimeBudgetDecision,UAIX.LmRuntime.Governance.ClaimBoundaryDecision,System.Threading.CancellationToken)
Selects the structural operator for the current decision context.
budgetDecisionclaimBoundaryDecisioncancellationTokenReturns: An asynchronous ValueTask<GovernanceDecisionReceipt> that completes with the result of IStructuralOperatorEngine.DecideAsync: Selects the structural operator for the current decision context. Fault and cancellation states are propagated without a successful partial result.
IStructuralPhaseDetectorUAIX.LmRuntime.Abstractions
1 member
Classifies the current structural regime from bounded fast-loop measurements.
Detect(UAIX.LmRuntime.Governance.StructuralObservationWindow,UAIX.LmRuntime.Governance.StructuralPhasePolicy)
Classifies one observation window using deterministic threshold precedence.
windowpolicyReturns: The StructuralPhaseAssessment result produced by IStructuralPhaseDetector.Detect for this contract: Classifies one observation window using deterministic threshold precedence. It is published only after all documented validation and ownership transitions succeed.
ITeleodynamicControlPlaneUAIX.LmRuntime.Abstractions
1 member
Coordinates the resource, proposal, closure, phase, claim, and trace components on a slow timescale.
Evaluate(UAIX.LmRuntime.Governance.TeleodynamicControlRequest)
Evaluates one complete control cycle without mutating model weights, tokenizer state, or generated output.
requestReturns: The phase, closure, structural decision, claim decision when present, and tamper-evident trace entry.
ITeleodynamicDecisionEngineUAIX.LmRuntime.Abstractions
1 member
Selects a bounded structural proposal or explicit no-op using resource and evidence constraints.
Decide(string,System.Collections.Generic.IReadOnlyList<UAIX.LmRuntime.Governance.StructuralProposal>,UAIX.LmRuntime.Governance.ResourceEconomyState,UAIX.LmRuntime.Governance.ResourceEconomyPolicy,UAIX.LmRuntime.Governance.TeleodynamicDecisionPolicy,System.DateTimeOffset)
Evaluates the proposal set and returns one deterministic, no-op-aware decision.
decisionIdproposalsstateresourcePolicydecisionPolicycreatedUtcReturns: The TeleodynamicDecision result produced by ITeleodynamicDecisionEngine.Decide for this contract: Evaluates the proposal set and returns one deterministic, no-op-aware decision. It is published only after all documented validation and ownership transitions succeed.
ITeleodynamicTraceChainUAIX.LmRuntime.Abstractions
3 members
Maintains an append-only, SHA-256-linked trace of bounded structural-control decisions.
Snapshot
Gets an immutable snapshot of the current trace entries.
Returns: The current trace entries in ascending sequence order.
Append(UAIX.LmRuntime.Governance.TeleodynamicTraceRequest)
Appends one canonical event to the trace.
requestReturns: The immutable trace entry assigned to the event.
Verify(System.Collections.Generic.IReadOnlyList<UAIX.LmRuntime.Governance.TeleodynamicTraceEntry>)
Verifies an arbitrary trace snapshot without mutating the current chain.
entriesReturns: The first detected chain error or a valid result.
ITokenizerUAIX.LmRuntime.Abstractions
6 members
Defines tokenization behavior for runtime token budgeting and model parity work.
Name
Gets the tokenizer name.
Tokenize(string)
Tokenizes the supplied text with the configured metadata and preserves deterministic token order.
textReturns: An ordered read-only collection of token text values produced by the configured tokenizer.
Encode(string,bool,bool)
Encodes text into token identifiers when the tokenizer has a vocabulary.
textaddBosaddEosReturns: An ordered read-only collection of token identifiers produced by the configured tokenizer.
Decode(System.Collections.Generic.IEnumerable<int>)
Decodes token identifiers into text when the tokenizer has a vocabulary.
tokenIdsReturns: The decoded text produced from the validated token sequence in the original sequence order.
CountTokens(string)
Counts tokens in a single text value.
textReturns: The int value computed by ITokenizer.CountTokens for this contract: Counts tokens in a single text value. Range, finite-value, and overflow checks are completed before the value is returned.
CountTokens(System.Collections.Generic.IEnumerable<UAIX.LmRuntime.Contracts.LlmMessage>)
Counts tokens across a set of model messages.
messagesReturns: The TokenCountResult result produced by ITokenizer.CountTokens for this contract: Counts tokens across a set of model messages. It is published only after all documented validation and ownership transitions succeed.
IUaiMemoryStoreUAIX.LmRuntime.Abstractions
2 members
Defines append and query behavior for .uai-backed runtime memory.
AppendAsync(UAIX.LmRuntime.Contracts.UaiMemoryEntry,System.Threading.CancellationToken)
Appends the async to the current IUaiMemoryStore state after validating capacity, ordering, and ownership constraints.
entrycancellationTokenReturns: A task that completes when the entry has been written.
ReadAsync(UAIX.LmRuntime.Contracts.MemoryQuery,System.Threading.CancellationToken)
Reads the async from the current IUaiMemoryStore state using the component's validated representation.
querycancellationTokenReturns: An asynchronous ValueTask<IReadOnlyList<UaiMemoryEntry>> that completes with the result of IUaiMemoryStore.ReadAsync: Reads the async from the current IUaiMemoryStore state using the component's validated representation. Fault and cancellation states are propagated without a successful partial result.
RuntimePackageVersionUAIX.LmRuntime.Abstractions
2 members
Provides the runtime package version emitted by the centrally configured assembly metadata.
Package projects obtain their version from Directory.Build.props. Runtime components should use this type instead of repeating a version literal, which keeps evidence, session, CLI, and governance records aligned with the assembly that produced them.
Current
Gets the normalized three-part package version of the active runtime distribution.
Resolve(System.Reflection.Assembly)
Resolves a normalized three-part package version from an assembly identity.
assemblyReturns: A major.minor.build version string, or 0.0.0 when the assembly has no version metadata.
No. It defines contracts and policy interfaces. Use LocalEndpoint for the high-level local GGUF facade, or compose the lower-level GGUF, tokenization, kernel, sampling, and LLaMA packages.
No. They are explicit policy surfaces. A runtime should advertise and test the policies it actually applies rather than implying that contract presence equals enforcement.
No. Memory and governance evidence remain data. Execution authority belongs to separately implemented and user-approved application gates.