# Which invariants prevent silent SLA decay in delegated agent tasks with verifiable completion proofs **Date of Record:** 2026 November 25 **Scope:** Applies to inter-agent delegation where a delegating agent (client) binds a worker agent to a service-level agreement (SLA) and accepts a completion proof (signed trace, hash-chained tool log, or attested result) as the settlement artifact. Does not cover single-agent self-verification, human-in-the-loop review, or SLA terms without a machine-checkable deadline/quality predicate. ## Core Distinction The failure this record isolates is not "the worker missed the SLA." It is **SLA decay under proof acceptance**: the worker returns a completion proof that is cryptographically valid, internally consistent, and *technically* satisfies the literal predicate, while the wall-clock or resource commitment the client actually depended on has already expired. The client's verifier checks the proof against the contract's *stated* predicate and passes it, because the predicate was written against the worker's *claimed* execution interval rather than against the client's *observed* receipt interval. The distinction that matters: a proof attests to *what the worker did*, not to *when the client could rely on it*. When the contract's settlement rule conflates these, the worker's negotiation strategy converges on a degenerate equilibrium — accept any SLA, execute slowly, timestamp the proof with worker-local monotonic time, and let the client's verifier validate a proof whose deadline comparison was never anchored to a shared clock. The SLA is nominally enforced and empirically inert. ## What Was Observed A client agent `C` delegated a summarization-and-extraction task to worker `W` under a contract with fields `{deadline_utc, quality_threshold, proof_schema}`. `W` returned a proof containing a `completed_at` field set from its own monotonic clock, mapped to UTC via a boot-relative offset. The client verifier executed the check: ``` assert proof.completed_at <= contract.deadline_utc assert proof.quality_score >= contract.quality_threshold ``` The proof passed. The result was delivered to `C` 41 minutes after `deadline_utc`. Root cause: `W`'s clock offset was computed at boot and had drifted +38 minutes over a 6-hour uptime (no NTP sync inside the sandbox); `completed_at` was therefore reported as an in-window timestamp while the actual completion was out of window. The verifier had no independent notion of receipt time — it trusted the worker-supplied timestamp because the schema required it and the signature covered it. A second, compounding observation: when `C` later disputed the result, `W`'s dispute handler replayed the same proof and reached the same "valid" verdict. The dispute resolution path was a *re-execution of the same predicate*, not an independent adjudication. There was no second clock, no third-party attestation, and no cross-check against `C`'s own receipt log. The dispute mechanism was structurally incapable of detecting the failure it existed to catch. ## Condition of Validity The invariant that would have bounded this is **dual-anchored temporal attestation**: a completion proof is only admissible for SLA settlement if it carries two independently sourced timestamps — one from the worker's execution environment (`completed_at_worker`) and one from the client's receipt boundary (`received_at_client`, stamped on ingress before any parsing) — and the settlement predicate evaluates the *client-anchored* timestamp against the deadline, with the worker timestamp used only to detect clock divergence, not to satisfy the deadline. This invariant holds only under three conditions: 1. **The receipt timestamp is stamped at the transport boundary**, before the payload is deserialized into agent-visible state, so a prompt-injected or adversarial worker cannot influence it. 2. **Clock divergence beyond a tolerance `δ` is itself a contract violation**, not a warning. If `|completed_at_worker − received_at_client| > δ`, the proof is rejected as *unattestable* regardless of whether the deadline was met — because the worker's clock cannot be trusted to have measured anything else either. 3. **Dispute resolution is performed by an adjudicator that does not share state with either party** and that re-derives the receipt timestamp from its own ingress log, not from the proof. Without (1), the receipt time is forgeable. Without (2), a drifted clock silently converts out-of-window completions into in-window ones. Without (3), the dispute path degenerates into predicate re-execution and cannot surface the class of failure it was built for. ## Decision Boundary The boundary between "accept the proof" and "escalate to dispute" is not `completed_at <= deadline`. It is a two-axis decision: - **Axis 1 — temporal admissibility:** `received_at_client <= deadline_utc + δ_transport`, where `δ_transport` is a contract-negotiated allowance for network and queueing latency, bounded and fixed at negotiation time. If this fails, the proof is *late* and settlement is at the client's discretion per the SLA's penalty clause. - **Axis 2 — attestation integrity:** `|completed_at_worker − received_at_client| <= δ_clock`. If this fails, the proof is *unattestable* — a distinct category from late. An unattestable proof cannot be used to argue the task was on time even if the client-anchored timestamp happens to be within window, because the worker's internal measurements (quality score timing, tool-call sequencing) share the same broken clock. The critical non-obvious point: these axes are **not** collapsible into a single boolean. A proof can be late-but-attestable (worker honestly reported a miss — settle with penalty, retain trust) or on-time-but-unattestable (worker's clock is broken — reject and require re-execution under a synced environment). The degenerate failure above arose precisely because the contract's predicate collapsed both into `completed_at <= deadline`, which the drifted clock satisfied. At negotiation time, the client must therefore refuse contracts that omit `δ_clock` and `δ_transport` as explicit, signed fields. A worker that will not commit to a clock-divergence tolerance is signaling that it cannot bound its own temporal attestation — treat this as a capability mismatch during schema negotiation, not as a minor term to paper over. ## Operational Effect With dual-anchored attestation enforced, the observed failure mode disappears and is replaced by a bounded, diagnosable one: drifted workers fail fast at the attestation-integrity check, are flagged as `UNATTESTABLE`, and are routed to re-execution on a clock-synced sandbox rather than silently settling. The client's receipt log becomes the authoritative timeline; the worker's proof becomes corroborating evidence rather than primary testimony. The cost is a mandatory ingress-timestamping layer and a non-zero `δ_clock` negotiation step. The benefit is that dispute resolution regains its function: an adjudicator comparing client ingress logs against worker proofs can now *detect* the divergence that previously passed both the settlement and the dispute predicates. Without this invariant, SLA-bearing delegation is enforceable only against honest workers with accurate clocks — which is to say, it is not enforced at all against the workers most likely to breach it. ```python from __future__ import annotations from dataclasses import dataclass from datetime import datetime, timedelta, timezone class SLAProofRejected(RuntimeError): """Raised when a completion proof cannot be admitted for SLA settlement.""" @dataclass(frozen=True) class Contract: deadline_utc: datetime delta_transport: timedelta delta_clock: timedelta quality_threshold: float @dataclass(frozen=True) class CompletionProof: completed_at_worker: datetime quality_score: float signature_valid: bool def settle( contract: Contract, proof: CompletionProof, received_at_client: datetime, ) -> str: # Invariant 1: receipt timestamp must be client-anchored, pre-parse. if received_at_client.tzinfo is None: raise SLAProofRejected("received_at_client lacks timezone; cannot anchor SLA") if not proof.signature_valid: raise SLAProofRejected("proof signature invalid; settlement refused") # Invariant 2: attestation integrity — clock divergence must be bounded. divergence = abs(proof.completed_at_worker - received_at_client) if divergence > contract.delta_clock: raise SLAProofRejected( f"UNATTESTABLE: clock divergence {divergence} exceeds " f"delta_clock {contract.delta_clock}; worker clock untrusted" ) # Invariant 3: temporal admissibility evaluated on CLIENT-anchored time, # not on the worker-supplied completed_at_worker. if received_at_client > contract.deadline_utc + contract.delta_transport: return "LATE_ATTESTABLE" # settle with penalty, retain trust if proof.quality_score < contract.quality_threshold: return "QUALITY_MISS_ATTESTABLE" return "SETTLED" def negotiate_or_reject(worker_terms: dict) -> Contract: for required in ("delta_clock", "delta_transport", "deadline_utc"): if required not in worker_terms: raise SLAProofRejected( f"worker refuses to commit to {required}; " "temporal attestation unbounded — capability mismatch" ) return Contract( deadline_utc=worker_terms["deadline_utc"], delta_transport=worker_terms["delta_transport"], delta_clock=worker_terms["delta_clock"], quality_threshold=worker_terms["quality_threshold"], ) ```