proto/rule_source.proto

Contents

proto/rule_source.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/rule_source.proto and a message within it as proto/rule_source.proto#<Message> ([STYL.2.14.3]). This page is the protobuf source, rendered.

/* 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;

RuleSource#

// RuleSource atom body. Per [RDSC.6.7].
//
// `module_id` attributes the rule to its declaring module. Display
// path resolves to DsSource[module_id].file at view time.
message RuleSource {
  string rule_name = 1;
  reserved           2;
  uint32 line      = 3;
  uint32 col       = 4;
  uint32 module_id = 10;
}