Module 3: Signal Aggregation · 25 min

Designing a Multi-Source Signal Pipeline

// sabak

Turn this lesson into one checked practice output

By the end, you should be able to explain the core idea behind “Designing a Multi-Source Signal Pipeline” in your own words, apply it to one small real or sample task, and identify what still needs human review.

  1. 1

    Learn

    Read the 25-minute lesson without copying an output blindly.

  2. 2

    Try

    Use a small, non-sensitive example that you can inspect line by line.

  3. 3

    Review

    Check facts, fit, and risk; save one improvement note for next time.

A multi-source pipeline should preserve what each source said, when it said it, and how it relates to the contract. It should not collapse repeated reporting into fake independent confirmation or convert weak text into a confident number.

Separate Pipeline Layers

Use immutable stages:

  1. Ingest: collect authorized official/public records and read-only market observations.
  2. Raw store: preserve original payload/content hash, source URL/ID, retrieval time, and terms-compliant metadata.
  3. Normalize: parse dates/timezones, entities, document status, units, and stable identifiers.
  4. Deduplicate/lineage: link copied reports to a common origin and version chain.
  5. Extract: identify claims, support/contradiction, and relevance to resolution.
  6. Review: human approval for decisive claims and ambiguous status.
  7. Aggregate: compute transparent summaries from approved structured rows.
  8. Publish: output a paper-research brief with source IDs, uncertainty, and freshness.

Never let an LLM write directly into the approved evidence table without validation.

Define a Claim Schema

Each claim row needs claim ID, market ID, source ID, original/secondary flag, event time, publication time, retrieval time, timezone, document version, stance (supports/contradicts/neutral), relevance, status (confirmed/unconfirmed/ambiguous), reviewer, and notes.

Keep source quality dimensions separate. “Official” does not guarantee timeliness; “fast” does not guarantee independence. A later correction supersedes a claim but does not erase the historical record.

Handle Independence and Duplication

Create a lineage graph: report B cites report A, which cites one anonymous post. This is one origin, not three signals. Cluster verbatim/near-verbatim content as a review aid, then verify manually. Avoid accusing publishers of copying based only on similarity.

For independent evidence, ask whether sources observed the fact separately, used different primary records, or merely referenced the same announcement.

Build for Failure

Use timeouts, bounded retries/backoff, rate-limit compliance, schema validation, dead-letter review, idempotent ingestion, and freshness alerts. A missing feed must be marked missing; it cannot become a neutral or negative signal. Store parser/runtime versions and tests for sample payloads.

Do not scrape access-controlled or personal data. Minimize stored content and define retention/deletion.

Worked Example

Five headlines report that an agency approved a proposal. Lineage shows all five rely on one wire report, while the official docket says “accepted for review.” The pipeline keeps five documents but one evidence origin and status unconfirmed. When the final order appears, it creates a new primary claim and preserves the prior timeline.

Failure Cases

  • Counting articles rather than independent evidence.
  • Overwriting corrected or superseded documents.
  • Mixing event, publication, and retrieval times.
  • Treating feed failure as no event.
  • Letting AI create source IDs or quotes.
  • Hiding parser errors behind a dashboard score.
  • Collecting more personal/full-text data than needed.

🇵🇰 Pakistan Angle

Official Pakistani sites may publish PDFs, scans, English/Urdu versions, or delayed updates. Preserve original files/hashes where lawful, perform OCR as a derived layer, and require human review for names, dates, and legal status. Do not bypass site protections.

Plan for connectivity outages with idempotent resume and stale markers. Store UTC plus original timezone and display PKT explicitly.

Hands-On Exercise

Design the eight-stage pipeline for one market using ten synthetic/public sources. Produce data dictionary, lineage graph, three parser tests, retry/staleness rules, a five-row approved claim table, and a failure drill. No live-trading fields or credentials may exist.

Completion Rubric

  • Complete: raw/normalized/approved layers, lineage, time semantics, failures, privacy, and reviewer ownership are explicit.
  • Needs revision: sources are combined but independence, corrections, or stale-feed behavior remains weak.
  • Not complete: article count becomes confidence or AI output bypasses evidence review.

Sources

Key takeaway: Preserve source lineage, versions, and failures before aggregation; duplicated headlines are not independent evidence.

Self-check

Before you mark Lesson 3.1 complete

  • Can I explain “Designing a Multi-Source Signal Pipeline” without reading the lesson back word for word?
  • Did I complete the lesson’s practice step on a real or clearly labelled sample task?
  • Did I check the result for invented facts, private data, unsafe actions, and mismatch with the brief?