proto/fact_retract.proto

Contents

proto/fact_retract.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/fact_retract.proto and a message within it as proto/fact_retract.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;

FactRetract#

// FactRetract — atom body. The integrator retracting a fact it
// asserted ([RFCS.7.1]); the engine's counterpart is FactWithdraw.
//
// `clock_ns` and `seq` are the stream event's, as on every other event atom
// ([RFCS.7.5]).
message FactRetract {
  uint64 fact_id  = 1;  // matches FactAssert.fact_id of the fact to retract
  uint64 seq      = 2;  // stream sequence number of the retraction
  uint64 clock_ns = 3;  // engine clock at the retraction (ns)
}