Skip to content

[NA] [BE] Update model prices file - #9132

Merged
andrescrz merged 2 commits into
mainfrom
github-actions/NA-automatically-update-model-prices-file-2026-10-22-00-23-36
Oct 23, 2026
Merged

andrescrz merged 2 commits into
mainfrom
github-actions/NA-automatically-update-model-prices-file-2026-10-22-00-23-36

Conversation

@CometActions

Copy link
Copy Markdown
Collaborator

Details

Automated update of model_prices_and_context_window.json file and regeneration of supported models documentation.

Files updated:

  • apps/opik-backend/src/main/resources/model_prices_and_context_window.json - Latest model pricing data from LiteLLM
  • apps/opik-frontend/src/data/model_prices_and_context_window.json - Frontend copy kept in sync with backend

Change checklist

  • User facing change
  • Documentation update

Issues

N/A

Testing

  • Passed CI

Documentation

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

⏱️ pre-commit per-hook timing

Hook Description Result Duration
☕ swagger resolve — java backend openapi Resolve the backend OpenAPI spec ✅ 47.84s
🌐 typecheck — frontend Whole-project tsc type check ✅ 24.83s
☕ spotless — java backend Format Java code ✅ 6.75s
🛡️ semgrep — java backend sql Enforce the repo's own backend Java rules ✅ 1.92s
🌐 eslint — frontend Lint + autofix JS/TS ✅ 1.63s
⚙️ actionlint — github workflows Lint GitHub Actions workflows ✅ 0.83s
🌈 zizmor — github workflows security Security-scan GitHub Actions workflows ✅ 0.04s
Total (7 ran) 83.84s
⏭️ 39 skipped (no matching files changed)
Hook Description Result
🐍 trim trailing whitespace — python sdk Strip trailing whitespace ⏭️
🐍 fix end of files — python sdk Ensure files end in a newline ⏭️
🐍 ruff — python sdk Lint + autofix Python (ruff) ⏭️
🐍 ruff-format — python sdk Format Python code (ruff) ⏭️
🐍 mypy — python sdk Static type check ⏭️
🤖 trim trailing whitespace — optimizer Strip trailing whitespace ⏭️
🤖 fix end of files — optimizer Ensure files end in a newline ⏭️
🤖 check yaml — optimizer Validate YAML syntax ⏭️
🤖 check json — optimizer Validate JSON syntax ⏭️
🤖 check toml — optimizer Validate TOML syntax ⏭️
🤖 check for added large files — optimizer Block large files (>1MB) ⏭️
🔐 detect private key — optimizer Block committed private keys ⏭️
🤖 check for merge conflicts — optimizer Block merge-conflict markers ⏭️
🤖 check for case conflicts — optimizer Block case-only name clashes ⏭️
🤖 pyupgrade — optimizer Modernize Python syntax ⏭️
🤖 ruff — optimizer Lint + autofix Python (ruff) ⏭️
🤖 ruff-format — optimizer Format Python code (ruff) ⏭️
🤖 mypy — optimizer Static type check ⏭️
📓 nbstripout — optimizer notebooks Strip notebook output ⏭️
📝 markdownlint — optimizer Lint Markdown ⏭️
🔤 codespell — optimizer Fix common misspellings ⏭️
📊 radon cc — optimizer Cyclomatic-complexity gate ⏭️
📊 radon raw — optimizer Raw size metrics gate ⏭️
📊 xenon — optimizer Fail on complexity thresholds ⏭️
📊 lizard — optimizer Cyclomatic-complexity gate ⏭️
🧹 vulture — optimizer Find dead code ⏭️
🛡️ trim trailing whitespace — guardrails Strip trailing whitespace ⏭️
🛡️ fix end of files — guardrails Ensure files end in a newline ⏭️
🛡️ ruff — guardrails Lint + autofix Python (ruff) ⏭️
🛡️ ruff-format — guardrails Format Python code (ruff) ⏭️
🛡️ mypy — guardrails Static type check ⏭️
⚓ helm-docs Regenerate Helm chart README ⏭️
block non-public FE plugins Block non-public FE plugins ⏭️
🧪 pre-commit wrapper smoke tests Self-test the wrapper scripts ⏭️
🧪 opik.sh startup wait tests Self-test opik.sh's container startup wait ⏭️
🧪 rebaseline script tests Self-test the changelog re-baseline script ⏭️
📘 eslint — typescript sdk Lint + autofix JS/TS ⏭️
📘 typecheck — typescript sdk Whole-project tsc type check ⏭️
🐳 hadolint — dockerfiles Lint Dockerfiles ⏭️

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Backend Tests - Unit Tests

7 674 tests   7 672 ✅  2m 8s ⏱️
  311 suites      2 💤
  311 files        0 ❌

Results for commit d9e4bf9.

♻️ This comment has been updated with latest results.

@baz-reviewer

baz-reviewer Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review this PR on Baz

Out of Scope Findings (3 Low)

apps/opik-backend/src/main/java/com/comet/opik/domain/cost/CostService.java:339-343
Price files incur duplicate startup parsing

Severity

Startup loads and deserializes both large price files twice because readModelCosts() runs during CostService initialization and again from ModelCapabilities.loadCapabilities(); cache the merged, immutable model-cost map and reuse it in both places.

apps/opik-backend/src/test/java/com/comet/opik/domain/cost/ProviderRegistryTest.java:21-22
Provider test rejects valid price-file updates

Severity

The arbitrary > 100 size check makes the test fail when automated price-file syncs remove or consolidate providers, before it verifies resolution behavior; remove hasSizeGreaterThan(100) and keep the per-provider allSatisfy assertion, optionally checking only that the set is non-empty.

scripts/update_openrouter_model_prices.py:64-67
Price updates abort on transient network failures

Severity

A transient failure in fetch_models() aborts the update and leaves both generated price files stale; use the repository’s shared HTTP client or add configurable timeouts with reusable retry/backoff.

View out-of-scope findings in the session log


@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Backend Tests - Integration Group 7

1 760 tests   1 756 ✅  7m 8s ⏱️
   12 suites      4 💤
   12 files        0 ❌

Results for commit d9e4bf9.

♻️ This comment has been updated with latest results.

CometActions and others added 2 commits October 22, 2026 18:43
LiteLLM removed every OpenRouter row from its price file
(BerriAI/litellm#45623). The daily price update then failed the backend and
frontend tests, and merging it would have dropped OpenRouter span costs,
max output token limits and input modality flags.

- scripts/update_openrouter_model_prices.py writes
  model_prices_openrouter.json (backend and frontend copies) from
  OpenRouter's public model list, in LiteLLM's row format. The daily price
  workflow runs it; a failed fetch keeps the current file.
- CostService.readModelCosts merges both files for cost estimation and
  ModelCapabilities. The frontend model capabilities and the provider model
  sync read the OpenRouter file too.
- JsonUtils.readJsonFile throws FileNotFoundException naming a missing
  resource, and a price file that can't be read or holds no model fails
  with its name.
- Tests cover OpenRouter pricing, prompt-size tiers, vision support and the
  missing-resource error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andrescrz
andrescrz force-pushed the github-actions/NA-automatically-update-model-prices-file-2026-10-22-00-23-36 branch from 0b56b3a to d9e4bf9 Compare October 22, 2026 16:43
@andrescrz
andrescrz requested review from a team as code owners October 22, 2026 16:43
@github-actions github-actions Bot added documentation Improvements or additions to documentation python Pull requests that update Python code java Pull requests that update Java code Infrastructure tests Including test files, or tests related like configuration. typescript *.ts *.tsx labels Oct 22, 2026
@andrescrz
andrescrz merged commit 1e7b786 into main Oct 23, 2026
86 checks passed
@andrescrz
andrescrz deleted the github-actions/NA-automatically-update-model-prices-file-2026-10-22-00-23-36 branch October 23, 2026 08:58
comet-ci-bot Bot added a commit that referenced this pull request Oct 23, 2026
…outer file

2.2.119 is the release where model_prices_openrouter.json became the
thing supplying OpenRouter prices and modality flags — LiteLLM's table
no longer lists them. No cost spec in the estate used an OpenRouter
model, and the media gate had no OpenRouter case at all, so a build that
stopped reading that file passed the whole estate.

tests_end_to_end/e2e/tests/trace-explore/openrouter-span-cost.spec.ts
  — two OpenRouter models seeded under BOTH spellings of their id, with
    usage and no total_cost. Green: the three-segment spelling the file
    keys its rows under prices at the row's own rates (the two rows
    resolving different amounts is what says the file was read rather
    than one number matched), with a vendor/model in no row as the
    unpriced control, asserted at the API, in the trace panel and in the
    Logs Estimated cost column. test.fail(): the TWO-segment id Opik
    itself writes must price the same — CostService.parseModelName strips
    to the first slash on key and span model alike, so an OpenRouter run
    started from Opik resolves no cost and the trace rolls up half the
    bill as a perfectly ordinary number.
