Agent Docs
This page is part of the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at agents.md, and llms.txt lists every page.Orleans.Lattice is documented twice. The pages on this site are written for people. Beside them is a set of machine-readable specifications written for agents that operate a Lattice deployment: an agent that calls its APIs or MCP tools, or runs a procedure such as a backup, a restore or a reshard. This page is the way into that set for both of them: a person can see what it holds, and an agent can find where to start.
The specifications are YAML and JSON files, published as they are rather than rendered as pages. Each one is listed below with a link to the raw file.
An agent changing the Orleans.Lattice repository itself, rather than operating a deployment, needs the repository's AGENTS.md instead: its build and test commands, conventions and hygiene gates.
Where an agent starts
- The manifest, docs/agents/index.json. It lists
every specification with its kind, format, schema id and a one-line summary;
it names, under
coverage, the API surfaces that have no file of their own; and it states the conventions every specification follows: identifiers, source references, uncertainty markers, and the availability rule below. - llms.txt, the index of every page of this site, which lists the same specifications under "Agent specifications".
- Any page of this site. Each page's head carries a
rel="describedby"link to the specification that describes it, or to the manifest when the page names none. A page that names its specification also carries it asagent_specin the front matter of its markdown alternate.
What a host actually offers
The specifications describe every surface Lattice ships, but a host exposes only
the packages it registers. A surface or tool missing from a host is host
configuration, not a fault. Before relying on a surface, an agent reads its
availability; it confirms an MCP tool by finding it in the session's
tools/list, which is further filtered to the caller's effective permissions;
and it never emulates an unavailable operation through a different surface.
Every procedure's first precondition checks that its surface is available.
How the specifications are kept honest
- Each one has a schema. Every kind of specification has a JSON Schema (draft 2020-12) in the set, and every file names the schema id it follows.
- Each claim names its source. Entries cite the code that backs them as
repo/relative/path#Symbol, resolved against the repository at the ref the site was built from. A claim the source cannot settle is markeduncertain, with the reason and the source that would settle it, rather than guessed. - They are deterministic. No timestamps, commit hashes or release numbers; entity lists are sorted by id, apart from lists whose order means something, such as the steps of a procedure.
- The build checks them. The repository's consistency tests check that the manifest lists every file and nothing else, that every file matches its schema, and that every cross-reference resolves. The site build fails if a file is missing from the manifest or would render as a page.
The specifications
Concepts and invariants
What Lattice is made of, and what must stay true while it runs.
| Specification | Format | Describes |
|---|---|---|
| concepts.yaml | YAML | Concept graph: concepts, typed relationships, capability boundaries and operational envelopes. |
| invariants.yaml | YAML | Operational invariants: scope, violation modes, detection signals and remediation. |
Capabilities
What each capability guarantees, what it does not, and which sequences of operations are unsafe.
| Specification | Format | Describes |
|---|---|---|
| capabilities.yaml | YAML | Capability envelopes: guarantees, non-guarantees, unsafe sequences and concurrency rules per capability. |
API surfaces
One file per specified API surface - the core in-process API, each facade family, and the MCP tools - with every operation, its types and errors, and how it behaves under retry and concurrency. The manifest's coverage names the surfaces described only in the concepts and capabilities.
| Specification | Format | Describes |
|---|---|---|
| api/apps.json | JSON | Installable-apps facades (Orleans.Lattice.Api.Apps, .Grpc): app control, role bindings, catalogue, workspace and app bridge operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/auth.json | JSON | Auth facade (Orleans.Lattice.Api.Auth, .Grpc): operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/backup.json | JSON | Backup facade (Orleans.Lattice.Api.Backup, .Grpc): catalog reads and accept-then-poll capture, restore, health-check and catalog-maintenance operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/data.json | JSON | Data facade (Orleans.Lattice.Api.Data, .Grpc): operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/lattice.json | JSON | Core in-process API (ILattice, ILatticeAdmin in Orleans.Lattice): operations, types, exceptions, retry, idempotency, concurrency. |
| api/mcp.json | JSON | MCP tool surface (Orleans.Lattice.Api.Mcp, .Telemetry, .Telemetry.Azure, .RepoContext, .RepoContext.Replication, .Apps): registration, authorization gate, session tool discovery, and every tool with the module and opt-in that contribute it, parameters, results, errors, tool annotations and the facade operation it delegates to. |
| api/replication.json | JSON | Replication facade and peer-status facade (Orleans.Lattice.Api.Replication, .Grpc) and operator re-seed admin and dead-letter queue (Orleans.Lattice.Replication): operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/schema.json | JSON | Schema facade (Orleans.Lattice.Api.Schema, .Grpc): operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/state.json | JSON | State facade (Orleans.Lattice.Api.State, .Grpc): operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/telemetry.json | JSON | Telemetry facade (Orleans.Lattice.Api.Telemetry, .Grpc): operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/tenantadmin.json | JSON | Tenant administration facade (Orleans.Lattice.Api.TenantAdmin, .Grpc): operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
| api/treeadmin.json | JSON | Tree administration facade (Orleans.Lattice.Api.TreeAdmin, .Grpc): tree lifecycle, diagnostics, sharding, WAL placement, view and tag-index maintenance, synchronous calls and accept-then-poll operations, request/response types, errors and gRPC status, retry, idempotency, concurrency. |
Procedures
Operational runbooks: preconditions, steps, postconditions, failure modes, rollback and concurrency.
| Specification | Format | Describes |
|---|---|---|
| procedures/app-lifecycle.yaml | YAML | Install, enable, disable, and uninstall an app. |
| procedures/auth-policy-administration.yaml | YAML | Administer cluster authorization rules, groups and group membership. |
| procedures/backup-catalog-maintenance.yaml | YAML | Maintain the backup catalog: delete a backup, rebuild or scrub the catalog, cancel a backup operation. |
| procedures/backup.yaml | YAML | Capture tree snapshots and durable backups. |
| procedures/bulk-load.yaml | YAML | Bulk-load an empty tree through the chunked session protocol. |
| procedures/compaction.yaml | YAML | Trigger shard tombstone compaction. |
| procedures/orphaned-leaves-repair.yaml | YAML | Audit and repair a tree's orphaned leaves. |
| procedures/region-backfill.yaml | YAML | Backfill a new region, with or without tenancy. |
| procedures/replication-dead-letters.yaml | YAML | Inspect, replay or discard replication dead letters. |
| procedures/replication-enrollment.yaml | YAML | Enable or disable runtime replication for a tree. |
| procedures/replication-peer-management.yaml | YAML | Attach, detach or permanently decommission a replication peer. |
| procedures/replication-peer-status.yaml | YAML | Monitor replication peer lag and unhealthy links. |
| procedures/replication-reseed.yaml | YAML | Re-seed a peer from a replication snapshot. |
| procedures/repocontext-repository-index.yaml | YAML | Onboard, reset or remove a repository's repository-context index. |
| procedures/reshard.yaml | YAML | Grow or shrink a tree with online reshard. |
| procedures/resize.yaml | YAML | Change B+ node capacity with online resize. |
| procedures/restore.yaml | YAML | Restore or revert tree and backup restore points. |
| procedures/retention.yaml | YAML | Read and set durable history retention. |
| procedures/schema-migration.yaml | YAML | Register a schema version, audit compliance, then advance and migrate a tree. |
| procedures/storage-usage-refresh.yaml | YAML | Run a tracked storage-usage refresh and read the refreshed storage usage. |
| procedures/tag-index-reconcile.yaml | YAML | Reconcile a tag index. |
| procedures/tenant-access.yaml | YAML | Delegate access administration to a tenant. |
| procedures/tenant-lifecycle.yaml | YAML | Create, govern, suspend, resume, and delete a tenant. |
| procedures/tenant-region-drain.yaml | YAML | Drain and revoke a tenant region. |
| procedures/tree-delete-recover.yaml | YAML | Soft-delete, recover, and purge a tree. |
| procedures/tree-provisioning.yaml | YAML | Create a tree and set or repoint its alias. |
| procedures/view-lifecycle.yaml | YAML | Create or drop a runtime materialised view. |
| procedures/view-rebuild.yaml | YAML | Rebuild or reconcile a materialised view. |
| procedures/wal-move.yaml | YAML | Move WAL partition placement. |
| procedures/wal-tuning.yaml | YAML | Tune WAL storage, saturation, and garbage collection. |
Governance
Who may do what, how identity reaches a grain call, and what is audited.
| Specification | Format | Describes |
|---|---|---|
| governance/audit-events.json | JSON | Audit event schemas: audit records, security metrics and audit controls with emitting components. |
| governance/authorization.json | JSON | Authorization decision trees for facades, access gate, auth rules, MCP discovery and telemetry tools, tenancy admission and membership, with declared terminal outcomes. |
| governance/identity-propagation.json | JSON | Identity propagation: credential and tenant headers, RequestContext keys and flows from transport to grain call context. |
| governance/policies.json | JSON | Policy definitions: role and permission catalogue, tenant policies, security options with defaults, allow-lists. |
Deployment
Reference topologies, and the options configuration schema, including the options bound to environment variables.
| Specification | Format | Describes |
|---|---|---|
| deployment.yaml | YAML | Deployment specification: reference topologies (silos, regions, packages, trees, replication mode, storage) and the options configuration schema, including environment-variable-bound options. |
JSON Schemas
The format of each kind of specification, including the manifest.
| Specification | Format | Describes |
|---|---|---|
| schemas/api.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of api artifacts (lattice.agents/api/v1). |
| schemas/capabilities.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of capabilities artifacts (lattice.agents/capabilities/v1). |
| schemas/concepts.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of concepts artifacts (lattice.agents/concepts/v1). |
| schemas/deployment.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of deployment artifacts (lattice.agents/deployment/v1). |
| schemas/governance-audit-events.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of governance-audit-events artifacts (lattice.agents/governance-audit-events/v1). |
| schemas/governance-authorization.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of governance-authorization artifacts (lattice.agents/governance-authorization/v1). |
| schemas/governance-identity-propagation.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of governance-identity-propagation artifacts (lattice.agents/governance-identity-propagation/v1). |
| schemas/governance-policies.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of governance-policies artifacts (lattice.agents/governance-policies/v1). |
| schemas/index.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of index artifacts (lattice.agents/index/v1). |
| schemas/invariants.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of invariants artifacts (lattice.agents/invariants/v1). |
| schemas/procedure.schema.json | JSON | JSON Schema (draft 2020-12) defining the format of procedure artifacts (lattice.agents/procedure/v1). |