Repository navigation
Description
Problem
Checked at main on 2026-11-22.
- The requirement
qdrant-retry-wait-uses-clock-seaminopenspec/specs/rag-lookup-pause/spec.mdsays: "The Qdrant retry SHALL wait between attempts through the sleep parameter of tenacity"._execute_with_retryinsrc/devops_cli/ai/rag/qdrant.pyuses no tenacity. It is aforloop that calls thesleepparameter, which the clock seam supplies, through_record_retry. - Its scenario "retry backoff sequence is recorded in order" gives waits of 0.5, 1.0 and 1.5 s.
DEFAULT_MAX_RETRIESis 3 attempts, so a request that fails each time waits 2 times: 0.5 and 1.0 s (test_a_request_that_keeps_failing_backs_off_longer_each_time_before_it_succeedsintests/ai/rag/test_qdrant_request_telemetry.pyrecords[0.5, 1.0]). - The requirement is about the Qdrant client, not about the pause of RAG lookups. The capability
qdrant-request-retry, which fix(ai): retry a Qdrant call after a 502, 503 or 504 #6757 adds, holds the retry rules of the Qdrant client.
Proposed remedy
- Move the requirement to
qdrant-request-retry(REMOVED inrag-lookup-pause, ADDED inqdrant-request-retry), with text that matches the loop and the clock seam, and a scenario with the real count of waits.
Acceptance criteria
- No spec says that the Qdrant retry uses tenacity.
- The scenario of the waits gives the waits that
DEFAULT_MAX_RETRIESattempts make.
Person steps
None.
Dependencies
- fix(ai): retry a Qdrant call after a 502, 503 or 504 #6757 adds the capability
qdrant-request-retry.
Alternatives check of 2026-11-22: not-applicable.
Class: docs, no search.
Tool: none found.
Proposed design
Problem statement
The rag-lookup-pause spec says the Qdrant retry waits through tenacity and gives three waits. The code uses a for loop and the clock seam, and three attempts make two waits. The requirement belongs in qdrant-request-retry.
Acceptance criteria
Requirement: Remove the Qdrant retry requirement from rag-lookup-pause
The change SHALL remove the qdrant-retry-wait-uses-clock-seam requirement from openspec/specs/rag-lookup-pause/spec.md.
Scenario: The rag-lookup-pause spec has no Qdrant retry requirement
- WHEN
uv run pytest tests/openspec/test_qdrant_retry_spec.py::test_rag_lookup_pause_has_no_qdrant_retry_requirementruns - THEN the test passes and the spec has no requirement named
qdrant-retry-wait-uses-clock-seam
Requirement: Add the Qdrant retry requirement to qdrant-request-retry
The change SHALL add the qdrant-retry-wait-uses-clock-seam requirement to openspec/specs/qdrant-request-retry/spec.md with text that names the sleep parameter supplied by the clock seam and does not name tenacity.
Scenario: The qdrant-request-retry spec has the clock-seam requirement
- WHEN
uv run pytest tests/openspec/test_qdrant_retry_spec.py::test_qdrant_request_retry_has_clock_seam_requirementruns - THEN the test passes and the requirement text has
sleepandclock seamand notenacity
Requirement: The retry scenario gives two waits
The scenario SHALL give the two waits that three attempts of DEFAULT_MAX_RETRIES make, 0.5 s and 1.0 s, and SHALL NOT give 1.5 s.
Scenario: The retry scenario has the waits of three attempts
- WHEN
uv run pytest tests/openspec/test_qdrant_retry_spec.py::test_qdrant_retry_scenario_has_two_waitsruns - THEN the test passes and the scenario text has
0.5and1.0and no1.5
Existing Tool Considered
The alternatives check in the issue body records not-applicable for class docs and names no tool. The change edits OpenSpec text and builds no code, so there is no build cost.
Key questions
- Where does the Qdrant retry requirement belong?: Move it to
qdrant-request-retry, the capability that fix(ai): retry a Qdrant call after a 502, 503 or 504 #6757 adds for the retry rules of the Qdrant client. (best practice) [sources: openspec/specs/rag-lookup-pause/spec.md, src/devops_cli/ai/rag/qdrant.py:551]- Rejected: Keep it in rag-lookup-pause. The requirement is about the Qdrant client retry, not the pause of RAG lookups.
- Chosen: Move it to qdrant-request-retry. The new capability holds the retry rules of the Qdrant client.
- Does the Qdrant retry use tenacity?: No.
_execute_with_retryis aforloop overDEFAULT_MAX_RETRIESattempts, and_record_retrycalls thesleepparameter, which defaults toclock_seam.sleep. [sources: src/devops_cli/ai/rag/qdrant.py:551, src/devops_cli/ai/rag/qdrant.py:197, src/devops_cli/ai/rag/qdrant.py:558] - How many waits do
DEFAULT_MAX_RETRIESattempts make, and what are they?: Three attempts make two waits: 0.5 s and 1.0 s, because_record_retrysleeps0.5 * attemptbefore attempt 2 and attempt 3. [sources: src/devops_cli/config/defaults.py:568, src/devops_cli/ai/rag/qdrant.py:197, tests/ai/rag/test_qdrant_request_telemetry.py]
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 22, 2026
A spec text correction with no live impact and no blocker.Both concern the Qdrant retry spec, but #6757 adds the retry capability for 502/503/504 while this item fixes the existing spec text and moves it to that capability.devops-cli-service commentedon Nov 23, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.