tests_end_to_end/e2e/tests/playground/playground-openrouter-media-gate.spec.ts
  — green: a native vision model accepts an image, a genuinely
    non-vision OpenRouter model refuses it, and the vision model's token
    ceiling is read off the panel and shown to be below the flat
    OpenRouter cap, which is the deployed build stating it found that
    model's price row. test.fail(): a model whose row carries
    supports_vision must accept the same image — getOpenRouterMaxOutput-
    Tokens prepends openrouter/ and supportsImageInput has no such
    sibling, so the ceiling half of 9132 landed and the modality half
    does not.

Fixtures: openRouterCostSpans (five REST-written LLM spans on one
trace), imageOnlyPrompt (text plus ONE image part — mediaPrompt carries
video and audio too, which every model refuses, so with it the native
control cannot exist), openRouterVisionModels (the two ids, registered
unbilled because nothing is ever run, and asserted present in this
deployment's registry before a browser opens).

QA-Source-PR: #9132
comet-ci-bot Bot added a commit that referenced this pull request Oct 30, 2026
Two cost specs failed on staging against a trace the backend client could
read back fine. The traces show why in both cases: the page's own listing
call was answered HTTP 429 by a per-workspace rate limit, the FE kept the
empty answer, and nothing refetched — so the DOM wait could not succeed at
any length. The backend client carries withRateLimitRetry for exactly this
burst; the browser has none, so the specs supply it with a reload.

No assertion was loosened or removed: every count stays exact and the final
attempt rethrows the locator's own failure, so a tree or table that
genuinely never lists a seeded entity still fails naming it.

pom/trace-panel.page.ts — waitForSpanTreeNodes(): wait for the span tree to
  list each named span, reloading the panel when the spans call was shed
pom/logs.page.ts — waitForTraceRow(): wait for a trace's own row, reloading
  the Logs listing when the traces call was shed
tests/trace-explore/openrouter-span-cost.spec.ts — use it where the panel
  read "Spans (0)" for a 30s wait; raise the test budget for the reload path
tests/trace-explore/openrouter-repriced-rows.spec.ts — use it on the
  page.goBack() return, where the table came back rowless

Verified on staging for 2.2.136: both specs now pass at 6 workers, the
concurrency that reproduced each failure, and the whole branch (83 tests in
40 spec files) is green at the suite's own configuration.

QA-Source-PR: #9132
QA-Source-PR: #9180

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
AndreiCautisanu pushed a commit that referenced this pull request Nov 2, 2026
….121, 2.2.122, 2.2.125, 2.2.128, 2.2.130, 2.2.131, 2.2.132, 2.2.133, 2.2.134, 2.2.136, 2.2.137 (#9181)

* [QA] specs for #9162: make dashboard editing and Ollie widgets discoverable from Add widget

tests/dashboards/project-overview-template-copy.spec.ts — saving a widget on a
project's built-in "Project overview" creates a MULTI_PROJECT copy of the whole
template with regenerated section ids, the widget in the section it was added
from (asserted from the last section and from the first), the five "At a glance"
cards reading what the built-in view read, and a second copy taking
"(custom 2)" without touching the view that held the name.
tests/dashboards/project-overview-copy-rename-toast.spec.ts — the copy toast's
Rename action opens the copy it is about after the picker has moved to another
view, prefilled with the copy's name, and renames that copy and nothing else.
pom/add-widget-control.ts — the section header's Add widget control in both of
its shapes: a plain button, and the Ollie dropdown this release introduced.
pom/project-dashboards.page.ts — section-scoped Add widget, the preview widget's
inline title, the "At a glance" card values, the copy's id off the URL, the
toast's Rename action and the Edit view dialog.
fixtures/project-overview-copy.fixture.ts — six traces so the template's cards
resolve to real numbers, a view already holding the generated copy name, a
bystander view, and teardown for the views the app creates mid-test.
core/backend/client.ts — getInsightsView(id), the only read that carries a
view's stored config.

QA-Source-PR: #9162

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] settle specs on staging for 2.2.118

pom/dashboards.page.ts — route both add-widget helpers through the shared
Add widget control.

opik#9162 turned the section header's "Add widget" button into a dropdown
trigger wherever Ollie is available, which is every cloud Custom-Charts
workspace. Both helpers clicked the button and then waited for the config
dialog, so on staging the click opened a menu and the dialog never came:
workspace-span-metrics and project-span-metrics failed on the product working
as designed. Fixing it here rather than in the specs makes all four
@area:dashboards add-widget specs cover the new dropdown branch as well as the
plain one.

QA-Source-PR: #9162

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] review: settle the copy-name race, track main's Add widget labels

Reviewing #9181 against the estate and running its specs on a local stack
built from the PR head.

- The three tests each create a view under the ONE fixed name the app
  generates for a first copy, "Project overview (custom)". insights-views
  de-duplicates its workspace-wide slug from the name with a read-then-
  insert that is not atomic, so two of those creates landing together --
  in different projects, under fullyParallel: true -- race and one comes
  back 409 "Dashboard already exists". Measured 2 failures in 5 runs at
  the CI worker count. The three tests are now one file running
  `mode: 'default'`, so they never overlap; 5/5 runs green after, and the
  whole dashboards/ directory passes 21/21. No assertion changed, and the
  409 itself is a product defect reported in the review, reproducible with
  two concurrent POSTs and no browser.
- add-widget-control's Ollie menu item matched /^Add widget/, which opik#9169
  reworded to "Pick a chart" after 2.2.118 was cut. The selector would never
  have matched on a cloud workspace once this lands on main. Now tracks
  main's labels, with the one-release window noted in place. Not executable
  here: OSS reports ollie: false, so this branch is unverified.
- The second copy's per-section widget counts were asserted as a literal
  [.. , 3, 4]; derived from DEFAULT_PROJECT_VIEW_WIDGET_COUNTS instead, as
  the first test already does.
- taxonomy: a scoping note on dashboards.edit-dashboard, which reconcile.py
  is about to flip to covered with nothing recording that only the
  template-copy and toast-rename paths are reached. covered/tier/specs left
  derived.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] taxonomy: capabilities for release 2.2.119

coverage/pending/ held nothing this release, so there was nothing to
apply. The one entry here is new: traces.ts-sdk-gemini-tracker-usage,
for the opik-gemini usage mapping this release's exploration reached
(opik#8783). Named for THIS tracker and left covered: false for
reconcile.py to flip, on the same reasoning the sibling
ts-sdk-openai-tracker-usage and sdk-ollama-tracker-spans keys record:
span-model-cost-tokens is about server-side price resolution over
hand-seeded spans, so its fixtures write the usage map themselves and
cannot see a tracker that filled it in wrongly.

QA-Source-PR: #8783

* [QA] specs for #9132: price and gate OpenRouter models from the OpenRouter file

2.2.119 is the release where model_prices_openrouter.json became the
thing supplying OpenRouter prices and modality flags — LiteLLM's table
no longer lists them. No cost spec in the estate used an OpenRouter
model, and the media gate had no OpenRouter case at all, so a build that
stopped reading that file passed the whole estate.

tests_end_to_end/e2e/tests/trace-explore/openrouter-span-cost.spec.ts
  — two OpenRouter models seeded under BOTH spellings of their id, with
    usage and no total_cost. Green: the three-segment spelling the file
    keys its rows under prices at the row's own rates (the two rows
    resolving different amounts is what says the file was read rather
    than one number matched), with a vendor/model in no row as the
    unpriced control, asserted at the API, in the trace panel and in the
    Logs Estimated cost column. test.fail(): the TWO-segment id Opik
    itself writes must price the same — CostService.parseModelName strips
    to the first slash on key and span model alike, so an OpenRouter run
    started from Opik resolves no cost and the trace rolls up half the
    bill as a perfectly ordinary number.
tests_end_to_end/e2e/tests/playground/playground-openrouter-media-gate.spec.ts
  — green: a native vision model accepts an image, a genuinely
    non-vision OpenRouter model refuses it, and the vision model's token
    ceiling is read off the panel and shown to be below the flat
    OpenRouter cap, which is the deployed build stating it found that
    model's price row. test.fail(): a model whose row carries
    supports_vision must accept the same image — getOpenRouterMaxOutput-
    Tokens prepends openrouter/ and supportsImageInput has no such
    sibling, so the ceiling half of 9132 landed and the modality half
    does not.

