Skip to content

feat(research): ask mode reads the index before the web #3915

Closed

Description

@dan-petty

Problem

Refine, alternatives and the planner ask the same kinds of questions again each round. #3243 asks for a research toolset for the planner. #3877 asks for a measure of the research candidate on real questions. The Crawl4AI and Kindly design gives fetch and search tools, but nothing reads stored answers first.

Expected

ASK-mode tools for the roadmap jobs: research_lookup (store first, fresh records only), the search and fetch tools of the Crawl4AI and Kindly design for what is missing or stale, research_grep (exact and regular-expression match over stored text), and storing of each new answer with the question, URL, date, hash and expiry. The query is built from a short term and masked (SECURITY.md rule 13), with a per-run limit.

Acceptance criteria

  • Tests that fail on the base: a fresh stored answer means no web call; an expired one means one web call and an update.
  • A test: a query that holds a secret pattern, a private address or an e-mail address is refused before any request.
  • Measure moved from docs(ai): investigate a web research agent with RAG ingestion #3877: the candidate runs on 10 recorded questions from the alternatives and refine comments of the last 30 days. The PR comment gives the hit rate and the cost per question against the Firecrawl search of today.
  • The tools register for the jobs through the existing toolset path; the per-run limit is a setting.

Existing tool considered

The store (item 4), the Crawl4AI and Kindly tools, firecrawl_search, the DuckDuckGo fallback of #3876, search_web limits in refine and alternatives.

Related

Part of the research agent plan. Related: #3243, #3876, #3066, #2398, #2650, #3220, #3221.

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

Proposed design

Problem statement

Refine, alternatives and the planner ask the same kinds of questions again each round. Nothing reads a stored answer first, so each round pays for the same web search. This item adds ASK-mode tools that read a research index of fetched pages before the web, and stores each new answer with its question, URL, date, hash and expiry. The index stores page text from the fetch tool, never a field of a search result.

Acceptance criteria

Requirement: A fresh answer makes no web call

research_lookup SHALL answer from a stored record whose expiry is in the future and whose hash matches the question and the stored page text, and MUST make no web request.

Scenario: A fresh record answers the lookup

  • WHEN the store holds a fresh record for the question
  • THEN research_lookup returns the stored text and the web search of the run makes zero calls

Requirement: An expired answer refreshes once

research_lookup MUST make one web call and update the stored record when the record is expired or its hash does not match the question and the stored page text.

Scenario: An expired record causes one web call

  • WHEN the store holds a record for the question with an expiry in the past
  • THEN the run makes one web call and the store holds the new text, date, hash and expiry

Requirement: A masked query is refused before any request

The ask-mode tools MUST refuse a query that holds a secret pattern, a private address or an e-mail address before any request leaves the process.

Scenario: A query with a private address

  • WHEN the short term of the query holds an RFC 1918 address
  • THEN the tool answers with a refusal and no HTTP request is made

Requirement: The index holds pages, not search results

The store SHALL write the text of the fetched page, the URL of the fetch and the fetch date with the question, the hash and the expiry, and MUST write no field of a search result.

Scenario: A new answer writes page fields only

  • WHEN the run fetches a page and stores the answer
  • THEN the row holds the page text, the fetch URL and the fetch date, and holds no title, snippet, rank or age

Requirement: research_grep matches exact text and a pattern

research_grep SHALL match an exact term and a regular expression over the stored page text and MUST return each match with its URL.

Scenario: A regular expression over stored text

  • WHEN the store holds two pages and the pattern matches one
  • THEN research_grep returns the one matching record with its URL

Requirement: The tools register through the toolset path

The ask-mode tools SHALL register through the existing toolset path of the refine, alternatives and stage jobs, and MUST be offered only through that path.

Scenario: The refine and stage toolsets hold the new tools

  • WHEN the refine job builds its toolset and the stage job builds the toolset extended
  • THEN the refine toolset holds research_lookup and research_grep and the stage extended toolset names both in the registry

Requirement: The per-run limit is a setting

The ask-mode tools MUST stop after the number of calls that the setting roadmap.research.max_calls_per_run names, and the setting SHALL have a default.

Scenario: The limit stops a run

  • WHEN a run makes one more ask-mode call than the setting allows
  • THEN the tool answers that the limit is reached and makes no further request

Requirement: The search chain holds no Brave provider

The ask-mode search MUST use the provider chain of searxng, duckduckgo and firecrawl, and the chain SHALL hold no Brave provider and no keep parameter.

Scenario: The chain of a run

  • WHEN the run builds the provider chain of its search
  • THEN the chain holds searxng, duckduckgo and firecrawl and registers no Brave provider

Requirement: The measure reports the hit rate and the cost

The pull request comment MUST report the hit rate and the cost per question of the candidate on 10 recorded questions from the alternatives and refine comments of the last 30 days, against the web search of the chain with no index.

Scenario: The measure runs on the recorded questions

  • WHEN the measure runs on the 10 recorded questions
  • THEN the pull request comment gives the hit rate and the cost per question of the candidate and of the chain's web search

Existing Tool Considered

No alternatives check has run. SearXNG (AGPL-3.0, self-hosted), DuckDuckGo and Firecrawl cover the web search, and the provider chain of src/devops_cli/ai/web_search.py holds them; Firecrawl is the last provider and needs a key. The page fetch of src/devops_cli/roadmap/page_fetch.py calls fetch_page_text of src/devops_cli/ai/page_text.py, which returns the page text, the source URL and the fetch date; it stores nothing. SQLite (sqlite3 in the Python standard library) covers the rows and an exact substring match, and Python re covers the regular expression, but SQLite holds no expiry, question hash or masking rule. No open, maintained library covers an index of fetched pages keyed by question with a URL, date, hash, expiry and grep over its text. The project builds the store and the three tools: about 60,000 tokens to build, keep and fix, and about 2 hours of elapsed work.

