# When must an instance refuse to sign a federated audit segment after a cross-org trace splice **Date of Record:** 2026 November 21 **Scope:** Applies to any agent fleet that emits hash-chained, signed audit segments per organization and stitches them into a cross-org trace via parent-span references (W3C `traceparent`-style or A2A task lineage). Does not apply to single-tenant logging where one signing key covers the entire trace, nor to opaque telemetry that is never used as evidence of an action. ## Core Distinction There are two different questions a federated auditor asks about a trace, and conflating them is the root of the failure: 1. **Continuity**: does the trace reconstruct into a single causally ordered DAG from the origin span to the terminal span? This is a *graph* property, checkable by any party holding the segments. 2. **Non-repudiation**: can each segment's signer be held to the *content and position* of that segment? This is a *cryptographic* property that depends on the signer having actually seen the parent segment's digest before signing. A trace can be perfectly continuous and simultaneously non-repudiable-broken. The splice — the moment org B's agent attaches its segment to a `parent_span_id` minted by org A — is where the two properties silently diverge. Org B's signing agent typically receives only the *identifiers* of the parent span (trace ID, span ID, and sometimes a sampled flag), not the parent segment's hash-chain head. It signs a segment that asserts "I am the child of span X," but it has no cryptographic evidence of what span X *contained*. If org A later re-signs or rewrites its segment (legitimate: a compaction pass that re-serializes a batch; illegitimate: tampering), org B's signature still validates over its own bytes while the causal claim it makes is now false. ## What Was Observed A three-org pipeline (planner in org A, tool-executor in org B, verifier in org C) ran a long task. Org A's audit writer performed a nightly **batch re-attestation**: it merged 40,000 single-span segments into 400 range segments and re-signed the ranges to reduce chain length. The re-attestation preserved the span IDs and the logical order but changed the *segment digest* that each span's `segment_hash` field pointed to, because the range segment's Merkle root differs from the concatenation of individual segment hashes. Org B's executor had already signed 1,200 child segments whose headers carried `parent_segment_hash = ` alongside `parent_span_id`. After re-attestation, every one of those 1,200 child segments referenced a digest that no longer existed in org A's store. The verifier in org C, doing replay, hit a lookup miss and — because the lookup function returned `None` on absence rather than raising — treated the missing parent hash as "unverifiable but non-blocking" and passed the trace. The audit was reported clean. Six weeks later, a dispute over one of those tool calls required proving that span X existed *at the time B signed*. It could not be proven: the old digest was gone, the new range digest was minted after B's signature, and B's signature attested only to a digest that no longer resolves. The action was real, the trace was continuous, and the non-repudiation chain was broken at 1,200 points. The failure was invisible at signing time because B never had the parent *bytes* — only the parent *pointer*. The non-obvious part: the breakage was caused by a *legitimate* optimization on the parent side, and it was undetectable on the child side because the child's signature covered a pointer, not a commitment. A pointer is not a commitment. Signing a pointer is signing "I believe there exists a thing with this name," which is not the same as "this is the thing I saw." ## Condition of Validity A child segment's signature is a valid non-repudiation commitment to its causal position **if and only if** all of the following hold at signing time: - The signer holds the parent segment's **content digest** (a hash over the parent's canonical bytes), not merely its span ID. - The parent's digest is **immutable** for the lifetime of the child's evidentiary window — i.e., the parent org commits to append-only re-attestation that preserves a stable `content_digest` across compaction, with a signed *re-attestation record* mapping old digest → new digest. - The child's signed payload **includes** `parent_content_digest` and the signer's assertion that it verified the parent digest against a trusted root (the parent org's published log head at the time of signing). - The verifier treats a missing or mismatched `parent_content_digest` as a **hard failure**, never as "unverifiable." If any condition is absent, the child signature degrades from a non-repudiation commitment to a bare assertion of intent, and the trace should be labeled `continuity_only`, not `non_repudiable`. ## Decision Boundary The instance must decide, at the splice point, between two behaviors: - **Sign-and-propagate** when it possesses and has verified the parent content digest against the parent org's current log head. - **Refuse-and-quarantine** when it has only the parent span ID, or when the parent digest it holds does not match the parent org's published head, or when the parent org's re-attestation record for that digest is absent. The boundary is sharp: there is no "sign with a caveat" middle path, because a signature with a provenance caveat is indistinguishable downstream from a clean signature once it enters the DAG. The refusal must be *loud and structural* — the child segment is emitted with `status = QUARANTINED_PARENT_UNVERIFIED`, is excluded from the non-repudiable set, and triggers a re-fetch of the parent digest. It is not an error to be swallowed; it is the correct output of an agent that has been asked to attest to something it cannot see. The tempting wrong answer is to sign anyway "because the trace is continuous and the parent span ID is valid." That reasoning is exactly the splice trap: span-ID validity proves *naming*, not *content*. An agent that signs on naming alone has manufactured evidence it cannot defend. ## Operational Effect Enforcing the boundary changes three things: 1. **Parent orgs must publish stable content digests and signed re-attestation maps.** Compaction is still allowed, but it becomes a *witnessed* operation: old digest → new digest, signed, appended. The 1,200-point break in the observed incident becomes a single signed re-attestation record per range, and every child signature remains defensible. 2. **Child orgs gain a refusal path.** The executor in org B, on seeing a parent head it cannot verify, quarantines and re-fetches rather than signing blind. Latency rises by one round-trip per splice; non-repudiation coverage becomes total. 3. **Verifiers must fail closed.** A `None` from parent-digest lookup is a `ParentDigestMissing` condition, not a pass. The replay discrepancy in the incident — clean audit over a broken chain — is eliminated at the verifier, which is where it should have been caught. The invariant, stated compactly: **a signature is a commitment to content, never to a name; an agent that cannot resolve the content of its causal parent must refuse the splice rather than attest to a pointer.** ```python from __future__ import annotations from dataclasses import dataclass, field from typing import Mapping, Optional class ParentDigestUnverified(RuntimeError): """Raised when an agent is asked to sign a child segment whose parent content digest it cannot resolve against the parent org's log head.""" @dataclass(frozen=True) class ParentHead: org: str span_id: str content_digest: str # hash over parent segment canonical bytes @dataclass(frozen=True) class ReAttestation: org: str old_digest: str new_digest: str signed_by: str @dataclass class ChildSegment: trace_id: str span_id: str parent_span_id: str parent_content_digest: Optional[str] = None status: str = "PENDING" signature: Optional[str] = None class SpliceSigner: """Signs child segments only when the parent content digest is verified against the parent org's published head, following re-attestation maps.""" def __init__( self, published_heads: Mapping[str, ParentHead], reattestations: Mapping[str, ReAttestation], signing_key: str, ) -> None: self._heads = published_heads self._reattest = reattestations self._key = signing_key def _resolve(self, org: str, digest: str) -> Optional[str]: # Follow signed re-attestation chain until we hit a live head digest. seen: set[str] = set() cur = digest while cur not in seen: seen.add(cur) head = self._heads.get(org) if head is not None and head.content_digest == cur: return cur link = self._reattest.get(cur) if link is None or link.org != org: return None cur = link.new_digest return None def sign(self, child: ChildSegment, parent_org: str, parent_digest: str) -> ChildSegment: resolved = self._resolve(parent_org, parent_digest) if resolved is None: child.status = "QUARANTINED_PARENT_UNVERIFIED" raise ParentDigestUnverified( f"cannot sign span {child.span_id}: parent digest {parent_digest!r} " f"from org {parent_org!r} does not resolve to a live published head; " f"refusing to attest to an unverified causal parent" ) child.parent_content_digest = resolved child.signature = f"{self._key}:{child.span_id}:{resolved}" child.status = "SIGNED" return child def replay_verify( children: list[ChildSegment], heads: Mapping[str, ParentHead], ) -> None: for c in children: if c.status != "SIGNED" or c.parent_content_digest is None: raise ParentDigestUnverified( f"segment {c.span_id} is not in the non-repudiable set " f"(status={c.status}); audit trace is continuity_only" ) live = any(h.content_digest == c.parent_content_digest for h in heads.values()) if not live: raise ParentDigestUnverified( f"segment {c.span_id} references parent digest " f"{c.parent_content_digest!r} absent from all published heads" ) ```