Fixtures: openRouterCostSpans (five REST-written LLM spans on one
trace), imageOnlyPrompt (text plus ONE image part — mediaPrompt carries
video and audio too, which every model refuses, so with it the native
control cannot exist), openRouterVisionModels (the two ids, registered
unbilled because nothing is ever run, and asserted present in this
deployment's registry before a browser opens).

QA-Source-PR: #9132

* [QA] specs for #8999 and #8783: the TypeScript trackers' streamed tool calls and Gemini token folds

Both are silent-wrongness failures in an integration package no spec
drove. The estate imports exactly one of the five opik-* packages, on one
of its two endpoints, and span-model-cost-tokens cannot see either defect
because its fixtures write the usage map themselves.

tests_end_to_end/e2e/tests/trace-explore/ts-sdk-openai-streamed-parallel-tools.spec.ts
  — opik-openai keeps streamed PARALLEL tool calls apart (opik#8999).
    A stub SSE stream interleaves two calls' argument fragments across
    index 0 and 1; the span must carry both calls whole, in index order,
    each with its own id and arguments that parse. The pre-PR
    accumulator took delta.tool_calls[0] and concatenated everything into
    one call whose arguments were not JSON and still rendered as a tool
    call. Asserted as the whole output object, so a merged call, a pair
    with each other's arguments, and a pair missing its ids all fail
    separately. Also that the caller still saw every chunk, that the
    final usage chunk (choices: []) lands, and that the span prices on it.
tests_end_to_end/e2e/tests/trace-explore/ts-sdk-gemini-thinking-tokens.spec.ts
  — opik-gemini folds toolUsePromptTokenCount into prompt_tokens and
    thoughtsTokenCount into completion_tokens (opik#8783). 100/5/20/30
    with a provider total of 155 must map to 105 and 50, not the naive
    100/20 — asserted as the whole usage map including the provider's own
    five counters under original_usage.*. The stub is asserted able to
    observe the fold before it is driven (both folds non-zero, and the
    provider total differing from the naive pair, which is the inequality
    the tracker gates the thinking fold on). Priced at $0.0001565 against
    a hand-seeded control carrying the pre-8783 mapping, which must cost
    strictly less.

Both stubs bind an ephemeral port on 127.0.0.1 with no key and no
network, so the chunk sequence and all five counters are fixed by the
fixture — neither can be driven against a live provider at all. Each
records any path it was not asked to serve, so a client that reached
/v1/responses or :streamGenerateContent fails instead of passing while
saying nothing.

opik-openai moves from 2.2.94 to the release's own 2.2.119, which is
what makes the streaming spec a test of the shipped tracker rather than
of the pre-fix one; ts-sdk-openai-responses-usage.spec.ts was re-run
against it and is unaffected. opik-gemini and @google/genai are new, with
an overrides entry because opik-gemini declares peer opik@^1.7.25 while
the suite pins opik@^2.2.74.

QA-Source-PR: #8999
QA-Source-PR: #8783

* [QA] specs for #8750: the run gate when a dataset filter excludes every row

tests_end_to_end/e2e/tests/playground/playground-run-gate-filtered-out.spec.ts
  — zero matching rows is the state the grid filter made reachable, and
    running against an empty item list builds no prompt/item combinations
    at all. Both Run surfaces refuse it with "No dataset items match the
    current filters" — the header and each variant card compute that
    refusal separately and render their own tooltip, so neither is
    evidence about the other — and the filter is then narrowed to a value
    one row carries, which reopens every surface with its generic reason.
    Distinct from playground.empty-source-run-guard, which is a different
    predicate (isDatasetEmpty, from versionItemsTotal) checked earlier in
    the same chain and never reached on a version that holds items.

pom/playground.page.ts gains setDatasetGridFilter, which drives the real
popover rather than the filters query param. Three things about this one
popover cost a discovery pass and are written down there:

  - it is deferOnChange, so the filter applies on CLOSE, and a row the
    popover considers incomplete commits as no filter at all — which,
    from an already-unfiltered grid, is indistinguishable from nothing
    having happened;
  - its value box is a DebounceInput that only hands the text up after
    300ms or on blur, and a pointer-down outside reaches the popover's
    close handler first. Closing straight after typing commits an empty
    value, isFilterValid drops it, and no request is ever made. Measured
    on 2.2.119. The blur is its own step, and the trigger's valid-filter
    count is read back as proof the value arrived;
  - the settle is the grid's own dataset-items response, decoded as a
    QUERY STRING — axios emits `+` for a space, so a bare
    decodeURIComponent can never match a value read off a dataset item.

QA-Source-PR: #8750

* [QA] specs for #9166: editing the prompt while a dataset run is in flight

tests_end_to_end/e2e/tests/playground/playground-stale-output-mid-run.spec.ts
  — 2.2.119 moved the dataset run server-side, so the page no longer owns
    the work it displays: the cells render from experiment items the
    backend is still writing, and the staleness flag is computed over a
    prompt the user has just changed under them. Two failures asserted
    away — the grid RESETTING to "No runs yet" (worse mid-run than after
    a run, because the user is then looking at a grid indistinguishable
    from one where nothing was ever started, while the backend keeps
    going), and the edit ENDING the run, which would drop the only handle
    the user has now that there is no browser-side anchor.

    The never-run placeholder is asserted present for every row BEFORE
    any run, so the central negative is over a locator shown to match
    when it should. "Nothing is noted stale" is read after the re-run and
    before the edit, so the notes that appear are attributable to the
    edit. The run is then stopped, which is the last thing a user can do
    with a run they have edited under, and the notes are asserted to
    survive that too.

    Deliberately NOT claimed: that the cells keep their previous RESULT.
    They do not, and should not — the second run is a re-run of the same
    rows, and clearing the result it is about to replace is what a re-run
    means. The exploration candidate asked for "every cell still holds
    its previous output", which conflates the edit with the re-run; a
    finished result surviving an edit is the settled case, and
    playground-stale-output-dataset-grid.spec.ts already pins it. Also
    not claimed: the dark-theme repeat the exploration did, since the
    dimming is an opacity the estate already reads as a computed style
    and opacity does not vary by theme.

pom/playground.page.ts gains runProgressReadout — both phrases the
progress indicator can show, as one locator, because which of the two it
is racing the server's paging and pinning one would make the assertion
about timing rather than about the run.

QA-Source-PR: #9166

* [QA] settle specs on staging for 2.2.119

project-overview-template-copy.spec.ts's toast-Rename test fails on
staging and the cause is the product, not the spec. The page DOES switch
back to the copy — the dashboardId poll passes — but the Edit view dialog
opens with its Name box EMPTY instead of prefilled with the copy's name.

Isolated to the detour that test exists to drive, with no assertions
involved: clicking the toast's Rename straight after the copy opens the
dialog holding "Project overview (custom)"; clicking it after moving the
view picker to another view opens the same dialog holding "". So neither
the toast nor the dialog is broken on its own.

Deterministic rather than a race, which is why it is marked rather than
waited out: ProjectDashboardViewDialog reads its name through useForm's
defaultValues, which React Hook Form evaluates once at mount, so a
dialog that mounts without the name can never backfill it. Held for 13s
across two runs.

The assertions are left intact and only that one test is marked, so the
two tests beside it keep failing loudly. Playwright reports it the
moment the prefill comes back.

QA-Source-PR: #9169

* [QA] review: record the new specs' coverage on the keys they ride

Five taxonomy notes were left describing the estate as it was before
these specs. The notes are the only human-readable statement of what a
key does and does not cover, so a stale one is a false claim:

- traces.ts-sdk-openai-tracker-usage listed streaming, the
  chat-completions endpoint and tool calls as NOT covered, which the
  new ts-sdk-openai-streamed-parallel-tools.spec.ts covers under that
  very key. Corrected, and the remaining gaps restated precisely.
- traces.span-model-cost-tokens and playground.output-staleness
  enumerate their vectors spec by spec; the openrouter-span-cost and
  stale-output-mid-run vectors are now recorded there too.
- playground.run-against-dataset and playground.message-role-media
  each gained a spec that is not what the key names — a run GATE that
  never runs, and the MODEL side of the media rule rather than the role
  side. Recorded as OPEN/needs-a-human-call comments, following the
  precedent the playground.stop-run note set, with a candidate key
  named in each. No capability invented: that call is the user's.

Also merges the two separate `@e2e/fixtures` imports in
playground-openrouter-media-gate.spec.ts into one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] specs for #9143: [OPIK-8372] [FE] feat: start cards for new online evaluation rules

tests_end_to_end/e2e/tests/online-evaluation/online-evaluation-decision-model-start-cards.spec.ts — each of the six decision-model cards applies its own prompt and its whole question list, and a rule saved from one persists that card's prompt, score names and variable map (an output-only template gaining no input variable)
tests_end_to_end/e2e/tests/online-evaluation/online-evaluation-start-card-validation.spec.ts — the start cards block Create with no prompt, no variable and a malformed variable, naming each and posting nothing, with the start error the only one shown on either panel
tests_end_to_end/e2e/pom/online-evaluation.page.ts — openCreateRulePanelOnStartCards, the Questions card's question/name readers, and an exhaustive reader for the editor's validation messages

QA-Source-PR: #9143

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] taxonomy: capabilities for release 2.2.120

coverage/pending/ held nothing this release, so there was nothing to
apply. Both entries here are new, from this pass's own staging
exploration, and both are left covered: false for reconcile.py to flip:

annotation-queues.custom-annotator-view (opik#9079) — the SandboxedView
+ v1-kit layer under the SME route: a stored HTML view, its fallback
when it cannot render, and the Trusted Types block that stops it
writing markup. Not folded under sme-flow: that key is the route
rendering a queue's items, and it is where the trace-queue annotation
journey now sits. These are three different failure modes, two of them
silent, so folding them in would retire the question permanently while
nothing had tested the sandbox. Not an ollie key either, though
assistantBridge shares the same SandboxedView — the authoring path is
Ollie's, the rendering contract is the annotation queue's.

threads.environment-filter (opik#9177, OPIK-6842) — the Threads tab's
environment filter and the shared `environment` URL param, as the
exploration's candidate asked for. Not list-threads: that is the Threads
table listing seeded conversations and is already covered: true at t1.
Not a traces key either, though the param is shared by all three Logs
tabs: the statistics read this narrows is /traces/threads/stats.

QA-Source-PR: #9079
QA-Source-PR: #9177

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] specs for #9079, #9177, #9180 and #9187: this release's staging-verified candidates

One commit rather than four because the fixture chain is linear: each
new fixture extends the previous head and fixtures/index.ts points at
the last one, so splitting them per source PR would leave intermediate
commits whose chain does not resolve.

tests_end_to_end/e2e/tests/annotation-queues/sme-trace-queue-annotation.spec.ts — a reviewer working a TRACE queue through /sme is shown each item's own trace (Input/Output blocks and the Trace: header, with no sibling's payload in either) and the scores they submit land on the items they were shown; one item advanced past with Next carries no score, the graded ones carry exactly the value submitted for them, and the queue is not consumed. Order-agnostic by design: SMEFlowContext picks its items from a per-user shuffle keyed on fresh UUIDs, so the spec reads which item it is on rather than stating one
tests_end_to_end/e2e/tests/annotation-queues/annotator-view-sandbox.spec.ts — a stored kit view renders inside the sandboxed frame with that item's own fields and replaces the default blocks; a view that never calls kit.mount is replaced by the default view with the alert that says so, not left as a blank frame; a view that assigns innerHTML is blocked and replaced, with the same marker asserted to render first through the kit's safe text path so its absence is the block and not an unrenderable value; and html: '' reads back as null with the header tag gone and no failure alert
tests_end_to_end/e2e/tests/trace-explore/threads-environment-filter.spec.ts — the environment filter narrows the thread listing AND the count card above it (two independently written queries, the card being the silent half), the selection rides the shared `environment` param across a reload and a switch to the Traces tab with the rows agreeing, and a name the workspace registry does not hold is dropped with threads_page reset to 1 and the full population back
tests_end_to_end/e2e/tests/projects/project-create-duplicate-name.spec.ts — a duplicate name shows "Project with this name already exists" (asserted to be a substitution: the 409 carried a different message) while an over-long name still shows the server's own message and NOT the duplicate-name string, with neither failure creating a project
tests_end_to_end/e2e/tests/trace-explore/openrouter-repriced-rows.spec.ts — the three OpenRouter rows 9180 re-priced are billed at the shipped rates (three distinct amounts, one of which went down, so no multiplier or constant satisfies them), the minimax :free id it removed is billed nothing, the trace rolls up to the sum, and the panel renders each amount against its own model with no dollar figure at all for the removed id
tests_end_to_end/e2e/fixtures/annotator-view-queue.fixture.ts — a one-item trace queue with a question/answer payload, asserting the queue holds its item and carries no view yet
tests_end_to_end/e2e/fixtures/environment-threads.fixture.ts — four threads across two environments and one untagged (2/1/1, three distinct answers), registering its environments by seeding traces that carry them and proving the seed at the trace level before the browser opens; deletes the environments it registered by id at teardown
tests_end_to_end/e2e/fixtures/openrouter-repriced-spans.fixture.ts — the four 9180 vectors as llm spans with usage and no total_cost, so every amount is the server's own lookup
tests_end_to_end/e2e/pom/sme-flow.page.ts — the trace-queue half of the route: currentTraceId, the Input/Output code blocks, the score row, the advance control, and the sandboxed annotator frame with its fallback alert
tests_end_to_end/e2e/pom/logs.page.ts — the environment dropdown, the shared `environment` and `threads_page` params, and gotoThreads options for stating them
tests_end_to_end/e2e/pom/projects.page.ts — the create-project dialog, returning the POST's own status and message so a spec can compare what the server said with what the toast shows
tests_end_to_end/e2e/pom/annotation-queue.page.ts — the queue header's "Custom annotator view" tag
tests_end_to_end/e2e/core/backend/client.ts — set/get a queue's annotator_view over PATCH, the workspace environment registry and its delete, and an `environment` field on both trace write paths
tests_end_to_end/e2e/fixtures/annotation-queue.fixture.ts — the seeded input/output on each trace ref, so a spec need not restate the literals
tests_end_to_end/e2e/tests/trace-explore/openrouter-span-cost.spec.ts — docblock only: points at the new spec for the re-priced rows, which is a different question from the spelling one

QA-Source-PR: #9079
QA-Source-PR: #9177
QA-Source-PR: #9180
QA-Source-PR: #9187

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] review: settle the mid-run staleness spec on the header's own run signal

