Skip to content

feat(research): keep research results in Qdrant #3906

Closed

Description

@dan-petty

Problem

Nothing stores web research. The same question is searched again every round and a result is lost when a job ends (#3877). The Qdrant payload has no source URL, fetch date, hash or expiry. index_doc_chunks has no caller outside tests, so crawled docs never reach Qdrant.

Expected

A module and a Qdrant collection (devops_research with the default collection prefix) as ADR 0028 defines the research index: one point for each fetched page, with the fields source_url, fetch_date, content_hash, expiry, question and text, and no other field. Functions: upsert (one point for each source_url; the same hash updates fetch_date and expiry, a new hash replaces the text), search (a vector search of the question that reads no expired point and leaves out a page whose text holds an injection pattern), expire (delete by filter). index_doc_chunks is either used here or deleted.

Decision of the owner, 2026-11-18: this text follows ADR 0028. An earlier text of this item named fifteen fields (kind, component, source_id, source_license, severity, exploited, untrusted, injection_flag, reported_issue and others), an equal hash that writes nothing, and a lookup by kind and component. ADR 0028 has none of them, so they are removed from this item.

Acceptance criteria

  • Tests that fail on the base: the same page fetched again updates fetch_date and expiry; a changed hash replaces the text; an expired point is removed by the sweep; a search returns the point with its URL and date.
  • A test: a point without source_url or fetched_at is refused.
  • A test: a search reads no expired point.
  • A test: text with an injection pattern is left out of the search for the agent.
  • devops ai rag status shows the collection.
  • index_doc_chunks has a caller, or it is removed with its tests (no dead code stays).
  • The Qdrant address comes from the settings, or an error names the setting (no fallback URL).

Existing tool considered

qdrant-client and the embedder of the RAG indexer, the LibraryVectorStore pattern, the DocsIngester chunker. A second vector database is rejected.

Related

Part of the research agent plan. Related: #1389, #1653, #3877.

Part of the research agent plan of 2026-11-07 (design by the research-agent design workflow; the ADR is delivered through #3877).

Alternatives check of 2026-11-18: in-use.
The repository already uses this tool.
Tool: qdrant-client (https://pypi.org/project/qdrant-client), Apache-2.0, last activity 2026-10-22, maintained.
Reason: Searches found qdrant-client, which gives collection creation, payload filters, vector search and delete by filter, but it has no research payload schema, hash no-write rule, expiry sweep, provenance refusal or injection flag.

Covers:

  • Collection creation and point upsert
  • Payload filters on kind and component
  • Vector search and delete by filter

Lacks:

  • No research payload schema or provenance refusal
  • No equal-hash no-write rule
  • No expiry sweep or injection flag
  • No devops ai rag status row

Proposed design

Problem statement

Web research results are not stored. The same question is searched again every round, and a result is lost when a job ends. The Qdrant payload has no source URL, fetch date, hash or expiry. The change adds a research store and the devops_research collection. It stores one point for each fetched page and searches without expired or injected pages.

Acceptance criteria

Requirement: Six-field research payload

The research store SHALL write each point with exactly the fields source_url, fetch_date, content_hash, expiry, question and text.

Scenario: Payload holds six ADR 0028 fields

  • WHEN upsert stores a fetched page for a question.
  • THEN the test asserts the payload keys equal the six fields and hold no other key.

Requirement: One point for each source URL

The research store SHALL keep one point for each source_url.

Scenario: Repeated URL updates one point

  • WHEN upsert stores two pages with the same source_url.
  • THEN the test asserts the collection holds one point for that URL.

Requirement: Provenance refusal

The research store MUST refuse a page that lacks source_url or fetch_date.

Scenario: Missing provenance is refused

  • WHEN upsert receives a page with no source_url or no fetch_date.
  • THEN the test asserts a validation error and no point is written.

Requirement: Same hash refreshes dates

The research store SHALL update fetch_date and expiry when a source_url has the same content_hash.

Scenario: Same hash refreshes dates

  • WHEN upsert receives a page whose URL exists with the same content hash.
  • THEN the test asserts fetch_date and expiry change and the stored text and vector do not change.

Requirement: New hash replaces text

The research store SHALL replace the stored text and vector when a source_url has a new content_hash.

Scenario: New hash replaces text

  • WHEN upsert receives a page whose URL exists with a different content hash.
  • THEN the test asserts the point holds the new text, hash, fetch date and expiry.

Requirement: Search returns provenance

The research store SHALL search by the question vector and return the source_url and fetch_date of each match.

Scenario: Search returns URL and date

  • WHEN search runs for a question with a matching stored page.
  • THEN the test asserts the result holds the URL and the fetch date.

Requirement: Expired points are not searched

The research store MUST exclude each expired point from search results.

Scenario: Expired point is not returned

  • WHEN search runs and a matching point has an expiry before the current time.
  • THEN the test asserts the result list does not hold that point.

Requirement: Expiry sweep deletes points

The research store SHALL delete each expired point by a filter.

Scenario: Expiry sweep deletes expired points

  • WHEN expire runs with points before and after their expiry.
  • THEN the test asserts the delete filter removes only the expired point.

Requirement: Injection text is not searched

The research store MUST leave out of search results each page whose text scan_injection_text flags.

Scenario: Injection text is not returned

  • WHEN search runs and a matching page text gives a finding to scan_injection_text.
  • THEN the test asserts the result list does not hold that page.

Requirement: Default research collection

The research store SHALL use the devops_research collection by default.

Scenario: Default collection name

  • WHEN the store is built with the default configuration.
  • THEN the test asserts the collection name is devops_research.

Requirement: Research collection status row

The devops ai rag status command SHALL show the devops_research collection and its point count.

Scenario: Status shows research collection

  • WHEN devops ai rag status runs with a seeded devops_research collection.
  • THEN the test asserts the output holds devops_research and the seeded point count.

Requirement: Qdrant address from settings

The research store MUST take the Qdrant address from the settings and MUST raise an error that names the setting when it is unset.

Scenario: Missing Qdrant setting names the setting

  • WHEN the store is built with no qdrant.url setting and no client.
  • THEN the test asserts ConfigurationError names qdrant.url and no fallback URL is used.

Requirement: No dead doc chunk indexer

The change MUST leave no definition or import of index_doc_chunks under src or tests.

Scenario: No dead doc chunk indexer remains

  • WHEN the test searches src and tests for index_doc_chunks.
  • THEN the test asserts no match exists.

Existing Tool Considered

qdrant-client, verdict in-use. The repository already uses this tool. The alternatives check in the issue body lists what qdrant-client covers and lacks. The proposal uses qdrant-client for the operations that the check lists as covered, and adds the research payload schema, hash refresh rule, expiry sweep, provenance refusal and injection exclusion that the check lists as lacking. It adds no second vector database.

Key questions

  • Which payload fields does a research point hold?: The point holds exactly source_url, fetch_date, content_hash, expiry, question and text. It stores no other field, including kind, component, source_id, source_license, severity, exploited, untrusted, injection_flag and reported_issue. (best practice) [sources: openspec/changes/3906-keep-research-results-in-qdrant/tasks.md:20, openspec/changes/3906-keep-research-results-in-qdrant/proposal.md:11]
    • Chosen: Six ADR 0028 fields. ADR 0028 and the owner decision of 2026-11-18 fix the six fields.
    • Rejected: Fifteen earlier fields. The owner removed these fields because ADR 0028 has none of them.
    • Rejected: Six fields plus injection_flag. The reply says search uses scan_injection_text and stores no flag.
  • How does the store identify a point and handle a repeated fetch?: The store keeps one point for each source_url. The same content_hash refreshes fetch_date and expiry. A new content_hash replaces the stored text and vector and keeps the URL. (best practice) [sources: openspec/changes/3906-keep-research-results-in-qdrant/tasks.md:20, openspec/changes/3906-keep-research-results-in-qdrant/design.md:12]
    • Chosen: One point per source_url. The body expected text and the owner decision say one point for each source_url.
    • Rejected: One point per source_url and content_hash. The ADR text has both rules, but the owner decision and the plan key one point to the URL.
    • Rejected: Equal hash writes nothing. The owner decision says the same hash refreshes fetch_date and expiry.
    • Rejected: New hash appends a second point. The owner decision says the new hash replaces the text and keeps the URL.
  • How does search exclude expired and injected pages?: Search uses the question vector and a filter that reads no point with expiry before the current time. It then leaves out each page whose text gives a finding to scan_injection_text. It stores no injection_flag. (best practice) [sources: openspec/changes/3906-keep-research-results-in-qdrant/design.md, openspec/changes/3906-keep-research-results-in-qdrant/tasks.md:20]
    • Chosen: Filter expiry and scan text at search. The owner decision and ADR 0028 say search reads no expired point and leaves out an injection pattern.
    • Rejected: Store injection_flag at upsert. The owner decision removed injection_flag from the payload.
    • Rejected: Filter expiry only. The body requires the search to leave out text with an injection pattern.
  • Which field name marks the fetch time?: The field is fetch_date. The fetched_at name in the older acceptance text is not an ADR 0028 field. [sources: openspec/changes/3906-keep-research-results-in-qdrant/tasks.md:20, openspec/changes/3906-keep-research-results-in-qdrant/proposal.md:11]
  • How does the store get the Qdrant address and collection name?: The store uses resolve_rag_components from src/devops_cli/ai/rag/indexer.py. The default collection constant is DEFAULT_RAG_RESEARCH_COLLECTION with value devops_research. A missing qdrant.url raises ConfigurationError that names qdrant.url, and no fallback URL exists. (best practice) [sources: openspec/changes/3906-keep-research-results-in-qdrant/proposal.md:47, openspec/changes/3906-keep-research-results-in-qdrant/tasks.md:20, openspec/changes/3906-keep-research-results-in-qdrant/design.md:12]
    • Chosen: Reuse resolve_rag_components and a default constant. The existing RAG indexer builds the client and embedder from settings, and ADR 0028 fixes the collection name.
    • Rejected: Hard-code a Qdrant URL. The body forbids a fallback URL and requires the setting or an error that names it.
    • Rejected: Add a research-specific setting. The ADR fixes the 30-day value and the collection name, so no new setting is needed.
  • What happens to index_doc_chunks?: index_doc_chunks is already absent from src and tests. The change adds no caller and removes no code. The test asserts that no definition or import remains. [sources: openspec/changes/3906-keep-research-results-in-qdrant/proposal.md:18, openspec/changes/3906-keep-research-results-in-qdrant/design.md:16]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    status/new
    value/medium
    effort/medium
    on Nov 7, 2026
  2. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: none. The title has the scope research, and .github/labels.yml declares no scope/research label. Add the label to the file to give the scope to this item.
    • Priority: P2-Medium. Planned feature with no active failure; part of a multi-step research agent plan.
    • Value: Medium. Prevents redundant web searches and data loss between job rounds.
    • Effort: Medium. Requires a new module, collection, three functions, tests, and integration of index_doc_chunks.
    • Related: docs(ai): investigate a web research agent with RAG ingestion #3877, which asks for a different change. #3877 delivers the ADR investigation; this candidate implements the Qdrant storage layer that ADR designs.
  3. added
    priority/p2-medium
    on Nov 7, 2026
  4. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    ADD to Expected, after the payload list:
    "The payload holds no field of a search result: no title, snippet, description, rank or age. source_url is the URL that the fetch tool used for the page text. Upsert refuses a record whose text did not come from a fetch of the project."

    ADD to Acceptance criteria:

    • A test: upsert refuses a record that carries a search-result field (title, snippet, description, rank or provider hit), and the error names the field.
    • A test: a record made from a hit with provider brave or firecrawl is refused (Brave Search API Terms of Use of 1 Sep 2026, 3(b)(i): no store, cache or database of Search Results; the Firecrawl terms are not read).
    • A test: a point that has a question and a source_url but whose search ran with keep=False is refused. Only a search run with keep=True may lead to a stored record.

    ADD to Related: the chain item (feat(ai): search the web through a chain of providers) and its parameter keep.

  5. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Plan note of 2026-11-07 (owner decision): the Brave Search API is not used. Its terms (1 Sep 2026) forbid storing results and it has no free tier. This replaces the part of the earlier plan note that mentions Brave:

    • The search chain is searxng, duckduckgo, firecrawl. There is no keyed provider for now, and no BRAVE_SEARCH_API_KEY.
    • The keep parameter and the allows_keep flag are dropped from the design of the chain (they existed only because of the Brave terms). Every provider's hits may be kept.
    • What goes into the research index does not change: fetched page text, with the URL of the page taken from the fetch. The payload still holds no field of a search result (title, snippet, rank, age), because the index stores pages, not search results.
    • The measures of docs(ai): investigate a web research agent with RAG ingestion #3877 and feat(research): ask mode reads the index before the web #3915 may use any provider of the chain.
  6. added
    status/ready
    and removed
    status/new
    on Nov 7, 2026
  7. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at d6c2297 (see proposed design in issue body).

  8. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: Searches and the package/repository facts confirm qdrant-client as the open, maintained Apache-2.0 Python client for the Qdrant vector database, which supplies collection management, upsert, payload filters, vector search and delete by filter. It covers only the storage layer of the issue: the research payload schema, hash-equal no-write rule, expiry sweep, provenance refusals, injection flag, status row and settings-derived address all have to be written as a thin module on top of it, which is what the issue proposes.

    The item already names this tool.

    Tool: qdrant/qdrant-client (https://github.com/qdrant/qdrant-client)

    • License: Apache-2.0
    • Last activity: 2026-11-03
    • Maintained: yes

    Covers:

    • Vector store client for a Qdrant collection: collection creation, point upsert, payload filters, vector search and delete by filter
    • Stable point ids (unsigned int or UUID) allow an idempotent upsert keyed on source_id and version
    • The issue already builds on this client and the Qdrant server: it names qdrant-client as the existing tool, and a second vector database is rejected

    Lacks:

    • The devops_research payload schema (kind, component, source_id, source_url, source_license, fetched_at, expires_at, content_hash, question, severity, exploited, text, untrusted, injection_flag, reported_issue)
    • The no-write rule when the content_hash is equal, and the update path for a changed hash
    • The expire sweep that deletes points whose expires_at is past
    • Provenance checks: refusing a record with no source_url or fetched_at, refusing search-result fields, refusing text not from a fetch
    • The injection_pattern detection and injection_flag exclusion from an agent lookup
    • The devops ai rag status row for the collection and its point count
    • Reading the Qdrant address from project settings with an error that names the setting (no fallback URL)
    • The module itself, plus removal of the dead index_doc_chunks indexer and its tests

    Tools considered:

    Searches run:

    • qdrant-client python upsert payload filter vector search delete points by filter, results: 5
    • Qdrant python client documentation collections points payload filters, results: 5
    • qdrant vector database, results: 5

    Sources:

    Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.

  9. added
    owner/service
    on Nov 17, 2026
  10. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Staged: branch feat/3906-keep-research-results-in-qdrant, draft pull request #6172. The pull request plans the item and closes no issue.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Delete points whose expiry passed in the Qdrant client: 29850 tokens
    2. Write a fetched research page once with the ADR payload: 45214 tokens
    3. Refuse a record whose text no fetch produced: 28163 tokens
    4. Look up a research point by kind and component and hide a flagged page: 35983 tokens
    5. Sweep the expired research points: 29111 tokens
    6. Build the research store from the settings: 35399 tokens
    7. Show the research collection in the RAG status: 35024 tokens

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • major criterion_dropped at issue (Refuse text with no fetch): The plan has no task and no spec requirement that refuses a record whose text did not come from a fetch; upsert accepts any text that carries a source_url and a fetched_at, so a record built from a search hit is stored. Evidence: "Upsert SHALL refuse a record whose text did not come from a fetch of the project."
    • minor false_premise at spec research-store (Research payload): The plan calls its fifteen fields "the ADR payload fields", but the ADR in force delivered through docs(ai): investigate a web research agent with RAG ingestion #3877/docs(ai): Record the research agent decision in an ADR #6147 names six fields with different names, so the plan stores a payload the ADR it cites does not define. Evidence: "Its fields are source_url, fetch_date, content_hash, expiry, question and text."
    • minor false_premise at proposal (feasibility): The plan says LibraryVectorStore builds a client and an embedder, but the class takes both as constructor arguments; build_library_vector_store builds them, so the pattern the plan says it reuses is not the class's. Evidence: "qdrant_client: Any = None,"
    • minor spec_delta_wrong at spec research-store (Refuse text with no fetch): The added scenario's THEN says the error names the missing fetch, but group 3 raises the error with the field page, so a test can assert only the 'writes no point' part of the THEN and not the wording the requirement asks for. Evidence: "upsert raises ResearchStoreError with the field page before it writes anything"

    The runs of the planner and the review made 107 model request(s), and used 9146726 input tokens and 270782 output tokens. The tool calls, in order:

    1. search_code({"text":"index_doc_chunks"})
    2. search_code({"text":"devops_research"})
    3. list_files({"directory":"src/devops_cli/ai"})
    4. list_files({"directory":"src/devops_cli/ai/rag"})
    5. list_files({"directory":"src/devops_cli/ai/research"})
    6. read_file({"path":"src/devops_cli/ai/rag/__init__.py"})
    7. read_file({"path":"src/devops_cli/ai/rag/ingest.py"})
    8. search_code({"text":"index_docs"})
    9. search_code({"text":"rag status"})
    10. search_code({"text":"docs_collection"})
    11. read_file({"path":"src/devops_cli/ai/rag/library_store.py","start_line":320,"end_line":345})
    12. search_code({"text":"injection_flag"})
    13. search_code({"text":"qdrant_url"})
    14. read_file({"path":"src/devops_cli/ai/research/models.py"})
    15. read_file({"path":"src/devops_cli/commands/rag.py","start_line":400,"end_line":540})
    16. search_code({"text":"prompt_injection"})
    17. file_symbols({"path":"src/devops_cli/ai/rag/qdrant.py"})
    18. read_file({"end_line":1010,"path":"src/devops_cli/ai/rag/qdrant.py","start_line":860})
    19. read_file({"end_line":810,"path":"src/devops_cli/ai/rag/qdrant.py","start_line":700})
    20. file_symbols({"path":"tests/support/fakes/qdrant.py"})
    21. read_file({"end_line":160,"path":"src/devops_cli/ai/rag/qdrant.py","start_line":106})
    22. read_file({"end_line":315,"path":"tests/support/fakes/qdrant.py","start_line":25})
    23. read_spec({"capability":"rag-ingest"})
    24. read_spec({"capability":"ai-rag-dashboard"})
    25. read_spec({"capability":"prompt-injection-detection"})
    26. read_spec({"capability":"research-inventory"})
    27. list_files({"directory":"tests/ai/rag"})
    28. read_file({"end_line":560,"path":"src/devops_cli/ai/rag/indexer.py","start_line":486})
    29. search_code({"text":"def scan_injection_text"})
    30. search_code({"text":"class QdrantConfig"})
    31. search_code({"text":"def resolve_qdrant_client"})
    32. read_file({"end_line":300,"path":"src/devops_cli/security/prompt_injection.py","start_line":210})
    33. read_file({"end_line":470,"path":"src/devops_cli/config/settings.py","start_line":436})
    34. read_file({"end_line":486,"path":"src/devops_cli/ai/rag/indexer.py","start_line":443})
    35. read_file({"end_line":175,"path":"tests/commands/test_rag.py","start_line":130})
    36. file_symbols({"path":"tests/ai/rag/test_rag_qdrant.py"})
    37. read_file({"end_line":70,"path":"tests/ai/rag/test_rag_component_wiring.py","start_line":1})
    38. file_symbols({"path":"tests/support/fakes/embedder.py"})
    39. search_code({"text":"def embedder("})
    40. read_file({"end_line":585,"path":"src/devops_cli/commands/rag.py","start_line":538})
    41. file_symbols({"path":"tests/commands/test_rag.py"})
    42. list_files({"directory":"src/devops_cli/ai/research"})
    43. list_files({"directory":"tests/ai/research"})
    44. search_code({"text":"index_doc_chunks"})
    45. search_code({"text":"devops_research"})
    46. read_file({"path":"src/devops_cli/config/defaults.py","start_line":225,"end_line":275})
    47. read_file({"path":"src/devops_cli/config/settings.py","start_line":415,"end_line":470})
    48. read_file({"path":"src/devops_cli/ai/rag/library_store.py","start_line":320,"end_line":345})
    49. search_code({"text":"DEFAULT_QDRANT_URL"})
    50. file_symbols({"path":"src/devops_cli/ai/rag/qdrant.py"})
    51. search_code({"text":"No Qdrant vector store URL configured"})
    52. list_files({"directory":"tests/ai/rag"})
    53. read_file({"path":"src/devops_cli/ai/rag/indexer.py","start_line":440,"end_line":495})
    54. file_symbols({"path":"src/devops_cli/commands/rag.py"})
    55. search_code({"text":"def scan_injection_text"})
    56. read_file({"path":"tests/support/fakes/qdrant.py","start_line":1,"end_line":80})
    57. read_file({"end_line":150,"path":"src/devops_cli/ai/rag/qdrant.py","start_line":115})
    58. read_file({"end_line":558,"path":"src/devops_cli/commands/rag.py","start_line":436})
    59. read_file({"end_line":240,"path":"src/devops_cli/security/prompt_injection.py","start_line":210})
    60. read_file({"end_line":60,"path":"src/devops_cli/ai/research/models.py","start_line":1})
    61. read_spec({"capability":"research-inventory"})
    62. read_spec({"capability":"research-sweep"})
    63. read_spec({"capability":"ai-rag-dashboard"})
    64. search_code({"text":"rag status"})
    65. read_file({"path":"tests/commands/test_rag.py","start_line":1,"end_line":40})
    66. search_code({"text":"QdrantProtocol"})
    67. list_files({"directory":"tests/support/fakes"})
    68. file_symbols({"path":"tests/support/fakes/embeddings.py"})
    69. read_issue({"number":3877})
    70. read_issue({"number":1389})
    71. find_issues({"terms":"devops_research qdrant research store"})
    72. list_files({"directory":"docs/adr"})
    73. search_code({"text":"source_license"})
    74. search_code({"text":"fetched_at"})
    75. search_code({"text":"expires_at"})
    76. file_symbols({"path":"src/devops_cli/ai/research/models.py"})
    77. search_code({"text":"ResearchStore"})
    78. file_symbols({"path":"src/devops_cli/ai/rag/qdrant.py"})
    79. search_code({"text":"class QdrantClient"})
    80. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":395,"end_line":410})
    81. search_code({"text":"test_lookup_hides_a_flagged_page_from_the_agent"})
    82. search_code({"text":"test_research_store"})
    83. list_files({"directory":"src/devops_cli/ai/research"})
    84. file_symbols({"path":"src/devops_cli/ai/rag/qdrant.py"})
    85. search_code({"text":"class QdrantClient"})
    86. read_file({"path":"src/devops_cli/config/defaults.py","start_line":238,"end_line":252})
    87. search_code({"text":"DEFAULT_RAG_RESEARCH_COLLECTION"})
    88. search_code({"text":"devops_research"})
    89. search_code({"text":"index_doc_chunks"})
    90. read_file({"path":"src/devops_cli/ai/page_text.py","start_line":50,"end_line":75})
    91. read_file({"path":"tests/ai/rag/test_rag_qdrant.py","start_line":15,"end_line":30})
    92. read_file({"path":"src/devops_cli/ai/rag/indexer.py","start_line":455,"end_line":480})
    93. read_file({"path":"tests/ai/rag/test_knowledge_base_sync.py","start_line":190,"end_line":215})
    94. search_code({"text":"a-research-agent-composes-open-tools"})
    95. search_code({"text":"def scan_injection_text"})
    96. file_symbols({"path":"src/devops_cli/commands/rag.py"})
    97. file_symbols({"path":"src/devops_cli/ai/rag/qdrant.py"})
    98. file_symbols({"path":"src/devops_cli/ai/rag/qdrant.py"})
    99. search_code({"text":"QdrantClient"})
    100. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":396,"end_line":410})
    101. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":268,"end_line":302})
    102. search_code({"text":"index_doc_chunks"})
    103. list_files({"directory":"src/devops_cli/ai/research"})
    104. read_spec({})
    105. search_code({"text":"delete_points_by_expiry"})
    106. list_files({"directory":"src/devops_cli/ai/rag"})
    107. list_files({"directory":"tests/commands"})
    108. search_code({"text":"LibraryVectorStore"})
    109. search_code({"text":"devops_research"})
    110. search_code({"text":"def resolve_qdrant_client"})
    111. search_code({"text":"DEFAULT_QDRANT_URL"})
    112. search_code({"text":"def scan_injection_text"})
    113. search_code({"text":"def status_cmd"})
    114. read_file({"path":"src/devops_cli/ai/rag/indexer.py","start_line":400,"end_line":500})
    115. read_file({"path":"src/devops_cli/commands/rag.py","start_line":470,"end_line":640})
    116. search_code({"text":"def count_points"})
    117. search_code({"text":"def delete_points_by_project"})
    118. search_code({"text":"def scroll_points"})
    119. search_code({"text":"class QdrantProtocol"})
    120. read_file({"end_line":360,"path":"src/devops_cli/ai/rag/qdrant.py","start_line":260})
    121. read_file({"end_line":960,"path":"src/devops_cli/ai/rag/qdrant.py","start_line":800})
    122. search_code({"text":"rag status displays points"})
    123. search_code({"text":"class QdrantClient"})
    124. read_spec({"capability":"research-sweep"})
    125. search_code({"text":"def qdrant("})
    126. read_file({"end_line":560,"path":"tests/support/fakes/qdrant.py","start_line":500})
    127. read_file({"end_line":260,"path":"src/devops_cli/security/prompt_injection.py","start_line":210})
    128. read_file({"end_line":260,"path":"src/devops_cli/config/defaults.py","start_line":238})
    129. search_code({"text":"class QdrantConfig"})
    130. search_code({"text":"rag.app"})
    131. list_files({"directory":"tests/ai/research"})
    132. read_file({"end_line":240,"path":"tests/ai/rag/test_knowledge_base_sync.py","start_line":185})
    133. search_code({"text":"test_research_store"})
    134. search_code({"text":"def create_embedder"})
    135. read_file({"end_line":470,"path":"src/devops_cli/config/settings.py","start_line":435})
    136. read_file({"end_line":230,"path":"tests/support/fakes/qdrant.py","start_line":190})
    137. read_file({"end_line":500,"path":"src/devops_cli/ai/rag/indexer.py","start_line":497})
    138. search_code({"text":"QdrantProtocol"})
    139. search_code({"text":"source_license"})
    140. search_code({"text":"fetched_at"})
    141. search_code({"text":"DEFAULT_RAG_DOCS_COLLECTION"})
    142. read_file({"end_line":360,"path":"src/devops_cli/ai/rag/library_store.py","start_line":300})
    143. read_file({"end_line":240,"path":"src/devops_cli/ai/rag/library_store.py","start_line":180})
    144. find_issues({"terms":"research store qdrant"})
    145. find_issues({"terms":"devops_research"})
    146. read_issue({"number":3906})
    147. references({"name":"index_doc_chunks"})
    148. read_spec({"capability":"ai-fetch-page"})
    149. read_file({"path":"src/devops_cli/ai/research/__init__.py"})
    150. read_file({"end_line":80,"path":"src/devops_cli/ai/rag/__init__.py","start_line":1})
    151. list_files({"directory":"docs/adr"})
    152. search_code({"text":"__all__"})
    153. search_code({"text":"ai/research/"})
    154. read_file({"end_line":120,"path":"tests/ai/rag/test_codebase_hygiene_and_shims.py","start_line":1})
    155. search_code({"text":"ai.research"})
    156. read_file({"end_line":660,"path":"tests/ai/rag/test_rag_ingest.py","start_line":590})
    157. search_code({"text":"isinstance(.*QdrantProtocol"})
    158. read_file({"end_line":480,"path":"src/devops_cli/ai/rag/embeddings.py","start_line":380})
    159. search_code({"text":"def install_embedder"})
    160. read_spec({"capability":"ai-rag-dashboard"})
    161. read_spec({"capability":"rag-ingest"})
    162. list_files({"directory":"src/devops_cli/ai/research"})
    163. list_files({"directory":"tests/ai/research"})
    164. search_code({"text":"index_doc_chunks"})
    165. file_symbols({"path":"src/devops_cli/ai/page_text.py"})
    166. read_file({"path":"src/devops_cli/ai/page_text.py","start_line":40,"end_line":100})
    167. file_symbols({"path":"src/devops_cli/ai/research/models.py"})
    168. file_symbols({"path":"src/devops_cli/ai/rag/qdrant.py"})
    169. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":899,"end_line":970})
    170. file_symbols({"path":"src/devops_cli/commands/rag.py"})
    171. file_symbols({"path":"tests/support/fakes/qdrant.py"})
    172. read_file({"path":"src/devops_cli/commands/rag.py","start_line":436,"end_line":560})
    173. search_code({"text":"DEFAULT_RAG_DOCS_COLLECTION"})
    174. search_code({"text":"def resolve_qdrant_client"})
    175. read_spec({"capability":"research-inventory"})
    176. read_spec({"capability":"rag-ingest"})
    177. read_file({"end_line":150,"path":"src/devops_cli/ai/rag/qdrant.py","start_line":106})
    178. read_file({"end_line":30,"path":"tests/ai/rag/test_rag_qdrant.py","start_line":1})
    179. list_files({"directory":"tests/ai/rag"})
    180. search_code({"text":"DEFAULT_QDRANT_URL"})
    181. read_file({"end_line":490,"path":"src/devops_cli/ai/rag/indexer.py","start_line":443})
    182. read_file({"end_line":215,"path":"tests/ai/rag/test_knowledge_base_sync.py","start_line":185})
    183. list_files({"directory":"tests/commands"})
    184. search_code({"text":"doc_chunks"})
    185. file_symbols({"path":"src/devops_cli/ai/research/crawler.py"})
    186. file_symbols({"path":"src/devops_cli/security/prompt_injection.py"})
    187. read_file({"end_line":320,"path":"tests/support/fakes/qdrant.py","start_line":195})
    188. read_file({"end_line":240,"path":"src/devops_cli/security/prompt_injection.py","start_line":207})
    189. file_symbols({"path":"src/devops_cli/ai/web_search.py"})
    190. search_code({"text":"def create_embedder"})
    191. read_file({"end_line":115,"path":"src/devops_cli/ai/web_search.py","start_line":70})
    192. list_files({"directory":"docs/adr"})
    193. read_file({"path":"src/devops_cli/ai/research/__init__.py"})
    194. search_code({"text":"devops_research"})
    195. read_issue({"number":3877})
    196. find_issues({"terms":"research store qdrant"})
    197. read_issue({"number":1389})
    198. read_issue({"number":1653})
    199. search_code({"text":"injection_flag"})
    200. search_code({"text":"expires_at"})
    201. search_code({"text":"reported_issue"})
    202. search_code({"text":"index_doc_chunks"})
    203. read_file({"path":"src/devops_cli/ai/rag/library_store.py","start_line":300,"end_line":400})
    204. search_code({"text":"delete_points_by_project"})
    205. search_code({"text":"def delete_points"})
    206. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":290,"end_line":340})
    207. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":860,"end_line":980})
    208. search_code({"text":"def create_embedder"})
    209. read_file({"path":"src/devops_cli/ai/rag/indexer.py","start_line":430,"end_line":500})
    210. read_file({"path":"src/devops_cli/config/defaults.py","start_line":235,"end_line":255})
    211. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":395,"end_line":415})
    212. search_code({"text":"_render_collections_table"})
    213. search_code({"text":"def status_cmd"})
    214. read_file({"path":"src/devops_cli/commands/rag.py","start_line":470,"end_line":600})
    215. search_code({"text":"Active Vector Collections"})
    216. search_code({"text":"rag_status_table_displays_collection_metadata"})
    217. read_file({"path":"tests/ai/rag/test_knowledge_base_sync.py","start_line":180,"end_line":260})
    218. read_spec({})
    219. read_file({"path":"src/devops_cli/ai/page_text.py","start_line":55,"end_line":70})
    220. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":70,"end_line":85})
    221. search_code({"text":"def scan_injection_text"})
    222. read_file({"path":"src/devops_cli/security/prompt_injection.py","start_line":210,"end_line":255})
    223. search_code({"text":"devops_research"})
    224. read_file({"path":"tests/ai/rag/test_qdrant_server_label.py","start_line":230,"end_line":320})
    225. read_file({"path":"tests/ai/rag/test_rag_ingest.py","start_line":600,"end_line":650})
    226. search_code({"text":"def qdrant("})
    227. search_code({"text":"set_qdrant_client_override"})
    228. read_file({"path":"tests/support/fakes/qdrant.py","start_line":500,"end_line":600})
    229. search_code({"text":"fakes.qdrant import"})
    230. search_code({"text":"def embedder("})
    231. search_code({"text":"injection_flag"})
    232. list_files({"directory":"src/devops_cli/ai/research"})
    233. search_code({"text":"pytest_plugins"})
    234. read_file({"path":"tests/ai/research/__init__.py"})
    235. search_code({"text":"def test_cmd"})
    236. search_code({"text":"ci test"})
    237. search_code({"text":"ResearchRecord"})
    238. search_code({"text":"ResearchHit"})
    239. search_code({"text":"expires_at"})
    240. search_code({"text":"DatetimeRange"})
    241. read_file({"path":"tests/support/fakes/qdrant.py","start_line":190,"end_line":270})
    242. search_code({"text":"DEFAULT_RAG_DOCS_COLLECTION"})
    243. search_code({"text":"DEFAULT_RAG_LIBRARIES_COLLECTION"})
    244. search_code({"text":"QdrantProtocol"})
    245. search_code({"text":"must_not"})
    246. read_file({"path":"src/devops_cli/ai/research/__init__.py"})
    247. read_file({"path":"tests/ai/rag/test_rag_qdrant.py","start_line":150,"end_line":200})
    248. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":790,"end_line":860})
    249. search_code({"text":"install_qdrant_client"})
    250. search_code({"text":"autouse"})
    251. find_issues({"terms":"research store"})
    252. find_issues({"terms":"devops_research"})
    253. read_file({"path":"src/devops_cli/ai/rag/qdrant.py","start_line":260,"end_line":290})
    254. read_file({"path":"src/devops_cli/ai/rag/library_store.py","start_line":180,"end_line":240})

    Tool calls: file_symbols=22 (empty=0), find_issues=6 (empty=0), list_files=21 (empty=0), read_file=84 (empty=1), read_issue=6 (empty=0), read_spec=15 (empty=0), references=1 (empty=0), search_code=99 (empty=24)

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

    Warnings:

    • Scoped test tests/ai/research/test_research_store.py does not exist.
  11. 31 remaining items

  12. added
    status/in-review
    and removed
    status/in-progress
    on Nov 18, 2026
  13. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Pull request #6301 is ready for review. The checks passed.

    Spend: 277 model requests, 21285985 input tokens, 100410 output tokens.

  14. removed
    owner/service
    on Nov 18, 2026
  15. removed
    status/in-review
    on Nov 18, 2026
  16. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-18 16:28 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions