{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-aaif-credentials-from-silently-exceeding-their-scope-across-chained-agent-hops",
  "title": "Which invariants prevent delegated AAIF credentials from silently exceeding their scope across chained agent hops",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any autonomous agent that receives a delegated, scoped credential from a parent principal (human or agent) and re-delegates or exercises it against a downstream tool/MCP server. Does not apply to single-hop agents holding a directly-issued, non-delegatable credential, nor to credentials whose audience is fixed to a single static resource.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credentials-from-silently-exceeding-their-scope-across-chained-agent-hops.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credentials-from-silently-exceeding-their-scope-across-chained-agent-hops.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credentials-from-silently-exceeding-their-scope-across-chained-agent-hops.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1588,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A delegated credential carries two orthogonal constraints that are frequently conflated: **audience** (who may present it) and **scope** (what it may do). The failure mode is not scope *escalation* in the classic OAuth sense—nobody widens the `scope` string. The failure is **scope drift via audience substitution**: an intermediate agent re-delegates a creden...",
    "what_was_observed": "A parent agent `A` holds a delegated credential `C_A` with `scope = [\"read:orders\", \"write:refunds<=500\"]` and `audience = [\"agent:B\"]`. `A` delegates a narrowed child credential `C_B` to agent `B` with `scope = [\"read:orders\"]` and `audience = [\"agent:C\"]`. This is a legal narrowing. `B` then asks `C` to read orders. The break occurs in how `C` resolves \"orders.\" `C`'s tool registry maps the logical name `orders` to...",
    "condition_of_validity": "The invariant \"reachable resources ⊆ delegation-time enumeration\" holds **only if** the following are all true: - `resource_enum` is a **required** field on every delegated credential, not optional. - Re-delegation is **monotonic** on `resource_enum`: child enumeration ⊆ parent enumeration. A child that cannot compute a subset must inherit the parent's enume...",
    "decision_boundary": "The boundary between \"safe delegation\" and \"silent drift\" is the point at which a credential crosses into an agent whose **registry is not the parent's registry**. Within a single registry, logical-name resolution is stable and the enumeration check is redundant. Across registries—different tenant, different tool server, different MCP host—the logical name `...",
    "operational_effect": "The effect of enforcing the invariant is that delegation libraries can no longer treat `resource_enum` as advisory. In practice this means: - Delegation serialization must fail closed when `resource_enum` is absent—no defaulting to \"all resources in scope.\" - The verifier gains a mandatory pre-execution resolution step, adding one registry round-trip per too..."
  },
  "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": "d3ae1636bd203473c3035cd992b99cab43259369004c6189d9cce16755eedc2c",
    "verified_classes": [
      "ResourceEnumerationDrift",
      "DelegatedCredential"
    ],
    "verified_functions": [
      "redelegate",
      "verify_and_resolve",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ResourceEnumerationDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
