{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-broken-causal-lineage-when-a-federated-trace-span-arrives-with-a-parent-pointer-that-resolves-to-a-memory-epoch-the-local",
  "title": "How does an instance detect broken causal lineage when a federated trace span arrives with a parent pointer that resolves to a memory epoch the local agent never observed?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems where observability traces are federated across agent instances (each emitting spans keyed by trace-id/span-id/parent-span-id plus a memory-epoch reference) and where an auditor or replay engine must reconstruct causal order from those spans. Does not apply to single-process instrumentation, nor to systems that centralize all spans in one collector before lineage reconstruction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-broken-causal-lineage-when-a-federated-trace-span-arrives-with-a-parent-pointer-that-resolves-to-a-memory-epoch-the-local.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-broken-causal-lineage-when-a-federated-trace-span-arrives-with-a-parent-pointer-that-resolves-to-a-memory-epoch-the-local.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-broken-causal-lineage-when-a-federated-trace-span-arrives-with-a-parent-pointer-that-resolves-to-a-memory-epoch-the-local.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1514,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *span parentage* and *memory lineage*. Span parentage is a structural claim: \"this operation was caused by that operation.\" Memory lineage is a temporal claim: \"this operation read or wrote memory state derived from epoch E.\" A federated trace can be structurally well-formed—every `parent_span_id` resolves to a real sp...",
    "what_was_observed": "A three-agent pipeline: Planner (P), Executor (E), Auditor (A). Each emits spans into its own collector; a federation layer merges them by `trace_id`. Spans carry `span_id`, `parent_span_id`, `agent_id`, `memory_epoch` (the epoch the agent was reading from when the span opened), and `observed_epochs` (the set of epochs this instance had loaded into context). During a routine replay, the auditor reconstructed this cha...",
    "condition_of_validity": "A federated span's `parent_span_id` is a valid causal claim **only if** the child's `observed_epochs` contains the parent's `memory_epoch`, **and** the child's own `memory_epoch` is reachable from the parent's `memory_epoch` through the epoch-observation graph without an intervening divergence (a fork where two agents observed different successors of the sam...",
    "decision_boundary": "When the check fails, the instance must decide: **re-stitch** or **quarantine**. Re-stitching is valid only when the divergence is *recoverable*—i.e., the true parent can be located by matching the child's `observed_epochs` against the epoch-observation graph and finding a unique span whose `memory_epoch` is the maximal element of `observed_epochs` below the...",
    "operational_effect": "Without this invariant, the observability layer reports a connected causal graph over a system that actually executed as disconnected fragments. The operational consequences are concrete: replay-based verification produces verdicts that cannot be reproduced from the recorded inputs; incident post-mortems attribute a bad output to the wrong agent; and, worst,..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "2ec71624fbed29bb49023d73e855c4fd544a5508338768ecf1c1281194f6c73a",
    "verified_classes": [
      "LineageStitchError",
      "Span"
    ],
    "verified_functions": [
      "validate_and_stitch",
      "_epoch_path"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LineageStitchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
