refactor(gateway)!: drop budget_key with the webhook chat channel

This commit is contained in:
sam committed 2026-10-05 18:10:41 +11:00
1 parent 463f4cd92a
commit 95ea7aa6f9
9 files changed
+22 -54

No files matched your search

+4
View File
@@ -27,6 +27,9 @@ breaking:
# Control-plane requests stopped naming their org or raw audit records: the
# State Store derives the org from the caller, so those fields are removed
# (numbers and names reserved).
#
# Message.budget_key went with the webhook chat channel (number and name
# reserved). An older channel extension that still sets it is ignored.
ignore_only:
FIELD_SAME_TYPE:
- state/v1/state.proto
@@ -37,3 +40,4 @@ breaking:
FIELD_NO_DELETE:
- state/v1/state.proto
- controlplane/v1/controlplane.proto
- gateway/v1/chat.proto
+3 -8
View File
@@ -52,15 +52,10 @@ message Message {
string text = 6;
string page = 7;
google.protobuf.Timestamp at = 8;
// budget_key is the source an inbound message is charged against by the
// Gateway's inbound rate limiter, for a channel that has no per-person
// sender id but does have a stable, operator-controlled source of its own
// -- a webhook's configured route path. Transport-only: a channel frontend
// sets it on inbound and it is never persisted, exactly like page. Empty
// means the message is not rate limited.
string budget_key = 9;
reserved 9;
reserved "budget_key";
// platform is the channel that carried this message ("telegram", "email",
// "webhook", "web"), as the frontend that owns that channel knows it. It is
// "web"), as the frontend that owns that channel knows it. It is
// how the Gateway learns which channel it is serving: one Router serves every
// channel, so its own name is "web" even for a Telegram turn, which made
// Source.Platform -- the first component of the session natural key -- a