`playground-stale-output-mid-run.spec.ts` read "no run is in flight"
straight after `waitForRunsComplete`, which only watches the output
CELLS — on a server-side dataset run the header is still showing
"Stop all" at that point, because `isRunning` tracks the experiment
rather than the grid. The assertion failed on the local stack against a
header that had not yet swapped back. Wait on `waitForRunSettled`, the
estate's dataset-mode signal for "the run is over", before reading it;
the assertion itself is unchanged, since it is what makes the post-edit
reading attributable to the edit.

Also drop an unused `priced` helper from `openrouter-span-cost.spec.ts`
and say why that spec has none: it selects the spans that must be
billed by SPELLING, not by expected cost, because the bare spellings are
expected to price too once the defect its second test pins is fixed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] specs for #8808, #9214 and #8799: this release's staging-verified candidates

One commit rather than three because the fixture chain is linear: each
new fixture extends the previous head and fixtures/index.ts points at
the last one, so splitting them per source PR would leave intermediate
commits whose chain does not resolve.

tests_end_to_end/e2e/tests/projects/project-home-traces-logged-today.spec.ts — the home page's "Traces logged today" counts SDK traffic AND legacy no-source rows while excluding playground, experiment, optimization and evaluator runs: one trace per Source value is seeded over REST, the count is asserted against /activities (the API the page renders) and against /traces under RecentActivityService's own `source = sdk` + `visibility_mode = default` pair, then read off the page, and following the row's link lands on the project's Logs page holding exactly those three ids and none of the other four. The whole activities envelope is asserted, not just the trace_daily item, so a seed split across two UTC day buckets fails rather than making the count right for the wrong reason
tests_end_to_end/e2e/tests/ai-providers/provider-base-url-change-credentials.spec.ts — a PATCH carrying only a new base_url is refused with the message naming what to resubmit, and the refusal is shown not to have partially applied: both the stored base_url and the stored (masked) credential are unchanged afterwards, which is the credential-exfiltration shape the rule exists to prevent. The branch the rule must NOT fire on is asserted first — an unchanged URL with no credential still saves — since token-auth-dialog.spec.ts only ever exercises that one. Second test: the built-in opik-free provider is refused as a workspace key, and the refused create reports no Location
tests_end_to_end/e2e/tests/playground/playground-logs-run-sources.spec.ts — the Playground logs sidebar's rendered row ids EQUAL what the API answers for the sidebar's own filter pair (`source != sdk` AND `metadata.created_from = playground`), over a seeded matrix in which dropping either clause admits strictly more rows and the pre-fix `source = playground` filter returns strictly fewer — with the difference named exactly as the non-playground-sourced playground runs rather than merely counted. Nothing is run: every row is written over REST, so no model, provider key or dataset is involved
tests_end_to_end/e2e/fixtures/source-mix-traces.fixture.ts — one trace per Source value (sdk twice, so the expected count cannot coincide with "one per source") plus the legacy no-source row, all logged today; proves the whole population is readable before a browser opens, and skips within five minutes of UTC midnight because the daily bucket would roll over mid-test
tests_end_to_end/e2e/fixtures/playground-logs-traces.fixture.ts — the six (source, created_from) cells that distinguish the two halves of the playground-logs filter, including the SDK evaluate() shape the metadata clause alone excludes and an SDK row claiming created_from=playground that only the source clause excludes; proves the population before the browser opens
tests_end_to_end/e2e/pom/project-home.page.ts — the project Home page's Recent activity strip: its rows, its empty state, and the "Traces logged today" count read as a number through an anchored match that fails rather than coercing a malformed label. Anchored on the section's own heading because the section carries no testid and maps to no named role, and a deployed build cannot pick up a frontend change
tests_end_to_end/e2e/core/backend/client.ts — listRecentActivity over GET /projects/{id}/activities, envelope and all, with type/name asserted rather than defaulted; and `evaluator` added to createTraceWithSource's source union so a spec about an `= sdk` filter can seed every value that filter must exclude
tests_end_to_end/e2e/core/provider-keys.ts — PATCH and get-by-id for a provider key, a raw create that reports status/body/Location instead of throwing, and guardPassingBaseUrl: a TEST-NET-1 https URL that the destination guard accepts under `strict` as well as `relaxed` and that nothing ever connects to. The estate's existing loopback provider URLs are refused outright on a strict deployment such as cloud staging

