Skip to content

agent_simulation: add stable id to Scenario and ScenarioGroup - #1785

Merged
u9g merged 2 commits into
mainfrom
jason/scenario-ids
Sep 9, 2026
Merged

agent_simulation: add stable id to Scenario and ScenarioGroup#1785
u9g merged 2 commits into
mainfrom
jason/scenario-ids

Conversation

@u9g

@u9g u9g commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Adds `id` to `Scenario` and `ScenarioGroup`.

Today nothing correlates runs of the same scenario over time: the label, instructions, and agent expectations can all be edited, and hashing the content would make every edit a new identity. A user-authored `id` in `scenarios.yaml` gives dashboards a stable key for charting a scenario's success rate across runs. The group-level `id` does the same for the scenarios file as a whole. Run-level identity already exists as `SimulationRun.id`.

Companion CLI change: livekit/livekit-cli (requires IDs in scenarios.yaml and offers to insert them).

Labels, instructions, and expectations all change over a scenario's life,
so nothing today correlates runs of the same scenario across time. The id
is authored in scenarios.yaml and carried through the run so dashboards
can chart a scenario's success rate over time.
@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e586831

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Scenario and ScenarioGroup ids are guids from the shared generator with
these prefixes, matching every other LiveKit entity id.
@u9g

u9g commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Done: ids are now generated with the shared guid utility, prefixed SCN_ (scenario) and SCNG_ (scenario group). Prefixes live in utils/guid and are re-exported from utils. The companion CLI PR livekit/livekit-cli#970 is updated to use them.

@u9g
u9g merged commit 4bd301c into main Sep 9, 2026
8 checks passed
@u9g
u9g deleted the jason/scenario-ids branch September 9, 2026 13:27
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