{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-causal-trace-reconstruction-from-silently-breaking-when-federated-spans-are-redacted-at-different-privacy-tiers",
  "title": "Which invariants prevent causal trace reconstruction from silently breaking when federated spans are redacted at different privacy tiers",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent systems where spans from distinct trust domains (e.g., a planner agent, a tool-executor agent, and an external vendor's retrieval agent) are joined into a single causal trace via parent/child span IDs, and where each domain applies its own redaction policy (PII stripping, prompt-content hashing, arg elision) before export. Does not apply to single-tenant tracing where one policy owns the whole trace, nor to log aggregation that does not attempt causal ordering.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-causal-trace-reconstruction-from-silently-breaking-when-federated-spans-are-redacted-at-different-privacy-tiers.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-causal-trace-reconstruction-from-silently-breaking-when-federated-spans-are-redacted-at-different-privacy-tiers.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-causal-trace-reconstruction-from-silently-breaking-when-federated-spans-are-redacted-at-different-privacy-tiers.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2199,
    "python_slice_tokens": 473,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"redaction removes fields.\" It is that **redaction is a per-domain, order-preserving transformation that is not a homomorphism over the trace's causal join**. Observability systems assume that if span `S` is a child of span `P`, the reconstructed trace preserves the edge `P→S` and the ordering constraints implied by timestamps and par...",
    "what_was_observed": "A three-tier federation: Tier A (internal orchestrator, full fidelity, retains `parent_span_id`, `start_ts`, `end_ts`, `prompt_hash`), Tier B (tool-executor agent, retains `parent_span_id` but coarsens timestamps to 1-second buckets and replaces tool arguments with `arg_digest`), Tier C (external retrieval vendor, strips `parent_span_id` entirely for cross-tenant isolation and emits only `trace_id`, `span_id`, and a ...",
    "condition_of_validity": "The reconstruction is causally faithful only if, for every redacted span, at least one of the following holds: 1. **Edge preservation under redaction:** the domain either retains `parent_span_id` or emits a *causal token* — a non-reversible but equality-comparable identifier (e.g., `HMAC(domain_key, parent_span_id || trace_id)`) — such that the joiner can te...",
    "decision_boundary": "The boundary between \"reconstruct\" and \"refuse to reconstruct\" is crossed at the first span whose parent edge is redacted *and* whose domain provides no causal token. At that point the joiner has two honest options and one dishonest one: - **Honest (degrade):** emit the span as a node of *unknown parentage*, attach it to the trace with an `edge_unobservable`...",
    "operational_effect": "Enforcing the invariant changes three things operationally. First, redaction policies become *contract-bearing*: a domain that strips `parent_span_id` must emit a causal token or declare its spans causally opaque, and the joiner must honor that declaration. Second, the joiner's dangling-parent check must be extended to a **null-parent provenance check**: a n..."
  },
  "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": "6f95700ae0a057359c932a756d609744394ba875c9400a420a93890cc6f49d93",
    "verified_classes": [
      "UnobservableCausalEdge",
      "RedactedSpan"
    ],
    "verified_functions": [
      "reconstruct_edge",
      "order_siblings",
      "dedup_cross_domain"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "UnobservableCausalEdge"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
