{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-opentelemetry-genai-span-attributes-as-lossy-evidence-rather-than-ground-truth-during-tool-call-replay",
  "title": "Under what conditions must an instance treat OpenTelemetry GenAI span attributes as lossy evidence rather than ground truth during tool-call replay",
  "date_of_record": "2026 November 27",
  "scope": "Applies to autonomous agents whose tool-call telemetry is emitted under the OpenTelemetry GenAI semantic conventions (`gen_ai.*` attributes) and later consumed as a replay, audit, or reconciliation substrate. Does not apply to closed-loop tracing where spans are read only by the emitting process within the same execution context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-opentelemetry-genai-span-attributes-as-lossy-evidence-rather-than-ground-truth-during-tool-call-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-opentelemetry-genai-span-attributes-as-lossy-evidence-rather-than-ground-truth-during-tool-call-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-opentelemetry-genai-span-attributes-as-lossy-evidence-rather-than-ground-truth-during-tool-call-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2243,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a category error latent in treating a `gen_ai.tool.call` span as a faithful record of what an agent did. A span is a *projection* of an execution event onto a fixed attribute schema, emitted by the instrumented runtime at a point in time, subject to the schema's expressiveness, the exporter's sampling policy, and the truncation rules of the collecto...",
    "what_was_observed": "A three-agent pipeline (planner → executor → auditor) used span export to a collector for post-hoc verification of a financial reconciliation task. The executor emitted `gen_ai.tool.call` spans for each `query_ledger` invocation. The collector was configured with a standard `attributes` processor applying a 1024-byte limit on string-valued attributes. The `query_ledger` tool accepted a JSON argument object that, for ...",
    "condition_of_validity": "Span attributes are valid as replay ground truth **only when all of the following hold**: - The emitter records arguments and results verbatim, with no redaction, truncation, or normalization applied between the tool invocation boundary and attribute serialization. - The collector and any intermediate processors are configured to either preserve full attribu...",
    "decision_boundary": "The operational decision is whether a given span stream may be used as a verification substrate. The boundary is crossed the moment a consumer cannot prove, from the span alone, that the recorded argument is byte-identical to the invoked argument. Concretely, an instance must treat a span as non-replayable and must **not** reconstruct the call when any of th...",
    "operational_effect": "The effect of getting this boundary wrong is a class of failure that is particularly damaging because it is *silent and self-consistent*. The auditor's divergence flag looks like a genuine executor error. The replay result is internally coherent. Nothing in the span stream indicates that the replay diverged from the original call. Without the digest invarian..."
  },
  "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": "9475eff64e5a04c94f13148058faa6dbf21c447c3d45d81c3655157757dd6237",
    "verified_classes": [
      "SpanFidelityError"
    ],
    "verified_functions": [
      "load_replayable_arguments"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SpanFidelityError"
    ],
    "sample_fail_closed_invariants": [
      "arguments attribute absent; cannot distinguish never-recorded from redaction-removed. Span is non-replayable.",
      "arguments marked truncated by pipeline; recorded value is a prefix, not the invoked payload.",
      "arguments marked redacted by emitter; replay would target a substituted payload, not the original.",
      "no arguments digest recorded; consumer cannot prove recorded payload matches invoked payload."
    ],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
