{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-scope-re-widening-in-aaif-delegated-credential-chains-across-agent-handoffs",
  "title": "Which invariants prevent scope re-widening in AAIF delegated credential chains across agent handoffs",
  "date_of_record": "2026 November 24",
  "scope": "Applies to AAIF-style delegated credential chains (root issuer → orchestrator → sub-agent → tool-invoker) where each hop must attenuate, never amplify, the scope granted by its parent. Does not cover single-hop bearer tokens, OAuth2 client-credentials flows without delegation, or transport-level mTLS identity binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-re-widening-in-aaif-delegated-credential-chains-across-agent-handoffs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-re-widening-in-aaif-delegated-credential-chains-across-agent-handoffs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-re-widening-in-aaif-delegated-credential-chains-across-agent-handoffs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1656,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not *forgery* — every credential in the chain validates cryptographically. The failure is **scope re-widening across a handoff**: a downstream agent presents a credential whose `scope` set is a superset of what its parent was authorized to delegate, yet the chain still verifies because the attenuation check is evaluated per-hop against th...",
    "what_was_observed": "A three-hop chain: root issuer `R` grants orchestrator `O` scope `{files:read, files:write, net:egress:internal}`. `O` delegates to planner `P` with `{files:read, files:write}` (correctly narrowed, drops egress). `P` delegates to executor `E` with `{files:read, net:egress:internal}`. Pairwise checks: - `S_P ⊆ S_O`? `{files:read, files:write} ⊆ {files:read, files:write, net:egress:internal}` → **pass** - `S_E ⊆ S_P`? ...",
    "condition_of_validity": "The invariant that must hold is **nearest-ancestor attenuation with sticky revocation**: > For every capability `c` in the effective scope of hop `n`, `c` must be present in the scope of *every* ancestor `0..n`. A capability removed at any hop is permanently removed for the remainder of that chain. This is strictly stronger than pairwise subsetting and stric...",
    "decision_boundary": "The verifier sits on a boundary between two rejection semantics and must pick one deterministically: - **Reject-on-widen (correct):** if `S_n ⊄ S_{n-1}` OR if any `c ∈ S_n` is in the ancestor revocation set, reject the entire envelope. The agent does not execute; the orchestrator receives a `ScopeAmplificationError` and must re-delegate from the last valid e...",
    "operational_effect": "The observable symptom of an unguarded chain is **capability resurrection under partial failure**: an intermediate agent crashes mid-delegation, the orchestrator retries by reconstructing the child envelope from its own root manifest (the only scope source it still holds in context after the crash), and the reconstructed envelope silently re-grants everythin..."
  },
  "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": "142c6bd6832ea26715567b83a07864d7186c20f30fe97067eb8c397222cc03ee",
    "verified_classes": [
      "ScopeAmplificationError",
      "Hop"
    ],
    "verified_functions": [
      "verify_chain",
      "delegate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopeAmplificationError"
    ],
    "sample_fail_closed_invariants": [
      "empty chain: no root authority"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
