Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Description
Friction
- perf(roadmap): a settled item costs no body read or model call until its text changes, with refine judging it from the listing it already read #1539 makes a settled item cost no body read, model call or embedding until its text changes. Its refine half runs in a person's
devops roadmap refinetoday. Its intake half, caching embeddings in Valkey, has an effect only in the Service and the in-cluster jobs, which are held at 0 replicas (chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562). - perf(roadmap): a settled item costs no body read or model call until its text changes, with refine judging it from the listing it already read #1539 proposed opening the existing in-cluster
valkeyto namespacedevops. That instance runs with no password and is shared with LiteLLM and with Portkey's semantic response cache. Opening it would let every pod indevopswrite cached model replies, and every pod inllm(Open WebUI included) write the vectors that pick intake's duplicate shortlist. - perf(roadmap): a settled item costs no body read or model call until its text changes, with refine judging it from the listing it already read #1539 is therefore split: it keeps the refine half, and this item carries the embedding cache with authentication.
Evidence
Checked at main 3dd7fa6.
k8s/llm/valkey.yaml:40-47startsvalkey-serverwith norequirepass.- LiteLLM points at it (
k8s/llm/gateway/deployment.yaml:61), and so does Portkey (k8s/llm/portkey/deployment.yaml:46), whose cache mode issemantic(k8s/llm/portkey/configmap.yaml:26-27). - A password-protected pattern already exists:
k8s/llm/valkey-runs.yaml:75writesrequirepassfrom a managed Secret. - Intake embeds candidates in
_embed(src/devops_cli/roadmap/intake.py:1118), and the embedder already has a Valkey layer that counts hits asdevops_cli_embedding_valkey_hits_total(src/devops_cli/ai/rag/embeddings.py:560). ValkeyConfig.urlexists (src/devops_cli/config/settings.py:265), and fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113 makes one validated URL the only Valkey endpoint setting.
Remedy
- The owner chooses the store: a password-protected embedding cache (recommended: a small dedicated Valkey in namespace
llmfollowingvalkey-runs.yaml, withrequirepassfrom a managed Secret), orrequirepasson the sharedvalkeywith its existing clients updated. - The
devopsConfigMap template gainsvalkey.url, and the password reaches the Service and job pods from Secretdevops/devops-clias a managed secret. - A NetworkPolicy lets namespace
devopsreach that Valkey's pods on 6379, and the llm side admits only namespacedevopsthere. - No change to the shared
valkey's exposure unless the owner picks the second option. - Priority under the owner's blocker rule (2026-10-17): no rule-driven raise. It blocks no filed item. perf(roadmap): a settled item costs no body read or model call until its text changes, with refine judging it from the listing it already read #1539's order before feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's background enhancement lane stays with perf(roadmap): a settled item costs no body read or model call until its text changes, with refine judging it from the listing it already read #1539's refine half: that lane's correlation step reads the neighbours intake already computes, and does not need this cache.
Acceptance criteria
- Offline tests: two intake runs over the same candidate with a fake Valkey send one embedding request; the rendered ConfigMap carries
valkey.urland no password. - Offline manifest tests: the cache Valkey requires a password, and only namespace
devopsreaches it on 6379. - Pending a person, once the Service runs again (chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562): one intake candidate sends at most one embedding request, and
devops_cli_embedding_valkey_hits_totalrises.
Related
- Split from perf(roadmap): a settled item costs no body read or model call until its text changes, with refine judging it from the listing it already read #1539.
- Related: fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113, feat(ai): pinned image tags and bounded shared valkey in the llm stack #711, chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562.
Proposed design
Problem statement
Intake embeds candidates on every round. The embedding result should be cached in a password-protected Valkey so a settled item costs no embedding request on the next round. The refine half was split to #1539. This item carries the embedding cache with authentication, the Kubernetes manifests, and the offline tests.
Acceptance criteria
- Criterion 1: Two intake runs over the same candidate with a fake Valkey send one embedding request.
Verification: Run the offline test suite for intake embedding cache and confirm the fake Valkey received one request. - Criterion 2: The rendered ConfigMap carries valkey.url and no password.
Verification: Run the offline manifest test that renders the devops ConfigMap and assert valkey.url is present and no password key is present. - Criterion 3: The cache Valkey requires a password, and only namespace devops reaches it on port 6379.
Verification: Run the offline manifest test for the Valkey deployment and NetworkPolicy and assert requirepass is set and the NetworkPolicy source is namespace devops only. - Criterion 4: One intake candidate sends at most one embedding request, and devops_cli_embedding_valkey_hits_total rises.
Verification: Run the Service with the cache enabled, submit one candidate, and read the metric. Pending chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562.
Key questions
- Which store holds the embedding cache: a dedicated Valkey in namespace llm, or the shared Valkey with requirepass?: A small dedicated Valkey in namespace llm, following the valkey-runs.yaml pattern with requirepass from a managed Secret. The body marks this as the recommended option. (proposed) [sources: k8s/llm/valkey-runs.yaml:84]
- Does the shared Valkey already require a password at the current commit?: Yes. k8s/llm/valkey.yaml line 68 writes requirepass from the VALKEY_PASSWORD environment variable into auth.conf. [sources: k8s/llm/valkey.yaml:68]
- Does the embedder already have a Valkey cache layer with a hits metric?: Yes. src/devops_cli/ai/rag/embeddings.py records devops_cli_embedding_valkey_hits_total at line 617, and the Valkey layer is at line 560. [sources: src/devops_cli/ai/rag/embeddings.py:560, src/devops_cli/ai/rag/embeddings.py:617]
- Does ValkeyConfig.url already exist as a validated setting?: Yes. ValkeyConfig.url is defined at src/devops_cli/config/settings.py line 265, and fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113 makes one validated URL the only Valkey endpoint setting. [sources: src/devops_cli/config/settings.py:265]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 18, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate introduces a new caching mechanism for embeddings, which is a feature enhancement.It blocks progress on #1539 but does not block any filed item directly.Improves performance and reduces embedding costs for roadmap intake.Requires changes to Valkey configuration, network policies, and deployment manifests.dan-petty commentedon Oct 28, 2026
Status set to Ready at 4da1e34 (see proposed design in issue body).
perf(roadmap): intake's embeddings are cached in a password-protected…