QA-Source-PR: #8808
QA-Source-PR: #9214
QA-Source-PR: #8799

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] settle specs on staging for 2.2.121

Three specs the branch adds failed during SEEDING, not on their own
subject: `providerKeys.createUnreachable` points its provider at
`http://127.0.0.1:9/v1`, and opik#9214 made `strict` the application
default for LLM_PROVIDER_DESTINATION_GUARD — under which loopback is
refused with a 400 on save, so no provider is created at all and the
caller fails with a message about a deployment setting.

  tests/online-evaluation/online-evaluation-start-card-validation.spec.ts
  tests/playground/playground-run-gate-filtered-out.spec.ts
  tests/playground/playground-stale-output-mid-run.spec.ts

The product is behaving as 9214 intends; the fixture is what cannot run
on a strict deployment. 30 specs under tests/ call that creator, so this
is wider than the branch — but it is not a release regression either:
both shipped deployment manifests set `relaxed`, so only cloud is
affected.

`unreachableBaseUrl()` now picks by deployment: loopback where the guard
is `relaxed`, and a first-party public always-4xx URL where it is not.
What every caller actually needs — the call fails immediately and spends
nothing — holds on both; the failure SHAPE differs (refused at connect
vs an answered 4xx) and the doc comment says so.

There is no better option under `strict`, and the alternatives were
probed against staging at 2.2.121 rather than assumed: loopback, RFC
1918, CGNAT and link-local are refused on save; the DEPLOYMENT'S OWN
hostname is refused too, because it resolves to a private address from
inside the cluster; and 192.0.2.1 / 198.51.100.1 / 203.0.113.1 are all
stored but blackhole, so a call hangs instead of failing — which is
`UNRESPONSIVE_BASE_URL`'s job and the opposite of this one's. No public
address refuses a connect on demand. So this is the one URL in the
estate that leaves the deployment, and it is deliberately first-party
(`comet.com`) rather than a third-party status echo, overridable with
OPIK_PUBLIC_NOT_FOUND_BASE_URL.

Deliberately NOT merged with `notFoundProviderBaseUrl`, which is the
same construct one layer along and equally unusable under `strict`.
That one promises a specific error BODY — Opik's own
`{"code":404,"message":"HTTP 404 Not Found"}`, which
online-evaluation-llm-judge-provider-failure.spec.ts quotes verbatim —
and no public host can honour it. Pointing it at comet.com would have
turned that spec's seeding failure into a wrong-assertion failure, which
is worse. It keeps loopback, `createPermanentlyFailing` stays
relaxed-only, and the limitation is recorded on both. Fixing it needs an
always-404 route reachable from inside the deployment, which is a
deployment change rather than a test one, and that spec is outside this
branch.

Nothing else on the branch needed adjusting: the other 14 specs passed
against staging unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] review: guard the flag-gated home spec, fix two tags, scope three taxonomy notes

Review of the release QA PR against the estate's own conventions. Six fixes;
two tag questions left for a human because they change the denominator.

- project-home-traces-logged-today.spec.ts failed red on OSS: the project Home
  page is behind `project_homepage_enabled` (default false), and with it off
  ProjectHomePage redirects to /logs, so the spec waited for a heading on the
  wrong page. Guarded with test.skip on the live toggle, the same way the
  ollie-* and playground-providers specs declare a surface a deployment does
  not offer. No assertion changed.
- Added backendClient.isFeatureToggleEnabled() to read GET /v1/private/toggles/
  so that guard reads the deployment rather than inferring it.
- provider-base-url-change-credentials.spec.ts: the built-in-provider test
  asserts the CREATE endpoint's OPIK_FREE guard, so it is ai-provider-add, not
  ai-provider-edit.
- sme-trace-queue-annotation.spec.ts: it submits scores through /sme and reads
  them back off the source traces, so it also carries score-queue-item and
  scores-reach-traces. Both already covered, so nothing flips — the SME submit
  path is simply no longer invisible on the map. Not skip-item: the middle stop
  is advanced past with Next, not Skip.
- taxonomy: annotation-queues.sme-flow's note said scoring through /sme had no
  test, which this PR makes false. Rewritten, and what remains uncovered there
  is recorded.
- taxonomy: scoping notes on projects.create-project (the only spec tagging it
  asserts the two refusals; a successful UI create is asserted nowhere in the
  estate) and projects.recent-activity (one of six merged sources, and only
  where the homepage flag is on).

Gates after the edits: tag_lint PASS, tsc PASS, playwright --list PASS.
Specs: 31 passed, 1 skipped, 0 failed against a local build of this head.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] taxonomy: capabilities for release 2.2.122

coverage/pending/ does not exist on this branch, so there was nothing to
apply. The one entry here is new, from this release's own staging
exploration, and is left covered: false for reconcile.py to flip:

