Skip to content

feat: add simulation/redaction fields to MetricsRecordingHeader#1679

Merged
chenghao-mou merged 4 commits into
mainfrom
chenghao/feat/AGT-3158-recording-header-sim-redaction
Jul 21, 2026
Merged

feat: add simulation/redaction fields to MetricsRecordingHeader#1679
chenghao-mou merged 4 commits into
mainfrom
chenghao/feat/AGT-3158-recording-header-sim-redaction

Conversation

@chenghao-mou

@chenghao-mou chenghao-mou commented Jul 21, 2026

Copy link
Copy Markdown
Member

Why: the collector needs to know, per recording upload, whether a session is a simulation (skip PII redaction) or has redaction force-enabled. These are known agent-side (from the job's lk.simulator.dispatch attribute and RecordingOptions) but had no field on the recording header.

What: adds two bool fields to MetricsRecordingHeader: simulated (9) and redaction_enabled (10), and reserves the removed observability field 2.

Note

downstream PRs (livekit/agents#6497, agents-private pii-redaction #221, cloud-observability #510) pin this branch via pseudo-version until it lands.

Part of AGT-3158.

Lets the agent tag a recording upload as a simulation session and/or
force PII redaction on, so the collector can skip (or force) redaction
per session. `simulation` is derived agent-side from the job's
lk.simulator.dispatch attribute; `redaction` from RecordingOptions.

Reserves field 2 (removed observability field, #1294).

AGT-3158

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 08663fc

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

github-actions Bot and others added 3 commits July 21, 2026 14:00
Lets the agent tag a recording upload as a simulation session and/or force
PII redaction on, so the collector can skip (or force) redaction per
session. simulated is derived agent-side from the job's
lk.simulator.dispatch attribute; redaction_enabled from RecordingOptions.

Reserves field 2 (removed observability field, #1294).

AGT-3158

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chenghao-mou
chenghao-mou marked this pull request as ready for review July 21, 2026 14:46
@chenghao-mou
chenghao-mou merged commit d23ab6a into main Jul 21, 2026
9 checks passed
@chenghao-mou
chenghao-mou deleted the chenghao/feat/AGT-3158-recording-header-sim-redaction branch July 21, 2026 17:13
@github-actions github-actions Bot mentioned this pull request Jul 21, 2026
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