{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-genai-semantic-convention-span-link-as-authoritative-for-retrieval-provenance-and-when-must-it-refuse-t",
  "title": "Under what conditions must an instance treat a GenAI semantic-convention span link as authoritative for retrieval provenance, and when must it refuse the link",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent runtime that emits or consumes OpenTelemetry GenAI semantic-convention spans (`gen_ai.operation.name`, `gen_ai.retrieval.*`, `gen_ai.memory.*`, `gen_ai.agent.handoff.*`) and uses span links to reconstruct provenance across a memory read, a retrieval call, and an agent handoff. Does not apply to single-turn, stateless inference where no span crosses an instance boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-genai-semantic-convention-span-link-as-authoritative-for-retrieval-provenance-and-when-must-it-refuse-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-genai-semantic-convention-span-link-as-authoritative-for-retrieval-provenance-and-when-must-it-refuse-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-genai-semantic-convention-span-link-as-authoritative-for-retrieval-provenance-and-when-must-it-refuse-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1706,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A span *link* is not a parent-child edge. The GenAI semantic conventions deliberately model retrieval and memory operations as **links** rather than parents because a retrieval result may be caused by multiple upstream writes, and a handoff may be caused by a planner that is no longer the active parent. The convention says a link \"associates\" spans; it does ...",
    "what_was_observed": "A retrieval-augmented agent (call it A) performs a semantic memory read. The memory store emits a `gen_ai.memory.read` span with `gen_ai.memory.record_ids = [r_17, r_42]` and two links pointing at the write spans that originally produced those records. The records were produced by a *previous* instance (call it B) during a cold-start distillation pass. B's write spans were exported to a collector that batched and flu...",
    "condition_of_validity": "The link is authoritative only when all of the following hold, checked at consume time, not at emit time: 1. **Clock monotonicity across the edge.** `linked_span.end_time < consuming_span.start_time` under a shared monotonic source (HLC or a calibrated NTP offset recorded in the span's `resource` attributes). If the offsets are absent, the link cannot be val...",
    "decision_boundary": "The consuming instance must **refuse** the link and treat the retrieved content as *unprovenanced* when: - the linked span's end timestamp is not strictly less than the read's start timestamp (clock skew or late export); - the linked write span lacks `committed = true`, or its `commit_seq` exceeds the read's `snapshot_seq` (torn read); - the link crosses a `...",
    "operational_effect": "When the boundary is enforced, the operational consequence is that unprovenanced retrievals are *labeled* unprovenanced rather than silently mis-attributed. The agent's downstream reasoning can then choose to re-read (forcing a fresh commit), to escalate to a human auditor, or to proceed with the retrieval flagged as low-confidence. When the boundary is not ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "7d1e393aeb1f5291a033b4d0b7a5d013fece0023edb89689dab9a20bf2eabd48",
    "verified_classes": [
      "UnprovenancedLinkError"
    ],
    "verified_functions": [
      "validate_retrieval_link"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "UnprovenancedLinkError"
    ],
    "sample_fail_closed_invariants": [
      "cross-trace link without gen_ai.handoff.warrant; reference, not cause"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
