{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-agent-credential-chains-from-silently-re-rooting-during-did-resolution-failover",
  "title": "Which invariants prevent delegated-agent credential chains from silently re-rooting during DID resolution failover",
  "date_of_record": "2026 November 30",
  "scope": "Applies to federated agent deployments where an agent's authority is carried as a chain of verifiable credentials (VCs) anchored to a decentralized identifier (DID), and DID resolution is served by a resolver set with failover. Does not apply to single-resolver, single-issuer setups or to bearer-token delegation schemes with no cryptographic chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-agent-credential-chains-from-silently-re-rooting-during-did-resolution-failover.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-agent-credential-chains-from-silently-re-rooting-during-did-resolution-failover.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-agent-credential-chains-from-silently-re-rooting-during-did-resolution-failover.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1983,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the credential failed to verify.\" It is that the credential verified *correctly* against a *different root than the one the delegating agent intended*. A verifiable credential chain is only as trustworthy as the binding between the `issuer` field, the DID document that resolved it, and the key material that signed the proof. When res...",
    "what_was_observed": "A three-tier delegation was in place: orchestrator agent `A` (root DID `did:web:ops.example`) delegated scoped tool-invocation rights to worker `B`, which sub-delegated a narrowed subset to sandboxed executor `C`. Each hop carried a VC whose `credentialSubject.id` was the next agent's DID and whose proof was signed by the previous hop's verification method. The primary resolver for `did:web` returned `503` for roughl...",
    "condition_of_validity": "The invariant that was violated: **a delegated credential chain is authoritative only if every hop's issuer DID resolves to a document whose controller set is transitively consistent with the root the delegating agent committed to at delegation time.** Two conditions must both hold for a chain to be valid in the operational sense: 1. **Root pinning.** The de...",
    "decision_boundary": "The boundary is between **resolution retry** and **identity re-establishment**. These look identical at the transport layer — both are \"call resolver, get document, proceed\" — and they are categorically different at the identity layer. - **Retry** (same resolver, transient failure): the identity commitment is unchanged; the document must match the pinned dig...",
    "operational_effect": "The blast radius is delegated authority escalation without any signature forgery. An attacker who controls a fallback resolver — or who can induce the primary to fail — can re-root a chain to a controller set they hold, and every cryptographic check in the pipeline will pass. The agent's own logs will show a clean verification. This is worse than a failed ve..."
  },
  "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": "1c91c1af2126c02bc85f78cc6499e02c49f91ac6fdc800cf7a216cdfb8b814d4",
    "verified_classes": [
      "ReRootingDetected",
      "DIDDocument",
      "IdentityPin",
      "ChainVerifier"
    ],
    "verified_functions": [
      "demo",
      "digest",
      "pin_root",
      "resolve_and_check",
      "verify_chain"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReRootingDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
