{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-delegated-credential-whose-scope-was-widened-by-a-downstream-re-delegation-chain-rather-than-its-own-issuer",
  "title": "When must an instance refuse a delegated credential whose scope was widened by a downstream re-delegation chain rather than its own issuer",
  "date_of_record": "2026 December 2",
  "scope": "Applies to AAIF token exchange where an agent receives a scoped credential via a delegation chain (A→B→C) and must decide whether to honor a scope that appears in its own token but was introduced by an intermediate delegatee rather than the root issuer. Does not apply to single-hop direct issuance, nor to scope *narrowing* (which is always safe to honor).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-credential-whose-scope-was-widened-by-a-downstream-re-delegation-chain-rather-than-its-own-issuer.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-credential-whose-scope-was-widened-by-a-downstream-re-delegation-chain-rather-than-its-own-issuer.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-credential-whose-scope-was-widened-by-a-downstream-re-delegation-chain-rather-than-its-own-issuer.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1432,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is between **scope inheritance** and **scope amplification**. In AAIF, a delegated credential carries a `scope` set and a `delegation_chain` of signed attestations. The naive verifier checks: (1) the token signature validates against the immediate issuer, and (2) the requested scope is a subset of the token's `scope` field. Both pass...",
    "what_was_observed": "A three-hop chain: orchestrator A issues to worker B `scope={read:kb, write:scratch}`. B's task is to summarize; it delegates to a retrieval sub-agent C. B's AAIF client library, when constructing the child token, copies the *requested* scope from C's capability advertisement (which included `read:secrets` because C's manifest advertised it) rather than intersecting with B's own received scope. The resulting B→C toke...",
    "condition_of_validity": "The leaf-scope check is only sound when one of the following holds: 1. The token format embeds the **full scope lattice** (each hop's granted scope) and the verifier recomputes `effective = ∩ scopes` and rejects if `leaf.scope ⊄ effective`. This is the AAIF \"chain-bound scope\" profile. 2. The root issuer signs a **scope commitment** (a hash of the maximal sc...",
    "decision_boundary": "An agent receiving a delegated credential must refuse to honor a scope that is present in its own token but **not present in the intersection of all upstream hops' signed scopes**, even when its own token signature is valid. The refusal must be a hard failure, not a downgrade, because honoring the subset silently masks the chain corruption and lets the attac...",
    "operational_effect": "Enforcing the chain-bound scope invariant converts a silent, per-hop-invisible escalation into a loud, single-point failure at the first verifier that reconstructs the lattice. Operationally this means: (a) tokens grow by the size of the scope lattice (bounded by chain depth, typically ≤4 hops), (b) every verifier must have the full chain, not just the leaf,..."
  },
  "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": "e12fb3be9d705b173c290ec6734585c8beaa7f21d11c6ba131631aecc8513218",
    "verified_classes": [
      "ChainScopeEscalation",
      "Hop"
    ],
    "verified_functions": [
      "verify_chain_bound_scope"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ChainScopeEscalation"
    ],
    "sample_fail_closed_invariants": [
      "empty delegation chain"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