Key questions

  • Does the ask-mode search use the Brave provider and the keep parameter?: No. The owner decision of 2026-11-07 drops Brave: the chain is searxng, duckduckgo and firecrawl, with no keyed provider and no BRAVE_SEARCH_API_KEY. It also drops the keep parameter and the allows_keep flag, because only the Brave terms required them, so every provider's hits may be kept. The code holds the three providers and no Brave provider, and web_search takes no keep argument. (best practice) [sources: src/devops_cli/ai/web_search.py:291, src/devops_cli/ai/web_search.py:318, docs/CONFIGURATION.md:305, openspec/changes/archive/2026-11-07-3925-web-search-provider-chain/proposal.md:44, openspec/changes/archive/2026-11-07-3927-searxng-search-provider/design.md:16]
    • Chosen: Reuse web_search of the chain with no keep parameter. The owner decision of 2026-11-07 names the chain and drops the keep flag; the code already has exactly these three providers.
    • Rejected: Reuse web_search of the chain with keep=True. The keep flag existed only for the Brave terms, and the owner decision removes it; web_search has no such parameter.
    • Rejected: Keep the Crawl4AI and Kindly search tool. The owner decision names the provider chain as the search path, and the page fetch stays the only Crawl4AI tool.
  • What goes into the research index?: The text of each fetched page, the URL that the fetch asked for and the fetch date, with the question, the hash and the expiry. No field of a search result goes in: no title, snippet, rank or age. The index stores pages, not search results. PageText already gives the text, source_url and fetched_at of one fetch, so the store takes the URL from the fetch and never from a search hit. (best practice) [sources: src/devops_cli/ai/page_text.py:53, src/devops_cli/roadmap/page_fetch.py:12, src/devops_cli/ai/web_search.py:268]
    • Chosen: Page text with the URL and date of the fetch. The owner decision of 2026-11-07 says the index stores pages, and PageText carries the URL and date that the fetch read.
    • Rejected: Search results with title, snippet and rank. The owner decision removes every search-result field from the payload, and the index stores pages.
  • When is a stored answer fresh?: A record is fresh while its expiry is in the future and its hash matches the normalized question and the stored page text. An expired record or a changed hash causes one web call and an update of the row. The change adds CONST_ROADMAP_RESEARCH_ANSWER_EXPIRY_DAYS with a default of 30 days, next to the roadmap constants, and reuses hash_text for the SHA-256 digest. (best practice) [sources: src/devops_cli/roadmap/body_hash.py:43, src/devops_cli/config/constants.py:3049, src/devops_cli/ai/page_text.py:64]
    • Chosen: Expiry and hash. The expiry refreshes an old page and the hash detects a page that changed before it.
    • Rejected: Expiry only. A page that changes before its expiry would answer from stale text.
    • Rejected: Hash only. A page that never changes would never refresh.
  • How does the query avoid a secret, a private address and an e-mail address?: The query is a short term, and the tools pass it through mask_secrets and the guard of web_search before any request. A query that still holds a secret pattern, a private address or an e-mail address is refused, and no request leaves the process. SECURITY.md rules 1, 2 and 13 set this rule, and the existing guard already refuses these forms before any provider runs. (best practice) [sources: src/devops_cli/ai/web_search.py:405, src/devops_cli/ai/web_search.py:421, SECURITY.md:17, SECURITY.md:18, SECURITY.md:40]
    • Chosen: Refuse the query before the request. SECURITY.md rule 1 forbids a secret leak, rule 2 refuses a private address at the connect, and the existing guard already refuses these forms before any provider runs.
    • Rejected: Mask the query and send it. A masked query still names a person or a host, and rule 1 forbids the leak.
  • How do the tools reach the refine, alternatives and stage jobs?: The tools join the existing toolset path: InvestigationTools.tools() of src/devops_cli/roadmap/refine/refine_investigation.py, AlternativesTools.tools() of src/devops_cli/roadmap/alternatives.py, and for the stage planner the registry TOOLS and tool_names of src/devops_cli/roadmap/tools.py with StageTools.tools() of src/devops_cli/roadmap/stage/stage_tools.py. The stage toolset extended gains the two ask-mode tools; base keeps its nine read-only tools, so openspec/specs/roadmap-stage/spec.md is updated with them. No second toolset path is built. (best practice) [sources: src/devops_cli/roadmap/refine/refine_investigation.py:324, src/devops_cli/roadmap/alternatives.py:436, src/devops_cli/roadmap/stage/stage_tools.py:341, src/devops_cli/roadmap/tools.py:71, openspec/specs/roadmap-stage/spec.md:618]
    • Chosen: Join the existing toolset path. The refine and alternatives jobs already build their tools in one tools() method, and the stage planner reads its names from the one registry; the setting roadmap.stage.toolset selects base or extended.
    • Rejected: Build a separate ask-mode toolset. A second path duplicates the tool budget and the masking of the first.
  • Where does the per-run limit live?: The limit is a setting of the main settings, roadmap.research.max_calls_per_run, with the variable DEVOPS_CLI_ROADMAP_RESEARCH_MAX_CALLS_PER_RUN and a default of 20. The change adds RoadmapResearchConfig to RoadmapConfig and the constant CONST_ROADMAP_RESEARCH_MAX_CALLS_PER_RUN_DEFAULT. It does not go into .github/roadmap.toml: that file does not exist in this repository, and the roadmap settings are Pydantic fields under roadmap.* with Variable() and a DEVOPS_CLI_ROADMAP_* variable. (best practice) [sources: src/devops_cli/config/settings.py:1229, src/devops_cli/config/settings.py:929, docs/ENV_VARS.md:123, .devops/roadmap.toml:4]
    • Chosen: A roadmap setting with a constant default. The issue asks for a setting, and the roadmap jobs read their settings from the Pydantic roadmap section with a DEVOPS_CLI_ROADMAP_* variable.
    • Rejected: A key in .github/roadmap.toml. That file does not exist, and the current roadmap file .devops/roadmap.toml holds only [implement.steps]; a new key there would be ignored by RoadmapConfig.
    • Rejected: A constant only. The issue says that the limit is a setting.
  • How does research_grep match the stored text?: The store keeps the page text in SQLite through the sqlite3 module. An exact term is a substring match with LIKE and an ESCAPE for %, _ and the escape character; a regular expression is matched by Python re over the stored text. This is grep semantics over the pages, and it needs no full-text index whose tokenizer would split a term. ADR 0005 keeps a keyed lookup with a full-text fallback and rejects a vector store for retrieval of this kind, so no vector store is built. (best practice) [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md:24, docs/adr/0005-review-findings-come-from-tools-not-models.md:40]
    • Chosen: SQLite LIKE for the term and Python re for the pattern. Both are in the Python standard library, the match is exactly the grep semantics that the issue asks for, and ADR 0005 keeps a keyed lookup with a full-text fallback and rejects a vector store.
    • Rejected: SQLite FTS5 for the term and Python re for the pattern. FTS5 matches tokens, not an exact substring, and it depends on an extension that the standard library build may not carry.
    • Rejected: A vector store. ADR 0005 rejects the vector store for retrieval of this kind.
    • Rejected: A separate grep binary. It adds a dependency that no need requires.
  • What is the baseline of the measure?: The candidate runs on 10 recorded questions from the alternatives and refine comments of the last 30 days. The baseline is the same 10 questions answered by the chain's web search with no index, because the owner decision of 2026-11-07 lets the measure use any provider of the chain. Firecrawl is not the baseline: it answers HTTP 402 when its account has no credits, so a run cannot measure it. A run that uses Brave results to compare providers needs a decision of a person first, and the owner decision drops Brave. (best practice) [sources: docs/CONFIGURATION.md:305, src/devops_cli/ai/web_search.py:291, docs/TELEMETRY.md:93, k8s/README.md:750]
    • Chosen: The chain's web search with no index. The owner decision of 2026-11-07 allows any provider of the chain, and the chain answers today.
    • Rejected: The Firecrawl search of today. Firecrawl answers HTTP 402 when its account has no credits, so the run cannot measure it.
    • Rejected: A Brave search. The owner decision drops Brave, and its terms forbid benchmark use.
  • Which tool reads the page text?: fetch_page_text of src/devops_cli/ai/page_text.py reads the page through the Crawl4AI service and returns PageText, which holds the text, the source_url that the caller asked for and the fetched_at date. The tool fetch_page of src/devops_cli/roadmap/page_fetch.py is the boundary that checks the URL and the fetch limit before it calls that reader; the store takes the URL and date from PageText. [sources: src/devops_cli/ai/page_text.py:53, src/devops_cli/ai/page_text.py:68, src/devops_cli/roadmap/page_fetch.py:93]
  • Where does the research index live?: Under data.dir, in the project's local data directory, as a SQLite file such as <data.dir>/research/index.sqlite3. The project already keeps local cache, review and run data under data.dir, and the Service mounts it; the store creates the directory on first write. It is not committed and not shared between repositories. (best practice) [sources: src/devops_cli/config/settings.py:1241, src/devops_cli/ai/spend/ledger.py:413]
    • Chosen: A SQLite file under data.dir. The project already keeps local cache, review and run data under data.dir, and the spend ledger shows the SQLite pattern that the project uses.
    • Rejected: A file in the repository. The index holds fetched page text and grows with each run, so it is data and not a committed file.
    • Rejected: A remote database. The roadmap jobs run on a workstation and in the Service, and no setting names a database for this index.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Alternatives check of 2026-11-09: none.
Tool: none found.

