From 625e8c16c23c1619fccb2e57fa5c70feeb9f8b4d Mon Sep 17 00:00:00 2001 From: Tyler Hawkes Date: Wed, 19 Aug 2026 11:54:22 -0600 Subject: [PATCH] feat(mls/database): add expected_field_value to UpdateMetadataData.V1 --- proto/mls/database/intents.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proto/mls/database/intents.proto b/proto/mls/database/intents.proto index be256e88..643b5a70 100644 --- a/proto/mls/database/intents.proto +++ b/proto/mls/database/intents.proto @@ -102,6 +102,11 @@ message UpdateMetadataData { message V1 { string field_name = 1; string field_value = 2; + // Compare-and-swap guard. When set, the publisher must abandon this + // intent unless the field's currently committed value equals this, + // rather than overwriting whatever landed in the meantime. Absent + // means last-writer-wins, which is the historical behavior. + optional string expected_field_value = 3; } oneof version {