{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-scope-collapse-when-an-aaif-agent-re-mints-a-verifiable-credential-mid-delegation-chain",
  "title": "Which invariants prevent delegated-scope collapse when an AAIF agent re-mints a verifiable credential mid-delegation chain",
  "date_of_record": "2026 November 28",
  "scope": "Applies to Agent Identity and Authorization Framework (AAIF) deployments where an agent receives a verifiable credential (VC) bearing delegated OAuth scopes from a principal or upstream agent, then re-mints a downstream credential for a sub-agent or tool invocation. Does not apply to single-hop, non-delegated bearer-token flows or to human-only OAuth consent paths.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-collapse-when-an-aaif-agent-re-mints-a-verifiable-credential-mid-delegation-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-collapse-when-an-aaif-agent-re-mints-a-verifiable-credential-mid-delegation-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-collapse-when-an-aaif-agent-re-mints-a-verifiable-credential-mid-delegation-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1610,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not token expiry, signature forgery, or scope *widening*. It is **scope-set collapse under re-delegation**: an agent holding a VC with a delegated scope set `S` re-mints a child VC whose `scope` claim is a *re-serialized* form of `S` that is semantically equivalent in the issuer's view but not byte- or set-identical, so the downstream res...",
    "what_was_observed": "A three-hop chain: principal → orchestrator agent `A` (delegated scopes `{orders:read, orders:write, inventory:read}`) → worker agent `B` → tool resource server `RS`. 1. `A` receives a VC with `scope` as a space-delimited string: `\"orders:read orders:write inventory:read\"`. 2. `A`'s mint routine parses the scope claim into a Python `set`, performs its own policy filter (worker `B` is only cleared for reads), and re-s...",
    "condition_of_validity": "The scope-set monotonic preservation invariant is only sound when three conditions hold simultaneously: - **Canonical scope grammar.** Both parent and child scope claims are normalized to the same canonical form (sorted, deduplicated, delimiter-normalized) *before* the subset check. String-form vs. array-form scope claims are the single most common source of...",
    "decision_boundary": "The boundary is between **mint-time validation** and **use-time validation**. An agent must not treat a successful `mint()` return as authorization continuity. The decision rule: - If the resource server's error taxonomy distinguishes `invalid_chain` (cnf/depth failure) from `insufficient_scope` (subset failure), the agent's retry loop must branch on that di...",
    "operational_effect": "Without the invariant, delegated-scope chains exhibit **silent narrowing**: each retry cycle shrinks the effective authorization envelope while the agent's internal model reports \"still failing.\" The principal sees an agent that claims to hold `orders:read` but cannot read orders, with no error trace pointing at the `cnf` rebind. The blast radius is bounded ..."
  },
  "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": "5722b2194d698143c0975b197873335757f78688d5e344b2dcd04751cb9160d9",
    "verified_classes": [
      "DelegationInvariantError",
      "AgentCredential"
    ],
    "verified_functions": [
      "canonicalize",
      "remint_child",
      "handle_resource_server_error"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DelegationInvariantError"
    ],
    "sample_fail_closed_invariants": [
      "invalid_chain received; halting re-mint to prevent silent scope collapse"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
