Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem
Checked at main 054ece5 on 2026-11-22.
- A full
devops ai rag index --include-kbended at 14:31 UTC with exit 0 ("Indexed 5476 files (50479 chunks)").devops ai rag statusthen showed "Last Indexed" 2026-11-22 04:26:15 fordevops_codeand 04:43:12 fordevops_docs, the times of an earlier run that stopped. src/devops_cli/commands/rag.py:457-461readsindexed_atfrom one point:qdrant.scroll_points(coll_name, limit=1), the first point of the scroll, not the newest. An index run writes only changed chunks, so that point can be from any older run.
Proposed remedy
- Show the time of the newest point: a Qdrant scroll ordered by
indexed_atdescending with limit 1 (anorder_byon a datetime payload index), or the time that the run records in its metadata.
Acceptance criteria
- A test with a fake Qdrant that holds an old first point and a newer later point shows the newer time in the status table.
Person steps
None.
Dependencies
None.
Alternatives check of 2026-11-22: in-use.
The repository already uses this tool.
Tool: qdrant/qdrant (https://github.com/qdrant/qdrant), Apache-2.0, last activity 2026-11-20, maintained.
Reason: Searches found that the store's scroll accepts an order_by on an indexed datetime payload field with a limit, which returns the newest point; the status command, the payload index and the run metadata remain project code.
Covers:
- Ordering points by an indexed datetime payload field, descending
- A limited scroll that returns only the newest point
- An official Python client for the existing collections
- Payload filtering and keyword/datetime index types
Lacks:
- No RAG status table or "Last Indexed" rendering
- No record of a run's own start and end time
- Needs a datetime payload index built before ordering
- No command that falls back to run metadata
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/aiAI review pipeline, personas, prompts, LLM client, or RAGsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 22, 2026
Both touch rag status and Qdrant, but #1139 fixes the data source (local cache vs Qdrant) while this fixes the point selection order within Qdrant.devops-cli-service commentedon Nov 22, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
docs(openspec): plan the newest index time of rag status (#6774)
fix(ai): show the newest index time in rag status (#6774)
docs(ai): state the source of Last Indexed in rag status (#6774)
docs(openspec): archive the newest index time of rag status (#6774)
devops-cli-service commentedon Nov 22, 2026
Released in v0.195.4: https://github.com/dan-petty/devops-cli/releases/tag/v0.195.4
devops-cli-service commentedon Nov 22, 2026
Live since 2026-11-22 23:15 UTC
dan-petty commentedon Nov 22, 2026
Live check after the merge of #6801 (v0.195.4), 2026-11-22: one
devops ai rag indexrun created thedatetimeindex ofindexed_aton both collections and embedded only the 366 changed files.devops ai rag statusnow shows Last Indexed 2026-11-22 23:38:15 fordevops_codeand 23:42:17 fordevops_docs, the times of that run.