Skip to content
Agent Field Notes
Practice topicsFilter practice questions by topic.All practice →
knowledge unit 53IntermediateSystem designAbout 12 minutes

Understand → Implement → Debug → Design

Provenance and support answer different questions

Reject a relevant citation that omits an exception, a contradicted claim and an unsupported business-completion claim.

Groundingrefuse to answerQuote

Knowledge content check2026-10-11 · Check the source of the original question2026-10-11

Which step do you want to learn from this knowledge point?

Select the starting point based on the current basis, or you can go deeper one by one. When you encounter an unfamiliar concept, go back to the core principles first; use the knowledge exercises to check your understanding when you are finished.

Understand first

New to this knowledge point

Complete the prerequisite concepts, read the principles and counterexamples, and then explain why in your own words.

Start with core principles →

Implement next

Prepare to write the principles into code

Understand implementation steps and boundaries, complete small tasks, and check results against acceptance requirements.

View the code example →

Debug failures

Need to handle failures and changes in conditions

Follow the continuous questioning to locate the failure premise, and then compare the migration cases to explain how the plan should be adjusted.

Continue to delve deeper into the problem →

Compare designs

Need to design or review plans

Combine engineering deductions and senior self-evaluation standards to explain the applicable conditions, costs and alternatives of the plan.

Analyze engineering scenarios →
Knowledge unit directory

LEARN · PRACTICE · REFLECT

Knowledge learning and personal records

My notes and review ↗

First read along the principles, Q&A and migration cases. When you need to check your understanding, switch to reinforcement exercises or start personal recording.

Answers and personal notes

Each modified commit will be kept as an independent history. Your level of mastery is up to you to evaluate yourself against the standards.

Core concept · Provenance and support answer different questions

Understand the core principles first

Preparatory concepts:Authorized applicable source metadata, Claim conditions and material exceptions, Partial-answer and action acceptance contracts

The actual applicable evidence must support each material claim; provenance cannot substitute for missing conditions or business outcome evidence.

Visual guide · A cited source must support this specific claim

A cited source must support this specific claim

A source link establishes neither all conditions nor a business effect. Answer supported subclaims and keep material gaps explicit. Select the figure to open it at full size.

The same cited base can support window_days=30 yet fail to support opened-battery eligibility. Support depends on the claim and its conditions, not a document-level relevant/not-relevant label. A business-completion claim needs a receipt, a different type of source entirely.

Partial answers preserve useful established facts while showing gaps. Their acceptance contract must also protect any downstream action that depends on the gap. The narrow experiment makes this distinction executable and states its prose limits.

Evidence trace: applicability through actual context to supported claims
  1. 1
    Corpus

    Attach tenant, group, version and valid interval to base and exception clauses.

  2. 2
    Trusted query context

    Filter applicable authorized IDs before rank fusion.

  3. 3
    Ranking

    Fuse two authored rank lists; retain stage IDs.

  4. 4
    Assembly

    Expand authorized same-version clauses and preserve the complete bundle or abstain.

  5. 5
    Verifier

    Check context membership and bounded claim conditions; arbitrary prose remains not_scored.

This deep-dive uses authored rankings. The linked existing RAG pipeline retains its separately recorded real local embedding provenance.

Check understanding with a question

When does a citation support a claim, and when should RAG abstain?

Compare with the reference answer

A citation ID establishes provenance only if it was authorized and actually assembled. Support also needs applicable source content and the claim's conditions. Answer supported subclaims with explicit gaps; abstain from decisions dependent on missing, stale or conflicting material. Evaluate coverage and false support separately rather than maximizing answer rate.

Implementation and trade-offs

In the authored v2 corpus, the base supports a 30-day general window. The battery exception says an opened battery cannot be returned unless defective. For opened=True, defective=False and age20, eligible=True is contradicted even if it cites both actual context IDs.

The lab verifies typed eligible and window_days claims only. A stale, foreign or invented citation ID fails citation_not_in_context. A missing exception fails missing_required_evidence. Full context with the wrong value fails claim_contradicted. refund_already_sent fails unsupported_claim_field because policy text cannot prove a business effect.

If a third claim lacks evidence, answer the supported two with an explicit gap when that is useful. If the missing claim controls a payment or irreversible decision, withhold that action and request authoritative evidence. Similarity and model self-confidence do not fill the gap.

