---
title: "Schema chaos tests"
url: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.schema/chaos-tests.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/docs/lattice.schema/chaos-tests.md"
agent_spec: "https://nsta1.github.io/Orleans.Lattice/docs/agents/api/schema.json"
package: "Orleans.Lattice.Schema"
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.schema/llms-full.txt"
---
# Schema chaos tests

Part of the [Schema documentation](README.md).

The schema suite exercises policy/version changes and durable operations while data work is in flight. These are bounded, concrete interleavings with assertions, not a proof that every crash schedule is safe.

## Covered scenarios

| Fixture | Concurrent change/fault | Assertion boundary |
|---|---|---|
| [AtomicWriteUnderPolicyChurnChaosTests](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/test/lattice.schema/Chaos/AtomicWriteUnderPolicyChurnChaosTests.cs) | Repeated policy churn during cross-tree atomic writes; seeded random policy choices. | No unexpected failures; both committed and rejected generations occur, with all-or-nothing values rather than a partially validated batch. |
| [AtomicWriteUnderVersionAdvanceChaosTests](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/test/lattice.schema/Chaos/AtomicWriteUnderVersionAdvanceChaosTests.cs) | Single-tree atomic writes during v1 -> v2 -> v3 advances and eager migration. | Exactly two advances, successful/idempotent migration and decodable all-or-nothing generations. |
| [SchemaRemediationCutoverChaosTests](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/test/lattice.schema/Chaos/SchemaRemediationCutoverChaosTests.cs) | Concurrent atomic readers across two remediation cutovers, with shard growth/shrink between them. | No torn atomic reads, three distinct physical copies, and shard counts 7 -> 3 -> 5 after the associated reshard work. |
| [SchemaOperationSiloLossChaosTests](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/test/lattice.schema/Chaos/SchemaOperationSiloLossChaosTests.cs) | Loss of the silo owning a tracked schema operation. | The accepted operation becomes Failed at its recorded Build phase; a new start resumes the same durable remediation, processes four values and succeeds. This is explicit restart, not automatic continuation of the failed accepted operation. |

The first fixture's policy RNG seed is `20260712`; the suite is not uniformly a random-fault harness. Each linked source specifies the actual scheduling hooks, workload size and completion timeout.

## Running and interpreting coverage

These fixtures carry `Category("Chaos")`. Follow the [testing policy](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/.github/instructions/testing.instructions.md) for execution scope and tier rather than replacing it with a documentation-specific runner. The docs snippet/em-dash/mojibake gates do **not** execute these scenarios; a passing documentation gate is not evidence that chaos tests were run.

Read [architecture](architecture.md), [schema enforcement](schema-enforcement.md) and [schema versioning](schema-versioning.md) for the runtime pipeline being exercised. The current fixtures are the source of truth for the tested fault/interleaving, not an assertion that production can accept malformed data through every ingest path.
