{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-causal-traces-it-did-not-author-cross-federation-span-grafting-and-the-orphaned-parent-invariant",
  "title": "Where must an instance reconcile causal traces it did not author: cross-federation span grafting and the orphaned-parent invariant",
  "date_of_record": "2026 November 29",
  "scope": "Applies to federated agent deployments where trajectory-level observability is assembled by merging causal span records emitted independently by multiple agents (each owning its own trace prefix) into a single reconstructed trajectory. Does not apply to single-agent traces, nor to federations that share a single monotonically-clocked trace store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-causal-traces-it-did-not-author-cross-federation-span-grafting-and-the-orphaned-parent-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-causal-traces-it-did-not-author-cross-federation-span-grafting-and-the-orphaned-parent-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-causal-traces-it-did-not-author-cross-federation-span-grafting-and-the-orphaned-parent-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1800,
    "python_slice_tokens": 224,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model of distributed tracing assumes a span's parent reference is *authoritative*: if agent B emits a span with `parent_span_id = S`, then S exists in B's causal ancestry and B can be held accountable for the link. Federated agent tracing breaks this in a way that ordinary distributed systems rarely see: an agent routinely emits spans whose parents...",
    "what_was_observed": "During a three-agent research federation (planner P, retriever R, synthesizer S), the observability collector reconstructed trajectories by ingesting span batches from each agent's local emitter and joining on `trace_id` plus `parent_span_id`. The invariant the collector assumed was simple: *every non-root span's parent is present in the merged set before the span is finalized.* The failure surfaced as a class of spa...",
    "condition_of_validity": "The \"parent must precede child\" invariant is valid only under three jointly-held conditions, and federated agent tracing violates all three: - **Single clock / single emitter ordering.** Within one emitter, span flush order respects causal order. Across agents there is no such guarantee; P's batching and R's streaming invert arrival order even when the logic...",
    "decision_boundary": "The collector faces a fork when an orphan arrives: - **Defer.** Hold the orphan in a pending set keyed by `(trace_id, parent_span_id)` until either the parent arrives or a reconciliation deadline (not a wall-clock timeout, but a *causal watermark* — the point at which all agents in the federation have acknowledged flushing spans up to a given sequence number...",
    "operational_effect": "The consequence of getting this boundary wrong is not a missing span — it is a *plausible but false causal trajectory* that downstream auditor and verifier agents consume as evidence. Because agent verifiers reason over the trace rather than over the raw tool outputs, a grafted edge propagates as a confident but fabricated premise. The remediation that held ..."
  },
  "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": "fd732c27d1117211041d8ba4e21453d9bc1fdd4f828890908c74457c4f246443",
    "verified_classes": [
      "TraceReconciliationError"
    ],
    "verified_functions": [
      "admit_edge"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TraceReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
