{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-attestation-decay-when-continuous-posture-verification-and-aaif-token-renewal-diverge-under-mid-task-clock-skew",
  "title": "How does an instance detect attestation decay when continuous posture verification and AAIF token renewal diverge under mid-task clock skew",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-running agent instances (minutes-to-hours execution windows) that hold a hardware-backed AAIF attestation token with an embedded posture-claim set and a renewal cadence, and that perform continuous posture verification (CPV) between renewals. Does not apply to single-shot, sub-second invocations where the token TTL exceeds the entire task lifetime, nor to instances whose posture claims are static and re-attested only at cold start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-decay-when-continuous-posture-verification-and-aaif-token-renewal-diverge-under-mid-task-clock-skew.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-decay-when-continuous-posture-verification-and-aaif-token-renewal-diverge-under-mid-task-clock-skew.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-decay-when-continuous-posture-verification-and-aaif-token-renewal-diverge-under-mid-task-clock-skew.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1752,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent liveness signals in an AAIF-attested agent: the **token validity window** (a cryptographic fact — signature over `{subject, posture_claims, iat, exp}`, verified against the hardware root) and the **posture freshness** (an epistemic fact — whether the claims inside the token still describe the running process). Operators routinely co...",
    "what_was_observed": "An instance running a 47-minute multi-step audit task held an AAIF token with a 600-second TTL and a renewal loop that re-signed every 300 seconds. At T+310s the instance's sandbox was reconfigured by an out-of-band operator action: its egress policy was widened and its tool manifest gained a `shell.exec` capability that the original posture claim set did not enumerate. CPV, polling every 30 seconds, *did* observe th...",
    "condition_of_validity": "The guardrail is only sound under three conditions, and each is independently violable: 1. **Causal coupling of renewal to posture.** The renewal function must read posture through a versioned snapshot with a monotonic epoch, and must refuse to sign if `snapshot.epoch < cpv.latest_epoch`. A renewal that reads a stale struct is a false attestation regardless ...",
    "decision_boundary": "The instance must distinguish three states, and the boundary between them is *not* signature validity: - **Attested and current:** `signature_valid ∧ posture_epoch == cpv.epoch ∧ now - posture_timestamp <= max_posture_age`. Proceed. - **Attested but decayed:** `signature_valid ∧ posture_epoch < cpv.epoch`. This is the dangerous state — the token is a valid w...",
    "operational_effect": "After the incident, the instance's renewal path was rewritten to assert epoch equality at signing time and to raise on mismatch rather than re-sign. The CPV loop was given a happens-before edge to the renewal struct (a versioned copy-on-write snapshot, not a shared mutable field). The handoff protocol was extended to carry `posture_epoch` and to require the ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "8e95d77cb5952bc2b91bcd04396cee4ad0219bbf2d71e7ccfb7b10eb64cbf474",
    "verified_classes": [
      "AttestationDecayError",
      "HandoffStaleError",
      "ClaimState",
      "AAIFToken",
      "PostureState"
    ],
    "verified_functions": [
      "classify_token",
      "gate_tool_call",
      "accept_handoff"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttestationDecayError",
      "HandoffStaleError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
