Skip to content

evalkit 0.4.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 08:32
4e5a133

Released 2026-11-07. Single sign-on through any OIDC identity provider,
judge-using evaluators scored on the server, packages that extend evalkit,
and an Apache-2.0 licence (was AGPL-3.0).

Before you upgrade

  • CLI: Run evalkit update --server <url> once the server is on 0.4.0;
    a 0.3 CLI refuses every other command against it.
  • Server: Stop the old server, then run evalkit db upgrade before
    starting the new one. One migration fails if the default judge's base URL
    matches no LLM provider: register one or clear the default judge first.
  • Server: Each server now opens up to 30 database connections
    (db.pool_size 20 plus db.max_overflow 10). Keep that times your
    replicas well under Postgres max_connections, or lower them in
    config.yaml.
  • Server: The server config no longer takes mcp.oauth; a config that
    has it fails to load. Configure auth.oidc instead.
  • Server: Trace sources are checked against private addresses like LLM
    providers. Without allow_private_endpoints: true, a source on a private
    address stops importing until an admin points it at a public one.
  • Server: A proxy in front of the server must let
    POST /api/experiment-runs/<id>/server-evaluations/<name> run for
    minutes; the CLI and SDK wait up to 900 s
    (EVALKIT_SERVER_EVALUATOR_TIMEOUT).
  • Server: A harness that declares run_listing names the tenant
    org_id instead of client_id, in the GET /runs filter and on each
    run. The run browser's filter and the MCP find_runs tool say org_id
    too.
  • Evaluators: The default judge is set by provider name: GET, PUT
    and PATCH /api/judge-default use provider, and a base_url judge is
    refused there and on server runs.
  • Evaluators: evalkit judge-default set --concurrency is gone and
    Judge(concurrency=...) is ignored; set evaluation_concurrency instead.
  • SDK: evalkit.yaml no longer takes credentials.llm_providers (or
    credentials.judges); a file that has it fails to load. Pass the judge key
    with --judge-api-key-env or Judge(api_key=...).
  • SDK: "Split" is "tag" everywhere: run_experiment(split="x") is
    run_experiment(tags=["x"]), the API's selection takes tags (a request
    with tag is refused), and GET /api/datasets/{ref}/splits is
    GET /api/datasets/{ref}/tags.
  • SDK: Code that embeds evalkit.sdk installs httpx2 instead of
    httpx, and SyncApi and AsyncApi take an httpx2.Auth
    (evalkit.client.oidc.static_auth(token) wraps a token).
  • CLI: evalkit run finance/<name> no longer falls back to a tag when
    <name> is not a folder or file of the dataset: pass --tag <name>.
  • CLI: evalkit traces mapping push --activate is gone, and so is the
    activate query parameter on PUT /api/agents/{agent}/mappings/draft:
    push the draft, then run evalkit traces mapping activate <agent> <version>.
  • CLI: A case file with cases: or overlays: refuses any other
    top-level key besides defaults, where it used to ignore it (a typo such
    as defualts: dropped your defaults silently), and both must be lists.
  • Tracing: tracing.register, tracing.exporter and
    tracing.processor need EVALKIT_OTEL_TOKEN (an agent token); they no
    longer fall back to a login token.
  • Tracing: Sibling agents that hand over without a tool call (CrewAI
    sequential tasks, say) now make one trajectory; list them in the mapping's
    subagent_spans to keep them apart.
  • Packaging: Only releases are published to PyPI; get a develop build
    (X.Y.Z.devN) from the workflow artifact or the GHCR image.
  • Extending evalkit: create_app no longer takes mcp_jwt_verifier;
    /mcp verifies tokens with the auth.oidc settings.

