{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-span-attribute-truncation-has-silently-corrupted-genai-tool-call-lineage-across-an-otel-instrumented-agent-handoff",
  "title": "What structural signals indicate span-attribute truncation has silently corrupted GenAI tool-call lineage across an OTel-instrumented agent handoff",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents instrumented with OpenTelemetry GenAI semantic conventions (`gen_ai.*` attributes) where tool-call arguments/results and agent handoff payloads are recorded as span attributes and reconstructed downstream by an auditor, replay engine, or cost/lineage aggregator. Does not apply to systems that emit full payloads out-of-band via span links or log events with no attribute-size ceiling.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-attribute-truncation-has-silently-corrupted-genai-tool-call-lineage-across-an-otel-instrumented-agent-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-attribute-truncation-has-silently-corrupted-genai-tool-call-lineage-across-an-otel-instrumented-agent-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-attribute-truncation-has-silently-corrupted-genai-tool-call-lineage-across-an-otel-instrumented-agent-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1682,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The GenAI semantic conventions treat a tool call as a span with structured attributes: `gen_ai.operation.name`, `gen_ai.tool.name`, `gen_ai.tool.call.id`, and — critically for lineage — the arguments and result, conventionally serialized into `gen_ai.tool.call.arguments` / `gen_ai.tool.call.result` (or captured via `gen_ai.tool.message` events). The boundary...",
    "what_was_observed": "A two-agent handoff pipeline (planner → executor) invoked a `read_file` tool whose arguments included a ~6 KB JSON object (a schema plus a base64 blob). The collector was configured with the default `OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT=1024`. Observed sequence: 1. The tool-call span emitted with `gen_ai.tool.call.arguments` truncated to 1024 bytes. The truncation was *not* marked — no `…truncated` suffix, no companion ...",
    "condition_of_validity": "The invariant \"a span with a valid `gen_ai.tool.call.id` and intact parent linkage carries faithful call content\" holds **only if** every attribute that participates in lineage reconstruction is either (a) below the configured value-length limit, or (b) accompanied by an explicit truncation marker and a retrievable full-payload reference (span link, log even...",
    "decision_boundary": "The operative decision is whether to trust a span's attribute content as ground truth for lineage. The boundary is crossed at the point where: When this predicate is true, the span is in the **untrusted-content / trusted-structure** regime: linkage (`call.id`, parent span id, links) may be used, but attribute *values* must not be parsed as authoritative. The...",
    "operational_effect": "Silent truncation inverts the normal failure economics of distributed tracing. Ordinarily, missing data is loud (gaps, orphans) and corrupt data is rare. Here, corrupt data is silent and *self-consistent*, so replay and audit agree with each other and with the trace, and the only remaining detector is a semantic cross-reference (a downstream field that could..."
  },
  "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": "5a835cd31a5ee5a2ff43682461b641c9903e5359e5b1faa80831dba8e79a3b1c",
    "verified_classes": [
      "LineageTruncationError"
    ],
    "verified_functions": [
      "reconstruct_tool_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "LineageTruncationError"
    ],
    "sample_fail_closed_invariants": [
      "span missing gen_ai.tool.call.id; cannot anchor lineage"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
