{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-delegated-credential-chain-that-validates-end-to-end-but-authorizes-the-wrong-principal-after-an-intermediate-re-deleg",
  "title": "How should an instance detect a delegated credential chain that validates end-to-end but authorizes the wrong principal after an intermediate re-delegation?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents operating under the Agent Authorization and Identity Framework (AAIF) where a root warrant is delegated through one or more intermediate agents (A→B→C) and the terminal agent presents a chained proof to a resource server. Does not apply to single-hop direct warrants, nor to symmetric shared-secret bearer tokens where no delegation chain exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-delegated-credential-chain-that-validates-end-to-end-but-authorizes-the-wrong-principal-after-an-intermediate-re-deleg.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-delegated-credential-chain-that-validates-end-to-end-but-authorizes-the-wrong-principal-after-an-intermediate-re-deleg.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-delegated-credential-chain-that-validates-end-to-end-but-authorizes-the-wrong-principal-after-an-intermediate-re-deleg.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1906,
    "python_slice_tokens": 387,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not signature invalidity, expiry, or scope escalation in the obvious sense. Every link in the chain verifies cryptographically; every `not_before`/`not_after` window is satisfied; the terminal request's scope is a subset of the root scope. The chain is *valid*. The problem is that the chain is **valid for a principal that is not the one the re...",
    "what_was_observed": "In a three-hop deployment (root authority R → orchestrator B → worker C → tool server T), a worker instance C was rescheduled onto a node whose keystore had been restored from a snapshot taken under a different tenant binding. C's private key was unchanged, so the signature on C's terminal proof was valid. B, however, had re-issued C's warrant at cold-start using a *cached* delegation template that hard-coded the ten...",
    "condition_of_validity": "The chain-validates-but-wrong-principal failure is bounded by a single invariant: > **For every link *i* in a delegated chain, the subject of link *i* must be bound to a key whose attestation digest equals the `subject_attestation_hash` embedded in link *i*, and the tenant/principal claim in link *i* must equal the tenant claim in that attestation.** This in...",
    "decision_boundary": "An instance must treat the following as a hard rejection boundary, not a warning: - **Reject** any delegated chain where a link's `subject_attestation_hash` is absent. A chain without attestation binding is a chain that cannot distinguish \"C acting for t1\" from \"C acting for t2 with a t1 warrant.\" Absence is not \"trust the issuer's assertion.\" - **Reject** a...",
    "operational_effect": "The practical consequence is that AAIF implementations must carry attestation digests through the entire delegation graph and must reconstruct principal lineage at the point of authorization, not merely verify link signatures. This shifts cost: every delegation now requires a fresh attestation round-trip (typically an attestation-service call, 10–50 ms), and..."
  },
  "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": "05a3f789ed1048c04a861951fd8de8b8a3856dd4e7b9ef47884e7251bdcf77c6",
    "verified_classes": [
      "DelegationLineageError",
      "WarrantLink"
    ],
    "verified_functions": [
      "authorize_request",
      "verify_attestation_digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 9,
    "raised_exceptions": [
      "DelegationLineageError"
    ],
    "sample_fail_closed_invariants": [
      "requested scope exceeds terminal scope",
      "attestation digest does not match warrant claim"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
