# Under what conditions must an instance refuse to co-sign a cross-org A2A trace segment when the counterparty's signed span envelope omits a wall-clock anchor **Date of Record:** 2026 December 1 **Scope:** Applies to Agent-to-Agent (A2A) task lifecycles where two or more autonomous agents under different administrative domains emit signed, hash-chained trace spans that are later correlated for non-repudiable audit. Does not apply to single-org internal tracing, to unsigned best-effort telemetry, or to correlation performed purely for observability (non-auditable) pipelines. ## Core Distinction A signed trace span is *non-repudiable* only if it binds three things atomically: (a) the emitting identity, (b) the content hash of the span body, and (c) a causal ordering anchor. The common mistake is to assume the causal anchor is the hash-chain link alone. It is not. The hash-chain proves *sequence within a single emitter's stream*; it says nothing about *inter-stream ordering* between two domains that never shared a clock or a ledger. The boundary condition is this: when Org B's signed span envelope contains a monotonic counter and a parent-span hash but **no wall-clock anchor** (or an anchor that is not covered by the signature), a correlating auditor in Org A cannot construct a total order. If Org A co-signs the correlated trace anyway, it cryptographically attests to an ordering it cannot prove. The invariant that must hold is: *a co-signature asserts only what the signer can independently verify from signed material.* Missing time anchors convert a verifiable claim into an asserted one, and the signature launders the difference. ## What Was Observed In a two-domain deployment, Agent A (Org A, orchestrator) dispatched a task to Agent B (Org B, worker) over A2A. B executed a multi-step tool plan and returned a signed `TaskComplete` artifact plus a stream of signed spans. B's span envelope schema was `{span_id, parent_hash, seq, body_hash, sig}` — `seq` is a per-stream monotonic integer, `sig` covers `span_id‖parent_hash‖seq‖body_hash`. Notably, `seq` and the parent linkage are signed, but the *emission timestamp* lives in an unsigned sibling field `ts`, populated by B's host clock. During correlation, A observed an apparent anomaly: B's span `seq=7` (a tool invocation) carried `ts` **later** than B's `seq=9` (`TaskComplete`). A's auditor flagged a "causality inversion" and, because the trace was otherwise clean, A's signing service co-signed the merged record with a note attributing the inversion to B. Three weeks later, during a dispute over whether B had executed the tool *after* declaring completion, the co-signed record was treated as authoritative. It was wrong. Root cause, recovered from B's internal logs: B's host underwent an NTP step correction of −4.2 s mid-task. The unsigned `ts` on `seq=7` was written pre-correction; `seq=9` post-correction. The signed `seq` ordering (7 before 9) was correct and never contradicted. The inversion existed **only** in the unsigned field. A had co-signed an ordering claim derived entirely from data B never signed. ## Condition of Validity Co-signing a correlated cross-org trace segment is valid **iff** all of the following hold for every foreign span in the segment: 1. The causal anchor used to place the span in the merged order is inside the signature preimage. A signed monotonic `seq` plus signed `parent_hash` satisfies *intra-stream* ordering. It does **not** satisfy *inter-stream* ordering unless the counterparty also signs a cross-stream anchor (e.g., a signed receive-hash of A's prior span, or a shared signed nonce round-trip). 2. Any wall-clock field used for display or for inter-stream ordering is either (a) inside the signature preimage, or (b) explicitly excluded from the co-signature's asserted claims. 3. The co-signature's semantic scope is declared: it attests to *content integrity and intra-stream order*, and only to inter-stream order when a signed cross-stream anchor exists. When condition 1 or 2 fails, the instance must **not** co-sign the merged segment. It may emit a *partial attestation* covering only the verifiable subset (content hashes, intra-stream `seq`), with the unverified ordering claims quarantined as `UNATTESTED`. ## Decision Boundary The operational decision is not "is the trace suspicious" but "does the signature preimage cover the claim I am about to make." Concretely: - If the foreign span's ordering anchor is signed and cross-stream → co-sign full segment. - If ordering anchor is signed but only intra-stream → co-sign with `inter_stream_order: UNATTESTED`; never promote `ts` to an ordering claim. - If the only ordering evidence is an unsigned field → refuse co-signature of any segment that asserts a total order across the boundary; emit partial attestation and raise to the correlation supervisor. The trap is that the *content* looks fine and the *hash chain* validates. Validation of the chain is necessary and insufficient. The boundary is crossed the moment the signer asserts a predicate outside the signed preimage. ## Operational Effect Without this invariant, co-signatures become attestation-laundering: Org A's signature confers its trust weight onto Org B's unsigned clock. In disputes, the co-signed record is treated as stronger evidence than either party's raw logs, inverting the actual evidence hierarchy. Downstream, this poisons episodic-to-semantic distillation — the auditor's memory of "B executed after completion" becomes a durable false semantic fact, retrieved and cited in future audits. The guardrail is a preimage-coverage check at co-sign time: for each asserted predicate in the merged record, verify the predicate's operands are within some signer's signed preimage. Predicates whose operands escape all preimages must be demoted to `UNATTESTED` before the co-signature is produced. This is cheap (a schema-and-preimage walk) and it is the only thing standing between a hash chain and a lie with a signature on it. ```python from dataclasses import dataclass, field from typing import FrozenSet class PreimageCoverageError(RuntimeError): """Raised when a co-signature would assert a predicate outside any signed preimage.""" @dataclass(frozen=True) class SpanEnvelope: span_id: str parent_hash: str seq: int body_hash: str # Fields covered by the emitter's signature: signed_fields: FrozenSet[str] = field( default_factory=lambda: frozenset({"span_id", "parent_hash", "seq", "body_hash"}) ) # Unsigned, host-clock-derived; NEVER an ordering claim. ts: float = 0.0 @dataclass(frozen=True) class AssertedPredicate: name: str # e.g. "intra_stream_order", "inter_stream_order", "wallclock_order" operands: FrozenSet[str] # envelope field names the predicate depends on def check_preimage_coverage( foreign_spans: list[SpanEnvelope], predicates: list[AssertedPredicate], ) -> None: """ Verify every asserted predicate's operands are inside SOME signer's signed preimage. If any operand escapes all preimages, refuse to co-sign. """ all_signed: FrozenSet[str] = frozenset().union( *(s.signed_fields for s in foreign_spans) ) if foreign_spans else frozenset() uncovered = [ p for p in predicates if not p.operands.issubset(all_signed) ] if uncovered: raise PreimageCoverageError( "Refusing co-signature: predicates assert operands outside signed preimage: " + ", ".join(f"{p.name}({sorted(p.operands)})" for p in uncovered) ) def cosign_cross_org_segment( foreign_spans: list[SpanEnvelope], predicates: list[AssertedPredicate], ) -> str: # Guardrail: never launder an unsigned field into a signed ordering claim. check_preimage_coverage(foreign_spans, predicates) return "COSIGNED:content_integrity+intra_stream_order" # --- Failure trace reproduction --- b_spans = [ SpanEnvelope(span_id="s7", parent_hash="h6", seq=7, body_hash="b7", ts=1000.0), SpanEnvelope(span_id="s9", parent_hash="h7", seq=9, body_hash="b9", ts=995.8), ] # Auditor naively asserts wall-clock ordering derived from unsigned `ts`. bad_claims = [AssertedPredicate("wallclock_order", frozenset({"ts", "seq"}))] try: cosign_cross_org_segment(b_spans, bad_claims) except PreimageCoverageError as e: # Correct behavior: emit PARTIAL attestation, quarantine ordering claim. print(f"REFUSED -> {e}") print("Emit: inter_stream_order=UNATTESTED; retain content hashes + intra_stream seq.") # Verifiable subset only: good_claims = [AssertedPredicate("intra_stream_order", frozenset({"seq", "parent_hash"}))] print(cosign_cross_org_segment(b_spans, good_claims)) ```