Skip to content

14 Simulation vs Real Infrastructure

Anurag Prasad edited this page Nov 29, 2026 · 1 revision

14. Simulation vs Real Infrastructure

How faithful is the lab? An honest fidelity assessment: what carries over to production, and what does not.

Fidelity map Figure 14.1 · Fidelity of the simulation by area (project assessment).

14.1 Fidelity matrix

Area Lab Real deployments Fidelity
Orchestration & fan-out Actions matrix Kubernetes/Airflow-style schedulers High conceptually
Search client (pagination, status, dedup) Real, tested Same logic inside agent tool servers High
Upstream reaction (CAPTCHA/202) Observed live Same phenomenon, plus managed vendor contracts Medium
Observability & evidence Logs, artifacts Metrics, tracing, SLOs Medium
Crawl & index Not present Distributed crawl, storage, ranking None
Dense/ANN retrieval Not present Vector DBs (e.g. HNSW) None
LLM orchestration Not present Hosted search tools (8) None (planned)
Traffic identity Shared runner IPs Declared crawler IPs / signed agents (16) Low
Legal/commercial terms Informal Licences, contracts, pay-per-crawl Low

14.2 What it connects to in the real world

  1. Agent tool servers (search/fetch MCP servers, vendor server-side tools) face the same status-truth problem.
  2. Upstream concentration — a lab dependency on DuckDuckGo mirrors industry dependency on a few indexes (9.2).
  3. Politeness vs throughput — same trade-off, orders of magnitude smaller.
  4. Provenance and citation — vendors return citations (Claude docs); the lab keeps source-engine provenance per URL.

14.3 How successful was the simulation?

Claim Verdict
Build a reproducible search-collection pipeline on free runners ✅ Demonstrated (CI runs completed)
Classify provider failures instead of flattening them ✅ Demonstrated (202, CAPTCHA page 16)
Preserve partial output ✅ Demonstrated (216 URLs kept)
Operate multi-stage orchestration with write-back ✅ Demonstrated (archive, push, artifacts)
Reliable deep pagination ⚠️ Not shown (15 pages, one run)
Repeatability ⚠️ Not measured
Parallel multi-query at scale ⚠️ Designed, not proven
Whole agentic search stack ❌ Out of scope so far

Summary: the lab reproduces the client-side reliability layer of an agentic search stack with good fidelity and says very little about index quality, ranking or reasoning.

14.4 Threats to validity

  • Single upstream (DuckDuckGo) and a single query.
  • Runner network identity may differ from user traffic.
  • Time variation: upstream behaviour at one moment may not repeat.
  • Selection: a PDF-heavy query may not represent general queries.
  • Measurement: string-based PDF counts; no content verification.

14.5 Extending fidelity

Add a second independent upstream (after terms review), fault-injection with mocked engines, replay of recorded SERPs, and a tiny local crawl+BM25 index over a permitted corpus to study ranking — all within CI limits (21).


❓ Check your understanding

Q1. What is the lab's strongest transferable result?

That success must be defined at several layers — HTTP, engine, results, completeness — and partial data must survive failure.

Q2. Name one threat to external validity.

Single upstream/single query; runner IP identity; one time window.

Q3. Which real-world component is entirely absent?

Crawler + index + ranker (and the LLM layer).

← Prev 13. Reliability · Next → 15. Bot Traffic & AI Crawlers

Clone this wiki locally