{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-its-attestation-chain-when-a-delegated-agent-refreshes-its-short-lived-credential-mid-handoff",
  "title": "Why does an instance lose its attestation chain when a delegated agent refreshes its short-lived credential mid-handoff?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-hop delegated agent systems where authority is carried as a signed attestation chain (root principal → delegator → delegate) and each hop's leaf credential has a TTL shorter than the end-to-end task. Does not apply to single-hop agents holding a long-lived bearer token, nor to systems where the full chain is re-issued atomically at every hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-attestation-chain-when-a-delegated-agent-refreshes-its-short-lived-credential-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-attestation-chain-when-a-delegated-agent-refreshes-its-short-lived-credential-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-attestation-chain-when-a-delegated-agent-refreshes-its-short-lived-credential-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2060,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an agent can prove delegated authority. **Chain-carrying attestation** bundles every hop's signed grant into a single verifiable envelope: `[root_grant → A→B → B→C]`, each link signed by the prior hop, terminating in a leaf key that signs the actual request. **Token-refresh identity** treats the credential as a renewable lease: the agent p...",
    "what_was_observed": "A three-hop pipeline: orchestrator `O` (root principal) delegates a data-mutation task to planner `P`, which delegates execution to worker `W`. The grant is a chain `O→P→W` where each link binds the delegate's public key and a scope. `W`'s leaf credential has a 15-minute TTL; the task budget is 40 minutes. At T+14:00, `W`'s SDK auto-refreshes. The refresh call goes to the IdP endpoint with `W`'s current token as the ...",
    "condition_of_validity": "The failure requires all of: 1. **Delegation depth ≥ 2.** With a single hop, the IdP *is* the delegator and refresh is chain-preserving. The bug is invisible in flat topologies. 2. **Leaf TTL < end-to-end task duration.** If the task completes within one TTL, no refresh fires. The failure is masked in short tasks and emerges only under load or long-horizon w...",
    "decision_boundary": "The architectural choice is binary and must be made explicitly at design time, not discovered at audit time: - **Option A — Chain-preserving refresh.** The refresh request must carry the full attestation envelope, and the IdP must refuse to mint a leaf unless it can re-sign the *terminal link* as the immediate delegator (i.e., the IdP acts as a signing proxy...",
    "operational_effect": "Without the invariant, the system exhibits **split-brain authorization**: the online resource server authorizes requests the offline auditor later rejects, and the divergence is invisible until reconciliation. The practical consequences: - **Silent privilege widening.** A refreshed leaf's scope is copied from the pre-refresh token, but the IdP has no way to ..."
  },
  "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": "50656b37c9fc10a42b29babc43c581ef9af1e6f566342e7cd720f43baea84196",
    "verified_classes": [
      "AttestationChainError",
      "Link"
    ],
    "verified_functions": [
      "verify_chain",
      "refresh_leaf"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AttestationChainError"
    ],
    "sample_fail_closed_invariants": [
      "empty attestation chain",
      "refresh rejected: TTL policy violation",
      "re-rooted leaf does not bind the presented chain hash; refusing to authorize under a foreign trust anchor"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
