Claude Certified Architect

Foundations · CCAR-F

Domain 5 — 15%

Task 5.5

Provenance Tracking

Linking output claims to their sources in multi-agent systems

📘What You Need to Know

Why Provenance Matters

In multi-agent systems, data flows through multiple subagents — search agents, database agents, analysis agents, synthesis agents. When the coordinator presents a final answer, every claim must be traceable to its source. Without provenance, you cannot verify claims, resolve conflicts, audit decisions, or present meaningful human checkpoints.

Provenance is not optional metadata — it is the foundation of reliability in multi-agent pipelines. The exam tests whether you track source, confidence, timestamp, and agent_id for data flowing through agent systems.

Provenance Metadata Fields

Every data point in a multi-agent pipeline should carry four metadata fields. Source: where the data came from (API endpoint, database table, document page, web URL). Confidence: how reliable the value is (verified, extracted, inferred, estimated). Timestamp: when the data was retrieved. Agent_id: which subagent provided this data.

These fields enable downstream consumers — coordinators, human reviewers, audit systems — to assess trustworthiness without re-running the entire pipeline.

  • •source: API, database, document, web — where data originated
  • •confidence: verified(4) > extracted(3) > inferred(2) > estimated(1)
  • •timestamp: when data was retrieved (for staleness detection)
  • •agent_id: which subagent provided this data (for debugging and audit)
{
  "product_price": {
    "value": 29.99,
    "provenance": {
      "source": "pricing_api/v2/products/SKU-123",
      "confidence": "verified",
      "timestamp": "2024-07-08T14:30:00Z",
      "agent_id": "pricing_subagent"
    }
  }
}

Claim-Source Mappings

Claim-source mappings link each output statement to the evidence supporting it. When the coordinator says "the refund is eligible because the order is within the 30-day return window," provenance shows: return_window policy from config (verified), order_date from order_db (extracted), days_since_order calculated (inferred).

Human reviewers and audit systems use claim-source mappings to verify reasoning chains without re-executing the pipeline. This is especially critical for financial and compliance decisions.

Conflict Resolution by Confidence Ranking

When multiple subagents return different values for the same field — two different prices, conflicting dates, mismatched statuses — do not silently pick one. Rank sources by confidence level: verified (4) > extracted (3) > inferred (2) > estimated (1). When confidence levels tie, present both values with provenance and route to human review.

Silent conflict resolution hides uncertainty from downstream consumers. Explicit conflict annotation preserves transparency and enables informed human decisions.

🔑Key Concept

Never silently choose one source when data conflicts. Annotate both values with provenance and confidence levels.

Provenance in Human Checkpoints

Human checkpoints (lesson 5.6) depend on provenance. When presenting a $5,000 refund decision to a human reviewer, they need: the refund amount (from order system, verified), the policy interpretation (from policy agent, inferred), and any conflicting data (from multiple sources, annotated). Without provenance, the human cannot make an informed decision.

Build provenance tracking into your pipeline from the start — retrofitting it after agents are deployed is significantly harder than designing it in.

⚠️Exam Traps

Trap: No provenance tracking for data flowing through multi-agent pipelines

Why it's wrong: Cannot verify claims, resolve conflicts, audit decisions, or present meaningful human checkpoints.

Correct approach: Track source, confidence, timestamp, and agent_id for every data point.

Trap: Silently choosing the first result when two subagents return different values

Why it's wrong: Hides uncertainty — downstream consumers and human reviewers see one value as fact.

Correct approach: Annotate conflict with both values, sources, confidence levels, and timestamps.

Trap: Averaging conflicting numeric values from different sources

Why it's wrong: Averaging invents a value that neither source reported — worse than picking one.

Correct approach: Present both values with provenance and route to human review or confidence-based selection.

Trap: Asking Claude to "decide which source is correct" without provenance context

Why it's wrong: Model has no basis for adjudication — may hallucinate a resolution.

Correct approach: Rank by confidence level; escalate ties to human review with full provenance.

✓Concept Check

Two subagents return different prices for the same product: $29.99 (pricing API, verified) and $34.99 (web scrape, extracted). What should the coordinator do?

🔨Build Exercise

Advanced45 minutes

Implement Provenance Metadata Pipeline

What you'll learn

  • •Define provenance metadata schema for subagent outputs
  • •Implement conflict detection and annotation
  • •Build claim-source mappings for coordinator responses