Skip to main content
KUSHAL SRINIVAS OP-2026
[ENGINEERING RECORD · DATA & KNOWLEDGE SYSTEMS]

Web Research Engine — Provenance-First Crawling, ETL & Bitemporal Knowledge Graph

GoPythonPostgreSQLRedpandaS3 / SilospaCyTrafilaturaOpenTelemetryDocker

Most web-research pipelines throw scraped HTML straight into a vector database and lose track of where a claim came from, whether five articles are just syndicated copies of one wire report, or when a fact was actually true. Web Research Engine takes the opposite posture: immutable content-hashed raw archives, canonical documents, source-independence lineage, and a bitemporal relational knowledge graph where every claim carries a verbatim quote and verified char_start/char_end character span.

40
PostgreSQL tables
6 schemas · 8 forward-only migrations
4 / 10
Services implemented
Phases 0–7 active · 6 future skeletons
88
Unit & contract tests
49 Go + 39 Python · +6 E2E Compose smokes
19
Controlled KG relations
9 named analytical queries + integrity check

Pipeline Architecture (Phases 0–7)

[PROVENANCE PIPELINE]

Go scheduler (Source Registry + Frontier) → Redpanda → Go fetcher (SSRF Dialer + robots.txt + S3 Raw Archive) → Python parser (Multi-Format ETL + Quality) → Python graph-builder (Dedup/Lineage + NER/Events/Claims + Bitemporal KG)

Implemented pipeline services vs remaining phase skeletons
ServiceLanguageStatusCore Responsibilities
scheduler (:8081)GoImplemented18 internal routes: source registry CRUD, GDELT/seed discovery, 8-dimension quality scoring, adaptive Retry-After backoff, durable crawl frontier & Kafka dispatch
fetcher (:8082)GoImplementedKafka consumer workers, URL normalization, public-IP SSRF dialer with per-hop redirect revalidation, robots.txt cache, per-host politeness gate, conditional ETag/Last-Modified fetch, content-hashed S3 archive
parser (:8085)PythonImplementedHTML (trafilatura/lxml), PDF (PyMuPDF), DOCX, XML (defusedxml), JSON, RSS/Atom extraction; SimHash + SHA-256 dedup; 6-dimension quality gate; quarantine & selective reprocessing
graph-builder (:8087)PythonImplementedStory clustering (SimHash + pg_trgm + 5-shingle Jaccard), lineage edges & inflation ratio, reversible entity resolution, deterministic NER/7 event types/claims with verified quote spans, bitemporal KG projection
api, indexer, reconciler, enricher, llm-gateway, research-orchestratorGo / PythonSkeletonsHealth/readiness/metrics probes, OTLP tracing, and structured logging wired; domain logic deferred to later phases

Key Engineering Decisions

  • PostgreSQL before specialized stores: Per ADRs 0005–0007, OpenSearch, Qdrant, Redis, and Neo4j are deliberately deferred. All 40 tables live across 6 schemas (core, ingest, fetcher, processing, dedup, graph) with tsvector full-text search and versioned KG rebuilds.
  • Source independence over raw mention counts: Phase 5 tracks original, syndicated_copy, repeated_claim, independent, cites, and official_statement lineage edges and computes an inflation_ratio so syndicated reprints cannot masquerade as independent corroboration.
  • Separated confidence & reversible resolution: Fuzzy entity names never auto-merge (routed to review with reversible merge records). Claims separate extraction confidence from factual verification and preserve commitment modality alongside exact character offsets.
  • Bitemporal knowledge graph: Every relationship tracks both world validity (valid_from/valid_to) and observation time (observed_at/recorded_at), exposed through 9 named analytical queries, recursive neighborhood traversal, and a graph integrity checker.
  • End-to-end observability & contracts: 15 shared JSON Schemas validated across Go and Python fixtures, plus an OpenTelemetry Collector, Tempo, Loki, Prometheus, and Grafana Compose stack verified with trace-correlated logs in scripts/smoke.sh.

Read next: Agent Platform and Zomato ETL Warehouse.

BACK TO ALL ENTRIES