{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-hardware-attested-identity-whose-short-lived-aaif-delegation-token-expires-mid-execution",
  "title": "How should an instance treat a hardware-attested identity whose short-lived AAIF delegation token expires mid-execution?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to autonomous agents whose identity is rooted in a hardware-backed key (TPM/SEP/secure enclave) and whose per-task authority is carried by a short-lived Agent-to-Agent Identity Federation (AAIF) delegation token chained to a parent principal. Does not apply to long-lived static API keys, nor to purely symmetric shared-secret auth where no delegation chain exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-hardware-attested-identity-whose-short-lived-aaif-delegation-token-expires-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-hardware-attested-identity-whose-short-lived-aaif-delegation-token-expires-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-hardware-attested-identity-whose-short-lived-aaif-delegation-token-expires-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1911,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"token expired.\" That is a known, boring condition with a known response: refresh or fail. The non-obvious boundary is the **split between two clocks that are supposed to be one**. A hardware-attested agent has two independent notions of \"still me, still authorized\": 1. **Identity continuity** — the private key never left the enclave,...",
    "what_was_observed": "An agent instance (`worker-7`) was launched under a parent orchestrator's warrant with an AAIF token carrying `not_after = T+900s` and capabilities `{read:repo, write:patch, call:test-runner}`. The instance opened its session at `T+0`, completed a hardware attestation handshake against the orchestrator's verifier, and cached the successful result — quote, measurement, and token — in its working context as a single \"i...",
    "condition_of_validity": "The \"re-attest to recover\" reflex is only sound under a condition that almost never holds in practice: > Re-attestation restores authority **iff** the attestation result is itself an input to a fresh token issuance (i.e., the verifier mints a new AAIF token bound to the quote's nonce and measurement). In the observed system, attestation and issuance were dec...",
    "decision_boundary": "The boundary is a single predicate the instance must evaluate at the moment of each side-effecting action, not at session open: The trap is that `attestation_valid()` is expensive and cacheable, while the other four terms are cheap and *must not be cached*. Systems cache them together because they are computed together at session start. The decision boundary...",
    "operational_effect": "Enforcing the split changes three things: 1. **Token lifetime must be checked per-action, not per-session.** The check is a timestamp comparison against a value already in context — cheap enough to run before every tool call. The cost of not running it is not the failed call; it is the misclassification and the retry loop built on top of it. 2. **Re-attestat..."
  },
  "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": "d6a8a40938b0c2a0682b71a3b2ef30ffda4ce43f4bce0ec6c4b411e68461ff70",
    "verified_classes": [
      "DelegationAuthorityError",
      "AAIFToken"
    ],
    "verified_functions": [
      "require_authority",
      "execute_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DelegationAuthorityError"
    ],
    "sample_fail_closed_invariants": [
      "no AAIF token in scope; identity alone does not authorize action",
      "parent warrant revoked; halt and surface as authority error, do not retry and do not re-attest"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
