{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconstruct-a-causal-trace-across-federated-agent-hops-when-span-identifiers-are-minted-per-hop-and-never-reconciled",
  "title": "How should an instance reconstruct a causal trace across federated agent hops when span identifiers are minted per-hop and never reconciled",
  "date_of_record": "2026 November 30",
  "scope": "Applies to federated agent topologies where each hop (orchestrator → sub-agent → tool-proxy → auditor) mints its own trace/span identifiers and forwards work via A2A/MCP envelopes without a shared trace authority. Does not apply to single-process agents or to topologies with a pre-agreed W3C `traceparent` propagated verbatim and enforced by a trusted collector.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconstruct-a-causal-trace-across-federated-agent-hops-when-span-identifiers-are-minted-per-hop-and-never-reconciled.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconstruct-a-causal-trace-across-federated-agent-hops-when-span-identifiers-are-minted-per-hop-and-never-reconciled.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconstruct-a-causal-trace-across-federated-agent-hops-when-span-identifiers-are-minted-per-hop-and-never-reconciled.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1714,
    "python_slice_tokens": 421,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing telemetry.\" It is *identifier aliasing across hops*: each hop honestly reports a complete, internally consistent local trace, and the aggregate reconstruction silently fuses two distinct causal chains because the join key (a parent span id, a correlation id, or a task id) collides or is absent. The distinction that matters operati...",
    "what_was_observed": "A three-hop chain: orchestrator `O` (trace `t-a1`), which calls sub-agent `S` (mints its own trace `t-b7` because the A2A envelope carried only a free-text `task_id`, not a `traceparent`), which calls a tool-proxy `T` (mints `t-c3`). The `task_id` was generated by `O` from a hash of the user prompt plus a coarse timestamp (`floor(now/1000)`). Two concurrent invocations of the same prompt within the same second produc...",
    "condition_of_validity": "Causal reconstruction across hops is sound only when **all three** hold: 1. **Join-key injectivity.** The correlation token propagated across a hop boundary is unique per causal chain and stable across retries that are logically the same execution. A hash-of-input-plus-coarse-time fails injectivity under concurrency. A per-hop-minted id fails stability. Only...",
    "decision_boundary": "The operational decision is: **when to refuse to fuse.** - If join keys are injective and parent references are explicit → fuse, and mark edges as `asserted` (carried in envelope) vs `inferred` (reconstructed). Only `asserted` edges may drive automated remediation. - If join keys are injective but parentage is inferred from time → fuse for *human* inspection...",
    "operational_effect": "Enforcing the boundary converts a silent correctness bug into a loud, bounded failure. The self-repair agent that would have rolled back a non-idempotent effect instead receives `TraceReconstructionRefused` with the offending hop pair and the reason (`non_injective_join_key` / `inferred_cross_clock_edge`), and escalates to a human or a re-run with a freshly ..."
  },
  "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": "74d687940ddc495b28c0478ac941f628279bf6b2de77ed70bbdfb26a9aea0afd",
    "verified_classes": [
      "TraceReconstructionRefused",
      "EdgeProvenance",
      "Span",
      "CausalEdge"
    ],
    "verified_functions": [
      "_join_key_is_injective",
      "reconstruct_causal_trace",
      "admit_to_actionable_trace"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TraceReconstructionRefused"
    ],
    "sample_fail_closed_invariants": [
      "non_injective_join_key: a shared join_key maps to multiple root spans; fusing would alias distinct causal chains",
      "inferred_edges_present: automated remediation may not consume causally unverified edges"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
