diff --git a/internal/domain/messaging/message.go b/internal/domain/messaging/message.go index dc57d616b..488f0102a 100644 --- a/internal/domain/messaging/message.go +++ b/internal/domain/messaging/message.go @@ -75,9 +75,12 @@ type Message struct { // Sender is the channel-native display attribution (e.g. a Telegram // username) recorded when the message was written. Like SourceID it - // is external correlation metadata, never the canonical identity: - // role discrimination uses Role, never this field. It is preserved - // so history search and transcript rendering keep working. + // is external correlation metadata, never the canonical identity: the + // canonical Role field is authoritative in-process. At the gateway wire + // boundary (internal/infrastructure/gatewayrpc) Role is deliberately + // dropped and rebuilt from Sender via RoleForSender, so Sender is also + // preserved for that reconstruction and for history search and + // transcript rendering. Sender string // SenderID is the channel-native stable identifier for the party that