Skip to content

perf(roadmap): consolidate keeps its vectors in the shared tiers - #5099

Merged
dan-petty merged 2 commits into
mainfrom
perf/4665-consolidate-embed-one-store
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
perf/4665-consolidate-embed-one-store

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops roadmap consolidate kept a second local store of embeddings, roadmap/consolidate/embeddings.json, beside the memory, Valkey and disk tiers of the embedding cache. Its engine had no disk tier, so its vectors did not reach the shared disk file, and its hits were not counted on devops_cli_embedding_cache_lookups_total.

The embedder of the job now gives EmbeddingsEngine the disk tier, as intake does. embed_issues sends each distinct text once and keeps no file. The text has no white space at its ends, so a section of the refine job gives a cache hit. The embeddings.json code, its constant, Edges.embedding_model and GatewayEmbedder.model are removed. The Valkey key fix stays in #4569.

Closes #4665

Change: openspec/changes/archive/2026-11-12-4665-consolidate-keeps-its-vectors-in-the/

The consolidate job kept a second local store of embeddings, the file
roadmap/consolidate/embeddings.json, beside the memory, Valkey and disk
tiers of the embedding cache. Its engine had no disk tier, so its vectors
never reached the shared disk file.

The embedder of the job now gives EmbeddingsEngine the disk tier, as
intake does. embed_issues sends each distinct text once and keeps no
file. The text has no white space at its ends, so a section that the
refine job writes gives a cache hit. The embeddings.json code, its
constant, Edges.embedding_model and GatewayEmbedder.model are removed.

Closes #4665
@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass

uv run devops ci fail-to-pass --base origin/main (base 21b116e, head f00468b6 before the rebase): 36 failed on base, 0 errored; all 75 tests of the 4 files pass on the head.

The base failures that show behavior:

  • test_a_second_run_reads_the_vectors_from_the_shared_cache_tiers_and_embeds_nothing: assert [] == [({'result': ...'disk'}, 2.0)]. On base, the file answers before the engine, so the second run counts no cache lookup.
  • test_an_unreachable_gateway_exits_non_zero_names_the_gateway_and_writes_no_plan, test_a_run_prints_the_summary_and_writes_the_plan_and_no_github_change, test_decline_writes_the_job_record_only_with_confirm: on base, the folder of the job holds embeddings.json beside the plan, also when the run writes no plan.

The other 29 base failures are TypeErrors from the removed Edges.embedding_model field and the removed model/path arguments.

Measurements (2026-11-12, data directory of the main checkout)

  • roadmap/consolidate/embeddings.json: 312 vectors of qwen3-embedding:0.6b, 4,315,611 bytes.
  • ai/embeddings.db: 4,191 rows (2,324 of gateway/qwen3-embedding:0.6b, 1,867 of qwen3-embedding:0.6b).

Checks run locally

  • uv run pytest -n0 on tests/commands/test_roadmap_consolidate_cmd.py, tests/roadmap/test_roadmap_consolidate_shortlist.py, tests/roadmap/test_roadmap_consolidate.py, tests/roadmap/test_roadmap_consolidate_judge.py: 75 passed.
  • ruff check, ruff format --check, the pre-commit and pre-push hooks: passed. mypy on the changed files: no error in a changed file.
  • uv run devops openspec check: passed.

Owner and live steps

  • No cluster, ConfigMap or Secret change.
  • After the merge, the old file roadmap/consolidate/embeddings.json stays in each data directory and no code reads it. A person can delete it: rm <data-dir>/roadmap/consolidate/embeddings.json.
  • The first devops roadmap consolidate run after the merge embeds the open items once, unless Valkey or the disk tier holds them already. To see the tiers: devops_cli_embedding_cache_lookups_total{tier=~"disk|valkey"} rises for a consolidate run.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 14:17
@dan-petty
dan-petty merged commit 2a8bf1a into main Nov 12, 2026
23 checks passed
@dan-petty
dan-petty deleted the perf/4665-consolidate-embed-one-store branch November 12, 2026 14:18
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.119.0](v0.118.0...v0.119.0)
(2026-11-12)


### Features

* **repos:** the claim sets In Progress
([#5111](#5111))
([06ef1c6](06ef1c6))
* **roadmap:** a fix-plan step repairs a plan PR with open findings
([#5104](#5104))
([ca5b16d](ca5b16d))
* **roadmap:** extend stage review rounds while open findings drop
([#5090](#5090))
([bacf713](bacf713))
* **roadmap:** re-anchor a stale citation that matches one line
([#5040](#5040))
([16356d8](16356d8))


### Bug Fixes

* **ci:** keep failed test IDs in the service image shard summary
([#5106](#5106))
([88589ef](88589ef))
* **github:** count each page of a paginated GitHub read
([#5070](#5070))
([908e24a](908e24a))
* **github:** keep the metrics permissions out of the runner Job token
([#5064](#5064))
([fb549ff](fb549ff))
* **github:** pace mutations through the clock seam
([#5063](#5063))
([2bd87bc](2bd87bc))
* **k8s:** delete the CoreDNS files that k3s never applies
([#5055](#5055))
([463f601](463f601))
* **monitoring:** tidy LLM stack windows, units and lines
([#5052](#5052))
([375d724](375d724))
* **roadmap:** a refused kept plan uses no stage gate return
([#4983](#4983))
([b8adbca](b8adbca))
* **roadmap:** count a command as removed only when MUST NOT governs it
([#4985](#4985))
([2e6f407](2e6f407))
* **roadmap:** cut prose after a cited stage command
([#4982](#4982))
([a172563](a172563))
* **roadmap:** name every module of a group with no named test
([#5089](#5089))
([27a0e79](27a0e79))
* **roadmap:** stage returns every open review finding to the planner
([#5067](#5067))
([21b116e](21b116e))
* **roadmap:** the alternatives check reads the tools in use
([#5062](#5062))
([8903233](8903233))
* **roadmap:** the constants gate reads 6_500 and no new value
([#5080](#5080))
([8a7b113](8a7b113))
* **roadmap:** the constants gate reads only a stated value
([#5042](#5042))
([cf4733e](cf4733e))
* **telemetry:** read repository traffic as the GitHub App
([#4932](#4932))
([7c42823](7c42823))
* **tests:** close the UDP, DNS and git gaps of the network floor
([#5101](#5101))
([047ee48](047ee48))
* **tests:** repair the bwrap contract suite and gate it
([#5110](#5110))
([9a0659d](9a0659d)),
closes [#4715](#4715)


### Performance Improvements

* **ci:** build the Service image once for its test shards
([#5079](#5079))
([dcf5bd5](dcf5bd5))
* **ci:** run only the required checks on the release PR
([#5057](#5057))
([8174071](8174071))
* **ci:** stop the cache export of pull request image builds
([#5113](#5113))
([ba30820](ba30820))
* **roadmap:** consolidate keeps its vectors in the shared tiers
([#5099](#5099))
([2a8bf1a](2a8bf1a))


### Code Refactoring

* **roadmap:** one Status writer for every job
([#5109](#5109))
([24cfedc](24cfedc))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(roadmap): consolidate keeps its vectors in the shared tiers

1 participant