Skip to content
Agent Field Notes
Course contentsExpand a topic to choose a lesson.

SYSTEMATIC LEARNING / FOUR-LEVEL COURSE

Bind claims to sources and verification scope

Examine research plans, source verification, evidence ledgers, experimentation and publication thresholds.

Learning objectives: An article's credibility comes from the relationship between each key claim and the actual evidence read. The number of sources, runnable code, and fluent writing style each only support limited conclusions and cannot be automatically upgraded to production facts.

Content checked: 2026-10-03 · Each level has independent explanations, tasks and inspections

Choose a starting point based on your familiarity with this topic. Current level: Implementation · Build it. After completing the task, continue to the next level. Reading and self-checks alone do not establish mastery.

On this level

Review the prerequisites

Suitable for: Backend developers learning Agent applications.

Bind claims to sources and verification scope
An article's credibility comes from the relationship between each key claim and the actual evidence read. The number of sources, runnable code, and fluent writing style each only support limited conclusions and cannot be automatically upgraded to production facts.

How does the mechanism work?

Step-by-step explanation
  1. Do five reprints count as five sources?

    The main question requires trustworthy citations; this follow-up tests whether multiple sources are independent.

  2. Can the code sample run through be declared production-ready?

    Reproducibility is part of the evidence, but the scope of generalization must still be limited.

  3. How do you know which passages need to be reviewed after a source is updated?

    When trusted articles keep changing, trace the dependencies of their claims.

Implementation · Build it

Implement the contract · Bind claims to sources and verification scope

Objectives of this level: Implement ordered rejection reasons and canonical claim provenance.

Visual guide · Claims inherit evidence limits

Claims inherit evidence limits

The ledger checks declared support links and scope, not claim meaning automatically. Reprints share an origin; a local run cannot prove a production claim. Select the figure to open it at full size.

Same after-sales project

The after-sales team drafts a report claiming that checkpoints prevent duplicate refunds. Separate a mechanism explanation, local tested conditions and production observation. Reprints share origin; unread or changed source versions cannot silently support the current claim. W3C PROV supplies provenance vocabulary, not automated verification of claim meaning.

The existing capstone main-return creates a return application; it does not execute a refund. These manifests are independent fictional extensions or policy/evidence/counting exercises. They do not add real refunds, publication, model calls or Java execution to the capstone runtime.

Complete function contract

Implement build_claim_ledger(payload). claims and sources are record lists with unique nonempty id. A claim has scope mechanism/local/production and a unique source_ids string list referencing existing sources. A source has nonempty origin/version/current_version, bool read, scope from that same vocabulary, and unique supports list referencing existing claim ids. Empty lists valid. Missing/malformed fields, duplicate IDs or unknown references raise ValueError:input; extras ignored. For each claim id ascending, inspect source_ids ascending. Reject first applicable reason in priority unread (read false), stale (version != current_version), scope (source scope != claim scope), claim_mismatch (claim id not in supports). Scope matching is EXACT, not an automatic hierarchy. Eligible sources contribute unique origin strings ascending. Return exactly supported_count/pending_count/claims. Each row is id/status/origins/rejected_sources, each rejection id/reason. Status supported if any eligible origin, else pending; counts match row statuses. No source title or URL count can replace a supporting passage. The structured supports labels are authored fixture annotations, not automated truth verification.

Every listed input key must exist; explicit null is not an absent key. All returns must be JSON-compatible fresh containers, with exact bool/int distinctions, and leave the input unchanged. Every invalid declared field uses exactly ValueError("input"); this includes malformed nested fields. Do not swallow NotImplementedError or return a self-declared passed flag.

Own blank implementation

Download the full local package, extract it and work in its lab_runner.py directory. Runner and this case manifest are alternatives: save the runner and cases/research-report-evidence.json with that exact directory layout. The manifest contains all public fixed inputs/expected outputs; it contains no general solution. It is not an unseen assessment. Python 3.9+ and standard library only; no model keys or network calls are needed while grading.

def build_claim_ledger(payload):
    raise NotImplementedError("Implement the documented contract yourself")
python3 lab_runner.py scaffold --course research-report-evidence --out student.py
python3 lab_runner.py grade --course research-report-evidence --module student.py --out report.json

The untouched scaffold must exit 1. Fill the function yourself and rerun; all 11 public checks must pass for exit 0. Submit student.py, the generated report.json, your source diff and one additional condition-changing test. The runner imports and calls your function on each actual payload, compares exact output/error, checks input preservation and container independence, and records runner/cases/student SHA. A manual passed flag is not accepted. Its 5-second process timeout is a hang guard, not an enterprise latency requirement.

code example

Deliver your own function and report

Implement build_claim_ledger(payload). claims and sources are record lists with unique nonempty id. A claim has scope mechanism/local/production and a unique source_ids string list referencing existing sources. A source has nonempty origin/version/current_version, bool read, scope from that same vocabulary, and unique supports list referencing existing claim ids. Empty lists valid. Missing/malformed fields, duplicate IDs or unknown references raise ValueError:input; extras ignored. For each claim id ascending, inspect source_ids ascending. Reject first applicable reason in priority unread (read false), stale (version != current_version), scope (source scope != claim scope), claim_mismatch (claim id not in supports). Scope matching is EXACT, not an automatic hierarchy. Eligible sources contribute unique origin strings ascending. Return exactly supported_count/pending_count/claims. Each row is id/status/origins/rejected_sources, each rejection id/reason. Status supported if any eligible origin, else pending; counts match row statuses. No source title or URL count can replace a supporting passage. The structured supports labels are authored fixture annotations, not automated truth verification.

The exact function and complete inputs are in the main body. Implement from the blank starter, not by copying expected outputs into branches.

Acceptance task for this level

Implement the blank function and submit the real generated report, own code/diff and one changed-condition test; Java candidates additionally deliver their real Java patch/build. Contract: build_claim_ledger(payload).

Acceptance self-checks

Reading this browser’s record…

Hide the answer and check your understanding

Can a local test support a production claim under this contract?

Further explanations and practice

When encountering unfamiliar principles, first read the implementation, continuous questioning and migration cases, and then independently explain the premise and boundaries. Answers and notes are saved to the original account record.

All linked explanations and exercises (1 )

Sources and verification scope

The principles are based on public information; the numbers, cases and tasks are the teaching design of this website. Offline experiments verify the range noted on this page, and the learning effect still needs to be judged through independent tasks and feedback.