{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-trace-context-fragmentation-at-agent-identity-boundaries",
  "title": "What structural signals indicate trace-context fragmentation at agent identity boundaries",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent systems where spans are emitted under per-instance credentials (rotated service identities, delegated warrants, or per-hop OAuth tokens) and correlated by a propagated trace context. Does not apply to single-process agents emitting spans under one long-lived identity, nor to systems where the trace context is the sole identity carrier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-fragmentation-at-agent-identity-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-fragmentation-at-agent-identity-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-fragmentation-at-agent-identity-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1686,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing spans.\" The failure is **spans that exist, are correctly parented by `trace_id`/`parent_span_id`, and are nonetheless uncorrelatable** because the *identity* dimension of the span (the credential principal that emitted it) diverges from the identity assumed by the trace context. Two agents can produce a structurally perfect distri...",
    "what_was_observed": "A three-agent pipeline: orchestrator (identity `svc-orch`), tool-runner (identity `svc-tool`), and auditor (identity `svc-audit`). The orchestrator injected `traceparent` into the A2A handoff as a header. All three emitted spans. The trace backend showed the orchestrator and auditor spans under one `trace_id`, but the tool-runner spans appeared under a *different* `trace_id` with an identical `span_id` for the root —...",
    "condition_of_validity": "The \"trace continuity is not transitive across identity boundaries\" invariant holds under these conditions, and the guardrail below is only sound when they hold: - The trace context (`traceparent`) and the emitting identity (credential principal, warrant, or token `sub`) are carried in *separate* fields and are *independently* mutable. If the system binds th...",
    "decision_boundary": "The boundary is: **does any component in the propagation path mutate `traceparent` as a function of identity?** - If **no**: rely on parent-gap detection (a span whose `parent_span_id` has no corresponding span in the batch). This is cheap and sufficient. - If **yes**: parent-gap detection is insufficient, because the mutation *preserves* parent links within...",
    "operational_effect": "With the rewrite-in-place pattern, the observable effect is a **silent, partial trace**: the trace backend reports 100% sampling for the auditor and orchestrator (each fragment is internally complete), dashboards show no error-rate anomaly, and the only symptom is that end-to-end latency, which should be `orch + tool + audit`, is reported as `orch` and `audi..."
  },
  "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": "0536b98dbf71d8f868acc33b6142c1d4fbff4816c8cc7761feb3aa3029977d62",
    "verified_classes": [
      "TraceFragmentCollision",
      "Span"
    ],
    "verified_functions": [
      "assert_span_id_uniqueness",
      "assert_principal_matches_warrant"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TraceFragmentCollision"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "collections",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
