Skip to content

metrics: add session_summary to MetricsRecordingHeader - #1884

Open
jmcclanahan wants to merge 1 commit into
mainfrom
jakemcclanahan/recording-session-summary
Open

jmcclanahan wants to merge 1 commit into
mainfrom
jakemcclanahan/recording-session-summary

Conversation

@jmcclanahan

Copy link
Copy Markdown

What

  • Add string session_summary = 11 to MetricsRecordingHeader: a JSON object of session facts, at most 16 KiB.
  • Patch changeset for github.com/livekit/protocol and @livekit/protocol.

Why

Agent evals choose which sessions to score from facts the SDK knows at upload time (agent name, tags, duration, user turns, usage). One JSON field means a new fact needs only an SDK change and an agent-evals change, not another protocol release.

How

  • The collector stores the summary in recording_index.metadata without reading individual keys.
  • The key contract is a JSON Schema in livekit/cloud-protocol (evalschema/session-summary.schema.json).

Depends on

Nothing. The cloud-observability and SDK PRs depend on this one.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2d40f46

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
github.com/livekit/protocol Patch
@livekit/protocol Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants