Repository navigation
feat(ai): keep every benchmark and evaluation run and share it through a run index - #567
Merged
Merged
Conversation
…h a run index Benchmarks and evaluations are repeated over the life of the tool, but only some kept results, each in its own shape, and none were shared between workstations. Each run is now one JSON record under data.runs_dir: the mechanism, run id, time, devops-cli version and commit, the setup and its fingerprint, the subject and its key, and the results. Review benchmarks, sample validations, corpus scores, gateway tunes, prompt evaluations and AI benchmarks all write one; review setups record the models, page size and each gateway pool's backends and weights. Records are mirrored to a dedicated, password-protected Valkey (k8s/llm/valkey-runs.yaml: PVC, append-only, noeviction, NodePort). `devops ai runs connect` finds it and keeps its password in the keyring; `devops ai runs reindex` rebuilds it from the data directory. Without it, runs are kept locally and the command says why. JSON output stays on stdout, with the announcement on stderr. The collector's NodePort lookup moves to k8s/node_port.py, shared by `telemetry connect` and `ai runs connect`. Closes #554
This was referenced Sep 25, 2026
Merged
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
Benchmarks and evaluations are meant to be repeated over the life of the tool, but only some kept results, each in its own shape, and nothing was shared between workstations.
corpus score,ai gateway tuneandai prompt-evalkept nothing.Run records (
ai/run_store.py)Each run is one JSON file under
data.runs_dir/<mechanism>/<run id>.json, the source of truth. It holds:-dirtywith uncommitted source changes);fingerprint;subject_key;Both digests depend on content, not key order.
review benchmarkreview samples validate(per category)review corpus scoreai gateway tuneai prompt-evalai benchmark(tasks, suite, embedding; not dry runs)Review setup is:
/model/info.Shared index
A dedicated Valkey,
k8s/llm/valkey-runs.yaml, holds the index. It is separate from the in-cluster cache, because the cache's clients (gateway, Portkey, Open WebUI) use no password. It has:valkey-runs-authSecret, created out of band;noeviction;The commands:
devops ai runs connectfinds the NodePort and copies the password from the Secret into the keyring, never printing it. It then indexes the runs already kept and savesruns.index_url.devops ai runs reindexrebuilds the index from the data directory.Without an index, runs are kept locally and the command says why. Commands writing JSON announce on stderr, so stdout stays parseable.
Also
data.runs_dir,runs.index_urlandruns.index_password(keyring).k8s/node_port.py, shared by both connect commands.Not verified in the cluster
The manifest was checked with
kubectl kustomizeonly. To deploy:kubectl -n llm create secret generic valkey-runs-auth --from-literal=password="$(openssl rand -hex 32)" kubectl apply -k k8s/llm devops ai runs connectUntil the Secret exists, the
valkey-runspod waits inCreateContainerConfigError. Nothing else is affected.Tests
tests/test_run_store.py: 12 tests covering digests, storage, the index, running without an index, reindex, connect (the password reaches the keyring and never the config or output), and the record from each mechanism.test_review_defects.pyandtest_review_sample_validation.py.result.stdout, since the run announcement goes to stderr.uv run devops ci --force: 13/13 gates pass.Closes #554