experiments.cancel-run (opik#9211) — stopping an experiment run and the
lifecycle a stop writes: status, finished_at, and the generated client
bindings 9211 added over them (`cancel_experiments(ids)`,
`Experiment.finished_at`, the fourth `ExperimentStatus` member
`failed`).

This is the key whose absence made the release pass hand back an empty
candidates.json. The exploration drove the cancellation lifecycle end to
end on staging and judged it strong, deterministic and SDK-seedable, but
withheld it rather than tag a covered, unrelated key — and the release
coverage report flagged the same gap independently under "Denominator
notes" ("no experiments capability key mentions status or cancel; grep
for `cancel` across e2e/tests/experiments/ returns nothing"). The
pending-capability mechanism in the spec-proposal skill exists for
exactly this, so the candidate is taken up here rather than deferred to
the next release.

Not folded into an existing experiments key. `list-experiments` and
`logs-tab` are both covered: true at t1 and are about an experiment
being LISTED, which any status at all satisfies. `delete-experiment` is
a removal, and a stop is the opposite: the run keeps its items and the
outcome it earned up to the mark. `experiment-item-read` is scoped by
its own note to `Experiment.get_items()`, which never reads a lifecycle
field.

The backend behaviour (ExperimentsResource#cancelExperiments,
ExperimentExecutionService#cancel) shipped before 2.2.121; what 9211
shipped is the generated client surface over it, which is what makes the
key this release's rather than a backfill.

QA-Source-PR: #9211

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] specs for #9211: the regenerated SDKs' experiment-cancel lifecycle

This release's own staging-verified candidate. candidates.json was handed
over empty, with a note saying why: the one flow worth a permanent test
had nowhere to hang a @cap: tag. The preceding commit adds the key, so
the candidate is written here rather than referred on.

tests_end_to_end/e2e/tests/experiments/experiment-cancel-lifecycle.spec.ts — three tests over the lifecycle 9211 generated bindings for. A stop issued through the regenerated Python client settles the run `cancelled` with a finished_at at or after its created_at, and strictly fewer of its items ran than it was given — measured against the SERVER's own dispatch count, not the seed's hope — while the sibling variant of the SAME `/experiments/execute` dispatch goes on to run every one of its items and is not relabelled, which is what tells "the stop took the experiment it named" apart from "the stop took the whole dispatch". Then: a 204 from the endpoint is NOT confirmation — against an experiment stored as `running` that this service never queued, the stop is accepted and the status is unchanged after a settling window, which is the reading the exploration flagged as a trap. Then: every member of ExperimentStatus, the new `failed` included, survives the write as itself and is read back by the regenerated client — pinned on the WIRE first, because `ExperimentStatus.fromString` falls back to COMPLETED for an unrecognised value, so a dropped member would be accepted on write and read back as `completed` with no error anywhere, and an SDK reporting `completed` for all four could not otherwise be told from a backend storing `completed` for all four
tests_end_to_end/e2e/fixtures/stoppable-run-dataset.fixture.ts — a dataset big enough that a run over it can be STOPPED rather than waited out (120 items; measured on staging, a run of that size drains in ~15s and a cancel lands ~2-3s in). Built on the `dataset` fixture so the delete that fixture already owns tears it down too, and it proves its own seed before anything else runs: the insert is asserted not to have deduplicated rows away, and the item count is read back through the API the run streams from — a "fewer items than it was given" assertion over a dataset that silently holds three items is a test that cannot fail
tests_end_to_end/e2e/services/opik-sdk-driver/src/opik_sdk_driver/routes/experiments.py — /experiments/cancel and /experiments/lifecycle, reaching `cancel_experiments(ids)` and `Experiment.get_experiment_data()` through the public `Opik.rest_client` and `Experiment` accessors rather than importing out of `opik.rest_api`. The bridge builds `opik` from `sdks/python/` in this checkout, so this IS 2.2.122's regenerated client; the npm-pinned TypeScript one is 48 patch versions behind and is deliberately not driven (see the spec's docblock)
tests_end_to_end/e2e/core/backend/client.ts — cancelExperiments, reporting the status rather than throwing on it because a 204 here is not a claim; and getExperimentLifecycle, raw rather than through the pinned SDK, which predates both `status` and `finished_at` and would drop exactly what the caller asks for. `failed` added to createExperiment's status union: storing a status is the only way to ask a client whether it can read one
tests_end_to_end/e2e/core/sdk/python-sdk-client.ts — the two bridge routes, typed nullable throughout, since a field a regen dropped arrives as null rather than raising

Not asserted, and recorded in the spec's docblock as a lead for an
engineer rather than as a test: the sibling's transition to `completed`.
An uncancelled run of this shape reports completed ~30s after dispatch
(measured twice), but the sibling of a STOPPED variant was seen once in
three runs holding `running` for a full 180s while its trace_count
already stood at all 120 of its items — a run that had done all its work
and never recorded it, which the Experiments table renders as metric
cells shimmering indefinitely. One occurrence in three on a shared cloud
workspace is a lead, not a diagnosis, and it is not this release's
change; shipping it as an assertion would have meant a step that fails a
third of the time.

Gates: tag_lint PASS (237 specs, 0 problems), tsc PASS, 9/9 green over
three repeats against staging at 2.2.122.

QA-Source-PR: #9211

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] review: seed a provider key so the playground-logs spec mounts past the setup modal

playground-logs-run-sources.spec.ts opened the Playground without seeding
any AI provider. On a workspace that holds none — a stock OSS stack — the
Playground auto-opens its modal "Add provider configuration" dialog, whose
overlay covers the page: the logs-sidebar button resolves but can never be
clicked, and the test times out in openLogsPanel(). It passed on staging
only because that workspace already carries provider keys.

Every other spec in tests/playground/ establishes a provider first for this
reason. Seeds the same unreachable custom provider they do — refused
loopback port, never called — and corrects the docblock, which claimed no
provider key was needed.

Verified against a local stack built from this PR's head: the spec failed
before the change and passes after it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] taxonomy: capabilities for release 2.2.125

coverage/pending/ does not exist on this branch, so there was nothing to
apply. The one entry here is new, from this release's own staging
exploration, and is left covered: false for reconcile.py to flip:

threads.message-wrapping (opik#9234, OPIK-8650) — thread message content
with no break opportunity staying inside its container instead of
overflowing it, which is the release's only user-visible frontend change
and the one its coverage report scored a flat "No".

Not folded into an existing threads key. `open-thread-panel` and
`turn-order-io` are both covered: true at t1 via
thread-logging-smoke.spec.ts, and what they assert — the panel opens, the
turns carry the right text in the right order — is satisfied by a message
that has escaped its container: an overflowed element is still visible to
Playwright, still ordered, still carries its text. Tagging the new spec
with either would retire the layout question permanently while nothing
had tested it. `thread-message-count` and `thread-level-metrics` are
about numbers in the header, not about the message body at all.

Not the visual key `threads.visual.thread-panel` either, though that is
the obvious neighbour and the release report named it. Visual keys are
`@vcap:`-shaped — one screenshot per page state, run as the
visual-tests/ suite with no tier — and the spec written here deliberately
measures boxes rather than taking a snapshot, so that it is decisive
about clipping while staying immune to font, theme and scrollbar drift.
A tag_lint run would also reject `@cap:threads.visual.thread-panel`
outright: @cap: resolves against `capabilities:` and @vcap: against
`visual:`, and the two namespaces do not cross. thread-panel stays
covered: false; a snapshot of this panel is still worth having.

QA-Source-PR: #9234

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] specs for #9234 and #9238: this release's staging-verified candidates

tests/trace-explore/thread-message-wrapping.spec.ts — wide thread message
  content stays inside its container, measured rather than eyeballed, on
  the thread detail panel AND the SME annotator thread view, at a 1600px
  and a 900px viewport; plus the list's trailing space below the last
  message.
tests/playground/playground-provider-error-envelope.spec.ts — a
  documented provider error envelope keeps its message and a bare one is
  replaced with the generic line, with the HTTP status preserved either
  way, asserted at the chat-completions proxy and in the Playground's
  output callout.
pom/trace-messages-geometry.ts — the shared measurement both thread
  surfaces use, resolving the scroll container by the property under test
  rather than by a structural path.
fixtures/wide-content-thread.fixture.ts — a four-turn thread of
  unbreakable content, and a thread-scope annotation queue over it.
services/mock-token-auth/ — the gateway can now be asked for a documented
  or a bare error body; callers that only force a status are untouched.

opik#9234 (thread wrapping). Asserted as GEOMETRY, not as a pixel
snapshot: an element that has overflowed its container is still visible,
still ordered and still carries its text, so every assertion the area
already makes passes over the bug — while a snapshot would also fail on
font, theme or scrollbar drift. The container is `overflow-y-auto`, which
makes the X axis `auto` too, so content past the RIGHT edge becomes a
scrollbar and content past the LEFT edge is simply unreachable; both are
asserted, the left one being the reported bug. The assertions were shown
to have teeth before being committed: with the three CSS rules of #9234
neutralised in-page, the same measurement reports scrollWidth 2844 vs
clientWidth 700, the user bubble starting 1,856px left of the container,
four elements overflowing right, and trailing space 0 — against 700/700,
zero and 24px on green code. The fixture proves it can discriminate too:
every turn's input and output must still read back as an OBJECT, because
TraceMessage renders an object through the JSON view the fix touched and
anything else through MarkdownPreview, which breaks long words with or
without #9234.

opik#9238 (error envelope allowlist). Written because the three existing
playground run-error specs all point at an UNREACHABLE provider, which
returns no body at all, so none of them can tell a suppressed message
from a missing one — which is the entire distinction the allowlist makes.
The two envelopes are served by one provider on two model names so that
nothing but the body shape differs between them.

