Repository navigation
Description
Update 2026-11-26 (infra move): the cluster files of this trial are now in dan-petty/homelab.
- Read
k8s/llm/gateway/,k8s/llm/profiles/ollama-profiles.yamlandk8s/monitoring/dcgm-exporter-values.yamlin a homelab checkout. - The trial still adds no code, uses a temporary namespace and records its results on feat(ai): track embedding and reranking serving for retrieval #4961.
Problem or Motivation
The embedding serving study (#4961) measured quality for the current embedder and one cross-encoder only. A workstation CPU embeds 0.014 to 0.069 chunks per second and scores about 0.02 rerank pairs per second, so these candidates have no project score:
- the embedders
microsoft/harrier-oss-v1-0.6b(MIT),Alibaba-NLP/gte-modernbert-base(Apache-2.0) andBAAI/bge-m3dense (MIT); - the smaller reranker
Alibaba-NLP/gte-reranker-modernbert-base(Apache-2.0).
The cluster trial of 2026-11-11 measured TEI 1.9.4 alone on one RTX 3090: rerank of 50 at p50 220 ms and p95 245 ms, Qwen3-Embedding-0.6B up to 40,971 tokens/s, and a VRAM peak of 1.9 to 2.3 GiB. It did not measure:
- TEI while the 48 GiB chat tier generates on the same GPU (the 7-day headroom is 5,270 MiB);
- a call through the live LiteLLM gateway (the provider shapes come from the LiteLLM source and a direct TEI call);
- bulk and single-query embeddings at the same time;
- the agreement of TEI float16 rerank scores with the float32 scores of the study;
- llama.cpp
llama-server(MIT), the only candidate with a rerank endpoint that runs on the Pascal embed GPUs (cc 6.1). A FLOP estimate gives about 1 s for each rerank of 50 on a P6000, over the 0.5 s budget.
The gain of the cross-encoder over the fused order is not larger than the noise over all 62 queries (+0.053 [-0.007, +0.119], p 0.10). It is larger on the 42 natural-language queries (+0.105 [+0.027, +0.192], p 0.017). The rerank route (child 5) and the retriever rerank (child 7) are worth their GPU only if this holds with the scores that TEI serves.
In a later run of the study, the auto mode check refused to make temporary cluster resources. The owner authorized live testing on the cluster on 2026-11-11, but this trial needs the owner's explicit approval on this issue first.
Proposed Solution & Architectural Design
After the owner approves on this issue, repeat the trial pattern of 2026-11-11: a temporary namespace with the restricted Pod Security level, TEI 1.9.4 by digest, models by revision, a VRAM watchdog, and deletion of the namespace at the end. Use the eval set and the scorer of #3902.
- Embed the eval corpus with each candidate embedder (about 2 minutes each), and score each against B2 for each kind.
- Rerank the B2f top 50 with
gte-reranker-modernbert-baseand withbge-reranker-v2-m3in float16. Compare the float16 scores with the float32 baseline scores on the 4,686 pairs, and set the truncation length (the baseline used 512 tokens). - Run the stop test: B2 (TEI float16) minus B2f, nDCG@10 on the natural-language queries.
- Measure rerank-of-50 latency and the VRAM of both tenants while the chat tier generates.
- Measure llama.cpp
llama-server --rerankingon one P6000 with 50 and 25 candidates and with both rerankers (GGUF of the same revision). It is the only option that adds no tenant to the GPU of the chat tier. - Send one rerank call (
huggingface/provider) and one embedding call (openai/provider) through the live gateway, from a temporary model entry that the trial removes at the end. - Run a bulk embed of the eval corpus with TEI Qwen3 (batch 32, 4 in flight) and measure single-query latency at the same time.
Write the results as a comment on #4961, with the run files and the paired comparisons.
Target Subsystem
Kubernetes (k8s/llm of dan-petty/homelab, a temporary namespace only), the LiteLLM gateway, the eval scorer of #3902.
Existing Tool Considered
Hugging Face Text Embeddings Inference 1.9.4 (Apache-2.0), llama.cpp llama-server (MIT), the LiteLLM gateway, DCGM metrics, and the scorer of #3902. No code is added to the CLI. Estimated cost: about 0.25M tokens and 4 hours of agent time, and about 1 hour of GPU time.
Acceptance criteria
- The owner's approval is on this issue before the first cluster object.
- Run files and paired comparisons against B2, for each kind, exist for 3 embedders and 2 rerankers.
- The stop test is recorded: B2 (TEI float16) minus B2f, nDCG@10 on the natural-language queries, larger than 0 with p < 0.05, and exact_identifier not lower by more than its bootstrap interval. If it fails, children 5 and 7 of feat(ai): track embedding and reranking serving for retrieval #4961 stop and return to New with the evidence.
- Rerank of 50 has p95 <= 500 ms while the chat tier generates, and the chat tier has no OOM and no restart for 1 hour (DCGM, kubectl).
- The llama.cpp rerank latency on a P6000 is recorded, with the reason to use it or not.
- TEI Qwen3 single-query p95 <= 250 ms during a bulk embed of the eval corpus.
- One gateway
/v1/rerankcall and one/v1/embeddingscall return 200 with the expected shape. kubectl get namespace <trial-namespace>returns NotFound at the end.
Dependencies
#3902 (the eval set and the scorer). Owner step: approval on this issue.
Source: #4961
Alternatives check of 2026-11-26: not-applicable.
Class: test, no model call.
Tool: none found.
Proposed design
Problem statement
The embedding serving study #4961 measured quality for the current embedder and one cross-encoder only. Three candidate embedders (microsoft/harrier-oss-v1-0.6b, Alibaba-NLP/gte-modernbert-base and BAAI/bge-m3 dense) and the smaller reranker Alibaba-NLP/gte-reranker-modernbert-base have no project score, because a workstation CPU is too slow for them. The cluster trial of 2026-11-11 measured TEI 1.9.4 alone on one RTX 3090 and left gaps: load beside the 48 GiB chat tier, a provider-shaped gateway call, bulk and single-query load at the same time, float16 agreement with the float32 scores, and llama.cpp on a Pascal P6000. This trial fills the gaps in one temporary namespace, writes the results as a comment on #4961, and decides whether the rerank route (child 5) and the retriever rerank (child 7) keep their GPU. ADR 0038 Decision 1 and the owner's 2026-11-11 authorization on #4961 permit agents to exercise workloads in the lab cluster, so the trial needs no new approval; it records that authority before the first cluster object.
Acceptance criteria
Requirement: Authority for live cluster testing
The trial SHALL record ADR 0038 Decision 1 and the owner's 2026-11-11 authorization on #4961 in its opening comment on #4968 before it creates the first cluster object.
Scenario: Authority is recorded before the first object
- WHEN
gh issue view 4968 --commentsshows the trial's opening comment and the trial log holds the timestamp of the firstkubectlcommand that creates a cluster object - THEN The comment names ADR 0038 Decision 1 and the owner's 2026-11-11 authorization on feat(ai): track embedding and reranking serving for retrieval #4961, and the first creating command's timestamp is later than the comment's timestamp.
Requirement: Trial namespace is temporary and restricted
The trial SHALL create one temporary namespace named trial-<name> with the labels app.kubernetes.io/managed-by: devops-cli and pod-security.kubernetes.io/enforce: restricted, pin TEI 1.9.4 by digest, pin each model by revision, and run a VRAM watchdog.
Scenario: Namespace, images and models are pinned
- WHEN
kubectl get namespace <trial-namespace> -o jsonandkubectl get pods -n <trial-namespace> -o jsonread the trial - THEN The namespace name starts with
trial-, itsapp.kubernetes.io/managed-bylabel isdevops-cli, itspod-security.kubernetes.io/enforcelabel isrestricted, each TEI image is pinned by digest, each model argument names a revision, and the watchdog container is running.
Requirement: Trial starts only when idle
The trial SHALL start only when no runner Job and no rollout runs.
Scenario: Idle window is recorded
- WHEN The trial log holds
kubectl get jobs -A -o wideandkubectl get deployments -n llm -o widetaken before the first trial object - THEN No Job is running and each Deployment in
llmshows its desired ready count.
Requirement: Live gateway is unchanged
The trial SHALL make no change to the live gateway Deployment or its ConfigMaps and SHALL not restart the live gateway.
Scenario: Live gateway is unchanged
- WHEN The trial log records
kubectl -n llm get deployment/llm-gateway -o json,kubectl -n llm get configmaps -o jsonand thellm-gatewaypod's UID andrestartCountbefore the first object and after the namespace is deleted - THEN The Deployment generation, each ConfigMap resourceVersion, the pod UID and the pod's restartCount are the same before and after.
Requirement: Temporary LiteLLM pod
The trial SHALL run the gateway calls in a temporary LiteLLM pod in the trial namespace with the image digest of the running live gateway pod, a config that holds only the two trial model entries, and no Secret.
Scenario: Temporary gateway pod is isolated
- WHEN
kubectl get pod <trial-gateway-pod> -n <trial-namespace> -o jsonreads the pod andcurlreads the model list of that pod - THEN The pod image equals the
imageIDdigest of the running live gateway pod, the model list holds only the two trial model entries, no Secret volume is mounted and nosecretKeyRefis set.
Requirement: Gateway calls return the expected shape
The trial SHALL send one /v1/rerank call and one /v1/embeddings call through the temporary LiteLLM pod and receive status 200 with the expected shape.
Scenario: Both gateway calls succeed
- WHEN
curlsends one/v1/rerankcall and one/v1/embeddingscall to the temporary LiteLLM pod in the trial namespace - THEN Each call returns 200 and a body with the scores or the embeddings of the expected shape.
Requirement: Run file for each candidate
The trial SHALL record one run file for each of the 3 embedders (microsoft/harrier-oss-v1-0.6b, Alibaba-NLP/gte-modernbert-base and BAAI/bge-m3 dense) and the 2 rerankers (Alibaba-NLP/gte-reranker-modernbert-base and BAAI/bge-reranker-v2-m3), with a paired comparison against B2 for each kind and, for each embedder, the #3902 gold-set hit rate at k=5 and stale share.
Scenario: Five run files exist
- WHEN
gh issue view 4961 --commentsreads the results comment of the trial - THEN It links 5 run files and each file holds the per-query score, the paired comparison against B2 for each kind, and, for each embedder, the test(ai): a gold set measures retrieval of knowledge base facts #3902 gold-set hit rate at k=5 and stale share.
Requirement: Float16 rerank at the baseline length
The trial SHALL rerank the B2f top 50 with BAAI/bge-reranker-v2-m3 and Alibaba-NLP/gte-reranker-modernbert-base in float32 and float16 at 512 tokens, the length of the #4961 baseline, and SHALL record, for each reranker, the Spearman rho and the mean absolute delta between its float16 and float32 scores on the 4,686 pairs.
Scenario: Float16 agreement is recorded
- WHEN The trial scores the 4,686 B2f pairs with both rerankers in float32 and float16 at 512 tokens, and the operator reads
gh issue view 4961 --comments - THEN The results comment shows max_length 512, the Spearman rho and the mean absolute delta for each reranker.
Requirement: Stop test recorded
The trial SHALL record B2 with TEI float16 minus B2f on nDCG@10 for the 42 natural-language queries with a 95% bootstrap interval (10,000 samples, seed 13), a paired sign-flip p value (20,000 samples), the exact_identifier delta with its interval, and the verdict that passes only when the delta is larger than 0, its p value is below 0.05 and the exact_identifier delta is not below the lower bound of its interval.
Scenario: Stop test is recorded
- WHEN The trial scores B2 with TEI float16 at max_length 512 and B2f on the 42 natural-language queries, and the operator reads
gh issue view 4961 --comments - THEN The results comment shows the nDCG
@10delta, its 95% bootstrap interval, its paired sign-flip p value, the exact_identifier delta with its interval, and the pass or fail verdict.
Requirement: Stop test stops children 5 and 7
The trial SHALL return children 5 and 7 of #4961 to New with the evidence when the stop test fails.
Scenario: Stop test fails
- WHEN The nDCG
@10delta is not larger than 0, or its p value is not below 0.05, or the exact_identifier delta is below the lower bound of its bootstrap interval - THEN
gh issue viewon each child issue that feat(ai): track embedding and reranking serving for retrieval #4961 lists as child 5 and child 7 shows it open with the New status and a comment with the stop test evidence.
Requirement: Rerank latency beside the chat tier
The trial SHALL measure rerank of 50 at p95 at or below 500 ms and record the VRAM peak of TEI and of the chat tier while the 48 GiB chat tier generates on the same RTX 3090, for at most 2 hours.
Scenario: Chat tier holds for one hour
- WHEN The trial reranks 50 candidates for one hour while
qwen3.8:27bonollama-48gib-fastgenerates on the same RTX 3090, and reads DCGM andkubectl get pods -n llm - THEN The p95 is at or below 500 ms, the results comment on feat(ai): track embedding and reranking serving for retrieval #4961 records the VRAM peak of both tenants, and DCGM and
kubectl get podsshow no OOM and no restart of the chat tier.
Requirement: VRAM watchdog stops TEI
The trial SHALL stop TEI at once when the free VRAM of the GPU falls below 1 GiB, or when the chat tier gets an OOM or a restart, and SHALL keep TEI beside the chat tier for at most 2 hours.
Scenario: Watchdog protects the chat tier
- WHEN The watchdog samples free VRAM during step 4 and the operator reads
kubectl logs <watchdog-pod> -n <trial-namespace>and the TEI start and stop times - THEN The log shows a TEI stop at the first sample below 1 GiB if one occurs, a TEI stop on the first chat-tier OOM or restart if one occurs, and the TEI interval beside the chat tier is at or below 2 hours.
Requirement: llama.cpp rerank on a P6000
The trial SHALL record the llama.cpp llama-server --reranking latency on one P6000 for 50 and for 25 candidates, with Alibaba-NLP/gte-reranker-modernbert-base and BAAI/bge-reranker-v2-m3 in GGUF at the same revision.
Scenario: P6000 latency is recorded
- WHEN The P6000 run ends for both candidate counts and both rerankers, and the operator reads
gh issue view 4961 --comments - THEN The results comment shows each latency and the reason to use llama.cpp or not.
Requirement: Single-query latency during a bulk embed
The trial SHALL measure TEI Qwen/Qwen3-Embedding-0.6B single-query p95 at or below 250 ms during a bulk embed of the eval corpus at batch 32 with 4 requests in flight.
Scenario: Bulk embed runs with single queries
- WHEN The bulk embed of the eval corpus runs at batch 32 with 4 requests in flight, and the operator reads
gh issue view 4961 --comments - THEN The results comment shows the single-query p95 at or below 250 ms.
Requirement: Trial namespace removed
The trial SHALL delete its temporary namespace at the end, record each object that it made and removed, and leave no object of the trial in the cluster.
Scenario: Namespace is gone
- WHEN The trial ends, the operator runs
kubectl get namespace <trial-namespace>and reads the object record - THEN The command returns NotFound and the record lists each object that the trial made and removed.
Existing Tool Considered
The alternatives check of 2026-11-26 in the issue body returned not-applicable for a test item and names no tool, so the trial composes open, maintained tools and adds no code. Hugging Face Text Embeddings Inference (TEI) 1.9.4 (Apache-2.0), the version the issue body pins, covers the float16 embeddings and rerank on the Ampere RTX 3090; it lacks a build for the Pascal GPUs (cc 6.1) and a measured rerank latency beside the 48 GiB chat tier. llama.cpp llama-server (MIT) covers the Pascal P6000 rerank; it lacks a measured rerank latency under the 0.5 s budget. The LiteLLM gateway covers the provider-shaped /v1/rerank and /v1/embeddings calls; its config is the environment file llm/gateway/config.yaml of the homelab checkout (k8s/README.md:7). DCGM metrics (k8s/README.md:15) cover the VRAM peak and the OOM evidence. The #3902 gold-set scorer (src/devops_cli/ai/benchmark/gold_set_scorer.py:223) covers the hit rate at k=5 and the stale share; it lacks the nDCG@10 delta. The trial adds no CLI code, so the cost to build and keep code is zero tokens and zero hours; the trial costs about 0.25M tokens and 4 hours of agent time, and about 1 hour of GPU time.
Key questions
- Does the trial wait for a new owner approval on test(k8s): trial TEI quality and load on a cluster GPU #4968 before it creates a cluster object?: No. ADR 0038 Decision 1 (2026-10-03) records that agents apply manifests, restart workloads and exercise workloads in the lab cluster, and its limit keeps only secrets and hardware with the owner;
k8s/README.md:294repeats it. feat(ai): track embedding and reranking serving for retrieval #4961 records the owner's authorization of 2026-11-11, 'I authorize use of my homelab cluster for live testing and verification' (fetched 2026-11-26). This trial creates one temporary namespace, mounts no Secret and changes no hardware, so it runs under that authority and records it in its opening comment on test(k8s): trial TEI quality and load on a cluster GPU #4968. No new approval gate is needed. (best practice) [sources: docs/adr/0038-owner-decisions-on-what-agents-may-do.md:34, docs/adr/0038-owner-decisions-on-what-agents-may-do.md:35, k8s/README.md:294, AGENTS.md:21, https://github.com/feat(ai): track embedding and reranking serving for retrieval #4961]- Chosen: Run under ADR 0038 Decision 1 and the 2026-11-11 authorization. The project records the agent authority for the lab cluster, and the owner already authorized live testing and verification on feat(ai): track embedding and reranking serving for retrieval #4961; the trial adds no Secret and no hardware change.
- Rejected: Wait for a new owner approval comment on test(k8s): trial TEI quality and load on a cluster GPU #4968. No recorded decision asks for a new approval, and a gate would stall a trial that the standing authority already covers.
- Rejected: Ask the owner again on test(k8s): trial TEI quality and load on a cluster GPU #4968. It repeats an authorization that the owner gave on 2026-11-11 and that ADR 0038 Decision 1 already grants.
- Which truncation length does the float16 rerank use?: 512 tokens, the max_length of the float32 baseline that feat(ai): track embedding and reranking serving for retrieval #4961 records: 'The cross-encoder is bge-reranker-v2-m3 in float32 with max_length 512' (fetched 2026-11-26). Both score sets then cover the same pairs. (best practice) [sources: https://github.com/feat(ai): track embedding and reranking serving for retrieval #4961]
- Chosen: 512 tokens. It is the max_length of the float32 baseline in feat(ai): track embedding and reranking serving for retrieval #4961, so the float16 and float32 scores cover the same pairs.
- Rejected: 128 tokens. It cuts the long pairs and changes the score set, so the comparison with the baseline fails.
- Rejected: 8192 tokens. It costs more VRAM and time, and the baseline holds no score at that length to compare.
- Does the trial gate on the agreement of the float16 and float32 rerank scores?: No. The trial records the Spearman rho and the mean absolute delta for each reranker and sets no pass threshold. feat(ai): track embedding and reranking serving for retrieval #4961 decides on the paired nDCG
@10contrast with a 95% bootstrap interval (10,000 samples, seed 13) and a paired sign-flip p value (20,000 samples), not on a score-agreement proxy (fetched 2026-11-26). (best practice) [sources: https://github.com/feat(ai): track embedding and reranking serving for retrieval #4961, docs/adr/0038-owner-decisions-on-what-agents-may-do.md:40]- Chosen: Record the agreement and gate on the stop test. A gate on the agreement would stop the route on a proxy that the study does not use. The study decides on nDCG
@10with a bootstrap interval and a p value. - Rejected: Gate on rho at or above 0.99. No project decision sets that threshold, and a tight gate would stop the route on a rounding effect.
- Rejected: Gate on a mean absolute delta at or below 0.01. The scale of the float16 scores differs from float32. A fixed delta threshold has no baseline and would refuse a reranker that ranks the same.
- Chosen: Record the agreement and gate on the stop test. A gate on the agreement would stop the route on a proxy that the study does not use. The study decides on nDCG
- Which eval set and scorer does the trial use for the stop test and for the test(ai): a gold set measures retrieval of knowledge base facts #3902 check?: The stop test uses the study's 62-query eval set and its paired comparison, because B2 and B2f are scored on that set: 24 issue_fix, 18 census_question and 20 exact_identifier queries, 119 relevant files, 16,737 chunks at commit 9208717, with nDCG
@10, a 95% bootstrap interval (10,000 samples, seed 13) and a paired sign-flip p value (20,000 samples). test(ai): a gold set measures retrieval of knowledge base facts #3902 adds a 12-entry knowledge base gold set and a scorer that reports the hit rate at k=5 and the stale share, so it cannot produce the nDCG@10delta; the trial runs it as a secondary check of each candidate embedder. (best practice) [sources: https://github.com/feat(ai): track embedding and reranking serving for retrieval #4961, src/devops_cli/ai/benchmark/gold_set_scorer.py:223, docs/TESTING.md:136, tests/fixtures/kb_gold_set/gold_set.json, openspec/changes/archive/2026-11-17-3902-a-gold-set-measures-retrieval-of/proposal.md:11]- Chosen: Study eval set for the stop test, test(ai): a gold set measures retrieval of knowledge base facts #3902 gold set as a secondary check. B2 and B2f are scored on the study's 62 queries, so only that set gives the stop test a baseline. The gold set adds the knowledge base hit rate at k=5.
- Rejected: Study eval set only. It drops the issue's test(ai): a gold set measures retrieval of knowledge base facts #3902 check and leaves the delivered scorer unused.
- Rejected: test(ai): a gold set measures retrieval of knowledge base facts #3902 gold set only. It has no B2 baseline and reports hit rate at k=5, not the nDCG
@10delta that the stop test needs.
- Which load measurement does the trial run: TEI beside the chat tier, or llama.cpp on a P6000?: Both. TEI answers whether the shared Ampere RTX 3090 keeps the 48 GiB chat tier safe while it serves float16 embeddings and rerank; feat(ai): track embedding and reranking serving for retrieval #4961 makes that condition the gate for moving embeddings to TEI (fetched 2026-11-26). llama.cpp is the Pascal fallback: the two embed instances run one on each GPU of a Pascal node (
src/devops_cli/ai/knowledge_base/it_domains/tools/ollama.md:108,openspec/changes/archive/2026-11-04-3501-gpu-thresholds/proposal.md:9), and the P6000 latency decides whether that fallback exists. (best practice) [sources: https://github.com/feat(ai): track embedding and reranking serving for retrieval #4961, src/devops_cli/ai/knowledge_base/it_domains/tools/ollama.md:108, openspec/changes/archive/2026-11-04-3501-gpu-thresholds/proposal.md:9, src/devops_cli/k8s/gpu_matrix.json:322]- Chosen: Measure both. Each answers a different question: TEI for the shared Ampere GPU beside the chat tier, llama.cpp for a fallback on the Pascal GPUs.
- Rejected: TEI only. It leaves the Pascal embed GPUs with no rerank option and no measured reason.
- Rejected: llama.cpp only. It leaves the rerank route (child 5) with no latency measurement beside the chat tier.
- How does the trial make the provider-shaped gateway calls without touching the live gateway?: The trial reads the image digest from the
imageIDof the running live gateway pod and runs a LiteLLM pod in the trial namespace. Its config holds only thehuggingface/rerank entry and theopenai/embedding entry, both pointed at the trial TEI Service; the pod sets a literal master key in its env, mounts no Secret and sets nosecretKeyRef. The trial sends the/v1/rerankand/v1/embeddingscalls to that pod and deletes it with the namespace. The live gateway Deployment and its config are neither edited nor restarted: its config is the environment filellm/gateway/config.yamlof the homelab checkout (k8s/README.md:7). (best practice) [sources: k8s/README.md:3, k8s/README.md:7, https://github.com/feat(ai): track embedding and reranking serving for retrieval #4961, src/devops_cli/argo/trial.py:52]- Chosen: Temporary LiteLLM pod in the trial namespace. The same image and only the two trial entries, with no change to the live workload or its config.
- Rejected: Edit the live ConfigMap and restart the gateway. It changes a running production workload and restarts the gateway, which risks the live service.
- Rejected: Edit the live ConfigMap without restart. An edit to the live config changes a running workload, and the trial cannot show that the entry is live without a restart.
- How does the trial protect the chat tier during step 4?: A VRAM watchdog samples free VRAM. It stops TEI at the first sample below 1 GiB and on the first chat-tier OOM or restart. TEI runs beside the chat tier for at most 2 hours, and the 1-hour soak is inside that window. The trial starts only when no runner Job and no rollout runs. The chat tier is
qwen3.8:27bonollama-48gib-fast, the Ampere 48 GiB tier (src/devops_cli/k8s/gpu_matrix.json:365-373); feat(ai): track embedding and reranking serving for retrieval #4961 makes the shared Ampere GPU keeping the chat tier safe the condition for moving embeddings to TEI (fetched 2026-11-26). (best practice) [sources: https://github.com/feat(ai): track embedding and reranking serving for retrieval #4961, src/devops_cli/k8s/gpu_matrix.json:365, src/devops_cli/k8s/gpu_matrix.json:368, docs/adr/0038-owner-decisions-on-what-agents-may-do.md:34]- Chosen: Watchdog and a 2-hour cap. It stops TEI when free VRAM falls below 1 GiB or the chat tier fails, and it caps the time beside the live tier.
- Rejected: A fixed 1-hour soak without a watchdog. It does not stop TEI when free VRAM falls below 1 GiB or the chat tier fails.
- Rejected: No time cap. A long run beside the live tier increases the risk to the chat tier.
- Which namespace shape does the trial use for its temporary namespace?: The repository's trial convention: a name with the
trial-prefix (src/devops_cli/argo/trial.py:47) and the labelsapp.kubernetes.io/managed-by: devops-cliwithpod-security.kubernetes.io/enforce,warnandauditatrestricted, whichsrc/devops_cli/argo/trial.py:52-67builds andapply_trial_namespaceapplies (src/devops_cli/argo/trial.py:109-128). The trial applies that manifest withkubectland deletes the namespace at the end, becausedevops argo trial startneeds Gitea and an Argo CD Application for a branch-deployed workload. (best practice) [sources: src/devops_cli/argo/trial.py:47, src/devops_cli/argo/trial.py:52, src/devops_cli/argo/trial.py:109]- Chosen: The repository's trial namespace manifest. It already gives the
trial-prefix and the restricted enforce, warn and audit labels, so the trial follows the shape the CLI builds and tests. - Rejected: An ad-hoc name with a
trial=truelabel. No repository tool builds that shape, and the existing convention already carries a label that identifies the owner of the namespace. - Rejected:
devops argo trial start. It needs Gitea and an Argo CD Application that deploys a branch path, and the trial runs ad-hoc kubectl objects instead.
- Chosen: The repository's trial namespace manifest. It already gives the
- Does this trial depend on feat(ai): track embedding and reranking serving for retrieval #4961, feat(k8s): serve a cross-encoder rerank route on TEI #4970 or test(ai): a gold set measures retrieval of knowledge base facts #3902?: No open dependency. The trial writes its results as a comment on feat(ai): track embedding and reranking serving for retrieval #4961. feat(k8s): serve a cross-encoder rerank route on TEI #4970 is the rerank route, and it waits on this trial's stop test, not the other way round. test(ai): a gold set measures retrieval of knowledge base facts #3902's gold-set scorer is already in the tree and its change is archived. [sources: tests/roadmap/refine/test_roadmap_refine_dependencies.py:145, src/devops_cli/ai/benchmark/gold_set_scorer.py:223, openspec/changes/archive/2026-11-17-3902-a-gold-set-measures-retrieval-of/proposal.md:11, https://github.com/feat(ai): track embedding and reranking serving for retrieval #4961]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 12, 2026
Both evaluate embedding models, but #481 routes embeddings through the gateway and scores the current embedder, while this candidate trials TEI and llama.cpp on a cluster GPU with specific latency, VRAM, and float16-vs-float32 checks.devops-cli-service commentedon Nov 15, 2026
Alternatives check: not-applicable
Class: test. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 16, 2026
Owner question: Does the owner approve live testing on the cluster for this trial, before the first cluster object? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
fix(roadmap): Keep blockers that a sentence opens with other words (#…
devops-cli-service commentedon Nov 21, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 21, 2026
Answer to the owner question: yes. I approve live testing on the cluster for this trial, with these limits. This records my authorization of 2026-11-11 for live tests on this cluster.
/v1/rerankcall and one/v1/embeddingscall through the temporary LiteLLM pod return 200. feat(k8s): serve a cross-encoder rerank route on TEI #4970 proves the route on the live gateway.This approval covers only this trial. #4961 and #4970 are no dependencies of this item.
devops-cli-service commentedon Nov 21, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 26, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.