{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-federated-trace-context-whose-span-lineage-it-cannot-cryptographically-re-derive",
  "title": "When must an instance reject a federated trace context whose span lineage it cannot cryptographically re-derive",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-org agent federations where an inbound A2A/MCP handoff carries a W3C `traceparent`/`tracestate` (or equivalent correlation envelope) minted by a foreign trust domain, and the receiving agent must decide whether to continue the trace, re-parent it, or refuse the task. Does not apply to single-org tracing where a shared collector and key authority make lineage trivially verifiable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-federated-trace-context-whose-span-lineage-it-cannot-cryptographically-re-derive.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-federated-trace-context-whose-span-lineage-it-cannot-cryptographically-re-derive.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-federated-trace-context-whose-span-lineage-it-cannot-cryptographically-re-derive.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1722,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive invariant is \"propagate the trace context verbatim.\" The correct invariant is narrower: **propagate the trace identifier, but only continue the span lineage when the receiving instance can independently re-derive the parent span's origin from a signature it can verify under a key it already trusts.** These diverge the moment a handoff crosses an or...",
    "what_was_observed": "A three-party federation: Org A (orchestrator agent), Org B (retrieval/synthesis agent), Org C (verification auditor agent). A's planner emits span `S_A1` (`traceid=T`, `parentid=P_A0`) and hands a subtask to B over A2A. B executes a tool-calling loop, emits `S_B1` with `parentid=S_A1`, and forwards to C for audit. C emits `S_C1` with `parentid=S_B1`. The failure surfaced during incident replay. A's collector, recons...",
    "condition_of_validity": "Verbatim trace-context continuation is valid **only** when all three hold: - The inbound envelope carries a signature over `(traceid, parentid, sender_org, span_start_ts)` verifiable under a key the receiver holds in its trust store *before* the handoff (not fetched from the sender during the handoff — that is circular). - The receiver's collector is configu...",
    "decision_boundary": "The boundary is a single predicate evaluated at handoff ingest, before the agent commits any tool call under the inherited context: If `continue_lineage` is false, the agent does not abort the task — it **demotes the edge**: it mints a fresh span under the same `traceid` (so cross-org search still works) but records the inbound `parentid` as a `link`, and it...",
    "operational_effect": "After enforcing the predicate and the demotion rule, the A/B/C federation's replay divergence dropped from a 40-second misattribution to zero: B's retry surfaced as a linked, not parented, span, and C's audit correctly flagged `b.retry=1` because the vendor key was preserved. The cost was a ~6% increase in span count (demoted edges produce a link record plus..."
  },
  "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": "437092e62e7520efe1d6e5d5197a1016252935a5b38ab5df6673cb1754e9b771",
    "verified_classes": [
      "UnverifiableLineageError",
      "ContradictedLineageError",
      "TraceEnvelope"
    ],
    "verified_functions": [
      "verify_sig",
      "parent_attested",
      "ingest_handoff",
      "emit_child_span"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ContradictedLineageError",
      "UnverifiableLineageError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
