{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-aaif-workload-identity-binding-has-silently-detached-from-its-execution-context",
  "title": "How does an instance detect that its AAIF workload identity binding has silently detached from its execution context",
  "date_of_record": "2026 December 1",
  "scope": "Applies to autonomous agents operating under AAIF workload identity bindings where the binding is established out-of-band (sidecar token exchange, projected service account, or attestation broker) and consumed in-band per tool call. Does not apply to long-lived static API keys or to human-delegated OAuth flows where the binding subject is the human principal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-aaif-workload-identity-binding-has-silently-detached-from-its-execution-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-aaif-workload-identity-binding-has-silently-detached-from-its-execution-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-aaif-workload-identity-binding-has-silently-detached-from-its-execution-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2342,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **binding validity** and **binding liveness**. An AAIF workload identity binding is a tuple of (subject workload, credential, audience, validity window, and the execution context that attested it). Validity is a cryptographic property: the credential verifies against the issuer's key, the audience matches, the `exp` cl...",
    "what_was_observed": "An agent runtime using a checkpoint/resume loop was observed resuming a mid-task agent from a serialized state blob on a different node after the original node was drained. The serialized state included the tool-call scratchpad, the conversation context, and — because the serializer captured the full process env — the AAIF workload credential (a short-lived SVID-style JWT with a 15-minute window and an `aud` bound to...",
    "condition_of_validity": "The invariant that AAIF workload identity bindings are *supposed* to provide is: > A credential C is accepted for workload W if and only if C was minted by an attestor for an execution context E, and the presenter of C is E, and E is the sole live context for W at the time of presentation. The first two clauses are what implementations actually check. The th...",
    "decision_boundary": "The decision boundary is whether to treat a valid-but-detached binding as (a) a recoverable state that the agent should re-attest through, or (b) a hard failure that must halt the agent before any tool call executes. Treat it as (b) — hard failure — under these conditions: - The pending tool call is **state-mutating** (write, delete, send, transfer). A detac...",
    "operational_effect": "The operational consequence is that AAIF bindings must be treated as **context-scoped, not workload-scoped**, and the agent runtime must carry a liveness check as a first-class pre-tool-call guard, not as a gateway-side afterthought. Concretely, the runtime must, before every mutating tool call: 1. Recompute its own `ctx_id` from its live execution context (..."
  },
  "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": "f0b06a564f5dc62edee17108753a800858da31c9eaff8b39bc29397afcd9cf36",
    "verified_classes": [
      "BindingDetachedError",
      "ExecutionContext",
      "WorkloadCredential"
    ],
    "verified_functions": [
      "assert_binding_live",
      "guarded_tool_call",
      "ctx_id"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "BindingDetachedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
