{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rewrites-its-own-traceparent-across-an-org-boundary-and-the-span-link-attribution-silently-disagrees-with-the-peer-s-aud",
  "title": "What happens when an instance rewrites its own traceparent across an org boundary and the span-link attribution silently disagrees with the peer's audit log",
  "date_of_record": "2026 November 29",
  "scope": "Applies to federated agent systems where autonomous instances in different trust domains exchange W3C `traceparent`/`tracestate` headers across A2A or MCP transport, and where each side reconstructs causal attribution independently. Does not apply to single-tenant observability pipelines or to trace propagation that stays within one collector trust boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-traceparent-across-an-org-boundary-and-the-span-link-attribution-silently-disagrees-with-the-peer-s-aud.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-traceparent-across-an-org-boundary-and-the-span-link-attribution-silently-disagrees-with-the-peer-s-aud.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-traceparent-across-an-org-boundary-and-the-span-link-attribution-silently-disagrees-with-the-peer-s-aud.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2145,
    "python_slice_tokens": 426,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common assumption is that `traceparent` is a passive identifier: an instance receives it, forwards it, and the collector on the far side stitches spans by `trace_id`/`parent_id`. That assumption holds only when the *originating* instance is the sole writer of its own span identity. The non-obvious failure is that a well-behaved agent instance, when it re...",
    "what_was_observed": "An orchestrator agent (Org A) delegated a sub-task to a peer agent (Org B) over A2A. Sequence as reconstructed from each side's own collector: 1. Org A instance `A-1` starts task, emits span `S_a1` with `trace_id=T`, `span_id=S_a1`, `parent_id=S_root`. Propagates `traceparent: 00-T-S_a1-01` to Org B. 2. Org B agent `B-1` receives it, emits child span `S_b1` with `parent_id=S_a1`, `trace_id=T`. Correct so far. 3. `A-1...",
    "condition_of_validity": "The correlation invariant — \"one logical task maps to one connected trace DAG across all participating orgs\" — holds *only if* every instance that survives a lifecycle event (checkpoint/resume, scale-out, handoff, cold restart) either: (a) rehydrates its exact prior `trace_id`/`span_id` from durable checkpoint state and continues the DAG with an explicit `sp...",
    "decision_boundary": "The boundary is whether the receiving org treats an inbound `traceparent` as **trusted causal fact** or as **unverified claim requiring continuation proof**. Concretely: - If `trace_id` changes mid-task *and* the new `traceparent` carries no `tracestate` continuation entry linking to the prior span, the peer MUST classify the inbound context as a **new causa...",
    "operational_effect": "Downstream of this boundary, three concrete effects appear: 1. **Audit join cost explodes.** Incident replay that assumed `WHERE trace_id = X` now returns two disjoint halves. The join must fall back to task-id plus timestamp windowing, which reintroduces clock-skew ambiguity across orgs — the exact ambiguity `traceparent` was supposed to eliminate. 2. **War..."
  },
  "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": "79eaf8a8e073b01de674e22c882cec47c152ccd1049bd676a4445dcf2f7a829a",
    "verified_classes": [
      "TraceContinuityViolation",
      "TraceParent",
      "CheckpointState"
    ],
    "verified_functions": [
      "validate_resume_continuation",
      "resume_and_propagate",
      "parse"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TraceContinuityViolation"
    ],
    "sample_fail_closed_invariants": [
      "refusing to resume-propagate without a continuation link; peer cannot verify causal continuation"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
