Deep-Research Agents › Comparing budgeted research strategies
Language AI HandbookAll chapters Both policies see the same six candidate documents and at most two retrieved sentences per document. The document-count policy requires lexical matches from two distinct documents. The origin-count policy requires lexical matches from two distinct roots in the fixture provenance graph. Each scores a decision to report against the same hand-labeled claim set.
We define the evaluation with a small ground-truth table. For each claim, we specify whether the corpus supports it under a manual reading of the six documents. The strategies differ in what they report, not in what they retrieve.
PythonIn [24]Expand
# Hand-labeled ground truth from reading the six documents above.
ground_truth = {
"audits must be performed by an independent auditor": {
"true_supported": True,
},
"audit results must be published": {
"true_supported": True,
},
"candidates residing in Cedar City must be notified at least ten business days before use": {
"true_supported": True,
},
"civil penalties apply to all AI hiring tools": {
"true_supported": False,
},
"EU framework requires an equivalent audit obligation": {
"true_supported": False,
},
}PythonIn [25]Expand
def detect_conflicts(claim_text: str, spans: list) -> list:
"""Fixture probe: identify mixed negation markers among lexical matches."""
neg_pattern = re.compile(r"\b(no|not|never)\b", re.I)
matches = [span for span in spans if lexical_match(span.span, claim_text)]
negative = [span for span in matches if neg_pattern.search(span.span)]
return negative if 0 < len(negative) < len(matches) else []
def strategy_naive(claims: list) -> pd.DataFrame:
rows = []
for c in claims:
report = len({span.doc_id for span in c.evidence}) >= 2
rows.append(
{
"claim": c.text,
"reported": report,
"n_indep": c.independent_count,
}
)
return pd.DataFrame(rows)
def strategy_independence_aware(claims: list) -> pd.DataFrame:
rows = []
for c in claims:
conflicts = detect_conflicts(c.text, c.evidence)
report = c.independent_count >= 2
confidence = (
"high"
if c.independent_count >= 2
else "low"
if c.independent_count == 1
else "none"
)
rows.append(
{
"claim": c.text,
"reported": report,
"n_indep": c.independent_count,
"confidence": confidence,
"conflicts": len(conflicts),
}
)
return pd.DataFrame(rows)
naive_df = strategy_naive(ledger)
aware_df = strategy_independence_aware(ledger)ConsoleOut [26]Expand
Naive strategy:
claim reported n_indep
audits must be performed by an independent auditor True 1
audit results must be published True 2
candidates residing in Cedar City must be notified at least ten business days before use False 0
civil penalties apply to all AI hiring tools False 0
EU framework requires an equivalent audit obligation False 0
Independence-aware strategy:
claim reported n_indep confidence conflicts
audits must be performed by an independent auditor False 1 low 0
audit results must be published True 2 high 0
candidates residing in Cedar City must be notified at least ten business days before use False 0 none 0
civil penalties apply to all AI hiring tools False 0 none 0
EU framework requires an equivalent audit obligation False 0 none 0A policy can render a weaker report by recording where its evidence came from. The difference becomes visible whenever several matching documents share one recorded root.
We look up each candidate claim by its full text in the fixture annotations. An overclaim reports an unsupported claim; an underclaim withholds a supported claim.
PythonIn [27]Expand
def nearest_gt(claim_text: str) -> dict:
"""Use the exact preregistered claim text as the fixture key."""
return ground_truth[claim_text]
def score_strategy(strategy_df: pd.DataFrame) -> dict:
correct = 0
overclaims = 0
underclaims = 0
unreported_false = 0
reported_false = 0
for _, row in strategy_df.iterrows():
gt = nearest_gt(row["claim"])
if gt["true_supported"] is None:
continue
if gt["true_supported"] and row["reported"]:
correct += 1
elif (not gt["true_supported"]) and row["reported"]:
overclaims += 1
reported_false += 1
elif gt["true_supported"] and not row["reported"]:
underclaims += 1
elif (not gt["true_supported"]) and (not row["reported"]):
correct += 1
unreported_false += 1
return {
"correct": correct,
"overclaims": overclaims,
"underclaims": underclaims,
"reported_false": reported_false,
"unreported_false": unreported_false,
}
naive_score = score_strategy(naive_df)
aware_score = score_strategy(aware_df)ConsoleOut [28]Expand
strategy correct overclaims underclaims reported_false unreported_false
naive-count 4 0 1 0 2
independence-aware 3 0 2 0 2The two-document policy marks C1 as a lexical candidate because it has three matching documents. The two-origin policy withholds that candidate because all three share one root. Both comparison rules run before semantic approval. The final answer applies its own hedge rule to verified evidence.
The uncertainty-score decomposition is computed in the next section directly from the ledger, after claim_uncertainty is defined.
Visualizing the two strategies
Labels C1 to C5 follow the order of the five claims in the fixture table. Each claim has two reporting decisions drawn from the same candidate span set. The reference labels were recorded separately from either policy.
PythonIn [29]Expand
plot_df = pd.DataFrame(
[
{
"claim_short": f"C{index + 1}",
"true_supported": annotation["true_supported"],
"naive_reported": bool(
naive_df.loc[naive_df["claim"] == claim, "reported"].iloc[0]
),
"aware_reported": bool(
aware_df.loc[aware_df["claim"] == claim, "reported"].iloc[0]
),
}
for index, (claim, annotation) in enumerate(ground_truth.items())
]
)VisualizationOut [30]Expand

These are reporting decisions on a fixed corpus. A zero bar means the policy withheld that claim. The reference annotation is shown independently, so a withheld supported claim stays visible.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!