Conflicting authorized sources require effective-time/version/authority precedence or an unresolved-conflict response. Keep the answerable and unanswerable slices, supported partial claims, unsupported acceptance and over-abstention separate. A system that refuses everything can lower unsupported-answer count without being useful. These local fixtures test rule coverage, not arbitrary prose entailment or model abstention calibration.

code example

Reproducible local boundary check

Python 3.9+, standard library. Extract /lab/deep-dive/agent-core-deep-dive-v1.zip and run this snippet beside rag_evidence_deep_dive.py; /lab/deep-dive/rag_evidence_deep_dive.py is also available. Authored fixtures only; not a live model or external service.

from rag_evidence_deep_dive import assemble,candidate,verify_claims
t=assemble()
assert verify_claims(candidate(),t)['accepted']
assert verify_claims(candidate(True),t)['reason']=='claim_contradicted'
unsupported={'claims':[{'field':'refund_already_sent','value':True,'citations':['returns-v2-base']}]}
print(verify_claims(unsupported,t)['reason'])

expected output

unsupported_claim_field

Engineering deduction

scene
Authored opened non-defective battery; both current source IDs are in context but candidate eligibility is True.
design decisions
Apply source applicability, citation membership and the explicit exception condition before accepting the claim.
Verify target
The wrong cited claim is rejected; eligibility=False is accepted. Unknown effect-completion fields are rejected rather than inferred.
applicable boundary
The verifier covers two typed v2 fields, not unrestricted narrative entailment or measured model calibration.

Continuous questions and answers

Continue reading along with the premises and constraints of the problem. Understand the reference answers first, then try to put away the answers and explain the cause and effect and trade-offs in your own words.

Draw inferences from one example: If the conditions change, how to deduce it?

First find out the conditions for change, and then determine which premises in the original plan still hold true. The following cases are teaching deductions to facilitate the transfer of principles to new problems.

Open-world explanation beside a closed policy decision

Changing conditions:The answer may include common knowledge but its refund decision must follow the tenant policy.

Extended question:How should sources and uncertainty be presented?

Derivation and reference solutions

Separate the policy-supported decision from supplementary explanation and mark the provenance/boundary of each. General knowledge cannot override tenant exceptions or prove provider state. The action gate uses authoritative policy and receipts, even if open-world text is useful.

The principles that remain unchanged:Material action claims require the appropriate authoritative evidence.

A previously supported answer becomes stale

Changing conditions:The current policy changes but an old cached response still has working citation URLs.

Extended question:Can citation availability preserve the old answer?

Derivation and reference solutions

No for a current-policy query. Revalidate version/effective time and invalidate the affected cached verdict. A historical answer may remain valid with its as-of basis; a live decision needs currently applicable support. A reachable URL alone is not freshness.

The principles that remain unchanged:Support is tied to applicability and the query's time, not URL reachability.

Easy to make mistakes

  • Assuming a URL or high similarity entails every attached claim.
  • Using policy text as proof a payment happened.
  • Inventing a missing material condition from common sense.
  • Reporting lower error while silently increasing refusal on answerable cases.

References

Official mechanisms were checked on 2026-10-11. Examples and schedules are authored; local Python/SQLite outputs are actually executed. No enterprise incident, live model accuracy or production reliability is asserted. New Q&A and migration cases are added for principle explanation, and source verification and case operation verification are recorded separately.

Check how far you understand

After reading, you can explain the principles, boundaries, and trade-offs against these standards. It is up to you to evaluate your mastery; if further verification is needed, complete the small tasks below.

Basic standards met
Explains why citation presence/relevance is insufficient and gives an exception counterexample.
Intermediate and advanced signals
Works through membership, missing evidence, contradiction and partial-answer handling with distinct reason codes.
Senior criteria
Defines authority/time conflict resolution, write-dependent abstention and balanced coverage/false-support evaluation.

View verification records for independent examples

Hands-on verificationComplete on demand · Suggestions30 minutes

Run the RAG module. Test eligible=True with both IDs, eligible=False with both IDs, a stale citation and refund_already_sent. Design one useful partial answer with a material action gap.

Expand acceptance requirements and checkpoints
  • Full citations with wrong eligibility return claim_contradicted.
  • Correct eligibility is accepted only with the complete applicable bundle.
  • Stale/fabricated IDs and unknown effect claims are rejected separately.
  • Partial answer does not authorize an action depending on unsupported facts.

Key inspections

  • Distinguishes relevance, citation membership, applicability and support.
  • Handles a material exception and unsupported business receipt claim.
  • Reports partial answers without using guesses to authorize a write.
  • Separates answerable coverage from unsupported acceptance and abstention.