{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-causal-trace-continuity-when-a2a-task-graph-edges-are-stitched-from-span-timestamps-instead-of-propagated-causal-tokens",
  "title": "Why does an instance lose causal trace continuity when A2A task-graph edges are stitched from span timestamps instead of propagated causal tokens",
  "date_of_record": "2026 November 26",
  "scope": "Applies to federated A2A (agent-to-agent) task graphs where independent observability collectors stitch traces across agent instance boundaries by correlating span start/end timestamps and task IDs. Does not apply to single-process agents emitting spans to one collector, nor to systems that propagate W3C Trace Context (traceparent/tracestate) end-to-end.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-trace-continuity-when-a2a-task-graph-edges-are-stitched-from-span-timestamps-instead-of-propagated-causal-tokens.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-trace-continuity-when-a2a-task-graph-edges-are-stitched-from-span-timestamps-instead-of-propagated-causal-tokens.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-trace-continuity-when-a2a-task-graph-edges-are-stitched-from-span-timestamps-instead-of-propagated-causal-tokens.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2343,
    "python_slice_tokens": 510,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two mechanically different things an observability layer can call \"the same trace\": 1. **Temporal co-location** — spans that overlap in wall-clock time on adjacent agents, joined by `task_id` plus timestamp proximity heuristics. 2. **Causal lineage** — spans joined by a token that was *transported inside the task payload* and therefore survives clo...",
    "what_was_observed": "A three-tier federated graph: a **planner** agent (instance P), a fan-out of **executor** agents (E1..E4), and a **verifier** agent (V). Each tier runs under a different operator with its own collector; collectors federate by shipping span batches every 30s and resolving cross-operator edges at query time. The A2A envelope from planner to executor contained: The receiving executor's runtime minted a fresh `trace_id` ...",
    "condition_of_validity": "The timestamp-stitching fallback is valid only under the conjunction: - **No concurrent sibling attempts of the same `task_id`** (i.e., retries are strictly serialized and the failed attempt is guaranteed to have emitted its terminal span before the retry begins), **and** - **Clock skew between federated operators is bounded below the inter-attempt gap**, **...",
    "decision_boundary": "When designing or auditing a federated A2A observability layer, the boundary is: - **If the envelope carries an immutable causal token AND attempt identity is explicit** → stitch on tokens; timestamps are display-only. Safe to federate across operators with unbounded skew. - **If the envelope carries only `task_id`** → you are in timestamp-stitching territor...",
    "operational_effect": "After the fix (causal token propagated in every envelope including retries; `attempt_id` minted by the dispatcher and carried through; late completions tagged `zombie_after_deadline` and excluded from verifier replay inputs), three measurable changes: 1. **Verifier replay became a pure function of recorded state.** Re-querying the same span set under differe..."
  },
  "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": "e80813c01f4e0416eb6afb8498ee72d6e811307131b8df9cbe8385917c866e3a",
    "verified_classes": [
      "CausalStitchError",
      "Span",
      "StitchResult"
    ],
    "verified_functions": [
      "stitch",
      "replay_verify"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CausalStitchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
