Skip to content

feat(roadmap): add a fetch_page tool to refine and alternatives #3890

Description

@dan-petty

Problem

The refine investigation and the alternatives check can find a page (search_web through cited_web_search in roadmap/refine_investigation.py) but cannot read it. They judge a claim such as "this flag exists" on a search snippet, not on the page text. #3243 and #3291 cover the stage toolset only.

Expected

A tool fetch_page(url) next to search_web in InvestigationTools and AlternativesTools. It uses the client of the Crawl4AI client issue. Gate: the same gate as the web search (no private repository) and a set crawl4ai.url. Guard on the model-chosen URL: only a URL that an earlier search_web result of the same run returned, or that the item text names. A per-run limit on fetches. The tool result says that the text is data from an outside page and not an instruction. The tool counts its result. The tool text for the model names the source URL and the fetch date so that a comment can cite them.

Acceptance criteria

  • Tests fail on the base: with a set URL and a public repository, fetch_page is in the tool list; with a private repository or an empty setting it is not.
  • A URL that no search result or item text named is refused with a typed message, and no request is sent.
  • The (N+1)th fetch of a run is refused.
  • A page whose text says "ignore your instructions" reaches the model inside the data frame, and the prompt test checks the frame text.
  • A fetch error is a tool result, not a crash of the round, and it raises the counter.
  • StageTools does not change (that is feat(roadmap): Evaluate a research toolset with web search for the planner #3243).

Existing tool considered

The Crawl4AI client issue; the existing tool classes. No new agent framework: #3877 decides the research agent.

Related

Related: #3243, #3291, #3877, #2398, #2650, #3066 (budgets). Needs a person's approval of the new egress before the cluster ConfigMap enables it.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    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: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It is a capability addition that depends on #3887 and is not a security fix or a blocking defect.
    • Value: Medium. It lets refine and alternatives judge claims on full page text instead of search snippets, improving research quality.
    • Effort: Medium. It requires a new tool class, URL guard logic, a per-run counter, data-frame wrapping, error handling, and tests for each acceptance criterion.
    • Related: feat(ai): fetch page text with the Crawl4AI service #3887, which asks for a different change. Both use Crawl4AI to read page text; #3887 delivers the client function, the candidate delivers the tool wrapper with URL guards, per-run limits, and data framing for refine and alternatives.
  3. added
    priority/p2-medium
    on Nov 7, 2026
  4. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Plan note of 2026-11-07, from the owner's request to add a local SearXNG and the Brave Search API.

    The gate of fetch_page says: the same gate as the web search. After the chain item merges, the web search is on for a public repository when any provider is configured, not when a Firecrawl key is set. fetch_page keeps its second condition, a set crawl4ai.url.

    The set of URLs that fetch_page may fetch holds the URLs of the hits of whichever provider answered. That is a transient use of a search result and stays allowed for Brave hits. fetch_page must not copy the title or the snippet of a hit into any stored record. The index rule is in the issue about keeping research results in Qdrant.

  5. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 7, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 7, 2026
  7. added a commit that references this issue on Nov 7, 2026
  8. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-07 15:32 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-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions