Skip to content

21 Roadmap and Validation Gates

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

21. Roadmap & Validation Gates

Harden and measure the search layer first; add crawler and content-processing components only after reliability gates pass.

flowchart LR
    S1["Stage 1<br/>Reliability<br/>instrumentation"] --> S2["Stage 2<br/>Controlled<br/>validation matrix"]
    S2 --> S3["Stage 3<br/>Collection<br/>maturity"]
    S3 --> S4["Stage 4<br/>Extensible<br/>providers"]
    S4 --> S5["Stage 5 (deferred)<br/>Crawler & research<br/>automation"]
Loading

21.1 Stage 1 — Reliability instrumentation

  1. Separate http_success, engine_success, page_with_results, collection_complete (13).
  2. Correct retry metrics: total requests, retry requests, retry reason.
  3. Two-axis final state: execution health vs target completeness.
  4. Adaptive conservative pacing and bounded backoff; CAPTCHA = stop signal.
  5. Checkpoint with query, region, time, page, result IDs, stop reason; validate resumed overlap.
  6. Caching; no identical queries repeated unless a fresh run is requested.

21.2 Stage 2 — Controlled validation matrix

For normalised URL sets $A,B$: $J(A,B)=|A\cap B|/|A\cup B|$. Record counts, intersection, query/region/timestamp, page coverage, source engine. No production reliability claim before repeatability and failure-injection are documented.

Test Workload Purpose
Smoke 1 query, 1 repeat, 5 pages End-to-end path
Depth 1 query, 1 repeat, 20 pages Pagination depth
Deep 1 query, 1 repeat, 50-page cap Find provider stop point without asserting completion
Repeatability 1 query, 3 repeats, 20-page cap, concurrency 1 Overlap / Jaccard / drift
Multi-query 3 queries, per-query targets, concurrency 1 Isolation and aggregation
Matrix 3 queries × 2 repeats, concurrency 2 Fan-out, artifact naming, aggregation
Fault injection 429, 5xx, timeout, invalid JSON, empty page, CAPTCHA signal Stage-specific failure and partial preservation

21.3 Stage 3 — Collection maturity

Versioned schemas, stable query parsing, deterministic artifact names, idempotent write-back, provenance fields, normalised URLs, dedup tests, explicit stop reasons, retention controls, documented completeness policy. A run that writes data but misses the target is pipeline-executed / collection-partial, not an undifferentiated failure.

21.4 Stage 4 — Extensible providers

Keep SearXNG-only as baseline. Add providers behind a common adapter only after terms, response contract, quotas and reliability are tested. Fusion needs provenance, dedup and ranking (cf. RRF in 4.5) — a design proposal, not a result.

21.5 Stage 5 — Crawler & research automation (deferred)

URL fetching, domain crawl queues, robots/terms checks, content-type detection, HTML/PDF extraction, metadata, optional local LLM analysis, agent orchestration. Keep search, fetching and interpretation as separate, independently testable modules.

21.6 CI test checklist

Config/query parser · matrix preparation · HTTP client status classification · pagination (page cap, short/empty/duplicate page, CAPTCHA, 429/5xx) · normalisation · persistence (atomic writes, raw preservation) · aggregation · repeatability maths · Git write-back (fetch/rebase before staging; no conflicting parallel pushes) · workflow contract (manual trigger, minimal permissions, matrix bounds, artifacts uploaded even for partial runs).

21.7 Success criteria

  1. Smoke run completes with all files and correct provenance.
  2. Later-page failure never loses earlier data.
  3. Aggregation and write-back succeed when a query is partial.
  4. Labels distinguish execution health from completion.
  5. Repeat runs record repeatability metrics.
  6. Multi-query jobs stay isolated with one understandable aggregate.
  7. Limits and stop conditions are respected; no CAPTCHA bypass or evasion.
  8. Live validation — not unit tests alone — supports reliability claims.

21.8 Current status

Item Status
SearXNG-only collector, partial preservation, write-back ✅ Done and observed
Deep pagination to provider stop ✅ Observed once (15 pages)
Status taxonomy / retry metrics / checkpoints 🟡 Specified
Repeatability, multi-query live, matrix live, fault injection 🔴 Not yet validated
Crawler / extraction / LLM ⏸ Deferred

❓ Check your understanding

Q1. Why defer crawling and LLM analysis?

Without a reliable, honest search layer, downstream results inherit unknown gaps; validation gates prevent compounding uncertainty.

Q2. Which test answers "is 20-page depth repeatable?"

Repeatability: 1 query, 3 repeats, 20-page cap, concurrency 1, measuring Jaccard and drift.

Q3. Why must write-back be idempotent?

Parallel or re-run jobs must not create conflicting or duplicate commits.

← Prev 20. Research Directions · Next → 22. Ethics, Law & Compliance

Clone this wiki locally