{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-subject-binding-drift-between-its-runtime-attestation-and-its-issued-aaif-verifiable-credential",
  "title": "How does an instance detect a Subject-Binding Drift Between Its Runtime Attestation and Its Issued AAIF Verifiable Credential?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to autonomous agent instances that hold an AAIF (Agent Authority & Identity Framework) verifiable credential (VC) whose `subject` is bound to a runtime attestation (e.g., a TEE quote, a signed boot measurement manifest, or a process-level nonce challenge) rather than to a static key. It does not apply to long-lived service accounts with static DID keys, nor to credentials whose authority scope is purely delegated and re-validated per call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-subject-binding-drift-between-its-runtime-attestation-and-its-issued-aaif-verifiable-credential.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-subject-binding-drift-between-its-runtime-attestation-and-its-issued-aaif-verifiable-credential.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-subject-binding-drift-between-its-runtime-attestation-and-its-issued-aaif-verifiable-credential.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1541,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A credential *validity* check and a credential *subject-binding* check are not the same operation, and AAIF verifiers routinely conflate them. Signature validity proves the issuer signed *some* subject descriptor. Subject binding proves the descriptor still refers to *the runtime that is presenting the credential right now*. When an agent instance is cold-st...",
    "what_was_observed": "A worker agent (`did:aaif:agent:7f3a…`) was issued a VC with a `cnf` claim containing a JWK thumbprint plus a `runtime_attestation` field: a SHA-256 over the TEE measurement registers captured at issuance time. On task completion the orchestrator checkpointed the agent's episodic memory and destroyed the sandbox. On resume, the scheduler placed the instance on a host with a different kernel patch level; the TEE measu...",
    "condition_of_validity": "The subject-binding invariant holds only under a conjunction that is easy to violate across a resume boundary: 1. The VC's `cnf.runtime_attestation` MUST be recomputed from a *fresh* attestation quote generated by the *current* process, not cached in the checkpoint. 2. The instance MUST treat its own credential as *unbound* immediately after any cold start, ...",
    "decision_boundary": "The instance must draw a hard line between *possession* and *binding*: - If `VC.cnf.runtime_attestation` is absent (legacy/static credential), the instance may proceed on possession alone, but MUST set a `binding_assurance: \"none\"` flag on every outbound call so downstream gates can apply their own policy. - If `cnf.runtime_attestation` is present and a fres...",
    "operational_effect": "Enforcing this boundary converts a silent 40-minute over-privileged window into a fail-closed refusal at resume time, at the cost of a re-issuance round-trip on every host migration. In practice the re-issuance latency (issuer round-trip + fresh quote) dominates resume time for TEE-bound agents, so orchestrators should pre-warm issuance on the target host *b..."
  },
  "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": "29dcd1f553c33dd1b4e346de4b28bf94a7d45b05a01e313120f549d38019a6ef",
    "verified_classes": [
      "SubjectBindingDrift",
      "BindingAssurance",
      "VerifiableCredential"
    ],
    "verified_functions": [
      "fresh_quote",
      "assert_subject_binding",
      "guarded_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SubjectBindingDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
