Skip to content

fix(rag): raise EmbeddingsError for an empty Ollama URL list - #3118

Merged
dan-petty merged 3 commits into
mainfrom
claude/project-thread-lx04wh
Nov 1, 2026
Merged

dan-petty merged 3 commits into
mainfrom
claude/project-thread-lx04wh

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Requested by D · project thread

When ai.provider is ollama and no Ollama URL is set, the embedder divided by the length of an empty URL list and stopped with a ZeroDivisionError traceback. _embed_ollama now checks the URL list that it resolves and raises an EmbeddingsError with the new message ERRORS.rag.embedding_no_ollama_urls, which names ai.ollama_urls. The error reaches the exit seam with no traceback.

The defect pull request hardening audit ran devops roadmap intake on a runner that has only GH_TOKEN. Intake needs a model to embed and to propose, so the step could not file its finding. The step now files the finding with devops gh issues create, with the label source/agent and no priority label, and the next intake round places it. The workflow contract test pins this handoff and refuses devops roadmap intake or a priority/ label in the step.

Closes #2524

Change: openspec/changes/archive/2026-11-01-2524-the-embedder-raises-embeddingserror-not-zerodivisionerror/


Generated by Claude Code

The embedder divided by the length of an empty URL list when ai.provider is ollama and no Ollama URL is set. It now raises EmbeddingsError with the new message embedding_no_ollama_urls, which names ai.ollama_urls.

Refs #2524

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDmQkKEHfzsZJHG3QS5
The runner has only GH_TOKEN, so devops roadmap intake cannot run there. The step now files the finding as an issue with the source/agent label and no priority label, and the next intake round places it. The contract test pins the new handoff.

Refs #2524

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDmQkKEHfzsZJHG3QS5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PeiMDmQkKEHfzsZJHG3QS5
@dan-petty dan-petty self-assigned this Nov 1, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 22:58
@dan-petty
dan-petty merged commit 111a031 into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the claude/project-thread-lx04wh branch November 1, 2026 22:58
dan-petty-release Bot added a commit that referenced this pull request Nov 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.38.0](v0.37.4...v0.38.0)
(2026-11-01)


### Features

* **review:** osv-scanner toolrun records its database digest
([#3120](#3120))
([5731fac](5731fac))
* **roadmap:** add gate tools to the runner, one shell policy
([#3111](#3111))
([7735d8b](7735d8b)),
closes [#3072](#3072)
* **roadmap:** give the step AGENTS.md and routed rules
([#3107](#3107))
([80a22eb](80a22eb)),
closes [#3097](#3097)
* **roadmap:** run the project hooks and scoped CI in the Job
([#3112](#3112))
([b7ab211](b7ab211)),
closes [#3043](#3043)


### Bug Fixes

* **ai:** send the per-call sampling of LLMClient.chat
([#3126](#3126))
([8207bdc](8207bdc))
* **argo:** replace a token that Argo CD refuses
([#3121](#3121))
([b4955b4](b4955b4))
* **devcontainer:** remove CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
([#3125](#3125))
([295c32c](295c32c))
* **k8s:** set q8_0 KV cache on every Ollama tier
([#3101](#3101))
([aad0115](aad0115))
* **rag:** raise EmbeddingsError for an empty Ollama URL list
([#3118](#3118))
([111a031](111a031))
* **security:** refuse PYTEST_ADDOPTS and npm_config_logs_dir overrides
([#3119](#3119))
([9fe2af5](9fe2af5))


### Code Refactoring

* **security:** read legacy numeric hosts with getaddrinfo
([#3128](#3128))
([41779f9](41779f9))

---
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

None yet

Projects

None yet

2 participants