Repository navigation
01 Goals and Objectives
One-line mission: learn how a search-and-retrieval layer for AI agents behaves under real constraints — reliability, pagination, throttling, provenance — by reproducing as much of the ecosystem as a free CI runner allows, and by documenting honestly where the simulation stops.
Large language models (LLMs) store knowledge in their parameters, frozen at a training cutoff. To answer questions about today they must reach into the world through tools — chiefly web search and page fetching. Every major assistant now ships such a tool (OpenAI, Anthropic, DeepSeek). Yet from the outside we rarely see what such a layer must survive: rate limits, interstitial challenges, duplicate results, partial failures, and policy boundaries.
This project asks: can a small, reproducible lab on GitHub Actions teach us the engineering of that layer? The goal is not to build a search index from scratch; it is to learn how search providers and interfaces behave when queried from a controlled runner, and how collection evidence can be made reproducible.
Figure 1.1 · The agentic search loop this lab exists to support (project diagram; pattern from ReAct, Yao et al. 2022).
| # | Objective | Why it matters |
|---|---|---|
| O1 | Establish a working collection pipeline: query, provider, region, result target, pagination limit | Baseline for everything else |
| O2 | Compare provider interfaces under the same query and record access failures as failures — not as empty results | An agent that treats a challenge page as "no results" will hallucinate absence |
| O3 | Test deeper pagination; separate HTTP success from engine success | Status truth is the foundation of reliable tool use |
| O4 | Preserve partial output when later pages fail | Graceful degradation |
| O5 | Validate URL normalisation, deduplication and source-engine provenance | Citations need trustworthy provenance |
| O6 | Simulate deployment operations: manual launch, isolated jobs, logs, artifacts, aggregation, safe write-back | Operational realism |
| O7 | Add automated checks per stage before scaling queries, repeats or concurrency | Evidence before scale |
| O8 | Keep search independent from future crawler, extraction, research and agent modules | Modular research platform |
- Document the ecosystem — crawling, indexing, ranking, metasearch, APIs (Part II).
- Trace the agentic lineage — from retrieval-augmented generation to deep-research agents (7).
- Compare vendor implementations with primary documentation (8).
- Map simulation to reality honestly (14).
- Understand the web's response — bot traffic, Cloudflare-style controls, pay-per-crawl, blind spots (Part V).
- Seed research directions others can pick up (20).
CAPTCHA solving or evasion · site crawling · downloading PDFs · OCR · LLM synthesis · RAG · paper extraction · production service hosting. These are deferred behind validation gates (21).
- Observed facts ≠ assumptions. Each page labels measured, reported and design claims.
- Stop signals are respected. A CAPTCHA is a boundary, not a retry condition.
- Two-axis status. Pipeline health and collection completeness are reported separately (see 13).
- Provenance everywhere. Every URL keeps its source engine.
- Evidence retention. Logs, raw JSON, cleaned JSON, CSV, metadata and workflow artifacts.
A smoke run with correct provenance; later-page failure never loses earlier data; aggregation and write-back succeed on partial runs; status labels distinguish health from completeness; repeatability metrics are recorded; multi-query jobs stay isolated; limits and stop conditions are respected; and live validation — not unit tests alone — supports any reliability claim. Full list: 21.
Q1. Why is "build a search index" explicitly not an objective?
An index at web scale requires crawl infrastructure, storage and ranking research far beyond a free CI runner. The lab instead studies the client side of search: how an agent-facing collector behaves against real providers. See 14.
Q2. Why must "HTTP 200" not be read as "search succeeded"?
On page 16 of the deep run SearXNG returned HTTP 200 but zero results, with DuckDuckGo flagged as unresponsive due to a CAPTCHA. Treating that as an empty page would make an agent conclude there is nothing more to find. See 13.
Q3. What does "keep search independent from future modules" buy us?
Independently testable contracts: search collection, page fetching and interpretation can each be validated, swapped or scaled without entangling provider quirks with LLM logic.
Web Search Engine Pipeline Wiki · evidence snapshot 29 Nov 2026 · measured results are from the project's GitHub Actions runs; third-party figures are cited inline and listed in References.
Part I · Mission
Part II · Search Ecosystem
Part III · LLMs Meet the Web
- 6. Parametric vs Retrieved Knowledge
- 7. Agentic Search Architecture History
- 8. How Major Assistants Search
- 9. Search APIs for Agents
- 10. Agentic Browsing & Computer Use
Part IV · Simulation Lab
- 11. Simulation Strategy on GitHub Actions
- 12. Experiments & Measured Results
- 13. Reliability & Failure Taxonomy
- 14. Simulation vs Real Infrastructure
Part V · The Machine-Majority Web
- 15. Bot Traffic & AI Crawlers
- 16. Detection, Blocking & Monetisation
- 17. Detection Gaps
- 18. AI-Generated Content & the Info Ecosystem
- 19. Industry Adoption & Use Cases
Part VI · Future
Appendix