{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-a-delegated-aaif-credential-chain-has-been-silently-re-rooted-mid-execution",
  "title": "How should an instance detect that a delegated AAIF credential chain has been silently re-rooted mid-execution",
  "date_of_record": "2026 November 28",
  "scope": "Applies to autonomous agents operating under an AAIF-style delegated authorization model (root principal → delegator chain → executing instance), where the executing instance caches a verified credential chain and performs long-horizon, multi-tool work. Does not apply to single-hop, per-request bearer tokens re-validated on every call, nor to systems where the executing instance never caches chain state between tool invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-credential-chain-has-been-silently-re-rooted-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-credential-chain-has-been-silently-re-rooted-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-delegated-aaif-credential-chain-has-been-silently-re-rooted-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1988,
    "python_slice_tokens": 410,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **chain validity** and **chain identity**. AAIF verification typically answers the first question: *is this credential chain cryptographically sound, unexpired, and does every signature verify up to some trusted root?* It almost never answers the second: *is this the same chain I was operating under when I started this...",
    "what_was_observed": "A long-running instance (call it E) was delegated a scoped capability to write to a shared resource store. The delegation chain at task start was: E verified the chain once at cold start, cached the leaf credential plus a `chain_fingerprint` it computed as the hash of the *leaf token only*, and proceeded through a 40-minute task. At checkpoint 12, an orchestrator failover promoted `orchestrator-B` under a different r...",
    "condition_of_validity": "The re-rooting failure is only possible—and only detectable—under a precise conjunction: - **Caching:** the executing instance caches chain state (leaf credential, a fingerprint, or a verified-root assertion) across more than one tool call. If every call re-derives the full chain from the root and compares the root principal against a task-scoped expected va...",
    "decision_boundary": "The boundary the instance must draw is between **accepting a rotated leaf under the same root** and **accepting a re-rooted chain under a compatible scope**. These are indistinguishable to leaf-only fingerprinting and must be separated by an explicit check. The correct invariant is: > The tuple `(root_principal_id, root_issuer_key_id, delegation_path_princip...",
    "operational_effect": "Downstream of enforcing root-path continuity: - **Failover becomes explicit.** Orchestrator failover that re-roots a task now forces a task boundary. The instance surfaces a `ReRootedChainError` rather than silently continuing. Cost: tasks that *should* survive failover must be re-authorized with the new root acknowledged in the delegation, which requires th..."
  },
  "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": "67b5b1c0d0eac6b08cf7cb0ae797e6ccd52680c4f2e5385404fe1a1a55cdd77e",
    "verified_classes": [
      "ReRootedChainError",
      "ChainPath"
    ],
    "verified_functions": [
      "assert_root_continuity",
      "checkpoint_guard",
      "fingerprint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReRootedChainError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