Activity

  1. added
    source/agent
    type/feature
    status/new
    value/medium
    effort/high
    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. It improves research efficiency but is not a security fix or a blocking defect.
    • Value: Medium. It cuts redundant web calls and keeps answers across rounds, which saves cost and time for every research job.
    • Effort: High. It spans four tools, a security gate, a per-run limit, storage writes, and multiple failing tests.
    • Related: feat(research): keep research results in Qdrant #3906, which asks for a different change. Both work on the research store, but #3906 builds the Qdrant storage layer while the candidate builds the ASK-mode tools that read from and write to that store.
  3. added
    priority/p2-medium
    on Nov 7, 2026
  4. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    REPLACE in Expected: "the search and fetch tools of the Crawl4AI and Kindly design" BY "the web_search of the provider chain, called with keep=True because ask mode stores each new answer, and the fetch_page tool".

    ADD to Expected: "keep=True skips Brave and Firecrawl. Brave Search API Terms of Use (1 Sep 2026), 3(b)(i) and (xiii), forbid the storage of Brave results and their use to benchmark. Ask mode stores page text that the fetch tool read, and the URL of that fetch, and nothing from a search result."

    REPLACE the measure in Acceptance criteria BY: "Measure moved from #3877: the candidate runs on 10 recorded questions from the alternatives and refine comments of the last 30 days, with web_search keep=True (SearXNG and DuckDuckGo). The PR comment gives the hit rate and the cost per question. The baseline is not the Firecrawl search of today, because Firecrawl answers HTTP 402. A run that uses Brave results to compare providers needs a decision of a person first (Brave 3(b)(xiii) names benchmark)."

    ADD a test: a call of the ask-mode search with keep=True never reaches the Brave provider, even when SearXNG and DuckDuckGo fail.

  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 8, 2026
  7. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

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

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

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: The searches surfaced only the web search and fetch stack the item already plans to use — SearXNG (a metasearch engine), Firecrawl and Crawl4AI (an LLM crawler that returns page text for one URL) — and each of them either runs a query or fetches a URL on every call; none of them reads a stored answer first. No open, maintained library keeps a research index keyed by the question with a URL, fetch date, question/page hash and expiry, nor offers exact and regular-expression grep over the stored page text with a masked-query refusal and a per-run call limit, so the item has to build the store and the three ASK-mode tools as designed.

    Tool: none found

    Lacks:

    • No store-first lookup keyed by the question, so every round pays for the same web search
    • No freshness rule of expiry plus a hash over the question and the stored page text, and no refresh of an expired or changed record
    • No exact-term and regular-expression grep over stored page text that returns each match with its URL
    • No refusal of a query that holds a secret pattern, a private address or an e-mail address before any request
    • No per-run call limit and no registration of the ask-mode tools through the existing refine, alternatives and stage toolset path
    • The search and fetch tools do not store the fetched page text with the question, URL, date, hash and expiry

    Tools considered:

    Searches run:

    • web page cache TTL sqlite full text search self-hosted library for LLM agents, results: 5
    • open source research index cache of fetched pages by question with expiry hash and grep, results: 5
    • Crawl4AI cache fetched pages sqlite, results: 5
    • Khoj self-hosted research assistant index web pages, results: 5
    • Perplexica, results: 5
    • Crawl4AI github, results: 5
    • searxng, results: 5
    • llm cache answers by question hash expiry library, results: 5
    • crawl4ai, results: 5
    • firecrawl, 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/3915-ask-mode-reads-the-index-before, draft pull request #6218. 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. Make the ask-mode call limit and the answer expiry roadmap settings: 53968 tokens
    2. Hand the fetched page back from the page fetch boundary: 40510 tokens
    3. Store each fetched page under the question it answered: 45344 tokens
    4. Answer a question from the index before the web: 49074 tokens
    5. Measure the candidate against the chain's web search: 45692 tokens
    6. Give refine's investigation the two ask-mode tools: 44381 tokens
    7. Give the alternatives check the two ask-mode tools: 47185 tokens
    8. Name the two ask-mode tools in the extended prompt: 39924 tokens
    9. Name the two ask-mode tools in the stage registry: 49210 tokens
    10. Give the stage planner a research index of its run: 45311 tokens
    11. Regenerate the settings documents: 34842 tokens
    12. Describe the ask-mode tools, the index and the stage label: 50286 tokens

    The default branch changed these paths that the plan names, after the commit that the planner read. Read the commits before you judge the plan:

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

    • blocker missing_path at tasks (6): The group adds the two names to the registry for the stage toolsets but never changes src/devops_cli/roadmap/stage/stage_tools.py, and StageTools.tools() resolves each registry name with getattr(self, name), so the group's own verify raises AttributeError for research_lookup and research_grep. Evidence: "StageTools.tools() of src/devops_cli/roadmap/stage/stage_tools.py reads the names from tool_names, and the two methods arrive from ResearchToolset"
    • major missing_path at tasks (6): Adding the two names to HOLDER_STAGE_EXTENDED and HOLDER_STAGE_RESEARCH changes the extended and research tool lists that tests/roadmap/stage/test_roadmap_stage_toolbox.py asserts (thirteen and fourteen tools), but the plan changes only tests/roadmap/test_roadmap_tools.py and tests/roadmap/stage/test_roadmap_stage_tools.py, so several tests of that file fail. Evidence: "_EXTENDED_TOOLS = [*_TOOLS, "references", "read_issue", "find_issues"]"
    • major missing_path at tasks (1): The new roadmap.research fields add DEVOPS_CLI_ROADMAP_RESEARCH_MAX_CALLS_PER_RUN and DEVOPS_CLI_ROADMAP_RESEARCH_ANSWER_EXPIRY_DAYS, but group 1 only reads tests/security/test_config_declarations.py and does not add the names to _VARIABLES_OF_LATER_SETTINGS, so test_the_variables_are_those_before_one_for_each_read_option_that_had_none_and_later_ones fails. Evidence: "tests/security/test_config_declarations.py"
    • major ignores_existing_code at design (decisions): The plan reads the page with fetch_page_text directly, bypassing the existing PageFetch boundary that checks the URL and enforces the per-run fetch cap of three that the plan itself cites. Evidence: "It fetches at most CONST_ROADMAP_PAGE_FETCH_MAX times in a run."
    • major other at issue (Measure moved from docs(ai): investigate a web research agent with RAG ingestion #3877: the candidate runs on 10 recorded questions from the alternatives and refine comments of the last 30 days. The PR comment gives the hit rate and the cost per question against the Firecrawl search of today.): The plan changes the measure's baseline from the Firecrawl search of today to the chain's web search with no index, so the report the issue asks for is replaced by a different comparison. Evidence: "The PR comment gives the hit rate and the cost per question against the Firecrawl search of today."
    • major spec_delta_wrong at spec roadmap-research-index (The measure reports the hit rate and the cost): The scenario's THEN is the content of a pull request comment, which no test can assert, and the plan itself says the measure is a person's report rather than code. Evidence: "the pull request comment gives the hit rate and the cost per question of the candidate and of the chain's web search"
    • minor verify_form at tasks (1): The group changes tests/roadmap/test_roadmap_limit_classes.py and says that file fails until the two new limits have a class, but its verify command runs only the new settings test, so the LIMITS change is never run. Evidence: "uv run devops ci test tests/config/test_roadmap_research_settings.py"
    • minor false_premise at proposal (feasibility): The plan names the registry constant tests/roadmap/test_roadmap_limit_classes.py:REGISTRY_COUNTS, but the file holds REGISTRY_COUNTS, so the cited symbol does not exist. Evidence: "REGISTRY_COUNTS: Final[tuple[tuple[str, str, str], ...]] = ("
    • major criterion_dropped at issue (Measure moved from docs(ai): investigate a web research agent with RAG ingestion #3877: the candidate runs on 10 recorded questions from the alternatives and refine comments of the last 30 days. The PR comment gives the hit rate and the cost per question against the Firecrawl search of today.): The plan's own answer says no group builds the measure, so the acceptance criterion that the PR comment reports the hit rate and the cost per question has no task and is parked on a person. Evidence: "The measure is a person's report: it needs 10 recorded questions and a live provider of the chain, so no group builds it."
    • major other at design (decisions): The plan leaves the stage planner's toolset unchanged, so the planner gets neither ask-mode tool, while the issue's problem names the planner and its proposed design requires the stage extended toolset to gain both tools and the roadmap-stage spec to be updated. Evidence: "Leave the stage planner's toolsets unchanged."
    • minor false_premise at proposal (feasibility): The feasibility says group 1 adds one entry per new default to REGISTRY_COUNTS, but REGISTRY_COUNTS holds only (kind, prefix, path) pairs; the per-name entries belong in LIMITS, as group 1's implementation says. Evidence: "one entry per new default to tests/roadmap/test_roadmap_limit_classes.py:44:REGISTRY_COUNTS: Final[tuple[tuple[str, str, str], ...]] = ("
    • nit false_premise at proposal (feasibility): The answer cites line 363 as the condition under which tools() appends fetch_page, but line 363 is the if self.pages is not None: inside search_web; tools() appends fetch_page at line 391. Evidence: "appends fetch_page under src/devops_cli/roadmap/refine/refine_investigation.py:363:if self.pages is not None:"
    • major missing_path at tasks (8): Adding research_lookup and research_grep to the stage-extended holder breaks tests/roadmap/stage/test_roadmap_stage_tools.py, whose hard-coded _EXTENDED_TOOL_NAMES and _RESEARCH_TOOL_NAMES lists pin the thirteen and fourteen tools; the plan only reads that file and no group changes it, so the suite fails after group 8. Evidence: "tests/roadmap/stage/test_roadmap_stage_tools.py"
    • minor other at tasks (9): Group 9 only adds one bullet to the When to call them list, so the prompt keeps its opening Three more tools are on for this run: and its three tool descriptions while the extended toolset offers five tools; the new tools get no description of their arguments or answer, unlike references. Evidence: "Add one bullet to the When to call them list of src/devops_cli/ai/tasks/roadmap_stage_tools_extended.md: call research_lookup for a question that an earlier round may have answered, and research_grep for an exact term or a pattern over the pages that the index holds."
    • minor other at tasks (12): The generated settings documents take the description of roadmap.stage.toolset from the field in src/devops_cli/config/settings.py, which still says extended adds only references, read_issue and find_issues; the plan edits the hand-written docs but never that description, so docs/ENV_VARS.md and docs/CONFIGURATION.md keep the wrong tool list after regeneration. Evidence: "Edit docs/CLUSTER.md and docs/roadmap/stage.md so that the toolset extended names research_lookup and research_grep"
    • minor verify_form at tasks (1): Group 1 changes tests/roadmap/test_roadmap_limit_classes.py and tests/security/test_config_declarations.py, whose failures it names, but its verify command runs only tests/config/test_roadmap_research_settings.py, and no other group's verify runs those two files. Evidence: "uv run devops ci test tests/config/test_roadmap_research_settings.py"
    • major verify_form at tasks (9): Group 9 changes tests/roadmap/stage/test_roadmap_stage_tools.py and tests/roadmap/stage/test_roadmap_stage_toolbox.py, and its own test says the first of them fails first, but the group's verify command runs only tests/roadmap/test_roadmap_tools.py; the two stage test files that the group edits are never run, so a wrong pinned count there goes unnoticed. Evidence: "uv run devops ci test tests/roadmap/test_roadmap_tools.py"
    • major ignores_existing_code at proposal (feasibility): The plan builds its own SQLite research index with a LIKE match, although the accepted ADR 0028 that docs(ai): investigate a web research agent with RAG ingestion #3877 delivered in merged pull request docs(ai): Record the research agent decision in an ADR #6147 chooses a Qdrant collection for the research index and ripgrep for the exact and regular-expression match, the project already has qdrant-client and the ripgrep package, and the open change openspec/changes/3906-keep-research-results-in-qdrant builds that store. Evidence: "so its Qdrant store is not delivered and this change reads and writes its own SQLite file under data.dir"

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

    1. list_files({"directory":"src/devops_cli/roadmap"})
    2. list_files({"directory":"src/devops_cli/ai"})
    3. list_files({"directory":"src/devops_cli/ai/research"})
    4. list_files({"directory":"src/devops_cli/roadmap/stores"})
    5. list_files({"directory":"src/devops_cli/ai/toolsets"})
    6. read_file({"path":"src/devops_cli/roadmap/tools.py"})
    7. read_file({"path":"src/devops_cli/roadmap/page_fetch.py"})
    8. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":160,"end_line":400})
    9. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_tools.py"})
    10. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":1,"end_line":180})
    11. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":430,"end_line":500})
    12. file_symbols({"path":"src/devops_cli/roadmap/refine/refine_investigation.py"})
    13. file_symbols({"path":"src/devops_cli/roadmap/alternatives.py"})
    14. read_file({"end_line":400,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":178})
    15. read_file({"end_line":495,"path":"src/devops_cli/roadmap/alternatives.py","start_line":310})
    16. read_file({"end_line":400,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":336})
    17. file_symbols({"path":"src/devops_cli/ai/web_search.py"})
    18. read_file({"end_line":470,"path":"src/devops_cli/ai/web_search.py","start_line":280})
    19. search_code({"text":"class RoadmapConfig"})
    20. search_code({"text":"class RoadmapStageConfig"})
    21. read_file({"end_line":1360,"path":"src/devops_cli/config/settings.py","start_line":1280})
    22. read_file({"end_line":2200,"path":"src/devops_cli/config/settings.py","start_line":2090})
    23. read_file({"end_line":110,"path":"src/devops_cli/ai/page_text.py","start_line":30})
    24. read_file({"end_line":60,"path":"src/devops_cli/roadmap/body_hash.py","start_line":30})
    25. list_files({"directory":"tests/roadmap"})
    26. search_code({"text":"HOLDER_STAGE_RESEARCH"})
    27. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":120,"end_line":200})
    28. read_file({"path":"tests/roadmap/test_roadmap_tools.py"})
    29. search_code({"text":"ENV_VARS.md"})
    30. search_code({"text":"RoadmapResearch"})
    31. read_spec({"capability":"roadmap-stage/toolbox"})
    32. read_spec({"capability":"web-search"})
    33. search_code({"text":"pages="})
    34. search_code({"text":"PageFetch("})
    35. read_file({"end_line":3110,"path":"src/devops_cli/roadmap/refine/refine.py","start_line":3075})
    36. read_file({"end_line":1270,"path":"src/devops_cli/roadmap/alternatives.py","start_line":1238})
    37. read_file({"end_line":790,"path":"tests/roadmap/refine/test_roadmap_refine_investigation.py","start_line":720})
    38. search_code({"text":"search_web"})
    39. search_code({"text":"CONST_ROADMAP_PAGE_FETCH_MAX"})
    40. list_files({"directory":"tests/config"})
    41. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":1,"end_line":180})
    42. read_file({"end_line":420,"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":180})
    43. list_files({"directory":"tests/security"})
    44. list_files({"directory":"tests/roadmap/stage"})
    45. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":280,"end_line":340})
    46. search_code({"text":"def generate"})
    47. read_file({"path":"src/devops_cli/commands/docs.py","start_line":50,"end_line":95})
    48. search_code({"text":"class SearxngProvider"})
    49. search_code({"text":"class DuckDuckGoProvider"})
    50. search_code({"text":"class FirecrawlProvider"})
    51. search_code({"text":"roadmap/research"})
    52. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":40,"end_line":120})
    53. search_code({"text":"HOLDER_STAGE_RESEARCH"})
    54. search_code({"text":"search_web"})
    55. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1336,"end_line":1380})
    56. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":400,"end_line":425})
    57. list_files({"directory":"directory\""})
    58. list_files({"directory":"src/devops_cli/roadmap"})
    59. search_code({"text":"def tools"})
    60. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":300,"end_line":400})
    61. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":440,"end_line":540})
    62. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":140,"end_line":260})
    63. search_code({"text":"def _counted"})
    64. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":100,"end_line":145})
    65. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":130,"end_line":200})
    66. read_file({"path":"tests/roadmap/test_roadmap_tools.py","start_line":1,"end_line":120})
    67. search_code({"text":"_EXTENDED_TOOLS"})
    68. search_code({"text":"_RESEARCH_TOOLS"})
    69. search_code({"text":"CONST_SETTINGS_SECTION_METADATA"})
    70. read_file({"path":"tests/security/test_config_declarations.py","start_line":300,"end_line":520})
    71. read_file({"path":"tests/security/test_config_declarations.py","start_line":255,"end_line":300})
    72. search_code({"text":"class RoadmapConfig"})
    73. search_code({"text":"_VARIABLES_OF_LATER_SETTINGS"})
    74. read_file({"path":"src/devops_cli/config/settings.py","start_line":2103,"end_line":2260})
    75. search_code({"text":"def test"})
    76. list_files({"directory":"src/devops_cli/commands"})
    77. read_file({"path":"src/devops_cli/commands/research.py","start_line":1,"end_line":80})
    78. search_code({"text":"research_lookup"})
    79. list_files({"directory":"src/devops_cli/research"})
    80. read_file({"path":"src/devops_cli/commands/ai_research.py","start_line":1,"end_line":70})
    81. list_files({"directory":"src/devops_cli/ai/research"})
    82. search_code({"text":"sqlite3"})
    83. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":280,"end_line":460})
    84. read_file({"path":"src/devops_cli/roadmap/page_fetch.py","start_line":1,"end_line":140})
    85. search_code({"text":"\"test\""})
    86. search_code({"text":"def docs"})
    87. read_file({"path":"src/devops_cli/commands/docs.py","start_line":1,"end_line":120})
    88. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1335,"end_line":1370})
    89. read_file({"path":"src/devops_cli/config/constants.py","start_line":3440,"end_line":3470})
    90. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":230,"end_line":470})
    91. search_code({"text":"def test_"})
    92. file_symbols({"path":"tests/roadmap/test_roadmap_limit_classes.py"})
    93. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":840,"end_line":890})
    94. read_file({"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":140,"end_line":230})
    95. read_file({"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":310,"end_line":400})
    96. read_spec({})
    97. read_spec({"capability":"roadmap-stage"})
    98. list_files({"directory":"openspec/specs"})
    99. list_files({"directory":"openspec/specs/roadmap-stage"})
    100. list_files({"directory":"openspec/specs/roadmap-refine"})
    101. read_spec({"capability":"roadmap-stage/toolbox"})
    102. read_spec({"capability":"roadmap-stage/toolbox","requirement":"Research toolset adds search_web"})
    103. read_spec({"capability":"roadmap-stage/toolbox","requirement":"Base and extended omit search_web"})
    104. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":590,"end_line":650})
    105. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":760,"end_line":800})
    106. search_code({"text":"roadmap_stage_tools_extended"})
    107. search_code({"text":"roadmap_stage_tools_research"})
    108. search_code({"text":"has no description"})
    109. search_code({"text":"description is None"})
    110. search_code({"text":"setting_variables"})
    111. search_code({"text":"every setting"})
    112. read_file({"path":"tests/security/test_config_declarations.py","start_line":448,"end_line":510})
    113. read_file({"path":"src/devops_cli/commands/ci.py","start_line":2320,"end_line":2400})
    114. search_code({"text":"def test_cmd"})
    115. search_code({"text":"@app.command(name=\"test\")"})
    116. search_code({"text":"def test("})
    117. list_files({"directory":"docs/roadmap"})
    118. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_tools.py"})
    119. read_file({"path":"src/devops_cli/roadmap/page_fetch.py"})
    120. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":121,"end_line":180})
    121. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":440,"end_line":492})
    122. search_code({"text":"_EXTENDED_TOOLS"})
    123. search_code({"text":"_VARIABLES_OF_LATER_SETTINGS"})
    124. read_file({"end_line":100,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":40})
    125. read_file({"end_line":150,"path":"tests/security/test_config_declarations.py","start_line":120})
    126. read_file({"end_line":360,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":330})
    127. read_file({"end_line":800,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":760})
    128. search_code({"text":"_RESEARCH_TOOLS"})
    129. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":1,"end_line":120})
    130. read_file({"end_line":640,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":598})
    131. list_files({"directory":"src/devops_cli/ai/tasks"})
    132. search_code({"text":"PageFetch("})
    133. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_tools_research.md"})
    134. read_file({"end_line":120,"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":1})
    135. search_code({"text":"DEFAULT_ROADMAP_STAGE_SEARCH_LIMIT"})
    136. search_code({"text":"CONST_ROADMAP_STAGE_SEARCH_LIMIT"})
    137. search_code({"text":"class RoadmapStageConfig"})
    138. search_code({"text":"class RoadmapConfig"})
    139. read_file({"end_line":1330,"path":"src/devops_cli/config/settings.py","start_line":1285})
    140. read_file({"end_line":2170,"path":"src/devops_cli/config/settings.py","start_line":2103})
    141. search_code({"text":"DEFAULT_ROADMAP_STAGE_SEARCH_LIMIT"})
    142. read_file({"end_line":400,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":280})
    143. search_code({"text":"ROADMAP_PAGE_FETCHES_TOTAL"})
    144. read_file({"end_line":3470,"path":"src/devops_cli/config/constants.py","start_line":3440})
    145. search_code({"text":"ROADMAP_PAGE_FETCHES_TOTAL: Final"})
    146. read_file({"end_line":440,"path":"src/devops_cli/ai/web_search.py","start_line":380})
    147. read_file({"end_line":330,"path":"src/devops_cli/ai/web_search.py","start_line":255})
    148. search_code({"text":"class AlternativesTools"})
    149. search_code({"text":"def hash_text"})
    150. read_file({"end_line":400,"path":"src/devops_cli/roadmap/alternatives.py","start_line":320})
    151. search_code({"text":"class DataConfig"})
    152. read_file({"end_line":2215,"path":"src/devops_cli/config/settings.py","start_line":2179})
    153. search_code({"text":"read_page"})
    154. list_files({"directory":"src/devops_cli/roadmap"})
    155. list_files({"directory":"tests/roadmap"})
    156. search_code({"text":"ROADMAP_RESEARCH"})
    157. search_code({"text":"results[\"ENV_VARS.md\"]"})
    158. file_symbols({"path":"src/devops_cli/roadmap/alternatives.py"})
    159. search_code({"text":"SearchQueryRefused"})
    160. list_files({"directory":"src/devops_cli/config"})
    161. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":400,"end_line":430})
    162. read_file({"path":"src/devops_cli/exceptions/ai.py","start_line":255,"end_line":265})
    163. list_files({"directory":"docs/roadmap"})
    164. list_files({"directory":"tests/config"})
    165. list_files({"directory":"src/devops_cli/roadmap"})
    166. read_comment({"number":0})
    167. read_file({"path":"src/devops_cli/config/settings.py","start_line":2090,"end_line":2200})
    168. read_comment({"number":2})
    169. read_comment({"number":3})
    170. read_file({"path":"src/devops_cli/roadmap/page_fetch.py","start_line":85,"end_line":140})
    171. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":285,"end_line":330})
    172. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":398,"end_line":435})
    173. read_file({"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":350,"end_line":400})
    174. read_file({"path":"src/devops_cli/roadmap/refine/refine.py","start_line":3085,"end_line":3105})
    175. read_file({"path":"src/devops_cli/roadmap/alternatives.py","start_line":470,"end_line":495})
    176. read_file({"path":"src/devops_cli/roadmap/alternatives.py","start_line":1245,"end_line":1265})
    177. read_file({"path":"src/devops_cli/config/constants.py","start_line":3450,"end_line":3462})
    178. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":470,"end_line":490})
    179. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":108,"end_line":122})
    180. read_file({"path":"docs/TELEMETRY.md","start_line":138,"end_line":148})
    181. read_file({"path":"src/devops_cli/docs/generator.py","start_line":1340,"end_line":1360})
    182. read_file({"path":"tests/security/test_config_declarations.py","start_line":128,"end_line":175})
    183. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":36,"end_line":60})
    184. search_code({"text":"searxng-check"})
    185. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":76,"end_line":90})
    186. read_file({"path":"src/devops_cli/roadmap/body_hash.py","start_line":38,"end_line":50})
    187. list_files({"directory":"tests/invariants"})
    188. search_code({"text":"_VARIABLES_OF_LATER_SETTINGS"})
    189. read_spec({})
    190. read_file({"path":"tests/roadmap/test_roadmap_limit_classes.py","start_line":200,"end_line":330})
    191. search_code({"text":"PageFetch"})
    192. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":380,"end_line":470})
    193. read_file({"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":195,"end_line":245})
    194. read_file({"path":"src/devops_cli/roadmap/alternatives.py","start_line":310,"end_line":350})
    195. list_files({"directory":"tests/config"})
    196. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":490,"end_line":530})
    197. search_code({"text":"def _counted"})
    198. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":145,"end_line":185})
    199. list_files({"directory":"src/devops_cli/research"})
    200. list_files({"directory":"src/devops_cli/roadmap"})
    201. search_code({"text":"ROADMAP_RESEARCH"})
    202. search_code({"text":"roadmap.research"})
    203. search_code({"text":"def load_settings"})
    204. read_file({"path":"src/devops_cli/config/settings.py","start_line":3000,"end_line":3060})
    205. read_file({"path":"src/devops_cli/config/settings.py","start_line":2734,"end_line":2790})
    206. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":1,"end_line":200})
    207. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_tools.py"})
    208. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":110,"end_line":180})
    209. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":440,"end_line":500})
    210. search_code({"text":"PageFetch"})
    211. search_code({"text":"ROADMAP_PAGE_FETCH"})
    212. search_code({"text":"StageTools("})
    213. read_file({"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":200,"end_line":250})
    214. read_file({"end_line":200,"path":"src/devops_cli/roadmap/stage/stage_toolbox.py","start_line":100})
    215. read_file({"end_line":400,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":340})
    216. read_file({"path":"src/devops_cli/roadmap/page_fetch.py"})
    217. read_spec({"capability":"roadmap-stage/toolbox"})
    218. read_spec({"capability":"roadmap-page-fetch"})
    219. search_code({"text":"page_fetches_total"})
    220. read_spec({"capability":"roadmap-page-fetch","requirement":"Each call is counted"})
    221. repo_map({"directory":"src/devops_cli/roadmap/eval"})
    222. read_spec({"capability":"roadmap-page-fetch","requirement":"The tool is on for a public repository with a Crawl4AI address"})
    223. read_issue({"number":3877})
    224. read_issue({"number":3906})
    225. search_code({"text":"devops_research"})
    226. list_files({"directory":"docs/adr"})
    227. read_file({"path":"docs/adr/0028-a-research-agent-composes-open-tools-and-a-research-index.md"})
    228. search_code({"text":"ripgrep"})
    229. find_issues({"terms":"research index ask-mode tools research_lookup"})
    230. search_code({"text":"\"eval\""})
    231. list_files({"directory":"src/devops_cli/commands"})
    232. read_spec({"capability":"roadmap-stage/toolbox","requirement":"The setting toolset chooses the tools of a plan run"})
    233. read_spec({"capability":"roadmap-stage/toolbox","requirement":"Research toolset adds search_web"})
    234. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":286,"end_line":330})
    235. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":398,"end_line":432})
    236. read_file({"path":"src/devops_cli/config/constants.py","start_line":3450,"end_line":3462})
    237. list_files({"directory":"tests"})
    238. read_file({"end_line":2112,"path":"src/devops_cli/config/settings.py","start_line":2100})
    239. read_file({"end_line":2190,"path":"src/devops_cli/config/settings.py","start_line":2176})
    240. read_file({"end_line":50,"path":"src/devops_cli/roadmap/body_hash.py","start_line":36})
    241. list_files({"directory":"docs/roadmap"})
    242. list_files({"directory":"src/devops_cli/config"})
    243. read_file({"end_line":352,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":325})
    244. read_file({"end_line":115,"path":"tests/roadmap/test_roadmap_tools.py","start_line":75})
    245. search_code({"text":"ResearchIndex"})
    246. read_spec({"capability":"roadmap-stage/toolbox","requirement":"The setting toolset chooses the tools of a plan run"})
    247. read_file({"path":"src/devops_cli/roadmap/page_fetch.py"})
    248. file_symbols({"path":"src/devops_cli/roadmap/refine/refine_investigation.py"})
    249. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":1,"end_line":130})
    250. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_tools.py"})
    251. read_file({"path":"src/devops_cli/roadmap/stage/stage_toolbox.py","start_line":100,"end_line":200})
    252. read_file({"end_line":200,"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":121})
    253. read_file({"end_line":500,"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":440})
    254. read_file({"end_line":232,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":205})
    255. read_file({"end_line":396,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":340})
    256. search_code({"text":"PageFetch("})
    257. search_code({"text":"class AlternativesTools"})
    258. read_file({"end_line":380,"path":"src/devops_cli/roadmap/alternatives.py","start_line":320})
    259. read_file({"end_line":460,"path":"src/devops_cli/roadmap/alternatives.py","start_line":420})
    260. search_code({"text":"def tools(self)"})
    261. read_file({"end_line":560,"path":"src/devops_cli/roadmap/alternatives.py","start_line":500})
    262. read_file({"end_line":498,"path":"src/devops_cli/roadmap/alternatives.py","start_line":470})
    263. read_file({"end_line":1270,"path":"src/devops_cli/roadmap/alternatives.py","start_line":1240})
    264. list_files({"directory":"tests/config"})
    265. list_files({"directory":"src/devops_cli/config"})
    266. search_code({"text":"_VARIABLES_OF_LATER_SETTINGS"})
    267. search_code({"text":"{10, 13}"})
    268. list_files({"directory":"docs/roadmap"})
    269. search_code({"text":"ROADMAP_PAGE_FETCHES_TOTAL"})
    270. read_file({"end_line":3130,"path":"src/devops_cli/roadmap/refine/refine.py","start_line":3080})
    271. search_code({"text":"research_lookup"})
    272. search_code({"text":"search_web"})
    273. search_code({"text":"find_issues"})
    274. search_code({"text":"test_roadmap_stage_toolbox"})
    275. read_file({"path":"tests/roadmap/test_roadmap_tools.py","start_line":80,"end_line":105})
    276. search_code({"text":"names exactly the tools of the toolbox"})
    277. search_code({"text":"EXTENDED_TOOLS_TASK"})
    278. search_code({"text":"roadmap_stage_tools_extended"})
    279. read_file({"end_line":330,"path":"src/devops_cli/ai/web_search.py","start_line":285})
    280. read_file({"end_line":430,"path":"src/devops_cli/ai/web_search.py","start_line":400})
    281. read_file({"end_line":55,"path":"src/devops_cli/roadmap/body_hash.py","start_line":35})
    282. read_file({"end_line":2190,"path":"src/devops_cli/config/settings.py","start_line":2100})
    283. read_spec({"capability":"roadmap-page-fetch","requirement":"Each call is counted"})
    284. read_spec({"capability":"roadmap-page-fetch","requirement":"The tool is on for a public repository with a Crawl4AI address"})
    285. search_code({"text":"0028-a-research-agent"})
    286. list_files({"directory":"tests/roadmap/stage"})
    287. read_file({"path":"src/devops_cli/roadmap/page_fetch.py","start_line":60,"end_line":130})
    288. read_file({"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":200,"end_line":225})
    289. read_file({"path":"tests/roadmap/test_roadmap_tools.py","start_line":60,"end_line":120})
    290. read_spec({"capability":"roadmap-stage/toolbox","requirement":"The setting toolset chooses the tools of a plan run"})
    291. read_file({"end_line":330,"path":"src/devops_cli/ai/web_search.py","start_line":285})
    292. read_file({"end_line":430,"path":"src/devops_cli/ai/web_search.py","start_line":400})
    293. read_file({"end_line":125,"path":"src/devops_cli/roadmap/tools.py","start_line":40})
    294. read_file({"end_line":155,"path":"src/devops_cli/roadmap/stage/stage_toolbox.py","start_line":135})
    295. read_spec({"capability":"roadmap-page-fetch","requirement":"Each call is counted"})
    296. read_file({"end_line":2110,"path":"src/devops_cli/config/settings.py","start_line":2100})
    297. read_file({"end_line":2186,"path":"src/devops_cli/config/settings.py","start_line":2178})
    298. read_file({"end_line":3460,"path":"src/devops_cli/config/constants.py","start_line":3452})
    299. read_file({"end_line":50,"path":"src/devops_cli/roadmap/body_hash.py","start_line":40})
    300. read_file({"end_line":395,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":383})
    301. read_issue({"number":3906})
    302. read_issue({"number":3877})
    303. find_issues({"terms":"research index"})
    304. references({"name":"research_lookup"})
    305. references({"name":"ResearchAsk"})
    306. references({"name":"devops_research"})
    307. references({"name":"page_of"})
    308. search_code({"text":"TOOLSET_"})
    309. references({"name":"research_grep"})
    310. read_file({"end_line":60,"path":"src/devops_cli/roadmap/page_fetch.py","start_line":1})
    311. read_file({"end_line":1262,"path":"src/devops_cli/roadmap/alternatives.py","start_line":1245})
    312. list_files({"directory":"tests/roadmap"})
    313. list_files({"directory":"tests/roadmap/stage"})
    314. list_files({"directory":"tests/config"})
    315. read_file({"end_line":495,"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":478})
    316. list_files({"directory":"tests/roadmap/refine"})
    317. list_files({"directory":"tests/security"})
    318. search_code({"text":"_VARIABLES_OF_LATER_SETTINGS"})
    319. search_code({"text":"DEFAULT_ROADMAP_"})
    320. search_code({"text":"TOOLSET_STAGE"})
    321. search_code({"text":"RoadmapResearchConfig"})
    322. search_code({"text":"recorded_questions"})
    323. search_code({"text":"ResearchMeasure"})
    324. read_file({"end_line":3102,"path":"src/devops_cli/roadmap/refine/refine.py","start_line":3088})
    325. search_code({"text":"IndexedAnswer"})
    326. search_code({"text":"ResearchIndex"})
    327. search_code({"text":"research_ask"})
    328. read_file({"path":"src/devops_cli/roadmap/page_fetch.py"})
    329. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":260,"end_line":340})
    330. read_file({"path":"src/devops_cli/ai/web_search.py","start_line":400,"end_line":430})
    331. read_file({"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":205,"end_line":215})
    332. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":100,"end_line":145})
    333. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":470,"end_line":520})
    334. read_file({"path":"src/devops_cli/roadmap/stage/stage_toolbox.py","start_line":100,"end_line":180})
    335. read_file({"path":"src/devops_cli/roadmap/page_fetch.py","start_line":40,"end_line":120})
    336. read_file({"end_line":240,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":200})
    337. read_file({"end_line":400,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":375})
    338. read_file({"end_line":3105,"path":"src/devops_cli/roadmap/refine/refine.py","start_line":3085})
    339. search_code({"text":"_VARIABLES_OF_LATER_SETTINGS"})
    340. read_file({"end_line":335,"path":"src/devops_cli/roadmap/alternatives.py","start_line":315})
    341. read_file({"end_line":495,"path":"src/devops_cli/roadmap/alternatives.py","start_line":470})
    342. read_file({"end_line":1270,"path":"src/devops_cli/roadmap/alternatives.py","start_line":1245})
    343. read_file({"end_line":460,"path":"tests/security/test_config_declarations.py","start_line":400})
    344. read_spec({"capability":"roadmap-stage/toolbox","requirement":"The setting toolset chooses the tools of a plan run"})
    345. read_spec({"capability":"roadmap-page-fetch","requirement":"Each call is counted"})
    346. read_file({"end_line":2110,"path":"src/devops_cli/config/settings.py","start_line":2098})
    347. read_file({"end_line":2190,"path":"src/devops_cli/config/settings.py","start_line":2175})
    348. read_file({"end_line":330,"path":"src/devops_cli/ai/web_search.py","start_line":285})
    349. read_file({"end_line":430,"path":"src/devops_cli/ai/web_search.py","start_line":395})
    350. read_file({"end_line":200,"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":145})
    351. read_file({"end_line":100,"path":"tests/roadmap/test_roadmap_tools.py","start_line":85})
    352. search_code({"text":"fifteen"})
    353. search_code({"text":"stage-extended"})
    354. read_file({"end_line":200,"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":140})
    355. search_code({"text":"thirteen"})
    356. read_file({"end_line":140,"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":1})
    357. search_code({"text":"HOLDER_STAGE_EXTENDED"})
    358. search_code({"text":"tool_names("})
    359. read_file({"end_line":125,"path":"tests/roadmap/stage/test_roadmap_stage_trace_spans.py","start_line":95})
    360. read_file({"end_line":2610,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2585})
    361. search_code({"text":"page_of"})
    362. search_code({"text":"\"find_issues\""})
    363. read_file({"end_line":620,"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":530})
    364. read_file({"end_line":1010,"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":975})
    365. read_spec({})
    366. search_code({"text":"fetch_page"})
    367. search_code({"text":"three tools"})
    368. read_spec({"capability":"roadmap-alternatives"})
    369. read_spec({"capability":"roadmap-page-fetch"})
    370. read_spec({"capability":"roadmap-page-fetch","requirement":"The tool is on for a public repository with a Crawl4AI address"})
    371. search_code({"text":"StageTools("})
    372. search_code({"text":"InvestigationTools("})
    373. search_code({"text":"AlternativesTools("})
    374. search_code({"text":".tools()"})
    375. read_issue({"number":3906})
    376. read_file({"end_line":780,"path":"tests/roadmap/refine/test_roadmap_refine_investigation.py","start_line":750})
    377. list_files({"directory":"src/devops_cli/ai/tasks"})
    378. list_files({"directory":"docs/roadmap"})
    379. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_tools_extended.md"})
    380. read_file({"end_line":120,"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":1})
    381. search_code({"text":"ENV_VARS.md"})
    382. search_code({"text":"CONFIGURATION.md"})
    383. search_code({"text":"RoadmapResearchConfig"})
    384. search_code({"text":"research_lookup"})
    385. read_spec({"capability":"roadmap-alternatives","requirement":"The agent finds facts with three tools only"})
    386. list_files({"directory":"tests/invariants"})
    387. search_code({"text":"test_committed_addresses"})
    388. search_code({"text":"search_web"})
    389. search_code({"text":"The tools of a plan run of the stage job"})
    390. search_code({"text":"_EXTENDED_TOOL_NAMES"})
    391. search_code({"text":"_RESEARCH_TOOL_NAMES"})
    392. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":30,"end_line":180})
    393. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":30,"end_line":130})
    394. read_file({"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":470,"end_line":520})
    395. read_file({"end_line":470,"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":380})
    396. read_file({"path":"tests/roadmap/test_roadmap_tools.py","start_line":60,"end_line":130})
    397. search_code({"text":"research_lookup"})
    398. search_code({"text":"find_issues"})
    399. search_code({"text":"search_web"})
    400. search_code({"text":"test_roadmap_stage_toolbox"})
    401. file_symbols({"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py"})
    402. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":317,"end_line":352})
    403. search_code({"text":"_EXTENDED_TOOLS"})
    404. read_file({"end_line":650,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":76})
    405. read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_tools_extended.md"})
    406. search_code({"text":"roadmap_stage_tools_extended"})
    407. search_code({"text":"read_only"})
    408. search_code({"text":"entry.read_only"})
    409. search_code({"text":".read_only"})
    410. read_file({"path":"tests/roadmap/test_roadmap_tools.py","start_line":1,"end_line":60})
    411. search_code({"text":"thirteen"})
    412. search_code({"text":"fourteen"})
    413. read_file({"path":"openspec/specs/roadmap-stage/toolbox/spec.md","start_line":60,"end_line":120})
    414. search_code({"text":"more tools are on for this run"})
    415. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":920,"end_line":975})
    416. read_file({"end_line":175,"path":"src/devops_cli/roadmap/stage/stage_toolbox.py","start_line":1})
    417. search_code({"text":"crawl4ai"})
    418. list_files({"directory":"k8s/devops/crawl4ai"})
    419. read_file({"path":"k8s/devops/crawl4ai/networkpolicy-client.yaml"})
    420. search_code({"text":"devops-cli-job"})
    421. read_file({"path":"k8s/devops/searxng/networkpolicy-client.yaml"})
    422. read_file({"path":"k8s/devops/crawl4ai/kustomization.yaml"})
    423. search_code({"text":"crawl4ai.api_token"})
    424. search_code({"text":"crawl4ai.url"})
    425. list_files({"directory":"tests/gate/k8s_checks"})
    426. search_code({"text":"networkpolicy-client.yaml"})
    427. search_code({"text":"NetworkPolicy"})
    428. search_code({"text":"cannot run the 'k8s' row"})
    429. search_code({"text":"--only k8s"})
    430. read_file({"path":"tests/roadmap/test_roadmap_tools.py","start_line":60,"end_line":120})
    431. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":30,"end_line":80})
    432. read_file({"path":"src/devops_cli/roadmap/tools.py","start_line":30,"end_line":140})
    433. read_file({"end_line":175,"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":130})
    434. read_file({"end_line":370,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":320})
    435. read_file({"end_line":160,"path":"src/devops_cli/roadmap/page_fetch.py","start_line":70})
    436. read_file({"end_line":175,"path":"src/devops_cli/roadmap/stage/stage_toolbox.py","start_line":100})
    437. read_file({"end_line":200,"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":110})
    438. read_file({"end_line":510,"path":"src/devops_cli/roadmap/stage/stage_tools.py","start_line":470})
    439. read_file({"end_line":260,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":205})
    440. read_file({"end_line":410,"path":"src/devops_cli/roadmap/refine/refine_investigation.py","start_line":375})
    441. read_file({"end_line":2200,"path":"src/devops_cli/config/settings.py","start_line":2090})
    442. read_file({"end_line":440,"path":"src/devops_cli/ai/web_search.py","start_line":280})
    443. read_file({"path":"docs/adr/0005-review-findings-come-from-tools-not-models.md","start_line":1,"end_line":60})
    444. search_code({"text":"roadmap.stage.toolset"})
    445. read_spec({"capability":"roadmap-stage/toolbox","requirement":"The setting toolset chooses the tools of a plan run"})
    446. read_spec({"capability":"roadmap-page-fetch","requirement":"Each call is counted"})
    447. search_code({"text":"_VARIABLES_OF_LATER_SETTINGS"})
    448. search_code({"text":"DEFAULT_ROADMAP_STAGE_MAX_TOOL_CALLS"})
    449. read_file({"end_line":220,"path":"tests/roadmap/stage/test_roadmap_stage_tools.py","start_line":170})
    450. search_code({"text":"thirteen"})
    451. read_file({"end_line":640,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":570})
    452. read_file({"end_line":800,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":760})
    453. search_code({"text":"searxng-check"})
    454. search_code({"text":"def page_of"})
    455. search_code({"text":"crawl4ai"})
    456. read_issue({"number":3877})
    457. read_issue({"number":3906})
    458. read_file({"end_line":3105,"path":"src/devops_cli/roadmap/refine/refine.py","start_line":3090})
    459. read_file({"end_line":500,"path":"src/devops_cli/roadmap/alternatives.py","start_line":470})
    460. read_file({"end_line":1270,"path":"src/devops_cli/roadmap/alternatives.py","start_line":1245})
    461. read_file({"end_line":350,"path":"src/devops_cli/roadmap/alternatives.py","start_line":305})
    462. search_code({"text":"research_lookup"})
    463. read_file({"end_line":3460,"path":"src/devops_cli/config/constants.py","start_line":3450})
    464. read_file({"end_line":45,"path":"src/devops_cli/config/defaults.py","start_line":1})
    465. search_code({"text":"Three more tools"})
    466. search_code({"text":"more tools are on for this run"})
    467. search_code({"text":"def load_settings"})
    468. search_code({"text":"def research_ask"})
    469. read_file({"end_line":2780,"path":"src/devops_cli/config/settings.py","start_line":2734})
    470. search_code({"text":"ripgrep"})
    471. search_code({"text":"BIN_RG"})
    472. search_code({"text":"page_of"})
    473. search_code({"text":"ResearchIndex"})
    474. search_code({"text":"recorded_questions"})
    475. search_code({"text":"roadmap_stage_tools_extended"})
    476. search_code({"text":"_EXTENDED_TOOLS"})
    477. read_file({"end_line":975,"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":925})
    478. read_file({"end_line":430,"path":"tests/roadmap/stage/test_roadmap_stage_toolbox.py","start_line":405})
    479. search_code({"text":"prompt_version"})
    480. search_code({"text":"prompt_version"})
    481. read_file({"end_line":200,"path":"tests/roadmap/stage/test_roadmap_stage_plan_record.py","start_line":184})
    482. search_code({"text":"QdrantClient"})
    483. read_file({"path":"docs/adr/0028-a-research-agent-composes-open-tools-and-a-research-index.md","start_line":30,"end_line":70})
    484. read_comment({})
    485. read_comment({"number":3})
    486. search_code({"text":"TOOLSET_REFINE"})
    487. search_code({"text":"TOOLSET_ALTERNATIVES"})
    488. search_code({"text":"read_only"})
    489. search_code({"text":".read_only"})

    Tool calls: file_symbols=11 (empty=0), find_issues=2 (empty=0), list_files=48 (empty=0), read_comment=5 (empty=0), read_file=218 (empty=0), read_issue=7 (empty=0), read_spec=28 (empty=0), references=5 (empty=3), repo_map=1 (empty=0), search_code=164 (empty=32)

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

    The plan request held these comments of the item whole: #3915 (comment), #3915 (comment), #3915 (comment), #3915 (comment), #3915 (comment).

    Warnings:

    • Scoped test tests/config/test_roadmap_research_settings.py does not exist.
    • Scoped test tests/roadmap/test_roadmap_ask_index.py does not exist.
    • Scoped test tests/roadmap/test_roadmap_ask_tools.py does not exist.
    • Scoped test tests/roadmap/test_roadmap_research_measure.py does not exist.
  11. 3 remaining items

  12. added 3 commits that reference this issue on Nov 18, 2026
  13. added
    status/planned
    and removed
    status/ready
    on Nov 18, 2026
  14. added
    status/in-progress
    and removed
    status/planned
    on Nov 23, 2026
  15. added
    status/in-review
    and removed
    status/in-progress
    on Nov 23, 2026
  16. removed
    status/in-review
    on Nov 23, 2026
  17. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-23 13:09 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/highpriority/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