Provenance in Multi-Source Research: Keep Every Claim With Its Source and Date, and Show Conflicts Instead of Settling Them
Survey A says 58% chose chat in March, Survey B says 41% in October, and two sources give 6 and 9 hours for email replies in the same month. A small synthesis step keeps every value with its source and month, sorts established from contested, and leaves the conflict for the coordinator.
What you will learn
- Pass findings as claim, source, excerpt and collected date so a summary step can't drop the source
- Split findings into well established and contested, and keep both values of a conflict
- Tell a same-month conflict from a difference that may be a real change over time
- Format a report by content: numbers in a table, news as prose, technical points as a list
Before you start
- How a coordinator hands work to subagents
- Basic Python and JSON
A research system is answering Do customers prefer chat or email support? Three sources answer: Survey A, Survey B and a support log. One synthesis agent writes the final report, and the report says: Most customers prefer chat.
Which survey? Collected when? The reader can't check it, and neither can the next agent in the pipeline. A confident sentence with no names attached is hard to trust and impossible to check. This article keeps the names attached.
All the numbers below are example numbers made up for the project, and the project runs on stand-in data in plain Python, with no model and no API key.
A court record
A court keeps a record of what witnesses say. Record A says: the light was red. Said by whom? When? The judge can only guess.
Record B says: witness one, morning, red. Witness two, evening, green. Now you know who said what and when. The second voice disagrees, and it's kept anyway. The judge weighs both, later. A research report should work like record B: keep the speaker and the time, even when two voices disagree.
Where the source gets lost
Usually in a summary step. Each step rewrites the claim a little shorter, and the first thing to go is who said it.
The fix is to pass a claim as a structure: the claim, the source, the source's own excerpt, and when it was collected. Every step that touches it must keep all of them.
findings.json: the claim-source mappings
This is what a subagent hands back. It's plain data with stand-in numbers.
[
{"id": 1, "kind": "number", "topic": "chat share", "value": "58%",
"source": "Survey A", "collected": "March",
"excerpt": "58 of 100 customers chose chat"},
{"id": 2, "kind": "number", "topic": "chat share", "value": "41%",
"source": "Survey B", "collected": "October",
"excerpt": "41 of 100 customers chose chat"},
{"id": 3, "kind": "number", "topic": "reply hours", "value": "6 h",
"source": "Survey A", "collected": "March",
"excerpt": "email replies took 6 hours"},
{"id": 4, "kind": "number", "topic": "reply hours", "value": "9 h",
"source": "Support log", "collected": "March",
"excerpt": "email replies took 9 hours"},
{"id": 5, "kind": "fact", "topic": "email for detail", "value": "yes",
"source": "Survey A", "collected": "March",
"excerpt": "detailed problems go to email"},
{"id": 6, "kind": "fact", "topic": "email for detail", "value": "yes",
"source": "Support log", "collected": "October",
"excerpt": "long cases start by email"},
{"id": 7, "kind": "news", "topic": "help desks", "value":
"A shop moved its help desk to chat first",
"source": "Trade news", "collected": "October",
"excerpt": "the help desk now opens in chat"},
{"id": 8, "kind": "technical", "topic": "chat tools", "value":
"Chat keeps a transcript you can search",
"source": "Vendor docs", "collected": "March",
"excerpt": "transcripts are searchable"}
]
- kind, topic, value: the claim itself.
- source, collected: who said it and when. The month is enough here.
- excerpt: the source's own words, so its wording and method aren't rewritten by a summary.
Look at findings 1 and 2: same topic, different source, different value. Findings 3 and 4 also disagree, but in the same month. The kind field also marks news and technical points, which matter for formatting later. The keys are the project's own convention, not part of any SDK.
synthesize.py: merge without losing anyone
"""Merge findings and keep every claim tied to its source.
Stand-in data, no key."""
import json
import sys
findings = json.load(open("findings.json"))
def tag(f):
return f"{f['source']}, {f['collected']}"
def split(findings):
topics = {}
for f in findings:
if f["kind"] in ("number", "fact"):
topics.setdefault(f["topic"], []).append(f)
agreed, contested = [], []
for items in topics.values():
same = len({f["value"] for f in items}) == 1
(agreed if same else contested).append(items)
return agreed, contested
def report():
agreed, contested = split(findings)
print("WELL ESTABLISHED")
for items in agreed:
print(f" {items[0]['topic']} <- " + " | ".join(map(tag, items)))
print("CONTESTED: both kept, coordinator decides")
for items in contested:
print(f" {items[0]['topic']}")
for f in items:
print(f" {f['value']} <- {tag(f)}")
dates = {f["collected"] for f in items}
print(" dates differ: may be a real change" if len(dates) > 1
else " same date: a true conflict")
tagkeeps the source and the month together as one label.splitgroups by topic and puts the whole finding in the group, source and all. If every source gives the same value, the topic is established. If not, it's contested.- For a contested topic,
reportprints every value with its own source. Nobody averages, nobody picks. - If the months differ, it says may be a real change, not is one. A month apart is a reason to look, not proof.
This report prints the tag, not the excerpt. The excerpt stays in the data, so whoever reconciles a conflict can read each source's own words.
Run it
Running python synthesize.py:
WELL ESTABLISHED
email for detail <- Survey A, March | Support log, October
CONTESTED: both kept, coordinator decides
chat share
58% <- Survey A, March
41% <- Survey B, October
dates differ: may be a real change
reply hours
6 h <- Survey A, March
9 h <- Support log, March
same date: a true conflict
- Well established comes first. Two sources agree that email suits detailed issues, and both are named.
- Chat share: 58% from Survey A in March, 41% from Survey B in October. Both kept. The months differ, so it may be a real change.
- Reply hours: 6 h and 9 h, both from March. Same month, so it's a true conflict, and both stay.
Notice the heading: both kept, coordinator decides. The synthesis step never picks a number.
Conflicts: keep both and annotate
Take the true conflict: two sources, the same month, 6 hours and 9 hours. One way is to pick one and move on. Say 6. The 9 is dropped because someone chose, the report says "replies take six hours", and the other source vanishes without a trace.
The other way is to keep both and annotate each value as a conflict, with its source. Then the coordinator decides how to reconcile, before anything goes on to the final synthesis. The excerpts give it each source's own words to work from.
Dates: a contradiction or a change?
Without dates, 58% and 41% look like a contradiction. Add the dates and the picture changes: Survey A was collected in March, Survey B in October. Seven months apart, the share may really have moved. That's why every subagent should return the publication or collection date beside each value. Without it, the coordinator can't tell a conflict from a trend.
Match the format to the content
The final report shouldn't force everything into one bullet list. The same script has a render mode. Here is the function:
def render():
print("TABLE")
for f in findings:
if f["kind"] == "number":
print(f" {f['topic']:12}{f['value']:>5} {tag(f)}")
news = [f for f in findings if f["kind"] == "news"][0]
print("PROSE\n " + f"{news['value']} ({tag(news)}).")
print("LIST")
for f in findings:
if f["kind"] == "technical":
print(f" - {f['value']} ({tag(f)})")
render() if sys.argv[1:] == ["render"] else report()
Running python synthesize.py render:
TABLE
chat share 58% Survey A, March
chat share 41% Survey B, October
reply hours 6 h Survey A, March
reply hours 9 h Support log, March
PROSE
A shop moved its help desk to chat first (Trade news, October).
LIST
- Chat keeps a transcript you can search (Vendor docs, March)
- Numbers go in a table. Each row keeps its topic, value and source, so they're easy to compare.
- News goes in prose. A story has a reason in it, so it reads as a sentence, with the source in brackets.
- Technical points go in a list. One point per line, easy to scan.
Each format still carries the source tag. The format changes; the provenance doesn't.
Common mistakes
- Summarising claim and source apart. A summary step that keeps only the text loses who said it.
- Picking one value. The other source disappears, and nobody can see there was a disagreement.
- Averaging two values. 58% and 41% become a number nobody reported.
- No dates. A change over time looks exactly like a contradiction.
- Calling a date gap a change. Different months mean it may be a real change. Say that, not more.
- One format for everything. Numbers buried in bullets are hard to compare; news squeezed into a table loses its reason.
Recap
| Situation | Example (stand-in data) | What the report does |
|---|---|---|
| Sources agree | Email for detail: Survey A, Support log | Well established, both named |
| Differ, different months | Chat share 58% (March), 41% (October) | Contested, both kept, may be a real change |
| Differ, same month | Reply hours 6 h, 9 h (both March) | True conflict, both kept, coordinator reconciles |
| Numbers / news / technical | Shares, a help desk story, transcripts | Table / prose / list, source on each |
On the exam, when two credible sources give different numbers, pick the answer that keeps both with their sources and dates and lets the coordinator reconcile. Reject picking one value, dropping the source, or flattening everything into one list.
Try it yourself
Add a third chat-share finding from a new source in October with the value 41%. Run python synthesize.py and see that chat share stays contested, now with three sources. Then change finding 4's collected to "April" and watch reply hours switch from a true conflict to "may be a real change".
Related course on Udemy
Claude Certified Architect - Foundations (CCAR-F) Exam Prep
Agentic loops, tools, MCP, Claude Code, prompts, structured output and context.View on Udemy ↗: Claude Certified Architect - Foundations (CCAR-F) Exam Prep (paid course, opens in a new tab)Related posts
The Claude Messages API: Your First Call, Field by Field
One request in, one Message out. The four fields of a Messages API call (model, max_tokens, system, messages), how to read content blocks, stop_reason and usage, and why every turn resends the history.
Claude Tool Use: How tool_use and tool_result Work in the Messages API
Follow one order question through Claude's tool round trip: define a tool, read the tool_use block, run your own function and send a matching tool_result back, including parallel calls and is_error.
Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared
Every Claude client SDK wraps the same REST request: a POST to /v1/messages with a JSON body. See it built by hand, through the Python and TypeScript SDKs, as typed errors, and as async calls that wait together.
Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move
Configure the Anthropic SDK client (timeout, max_retries, with_options, async, pagination), see which errors it retries by itself, then repair a retry wrapper so a 429, a 529, a 400 and a timeout each get the move the docs support.
