---
title: "Orleans.Lattice.Api.Schema - Public API"
url: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/api/orleans-lattice-api-schema.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/docs/lattice.api.abstractions/api.md?plain=1#L1597-L1681"
agent_spec: "https://nsta1.github.io/Orleans.Lattice/docs/agents/api/state.json"
package: "Orleans.Lattice.Api.Abstractions"
version: "10.5.0"
documents: "Orleans.Lattice 10.5.0 (release line 10.5)"
built: "2026-12-05"
all-pages: "https://nsta1.github.io/Orleans.Lattice/llms.txt"
bundle: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/llms-full.txt"
---
# `Orleans.Lattice.Api.Schema`

Part of [Public API](../api.md).

Implemented by [`Orleans.Lattice.Api.Schema`](../../lattice.api.schema/api.md) and exposed remotely by [`Orleans.Lattice.Api.Schema.Grpc`](../../lattice.api.schema.grpc/api.md). 5 public types.

| Type | Kind | Summary |
|---|---|---|
| `ILatticeSchemaComplianceOperations` | interface | Accept-then-poll schema compliance scans. |
| `ILatticeSchemaControl` | interface | Transport-agnostic schema-management control facade. |
| `ILatticeSchemaOperations` | interface | Accept-then-poll schema remediation and eager migration. |
| `ApiSchemaTypeAliases` | static class | Centralized Orleans serialization alias constants for the `Orleans.Lattice.Api.Schema` control-API package. |
| `LatticeSchemaCapabilities` | sealed record | The read-only result of a schema-management capability probe: caller permissions, independently installed host features, and advisory operation readiness for one tree. |

## `ILatticeSchemaComplianceOperations`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Schema/ILatticeSchemaComplianceOperations.cs) (line 24).

`public interface ILatticeSchemaComplianceOperations : ILatticeOperations`

- `Task<LatticeOperationHandle> StartComplianceScanAsync(string treeId, string? operationId = null, CancellationToken cancellationToken = default)`

## `ILatticeSchemaControl`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Schema/ILatticeSchemaControl.cs) (line 28).

`public interface ILatticeSchemaControl`

- `Task<LatticeSchemaRuntimeRegistration> GetRegistryAsync(string treeId, CancellationToken cancellationToken = default)`
- `Task RegisterSchemaAsync(string treeId, LatticeSchemaRuntimeRegistration registration, CancellationToken cancellationToken = default)`
- `Task SetPolicyAsync(string treeId, LatticeSchemaPolicy policy, CancellationToken cancellationToken = default)`
- `Task<bool> ClearPolicyAsync(string treeId, CancellationToken cancellationToken = default)`
- `Task<LatticeSchemaPolicy?> GetPolicyAsync(string treeId, CancellationToken cancellationToken = default)`
- `IAsyncEnumerable<LatticeSchemaDeadLetterEntry> ListDeadLettersAsync(string treeId, CancellationToken cancellationToken = default)`
- `Task<int> CountDeadLettersAsync(string treeId, CancellationToken cancellationToken = default)`
- `Task SetVersionConfigAsync(string treeId, LatticeSchemaVersionConfig config, CancellationToken cancellationToken = default)`
- `Task<LatticeSchemaVersionConfig?> GetVersionConfigAsync(string treeId, CancellationToken cancellationToken = default)`
- `Task<LatticeSchemaVersionConfig> AdvanceTargetVersionAsync(string treeId, uint newTargetVersion, CancellationToken cancellationToken = default)`
- `Task<bool> ClearVersionConfigAsync(string treeId, CancellationToken cancellationToken = default)`
- `Task<LatticeSchemaRemediationReport> GetRemediationStatusAsync(string treeId, CancellationToken cancellationToken = default)`
- `Task<LatticeSchemaCapabilities> ProbeCapabilitiesAsync(string treeId, CancellationToken cancellationToken = default)`

## `ILatticeSchemaOperations`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Schema/ILatticeSchemaOperations.cs) (line 42).

`public interface ILatticeSchemaOperations : ILatticeOperations`

- `Task<LatticeOperationHandle> StartRemediationAsync(string treeId, LatticeValueTransform transform, LatticeSchemaPolicy targetPolicy, string? operationId = null, CancellationToken cancellationToken = default)`
- `Task<LatticeOperationHandle> StartMigrationAsync(string treeId, string? operationId = null, CancellationToken cancellationToken = default)`
- `Task<LatticeOperationHandle> StartAdvanceAndMigrateAsync(string treeId, uint newTargetVersion, string? operationId = null, CancellationToken cancellationToken = default)`

## `ApiSchemaTypeAliases`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Schema/Model/ApiSchemaTypeAliases.cs) (line 15).

`public static class ApiSchemaTypeAliases`

- `public const string AliasPrefix`
- `public const string LatticeSchemaCapabilities`

## `LatticeSchemaCapabilities`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Schema/Model/LatticeSchemaCapabilities.cs) (line 40).

`public sealed record LatticeSchemaCapabilities`

- `public required string TreeId { get; init; }`
- `public bool CanViewPolicy { get; init; }`
- `public bool CanViewDeadLetters { get; init; }`
- `public bool CanViewVersionConfig { get; init; }`
- `public bool CanViewRemediationStatus { get; init; }`
- `public bool CanScanCompliance { get; init; }`
- `public bool CanManagePolicy { get; init; }`
- `public bool CanManageVersion { get; init; }`
- `public bool CanRemediate { get; init; }`
- `public bool SupportsEnforcement { get; init; }`
- `public bool SupportsVersioning { get; init; }`
- `public bool SupportsRemediation { get; init; }`
- `public bool SupportsCompliance { get; init; }`
- `public bool SupportsDeadLetters { get; init; }`
- `public bool SupportsRuntimeRegistration { get; init; }`
- `public bool CanStartMigration { get; init; }`
- `public bool CanStartRemediation { get; init; }`
- `public string? MigrationUnavailableReason { get; init; }`
- `public string? RemediationUnavailableReason { get; init; }`

Previous: [Orleans.Lattice.Api.Backup](orleans-lattice-api-backup.md). Next: [Orleans.Lattice.Api.Replication](orleans-lattice-api-replication.md). Contents: [Public API](../api.md).
