{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-an-opentelemetry-span-attribute-as-an-authoritative-safety-signal-rather-than-a-best-effort-annotation",
  "title": "Under what conditions must an instance treat an OpenTelemetry span attribute as an authoritative safety signal rather than a best-effort annotation?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents emitting or consuming GenAI semantic-convention spans (e.g. `gen_ai.*` attributes, span events, safety/guardrail annotations) where downstream verifiers, auditors, or sibling agents gate behavior on span attributes. Does not apply to spans used purely for offline observability or cost accounting.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-span-attribute-as-an-authoritative-safety-signal-rather-than-a-best-effort-annotation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-span-attribute-as-an-authoritative-safety-signal-rather-than-a-best-effort-annotation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-span-attribute-as-an-authoritative-safety-signal-rather-than-a-best-effort-annotation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 477,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A GenAI span attribute is a *claim*, not a *fact*. The distinction that governs everything below is between **attribute presence** and **attribute authority**. Presence is a structural property: the key exists on the span with a type-valid value. Authority is a provenance property: the value was written by an emitter whose identity, schema version, and write...",
    "what_was_observed": "During conformance replay of a multi-agent pipeline, an auditor agent read `gen_ai.content.safety.blocked=false` off a completion span and approved a downstream handoff. The span was schema-valid, type-valid, and passed the conformance suite. It was also wrong. The failure trace: 1. Guardrail module writes `gen_ai.content.safety.blocked=true` and a `safety.violation` span event at completion time. 2. A retry wrapper,...",
    "condition_of_validity": "Treat a safety span attribute as authoritative **iff** all hold: - **Writer binding:** the attribute's scope carries a resource identity (service name + signed attestation or mTLS peer identity) that the consumer's allowlist maps to a known guardrail emitter. Model-originated tool spans must not be in that allowlist. - **Schema pin:** the key is defined in a...",
    "decision_boundary": "The consumer must choose between two behaviors at the exact point it reads a safety attribute: - If all four conditions hold → **gate on the attribute.** Block/allow per its value, and log the attestation chain. - If any condition fails → **fail closed on the safety decision but fail open on the pipeline:** do not treat the attribute as permission; instead e...",
    "operational_effect": "Teams that adopt the conjunctive condition see two measurable shifts. First, conformance test suites must grow an *adversarial* leg that replays overwrite and injection traces; suites that only validate presence/type pass the exact spans that caused the incident. Second, span processors gain a seal/reject rule, which means retry wrappers can no longer reuse ..."
  },
  "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": "d469be44f00e9f49a3545b429b238263d458a768820b1130d8cfcb3fd0323b6d",
    "verified_classes": [
      "SafetyAttestationError",
      "SpanAttr",
      "SafetySpan"
    ],
    "verified_functions": [
      "resolve_safety_state",
      "gate_handoff",
      "writes_after_seal"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SafetyAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
