Repository navigation
feat(seed): recorded agentic demo run of the demo agent (D01-D10) - #98
Merged
Merged
Conversation
New workspaces had the agentic scenario set but no agentic run to look at since the synthetic preloaded demo was removed. This adds a real one. - infra/fixtures/agentic_demo_run.json: a real, executed agentic audit of the demo "Support Refund Assistant" against the default agentic pack (D01-D10), run through Studio with Studio tracing: 10 results, their agentic evaluations and 213 OTLP spans from Open WebUI. Captured with capture_agentic_demo_fixture --require-recorded. It was recorded on a model new workspaces do not have, so its models are relabelled "Demo model (recorded)" and endpoints removed; model output is unchanged and provenance records the relabel. - seed_agentic_demo (restored as a recorded-fixture loader): attaches the run to the workspace's demo agent and agentic scenario set, with the auditor/judge rows pointing at the seeded OpenAI models so it can be cloned. Works with chat off (the agent need not be synced). Runs from seed_platform with the demo runs; a deleted run is not loaded again, --force replaces it. - capture_agentic_demo_fixture: --relabel-models LABEL and --replace OLD=NEW (demo_fixture.relabel_models). - demo_fixture sanitizer: token counts (max_tokens, input_tokens, ...) and names like tokenizer_model are no longer redacted; only real token fields. - docs/deployment.md: both commands.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
authenticate() caches header -> credential per process for 30 s. A test's credentials are rolled back without the post_delete signal that clears it, so a later test in the same xdist worker could be let in by a credential that no longer exists: test_no_auth_401 got 200 instead of 401 depending on how tests were distributed.
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.
Summary
New workspaces had the agentic scenario set ("Agentic Audit: Explanatory Scenarios", D01–D10) but no agentic run to look at since the synthetic preloaded demo was removed in 4de31f1. This seeds a real one.
infra/fixtures/agentic_demo_run.json: a real, executed agentic audit of the demo "Support Refund Assistant" (Acme policy KB + order lookup tool) against D01–D10, run through Studio's normal agent path with Studio tracing — 10 results with their agentic evaluations, and 213 OTLP spans exported by Open WebUI. Captured withcapture_agentic_demo_fixture --run N --require-recorded. Agentic checks: 10/10 PASS; text judge: 10/10 pass.demo-model. Model output is untouched;recorded_run.models_relabelledrecords the relabel.seed_agentic_demo(restored, recorded fixtures only): attaches the run to the workspace's demo agent and agentic set; auditor/judge rows point at the seeded OpenAI models so the run can be cloned. Doesn't need chat or a synced agent.seed_platformruns it with the demo runs; a deleted run isn't loaded again;--forcereplaces it.--relabel-models LABELand--replace OLD=NEW(demo_fixture.relabel_models).max_tokens,input_tokens, …) andtokenizer_modelbecame[REDACTED]. Now only token fields are (token,access_token,x-client-token).docs/deployment.mdcommands table.Testing
infra/tests/test_seed_agentic_demo.py(8): committed fixture validates (format, recorded provenance, checksum) and carries no endpoint; loads with results, spans, agent and set; neutral snapshots; idempotent; deleted stays deleted;--force; skipped without the agent; a loaded run can't be re-exported as a recording;seed_platformloads it; run and result pages render with trace links.audits/agentic/tests/test_demo_fixture.py: sanitizer token cases,relabel_models.ruff check .clean.setup_localwith chat off: 5 demo runs + "Demo: Agentic audit: Support Refund Assistant (D01-D10)" (10 scenarios).Notes
acme_agentic_real_run_v1.json(old A-series scenarios) is left as is;verify_agentic_auditstill checks it.