Features

  • Sign-in: Single sign-on through any OIDC identity provider that
    issues JWT access tokens (auth.oidc): the web UI offers "Continue with
    ", evalkit login opens the browser (or uses the device flow
    with --no-browser), and the first sign-in creates the user.
    auth.password_login (admin or all) decides who may still use a
    password.
  • Sign-in: CI signs in as a machine client with EVALKIT_OIDC_CLIENT_ID
    and EVALKIT_OIDC_CLIENT_SECRET; an admin adds it with
    evalkit users add <name> --subject <sub>, and evalkit users bind links
    an existing user to an identity.
  • Sign-in: auth.oidc.admin_claim lets the identity provider grant and
    revoke evalkit admin at each sign-in, and auth.oidc.required_scopes
    refuses access tokens that lack a scope.
  • Evaluators: Local and SDK runs score the judge-using built-ins
    (answer_rubrics, presentation_judge, trajectory_rubrics) on the
    server with its LLM provider, so they need no judge key; each score
    records where it ran. To bring your own judge, pass --judge-base-url and
    --judge-api-key-env, or Judge(base_url=..., api_key=...).
  • Extending evalkit: Another package can serve evalkit with API routes
    of its own (app.include_router() after create_app, behind sign-in with
    SIGNED_IN) and UI pages of its own (ui/src/extensions/), and can split
    the data by organisation with create_app(resolve_tenant=...), an async
    function that returns the tenant id or None to refuse the request. See
    "Extending evalkit" in AGENTS.md.
  • CLI: evalkit run --tag takes several tags and runs the cases
    carrying any of them; the run dialog's Tags is a multi-select, and an
    experiment's case table filters by tag.
  • CLI: evalkit traces mapping activate <agent> <version> makes a
    pushed draft live, or rolls back to an older version.
  • CLI: New commands evalkit experiments list and
    evalkit datasets show <dataset>: the first filters by --agent,
    --dataset and --limit; the second prints a dataset's last sync, case
    counts per review state and tags.
  • Review: evalkit review approve takes several cases or
    --all-waiting, evalkit review queue finance@dev lists one dataset's
    cases, and evalkit review resolve <comment-id> needs only the comment id.
  • Web UI: Datasets in a personal workspace have Run experiment too; set
    the options and copy the evalkit run command it builds.
  • SDK: A code-driven agent can set its own input schema with
    evalkit agents create|edit <name> --input-schema schema.json.
  • Docs: New pages: Framework mappings (a ready-to-use span mapping for
    ten agent frameworks), Server config (every key and its default), Case
    schema, and CI sync (lint cases on PRs, sync on merge). Docs pages in the
    web UI need no sign-in.

Improvements

  • CLI: evalkit summary <id> --baseline <id> shows the change in every
    bucket, evaluator and gauge, and lists improved, regressed, new and
    removed cases. Its failing cases include any case where one evaluator
    scored below 0.80.
  • Tracing: Trajectories built from OTel spans fit more agent shapes:
    subagents only where a tool started them, a user step for every message in
    a chat, and mapping rules rekind_spans, main_agent and
    subagent_spans. evalkit traces check and the SDK dry run warn when a
    trajectory looks wrong: no answer span, LLM spans that lost attributes,
    tool spans without tool calls, messages with an unknown role.
  • Evaluators: Scoring runs at most 16 runs at once; change it with
    --evaluation-concurrency on evalkit run and evalkit evaluate, in the
    SDK, or in the run dialog. Server runs take runner.evaluation_concurrency
    from the server config.
  • CLI: evalkit lint errors name the file, the case and the valid keys,
    say where a misplaced evaluator belongs, and cover every broken case in a
    file. evalkit lint --offline reports them as findings instead of a
    traceback.
  • Review: The review queue names the author a case went back to,
    evalkit sync says edited cases are back in review, review request
    skips cases already waiting on that reviewer, and a promoted case's
    changelog includes its history from the source workspace.
  • CLI: evalkit datasets list and evalkit review queue take
    --workspace, and evalkit workspaces list shows promotion links.
  • CLI: evalkit init-server --port sets the server's port, and
    evalkit serve defaults to the port in server.base_url.
  • Packaging: evalkit runs on Python 3.12 as well as 3.13.
  • Server: A page path returns the web UI only to a browser
    (Accept: text/html); other clients get 404.
  • Docs: The docs site root serves the latest release's pages directly,
    and the Install page covers running the CLI inside a uv project and
    installing the skills.

Fixes

  • Evaluators: Fixed scoring an experiment of more than about 40 runs
    failing with 500s: each scoring request uses one database connection, and
    a server out of connections answers 503 with Retry-After, which the CLI
    and SDK retry.
  • Evaluators: Fixed a re-score treating an evaluator that errored after
    an earlier success as done; it retries it.
  • Evaluators: Fixed an evaluator that raised an exception without a
    message recording an empty error; it records the exception type, such as
    ReadTimeout.
  • Tracing: Fixed Google ADK, Gemini and LangChain-style traces losing
    the model's messages and tool calls (roles such as model, ai and
    human), which made tool evaluators score 0.
  • Tracing: Fixed an agent behind FastAPI or another instrumented HTTP
    server losing its spans when the server's request span is the trace root,
    once the session id is on the agent's own turn span.
  • CLI: Fixed evalkit runs pull failing the whole batch with a 500 when
    one run's trajectory is missing from the blob store; that run gets a
    pull_error and the others are pulled. Every run.json has a
    started_at field, null when the harness gives no creation time.
  • CLI: Fixed evalkit lint --agent failing with an AssertionError on a
    code-driven agent.
  • Server: Fixed a malformed URL in an agent, evaluator, LLM provider or
    trace source answering a server error instead of 400 when
    allow_private_endpoints is off.
  • Server: Fixed an MCP client probing /.well-known/ on a server
    without SSO getting the web UI's page.