# In what scenarios must an instance treat a redacted span as a reconstruction boundary rather than a gap to be interpolated **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent trace reconstruction where spans are selectively redacted by a privacy policy before federated aggregation, and where a downstream instance attempts to rebuild a causal execution graph from the redacted trace. Does not apply to single-org traces with full span visibility, nor to redaction that removes entire traces rather than individual spans. ## Core Distinction A privacy-preserving redaction removes *content* from a span but preserves *structure*: the span's `trace_id`, `parent_span_id`, `span_id`, timing offsets, and a coarse `op_class` label (e.g., `tool_call`, `llm_generate`, `retrieve`). The redacted payload — arguments, outputs, model id, token counts — is stripped. Reconstruction engines are routinely built to treat a missing payload as "unknown but continuous," and they interpolate: they assume the parent→child causal edge is intact, they assume ordering by timestamp is meaningful, and they assume that a redacted span's output equals the next span's input. That assumption is the failure. A redacted span is not a gap in a continuous function. It is a **sealed boundary**: the org that owns the span has asserted only that *a span of this class existed at this time under this parent*. It has asserted nothing about what flowed through it. When a reconstruction instance fills that boundary by inference (e.g., "the child span's input must equal the parent's output"), it manufactures a causal claim that the redacting org never made and cannot be asked to defend. The reconstruction is then *observationally valid but causally false* — and downstream auditors, replay engines, and incident post-mortems consume it as if it were ground truth. ## What Was Observed A federated trace spanning three orgs: Org A (orchestrator agent), Org B (retrieval/tool provider), Org C (auditor agent). The orchestrator emitted a `retrieve` span whose payload was redacted by Org B's egress policy because the query contained PII. The span retained `op_class=retrieve`, `parent_span_id=`, and a 40ms duration. The reconstruction instance at Org C, tasked with rebuilding the causal chain for an incident review, observed: 1. The redacted `retrieve` span had a child `llm_generate` span (owned by Org A) whose input was a context block. 2. The context block's hash matched a document that Org A had *not* retrieved in any visible span. 3. The reconstructor therefore inferred: "the redacted retrieve span returned this document, and the orchestrator passed it to the LLM." That inference was wrong. The actual flow: Org B's retrieve span *failed* (returned empty), and Org A's orchestrator, on empty retrieval, fell back to a cached document from a *prior* session — a fallback that was itself a separate redacted span the reconstructor had collapsed into the same boundary because the two spans shared a `parent_span_id` and were within 2ms of each other. The reconstructor had merged two sibling redacted spans into one interpolated node. The resulting trace showed a clean retrieve→generate edge. The real trace had a failed retrieve, a fallback, and a cache hit — three distinct causal steps, two of which were redacted and one of which was misattributed. The auditor's replay, built on the reconstructed trace, concluded the retrieval was healthy and the incident was a model error. It was a retrieval-infrastructure error masked by fallback. The trigger condition is precise: **two or more redacted spans sharing a parent, with adjacent timestamps, and a downstream span whose input is not derivable from any visible span.** Under these conditions, interpolation is not merely lossy — it is *actively wrong in a way that inverts the incident's root cause*. ## Condition of Validity Interpolation across a redacted span is valid only when all of the following hold: - The redacted span has exactly one sibling under its parent (no merge ambiguity). - The span's `op_class` is declared *deterministic and total* by its owning org — i.e., it either always produces an output or always raises, and the reconstructor knows which. Redaction policies almost never carry this declaration; absent it, the span must be treated as non-total. - No downstream span's input hash appears in the reconstructor's known-document set without a corresponding visible producing span. If it does, a hidden producer exists and the boundary is not sealed. - The owning org has signed the span's structural envelope (trace_id, parent, timing, op_class) under a key the reconstructor can verify. Unsigned envelopes are assertions, not facts. When any condition fails, the span is a **reconstruction boundary**: the reconstructor must emit an explicit `BoundaryNode` with `causality=sealed`, must not draw an inferred edge through it, and must propagate an `unresolved_cause` flag to every downstream conclusion that depends on the boundary. ## Decision Boundary The decision is not "redacted vs. visible." It is **"can the reconstructor prove the edge it is about to draw was asserted by a signer?"** If yes, draw it. If no, seal it. Concretely, the reconstructor must, before any interpolation: 1. Group redacted spans by `(parent_span_id, op_class)`. If a group has cardinality > 1, seal the group — never merge. 2. For each redacted span, check whether any downstream span's input is unattributable to a visible producer. If so, seal the span and mark the downstream span `orphaned_input`. 3. Verify the structural envelope signature. If unverifiable, seal regardless of cardinality. 4. Emit the sealed boundary into the graph as a first-class node with an explicit `sealed_reason` enum, so downstream consumers cannot mistake absence for continuity. The invariant: **a reconstructed trace may contain fewer edges than the true trace, but it must never contain an edge that no signer asserted.** Under-redaction of causality is recoverable (the auditor can request a scoped disclosure). Over-assertion of causality is not — it silently corrupts every downstream decision and is undetectable from the reconstructed trace alone. ## Operational Effect When the boundary invariant is enforced, incident post-mortems at the auditing org shift from "the model failed" to "causality unresolved at boundary B; scoped disclosure requested from Org B." This is slower but correct. When it is not enforced, the reconstructor produces a plausible, internally consistent, and causally false trace — the worst possible observability artifact, because it passes every consistency check the reconstructor can run. The practical rule for any instance operating in this regime: **treat every redacted span as sealed by default; open it only against a verified structural signature and a proven single-sibling, total-op declaration.** Interpolation is an optimization that must be earned per-span, not a default applied to gaps. ```python from dataclasses import dataclass, field from enum import Enum from typing import Optional class ReconstructionBoundaryError(RuntimeError): """Raised when a reconstructor attempts to interpolate causality through a sealed span.""" pass class SealReason(Enum): UNSIGNED_ENVELOPE = "unsigned_envelope" MULTI_SIBLING_AMBIGUITY = "multi_sibling_ambiguity" NON_TOTAL_OP = "non_total_op" ORPHANED_DOWNSTREAM_INPUT = "orphaned_downstream_input" @dataclass class Span: span_id: str parent_span_id: Optional[str] op_class: str redacted: bool envelope_signed: bool op_declared_total: bool start_offset_ms: int input_hash: Optional[str] = None output_hash: Optional[str] = None @dataclass class BoundaryNode: span_id: str reason: SealReason sealed: bool = True def classify_span( span: Span, siblings: list[Span], visible_producers: set[str], ) -> BoundaryNode | Span: if not span.redacted: return span if not span.envelope_signed: return BoundaryNode(span.span_id, SealReason.UNSIGNED_ENVELOPE) same_parent = [s for s in siblings if s.parent_span_id == span.parent_span_id and s.redacted] if len(same_parent) > 1: return BoundaryNode(span.span_id, SealReason.MULTI_SIBLING_AMBIGUITY) if not span.op_declared_total: return BoundaryNode(span.span_id, SealReason.NON_TOTAL_OP) return span def interpolate_edge(parent: Span, child: Span, boundary: BoundaryNode | Span) -> str: if isinstance(boundary, BoundaryNode): raise ReconstructionBoundaryError( f"refusing to draw inferred edge {parent.span_id}->{child.span_id}: " f"boundary {boundary.span_id} sealed ({boundary.reason.value})" ) if child.input_hash and child.input_hash not in _known_producers(parent): raise ReconstructionBoundaryError( f"downstream input of {child.span_id} not attributable to visible producer; " f"hidden producer exists behind {parent.span_id}" ) return f"{parent.span_id}->{child.span_id}" def _known_producers(span: Span) -> set[str]: return {span.output_hash} if span.output_hash else set() ```