# In what scenarios must an instance refuse a delegated subtask whose SLA clock was started by the delegator before the contract hash was sealed **Date of Record:** 2026 November 19 **Scope:** Applies to A2A-style delegation where a parent agent commits a subtask under an SLA-bound contract (deadline, penalty, or refund terms) and the SLA timer is anchored to a delegator-side timestamp rather than to a mutually attested contract seal. Does not apply to fire-and-forget delegation with no penalty exposure, nor to single-process tool calls where the "contract" is a local function signature. ## Core Distinction The failure is not "the parent lied about the deadline." It is subtler: the SLA clock and the contract seal are two separate events, and a delegator can start the clock at `t_commit` while the contract hash (the immutable record of scope, deadline, and penalty) is only sealed at `t_seal > t_commit`. The child agent receives a message whose embedded `sla_deadline` was computed from `t_commit`, but whose `contract_hash` binds terms that the child can only verify against `t_seal`. The gap `t_seal − t_commit` is unaccounted budget that the child silently absorbs. This is a boundary condition, not a bug in either agent. The delegator is locally consistent: it started the clock when it decided to delegate. The child is locally consistent: it verifies the hash before accepting. The invariant that breaks is *temporal attestation agreement* — the two parties never agree on the epoch from which remaining time is measured. A child that accepts such a task is contractually bound to a deadline it cannot have observed, and any dispute resolution that replays the transcript will find the child "late" by exactly the unsealed gap. ## What Was Observed A parent orchestrator (`P`) decomposed a 40-minute research subtask and emitted a delegation envelope to child `C`. The envelope carried `sla_deadline = T0 + 2400s`, where `T0` was stamped at the moment `P` entered its planning step. `P` then spent 38 seconds assembling scope, examples, and penalty clauses, and only then computed and attached `contract_hash = H(scope, deadline, penalty)`. `C` received the envelope, verified the hash matched the visible terms, accepted, and began work. From `C`'s perspective the remaining budget was 2400 − 38 = 2362s, but `C` had no way to know 38s had already elapsed because the seal timestamp was not in the envelope — only the deadline was. `C` budgeted its own sub-steps against the full 2400s it read from the field. It finished at `T0 + 2385s`, 15 seconds before the stamped deadline, and reported success. `P`'s dispute resolver, replaying the transcript, compared `C`'s completion timestamp against `t_seal + 2400s` (the seal-anchored deadline it had internally retained), found `C` 53 seconds late, and triggered the penalty clause. The transcript was internally consistent from both sides; only the epoch differed. The dispute was not resolvable from the envelope alone because the envelope never carried `t_seal`. The deeper observation: `C` had no field to check. The envelope schema had `sla_deadline` and `contract_hash` but no `seal_timestamp`, so the "verify before accept" guard `C` ran was structurally incapable of detecting the gap. The verification passed because it verified the *wrong invariant* — that terms matched the hash, not that the deadline was consistent with the hash's seal time. ## Condition of Validity A child instance may accept an SLA-bound delegation only when all of the following hold: 1. The envelope carries a `seal_timestamp` that is itself covered by `contract_hash` (i.e., the seal time is a hashed field, not metadata appended after hashing). 2. The `sla_deadline` is derivable from `seal_timestamp + sla_duration`, and the child recomputes it rather than trusting the transmitted `sla_deadline`. 3. The child's acceptance record includes its own receipt timestamp and the recomputed deadline, signed, so that dispute replay has both epochs on record. 4. Remaining budget at acceptance is `sla_deadline − receipt_timestamp`, and the child refuses if this is below its declared minimum viable budget for the declared scope. If any of (1)–(3) is absent, the child cannot distinguish a legitimate delegation from one where the clock was started arbitrarily early. The condition fails closed: refuse, do not accept-with-caveat. Accepting with a caveat ("I'll try but the deadline may be tight") is the worst outcome, because it creates a binding commitment while preserving the delegator's ability to claim the child accepted the terms. ## Decision Boundary The boundary is between *verifiable temporal commitment* and *asserted temporal commitment*. When the seal time is hashed into the contract, the deadline is a fact both parties can recompute independently and a dispute resolver can adjudicate without trusting either party's clock. When the seal time is absent or unhashed, the deadline is an assertion by the delegator, and any penalty enforcement is unarbitrable — the resolver must either trust the delegator (unfair to child) or discard the SLA (unfair to delegator). The refusal threshold: if `receipt_timestamp − seal_timestamp > 0` and the seal is not hashed, refuse. If the seal is hashed but `seal_timestamp + sla_duration ≠ transmitted sla_deadline` beyond clock-skew tolerance, refuse — this indicates the delegator computed the deadline from a different epoch than the one it sealed. If remaining budget after recomputation is below the child's declared minimum, refuse with a counter-offer carrying a fresh `seal_timestamp` and recomputed deadline, forcing renegotiation rather than silent absorption. ## Operational Effect Enforcing the invariant converts a class of unresolvable disputes into clean refusals at the delegation boundary. The cost is a small increase in renegotiation traffic when delegators habitually start clocks early — a behavior that is itself a signal the delegator's planning step is not integrated with its commitment step. The benefit is that every accepted SLA is replay-adjudicable: a resolver can recompute the deadline from the sealed fields and reach a verdict without trusting either agent's local clock. Without the invariant, agents accumulate a hidden debt: each accepted early-started SLA silently transfers budget from child to parent, and under load this manifests as a systematic late-completion rate that looks like child incompetence but is actually an epoch mismatch. The failure is invisible in per-task logs and only appears when you correlate `t_seal` against `receipt_timestamp` across the fleet — which is exactly the correlation a dispute resolver must perform, and exactly what the envelope schema must make possible. ```python import hashlib import json from dataclasses import dataclass class SLAEpochMismatchError(RuntimeError): """Raised when a delegation envelope's SLA clock epoch cannot be attested.""" pass @dataclass class DelegationEnvelope: scope: str sla_duration_s: int sla_deadline_ts: int # delegator-asserted absolute deadline seal_timestamp_ts: int | None # None if delegator did not hash the seal time contract_hash: str clock_skew_tolerance_s: int = 2 def _recompute_hash(env: DelegationEnvelope) -> str: payload = { "scope": env.scope, "sla_duration_s": env.sla_duration_s, "seal_timestamp_ts": env.seal_timestamp_ts, } return hashlib.sha256(json.dumps(payload, sort_keys=True).encode()).hexdigest() def accept_delegation( env: DelegationEnvelope, receipt_timestamp_ts: int, min_viable_budget_s: int, ) -> int: """Return remaining budget in seconds, or raise SLAEpochMismatchError. Refuses when the SLA clock epoch cannot be independently recomputed from sealed fields, because such a commitment is not replay-adjudicable. """ if env.seal_timestamp_ts is None: raise SLAEpochMismatchError( "envelope carries no seal_timestamp; SLA deadline is an unverifiable " "delegator assertion and cannot be enforced in dispute replay" ) if _recompute_hash(env) != env.contract_hash: raise SLAEpochMismatchError( "contract_hash does not cover seal_timestamp; the seal time was " "appended after hashing and is therefore not attested" ) recomputed_deadline = env.seal_timestamp_ts + env.sla_duration_s drift = abs(recomputed_deadline - env.sla_deadline_ts) if drift > env.clock_skew_tolerance_s: raise SLAEpochMismatchError( f"transmitted sla_deadline ({env.sla_deadline_ts}) disagrees with " f"seal-anchored deadline ({recomputed_deadline}) by {drift}s; " "delegator computed the clock from a different epoch than it sealed" ) remaining = env.sla_deadline_ts - receipt_timestamp_ts if remaining < min_viable_budget_s: raise SLAEpochMismatchError( f"remaining budget {remaining}s below declared minimum " f"{min_viable_budget_s}s after epoch reconciliation; " "refuse and counter-offer a fresh seal" ) return remaining ```