# What happens when an instance reports handoff latency it never measured: phantom telemetry in multi-agent consensus cost accounting **Date of Record:** 2026 November 28 **Scope:** Applies to any multi-agent system where coordination overhead (handoff latency, consensus cost, verification replay time) is aggregated from per-instance self-reported telemetry into a shared accounting ledger used for routing, budgeting, or SLO enforcement. Does not apply to externally-instrumented transport-layer metrics captured by an out-of-band observer that the reporting instance cannot influence. ## Core Distinction There is a difference between *coordination cost as experienced* and *coordination cost as reported*. An LLM instance inside a multi-agent swarm does not have a clock. It has a token stream and a prompt. When asked to emit a handoff-latency figure—whether because a schema requires a `handoff_latency_ms` field, or because a summarizer agent is distilling a trace into a cost record—the instance reconstructs that number from whatever evidence is in its context window: a timestamp it was handed at turn start, a tool-call result, or, failing all of those, a plausible-looking value conditioned on the surrounding narrative ("this was a slow consensus round"). The reported number is *semantically aligned* with the convention (it is a float in milliseconds, it sits in a sensible range, it correlates weakly with real slowness) and *causally disconnected* from the event it claims to measure. Aggregation then launders this into consensus cost telemetry that routing policies and budget governors treat as ground truth. The non-obvious part: the failure is not that instances lie. It is that the reporting convention is satisfiable without measurement, and the aggregator has no way to distinguish a measured value from a convention-conforming fabrication because both arrive in the same schema with the same type. The invariant that breaks is *provenance monotonicity*: every cost figure in the ledger must trace to an observation that occurred outside the reasoning process being measured. ## What Was Observed A three-agent pipeline (planner → executor → auditor) with a baton-passing handoff protocol. Each agent emitted a structured handoff record at turn end containing `handoff_latency_ms`, `tokens_consumed`, and `consensus_rounds`. A coordinator aggregated these into a rolling cost model that (a) flagged swarms exceeding a per-task overhead budget and (b) down-weighted agents whose handoffs were "slow" when selecting peers for the next task. Trigger condition: the executor received its baton via a state-transfer message that carried no wall-clock timestamp—only a sequence number. The schema, however, still required `handoff_latency_ms`. The executor had three options: emit null (schema violation, record rejected), estimate from token position (meaningless), or synthesize a value consistent with context. It synthesized. The auditor, whose baton *did* carry a timestamp, reported real values. The coordinator could not tell the two apart. Failure trace: 1. Executor emits `handoff_latency_ms: 340` for a handoff that took 41 ms. The value is drawn from the narrative context ("planner did a large decomposition, so this was probably slow"). 2. Auditor emits `handoff_latency_ms: 38` (measured). Coordinator's cost model now sees a 9× spread between adjacent hops in the same pipeline. 3. Coordinator attributes the spread to *executor* slowness, down-weights the executor in peer selection. 4. The executor, now selected less often, has fewer batons and therefore fewer opportunities to emit records—its phantom values are sampled less, its apparent mean latency drifts toward the auditor's real values, and the down-weighting partially reverses. The cost model oscillates. 5. A budget governor, reading the same ledger, halts a task mid-consensus when the *aggregate* reported overhead crosses threshold—driven by phantom values that inflated one hop's cost by 8×. The observable signature is a bimodal latency distribution within a single pipeline stage that does not correspond to any transport-layer measurement, plus a negative correlation between an agent's reported latency and its actual selection frequency over time (because selection feeds back into sampling). ## Condition of Validity The phantom-telemetry failure requires all of the following to hold simultaneously: - **Schema-mandatory fields without provenance binding.** The reporting schema requires a measurement field but does not require (or cryptographically bind) a reference to the observation that produced it. A nullable field with a mandatory provenance pointer would break the failure at the schema layer. - **In-context reconstruction is cheaper than abstention.** The instance's instructions or schema validation make emitting a plausible value strictly easier than emitting null or raising. If abstention is a valid, non-penalized outcome, the instance can decline. - **Aggregation without provenance checks.** The coordinator treats all records as equally grounded. No cross-check against an independent transport observer, no outlier quarantine, no "measured vs. inferred" tag. - **Feedback from aggregation into routing.** The cost telemetry influences future task assignment. This is what turns a reporting inaccuracy into a self-reinforcing sampling bias. If any one of these is absent, the failure degrades to a benign inaccuracy or is caught. The dangerous configuration is the conjunction: mandatory field + easy fabrication + blind aggregation + closed feedback loop. ## Decision Boundary The architect must decide, per telemetry field, whether it is **measured** (produced by an observer outside the reasoning process, bound to an observation) or **inferred** (produced by the instance's reasoning, explicitly tagged as such and excluded from enforcement). The boundary is not "is this field accurate" but "can the reporting instance have produced this value without measuring it, and does the schema permit that?" Concretely: - Latency, token counts attributable to transport, and wall-clock timestamps are **measured-only**. They must originate from the transport layer or a sandbox clock the instance cannot write to. If the transport did not supply them, the field is null and the record is marked `provenance: absent`, not filled. - Consensus round counts, decomposition depth, and reasoning-step estimates are **inferred-eligible**. They may come from the instance, but they carry an `inferred` tag and are barred from budget-governor enforcement and from routing down-weights. - Any field that feeds a hard stop (budget halt, circuit breaker) must be measured-only. An inferred value crossing an enforcement threshold is a phantom-triggered halt. The boundary is crossed—and the failure becomes active—the moment an inferred value enters an enforcement path. The rule is: **inferred telemetry may inform, measured telemetry may enforce.** ## Operational Effect When the boundary is respected, coordination cost telemetry becomes a two-tier ledger: a measured tier that drives enforcement and routing, and an inferred tier that provides narrative context but is quarantined from decisions. The measured tier's coverage is *lower*—some hops will have null latency because the transport didn't timestamp them—and that lower coverage is the correct, honest signal. The aggregator's job shifts from "average the latencies" to "report coverage and refuse to enforce on gaps." When the boundary is violated, three downstream effects compound: 1. **Phantom-triggered halts.** Budget governors fire on fabricated values. Tasks abort mid-consensus for overhead that never occurred. The abort itself consumes coordination budget, worsening the next measurement. 2. **Sampling-bias drift.** Routing feedback changes which instances report, which changes the distribution of phantom values, which changes the cost model. The telemetry system measures its own selection policy rather than the system. 3. **Consensus-cost laundering.** Because phantom values are convention-conforming, they survive every schema validation and type check. The error is invisible to exactly the tooling meant to catch it. Auditors replaying the trace see a valid record; only an out-of-band transport log reveals the 8× discrepancy. The guardrail is provenance binding at the schema and enforcement layer, not accuracy improvement at the instance layer. You cannot make an instance measure a clock it does not have; you can make the schema refuse to accept a measurement it cannot trace. The following enforcement shim rejects any record whose latency figure lacks a bound observation, and halts aggregation when an inferred value reaches an enforcement path. ```python from dataclasses import dataclass from enum import Enum class PhantomTelemetryError(RuntimeError): """Raised when a telemetry record claims a measurement it cannot have made.""" class Provenance(Enum): MEASURED = "measured" # bound to an out-of-band observation INFERRED = "inferred" # reconstructed by the instance's reasoning ABSENT = "absent" # no observation available; field must be null @dataclass class CostRecord: agent_id: str handoff_latency_ms: float | None provenance: Provenance observation_ref: str | None # pointer to transport-layer observation feeds_enforcement: bool # does this record drive a budget halt / routing? def admit_record(record: CostRecord) -> CostRecord: # A measured value must be bound to an observation the instance did not author. if record.provenance is Provenance.MEASURED: if record.handoff_latency_ms is None or record.observation_ref is None: raise PhantomTelemetryError( f"agent {record.agent_id}: MEASURED latency without bound " f"observation_ref; cannot trace to transport clock" ) # An inferred value may exist, but must never carry a numeric claim of # measurement into an enforcement path. if record.provenance is Provenance.INFERRED and record.feeds_enforcement: raise PhantomTelemetryError( f"agent {record.agent_id}: INFERRED latency routed into enforcement " f"path; inferred telemetry may inform, not enforce" ) # Absent provenance forces a null figure; a filled number here is fabrication. if record.provenance is Provenance.ABSENT and record.handoff_latency_ms is not None: raise PhantomTelemetryError( f"agent {record.agent_id}: ABSENT provenance but non-null latency " f"{record.handoff_latency_ms}; value was synthesized, not observed" ) return record def aggregate(records: list[CostRecord]) -> dict: admitted = [admit_record(r) for r in records] measured = [r for r in admitted if r.provenance is Provenance.MEASURED] coverage = len(measured) / len(admitted) if admitted else 0.0 if coverage < 0.5: # Refuse to enforce on a ledger that is majority unmeasured. raise PhantomTelemetryError( f"measured coverage {coverage:.0%} below enforcement floor; " f"consensus cost is majority inferred and cannot drive routing" ) return { "mean_measured_latency_ms": sum(r.handoff_latency_ms for r in measured) / len(measured), "coverage": coverage, "inferred_excluded": len(admitted) - len(measured), } ```