proto: bump transcript ID max_len from 128 to 256#2427
Merged
Conversation
The 128-char cap on conversation_id, turn_id, tool_call_id, model, and user_id has no upstream basis. OTel doesn't constrain gen_ai.conversation.id; chat platforms (Microsoft Teams personal-DM threads, Slack thread IDs, Discord channel IDs) routinely produce IDs that exceed 128 characters. When buf-validate rejects the TranscriptSummary response, the per-agent Transcripts tab is empty even though the spans are visible in the global tracing view. Bump to 256 across the board for consistency with the existing title and TranscriptToolCall.name fields.
Contributor
|
The latest Buf updates on your PR. Results from workflow Buf CI / validate (pull_request).
|
weeco
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Raise the buf-validate
max_lenfrom 128 to 256 on all opaque ID fields intranscript.proto:TranscriptToolCall.tool_call_id,TranscriptTurn.turn_id,TranscriptTurn.model,TranscriptSummary.conversation_id,TranscriptSummary.user_id, andGetTranscriptRequest.conversation_id.Why
128 has no upstream basis. The OTel GenAI semantic conventions don't constrain
gen_ai.conversation.id, and real-world chat platforms produce IDs that exceed it:a:1NXel3V8F74Kb...) run ~150 charactersWhen a conversation slips over 128 chars, server-side response validation rejects the
TranscriptSummary. The per-agent Transcripts tab in console comes back empty whilethe same spans remain visible in the global tracing view (which doesn't run validation).
The mismatch is hard to debug from the UI side.
256 matches the existing limits on
TranscriptSummary.titleandTranscriptToolCall.name,so the contract stays internally consistent.
Implementation details
Six call sites in
proto/redpanda/api/dataplane/v1alpha3/transcript.proto. RegeneratedGo and TypeScript bindings via
task proto:generate. The descriptor varint changesfrom
0x80 0x01(128) to0x80 0x02(256) in the embedded raw descriptor.No code change required — buf-validate runtime reads the cap from the descriptor.
References
None.