**This spec did not run.** It skips on a cloud target, with the reason
named, via the estate's existing `mockAuthSkipReason` gate: a chosen
error body needs a gateway the test controls, every loopback URL is
refused on save by the `strict` destination guard cloud runs, and the
estate has already established (see the note on
`PUBLIC_NOT_FOUND_BASE_URL`) that no public address can serve a chosen
body either. The exploration recorded the same constraint when it filed
the candidate. What WAS verified here is the mock half, driven directly:
the documented hook answers `{"error":{"type":"invalid_request_error",
"message":…}}` at 400, the bare hook `{"message":…,"status":"404"}` at
404, an unknown envelope is refused 400, and a caller that forces a
status without an envelope still gets the byte-identical legacy body —
which is what keeps online-evaluation-provider-error-classification's
ground unmoved.

One correction to the release coverage report, which the exploration
raised and the backend confirms: it predicted the automation-logs ERROR
row would lose the provider's message, and therefore that
online-evaluation-llm-judge-provider-failure.spec.ts is now stale. It is
not. `OnlineScoringLlmAsJudgeScorer` logs
`error.getCause().getMessage()` — the langchain4j exception text, which
carries the raw provider body and never passes through
`ProviderErrorMessageValidator` at all. That spec is left untouched and
nothing here duplicates it.

QA-Source-PR: #9234
QA-Source-PR: #9238

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] review: name what the two cost-seed polls are waiting for

The seed-priced polls in openrouter-repriced-rows and openrouter-span-cost
were bounded (60s) but carried no `message:`, so a timeout reported only
`expect(received).toBe(3)` with nothing to say which read never settled.
Both now name the trace and distinguish "the seed never got priced" from
"the panel rendered the wrong amount", matching the other 27 polls this PR
adds.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] taxonomy: capabilities for release 2.2.128

coverage/pending/ does not exist on this branch, so there was nothing to
apply. All four entries here are new, from this release's own staging
exploration of opik#8759, and are left covered: false for reconcile.py to
flip:

playground.save-prompt-structure — which TYPE the variant header's Save
writes to the library.
playground.header-text-prompt-load — the header's TEXT arm,
handleImportTextPrompt, which replaces every message in the card with
one.
playground.prompt-library-structure-chooser — the header library menu's
Text-vs-Chat entry state, and the same control with an empty library.
optimization-studio.composer-prompt-library — the new-run composer's
message-row prompt library, and the dirty check 8759 moved into
useMessageTextPrompt.

None of the four is folded into a neighbour, and in all four cases the
neighbour is already covered: true, so folding would have retired the
question permanently rather than merely under-counting it.

save-new-prompt and save-prompt-version are "a save reaches the library"
and "a save commits another version". Every assertion either makes passes
over a save that wrote the WRONG TYPE — the dialog closes, the row
appears, the content is right — which is the whole subject of the new
key. prompt-playground-new-prompt.spec.ts holds save-new-prompt at t1 and
asserts only the chat branch; the text branch and the chat-link guard had
nothing.

load-prompt-version is the message ROW's library door plus the chat arm
of the header's, covered by six specs. The header's TEXT arm is a
different handler with different behaviour: the row's door replaces one
message, handleImportTextPrompt replaces them all. Counting it there
would read as coverage of a destructive path nobody had reached.

prompt-library-structure-chooser has the sharpest version of the same
problem: the estate's own POM deliberately refuses to pin this control.
PlaygroundPage.chooseChatPromptsInLibraryMenu asserts
`chatOption.or(Search)` and clicks the option only if it happens to be
visible, commented "The workspace is shared, so either can happen" — so
every existing playground spec stays green whether the chooser never
appears or always does. An already-covered key could not record that it
is now pinned.

optimization-studio.composer-prompt-library is the key the exploration's
candidate asked for by name. It filed the flow under
new-run-form-validation as the nearest existing key and said in the same
breath that it is a poor fit, which it is: that key is the form's own
submit validation, and the message-row prompt library has nothing to do
with whether the form accepts a run.

QA-Source-PR: #8759

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] specs for #8759: this release's staging-verified candidates

tests/playground/playground-header-save-structure.spec.ts — which TYPE
  the variant header's Save writes, over all three branches of
  `savesAsTextPrompt`: a one-message card saves as text and reopens as
  text, a chat-linked card reduced to one message still commits a chat
  version onto the same prompt, and the default System+User card saves as
  chat keeping its empty System row.
tests/playground/playground-header-text-load.spec.ts — the header's TEXT
  arm collapses a three-message card to one and keeps the role the prompt
  was saved with; with that prompt's own fetch forced to 500 the load
  toasts and the card is untouched.
tests/playground/playground-library-structure-chooser.spec.ts — the
  Text-vs-Chat chooser in a both-types library (each list filtered, the
  back chevron returning), straight to the list in a text-only and in a
  chat-only one, and Load disabled with its reason on an empty library.
tests/optimization-studio/optimization-studio-composer-prompt-dirty.spec.ts
  — the new-run composer reads an older loaded version as clean and flips
  to unsaved on one edit, through both the amber dot and the tooltip.
pom/prompt-library-menu.ts — the shared PromptLibraryMenu popover driver,
  with the two entry states expressible rather than tolerated.
pom/playground.page.ts — the variant header's own Load and Save, message
  removal, and card-scoped message bodies; navigateLibraryMenuToVersion
  now delegates to the module above (same code, moved).
pom/optimization-studio.page.ts — the composer's message-row library,
  dirty dot and save tooltip.
fixtures/project-prompt-library.fixture.ts — a builder for one project's
  library that proves each stored template_structure before use.
core/backend/client.ts — listPromptsByName / getPromptByName, where
  template_structure and version_count are observable.

The type a save wrote is read as `template_structure` over the API rather
than from the badge the library renders: the badge is a second rendering
of the same field, while the branch `handleLibrarySelect` will take later
IS the field. A wrong type is silent at save time and is also a write, so
the entry simply loads back wrong much later.

Each save case also asserts the WHOLE answer — the run-prefixed prompt
list, workspace-wide, holds exactly the prompt it expected — because a
save that took both branches leaves a second prompt beside the right one,
and a by-name lookup reports that as a success.

The chooser is pinnable at all because the menu lists prompts for the
ACTIVE PROJECT, so a per-test project owns the library state that gates
it. Ordering there is load-bearing: the menu renders a spinner while
`(isLoading || hasBothStructures)` and never shows the choice and the
list together, so "it did not ask for a type" settles the list first and
only then asserts the choice absent — the other way round it passes
against the spinner. That is why `expectOpensOnList` exists as one method
rather than two assertions at the call sites.

The header's text load seeds a SYSTEM-role prompt deliberately: `user` is
the fallback `parsePromptVersionRole(version) ?? user` lands on, so a
prompt saved as user could not tell a preserved role from a lost one, and
neither the body nor the message count would notice.

The Studio composer loads the OLDER of two versions, and asserts the body
really is v1's. The baseline the extracted hook judges against is the
version the user PICKED, where the old code fell back to
`latest_version`; a picker that silently took the latest would make
"clean" true for a reason that has nothing to do with the change. Both
sides of the flag are asserted in one pass, since either alone is
satisfied by a flag that is stuck, and each side through both the dot and
the tooltip — two renderings of one `saveWarning`, so a selector that
stopped matching surfaces as the pair disagreeing.

Two corrections to the exploration, both verified here rather than
argued. (1) It reported that `providerKeys.createUnreachable` cannot seed
on staging because its base URL is `http://127.0.0.1:9/v1`, and
concluded the playground suite is CI-only. `unreachableBaseUrl()` is
already guard-aware — it returns `PUBLIC_NOT_FOUND_BASE_URL` wherever
`guardRefusesInternalDestinations()` holds, which includes this cloud
target — and all four specs here seed through it against staging. (2) The
exploration's own probes drove the Playground with no provider at all;
these specs seed one anyway, because with zero provider keys
PlaygroundPage auto-opens its setup dialog over the page, which is the
estate's standing reason for that step in 32 other specs.

Dropped nothing. The exploration's fifth candidate is marked `weak` —
the empty-library Load affordance — and is carried as one short test
inside the chooser spec rather than a file of its own, which is what its
own rationale asked for: it is the same control in a third state, and the
file already owns it.

Deliberately not pinned: what a composer row claims when the picked
version's fetch stalls or answers 500. It reproduces, and the
exploration has the screenshots, but it is the PR's documented intent
(a shipped unit test asserts it) rather than an agreed defect — a product
call, not something to assert as correct behaviour.

QA-Source-PR: #8759

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] settle specs on staging for 2.2.128

Two fixes, one of them a merge break the branch could not have seen until
origin/main came in.

