(proto-schema_def-proto)=

# `proto/schema_def.proto`

**Normative.** `proto/**` is part of `specs/` ([STYL.2.14.1]); message names, field numbers, types and `reserved` ranges carry the same force as a clause of English ([STYL.2.14.2]). Cite this file as `proto/schema_def.proto` and a message within it as `proto/schema_def.proto#<Message>` ([STYL.2.14.3]). This page is the protobuf source, rendered.

```protobuf
/* SPDX-FileCopyrightText: 2026 Dan Finster and the Desert Sage Contributors */
/* SPDX-License-Identifier: BSD-4-Clause OR AGPL-3.0-or-later */
syntax = "proto3";

package ds.v1;

import "common.proto";
```

(proto-schema_def-proto-SchemaDef)=

## `SchemaDef`

```protobuf
// SchemaDef atom body. Per [RDSC.5.8] and [LFAC.8.3]. Carries
// the canonical .proto definition the compiler generated
// from the schema's DS declaration; this is the cross-
// boundary serialisation shape for instances of the schema.
message SchemaDef {
  string      schema_name  = 1;
  Compression compression  = 2;
  bytes       proto_source = 3;
  uint32      module_id    = 10;
}
```