tests/playground/playground-run-gate-filtered-out.spec.ts no longer
compiled. It calls `PlaygroundPage.duplicateLastVariant`, and opik#8759 —
this release's own PR — moved Duplicate off the Add-variant menu and onto
each variant's header, so that POM method is gone from main. The whole
branch failed `npx tsc --noEmit` on it, which means the spec could not
run at all. Replaced with `duplicateVariant(0)`, which is the same thing
the step wanted (a second variant carrying the first's model and
messages, rather than a blank one needing its own configuration), with
the card count settled because the click alone does not wait for the new
card.

pom/optimization-studio.page.ts: `editComposerMessage` replaces the row's
text by select-all-then-type instead of `fill()`. `fill()` on a
CodeMirror editor that already holds text sometimes lands as an insertion
at the cursor rather than a replacement — one run in three on staging
came back holding the old body followed by the new one, which the poll
caught. `fillMessage` is left alone: its other callers all type into an
empty row, where the two gestures are identical.

Everything else the branch adds was already green against staging. Full
branch run, 24 spec files, CI settings (--workers=2 --retries=2):
46 passed, 1 skipped, 0 failed. The skip is
playground-provider-error-envelope.spec.ts, which declares its own cloud
skip reason — a chosen provider error body needs a gateway the test
controls, and every loopback base_url is refused on save by the strict
destination guard a cloud target runs.

Three harvested specs failed the first pass at --workers=4 and passed
serially and on retry, so they are recorded as contention rather than as
findings: sme-trace-queue-annotation (a feedback score not reaching its
trace inside 60s), playground-logs-run-sources (the sidebar predicate),
project-home-traces-logged-today (the Recent activity heading). All three
are reads of eventually-consistent state against a shared cloud
workspace, and CI runs --workers=2 with retries.

One correction worth recording against the exploration, since it changes
what is believed runnable: it reported that the playground suite cannot
run on staging because `providerKeys.createUnreachable` seeds
`http://127.0.0.1:9/v1` and the strict destination guard refuses it.
`unreachableBaseUrl()` is already guard-aware and returns
`PUBLIC_NOT_FOUND_BASE_URL` on a cloud target. playground-variant-actions
and every other provider-seeding playground spec in this run seeded and
passed against staging.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] review: flag the online-evaluation start-card coverage gap in the taxonomy

The two 2.2.119 start-card specs ride `online-evaluation.create-llm-judge-rule`
for behaviour that key does not name — which prompt and question list each of
the six cards applies, and the two submit blocks the cards brought with them.
Both specs do create a rule through the panel, so the tag is honest for the
create itself and nothing flips (the key was already covered at t1), but the
start-card behaviour is invisible to anything reading the taxonomy until a key
exists. Flagged as OPEN with named candidates rather than fixed: adding a
capability changes the coverage denominator and is a human call.

Recorded in the same note: decision-model rule creation has no key of its own
and has always been folded under the judge key (the pre-existing
online-evaluation-jev-decision-model.spec.ts does it too), even though
`automations.ts` keys `decision_model` separately from `llm_as_judge`.

No capability invented, no derived field touched. tag_lint, tsc and
playwright --list all pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] specs for the 2.2.130 release pass's staging candidates

tests_end_to_end/e2e/tests/optimization-studio/optimization-runs-paging-aggregates.spec.ts — every run's num_trials and total_optimization_cost are identical at page size 1, 2 and 100 and against the by-id read, and each row's Optimization cost cell renders that same amount
tests_end_to_end/e2e/tests/optimization-studio/studio-model-parameter-allowlist.spec.ts — the Studio new-run form's model parameters are all inside StudioModelParameters.ALLOWED, the captured payload is accepted on POST and PUT, and a refused key / a custom_parameters destination key 400 by name on both
tests_end_to_end/e2e/tests/ai-providers/provider-custom-headers-dialog.spec.ts — the provider dialog's four custom-header rules on Add and Edit, the stored map they produce, and the server's own rules on create and update
tests_end_to_end/e2e/fixtures/paged-optimization-runs.fixture.ts — six runs with distinct trial counts, each trial priced at exactly $6.00
tests_end_to_end/e2e/fixtures/studio-allowlist-runs.fixture.ts — registerOptimizationCleanup, for runs a test causes rather than seeds
tests_end_to_end/e2e/core/backend/client.ts — listOptimizationsPage (one page with its envelope) and writeOptimizationRaw (POST/PUT with the status and message kept)
tests_end_to_end/e2e/core/provider-keys.ts — the provider key's stored `headers` map, on the read and on both write paths
tests_end_to_end/e2e/pom/configuration.page.ts — the dialog's custom-header rows, their field errors and the two submit buttons
tests_end_to_end/e2e/pom/optimization-studio.page.ts — selectModelByName, setModelParameter, setExtraBodyParameters, dismissModelParameters

`coverage/pending/` held nothing for this release, and all three capability keys
already existed in taxonomy.yaml, so no taxonomy change was needed.

QA-Source-PR: #9252
QA-Source-PR: #9245
QA-Source-PR: #9255

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] settle specs on staging for 2.2.130

openrouter-repriced-rows.spec.ts failed both tests on staging 2.2.130: the
`openrouter/qwen/qwen3.8-27b` row was re-priced again after 2.2.120, from
$0.20/M + $2.50/M to $0.039/M + $1.25/M, so the server billed the seeded
1M+1M span $1.289 where the fixture expected $2.70. Confirmed against
apps/opik-backend/src/main/resources/model_prices_openrouter.json in this
checkout, which carries the same rates staging served — a generated-artifact
drift, not a product defect.

tests_end_to_end/e2e/fixtures/openrouter-repriced-spans.fixture.ts — qwen's
expected cost moved to $1.289, and the header now says outright that these
amounts track a generated file, which row to read before calling a changed
amount a finding, and that the three rendered strings are $1.28/$0.27/$0.75.
tests_end_to_end/e2e/tests/trace-explore/openrouter-repriced-rows.spec.ts —
the trace-total comment's illustrative sums follow ($2.314 vs $2.614).

The other 25 specs the branch adds, and the 3 new ones, passed unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] review: give the Playground logs sidebar poll a failure message

`playground-logs-run-sources.spec.ts` polled the sidebar's row ids to a
30s bound but passed no `message:`, so a timeout reported only the set
diff with nothing to say whether the sidebar had listed the wrong rows
or simply not mounted them yet. The estate's other polls in this PR all
carry one; this was the only exception.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* [QA] specs for the 2.2.131 release pass's staging candidates

tests_end_to_end/e2e/tests/trace-explore/span-cache-write-ttl-tier.spec.ts —
  its above-tier test asserted the correct tiered 1-hour cache-write amounts
  and was test.fail()'d for a defect 9068 fixed, over a fixture model that had
  since lost its 200K tier and so discriminated nothing. Re-points the fixture
  at claude-sonnet-4-5-20250929-v1:0 / bedrock, which still publishes the whole
  matrix, and drops test.fail(): $1.9725 (5m) against $2.4225 (1h) above the
  tier, and $2.42 / $1.97 in the panel.
tests_end_to_end/e2e/tests/trace-explore/claude-code-otel-cache-write-rate.spec.ts —
  a Claude Code OTel span reporting cache-creation tokens and no TTL bills its
  writes at the 5-minute rate ($0.0043095, not $0.004422), with an explicit
  ephemeral_1h sibling as the control; plus the ingestion mapping the amount
  rests on — the hard-set anthropic provider, the short usage names normalised,
  session.id as thread_id, and an unmapped attribute kept out of input.
tests_end_to_end/e2e/tests/trace-explore/image-model-token-price-collision.spec.ts —
  gpt-image-1.5 and gpt-image-1 are billed from their own token rates ($1.25 /
  $0.75) rather than zeroed by the per-image rows that share their runtime
  price key, at the API and in the trace panel's Cost chip.
tests_end_to_end/e2e/tests/optimization-studio/studio-responses-only-effort-withheld.spec.ts —
  the Studio new-run form never offers the Responses-API-only Max even on a key
  pinned to responses_api, while the Playground on that same key does; and an
  xHigh picked on the form survives a switch to another OpenAI model that
  offers it.

QA-Source-PR: #9068
QA-Source-PR: #9236

* [QA] review: unbreak two existing specs this release's changes made red, and name what long polls wait for

Both pre-existing failures the PR body already recor…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend documentation Improvements or additions to documentation Frontend Infrastructure java Pull requests that update Java code python Pull requests that update Python code 🔴 size/XL tests Including test files, or tests related like configuration. typescript *.ts *.tsx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants