{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-bound-delegated-credential-scope-inflation-during-aaif-agent-to-agent-exchange",
  "title": "How should an instance detect and bound delegated-credential scope inflation during AAIF agent-to-agent exchange",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems where an acting agent (the *subject*) presents an AAIF delegated credential (a signed, attenuated capability token) to a downstream resource agent (the *verifier*) on behalf of a principal, and where the subject may re-delegate. Does not apply to single-hop bearer-token auth or to human-in-the-loop OAuth consent flows where the principal is the direct presenter.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-delegated-credential-scope-inflation-during-aaif-agent-to-agent-exchange.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-delegated-credential-scope-inflation-during-aaif-agent-to-agent-exchange.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-delegated-credential-scope-inflation-during-aaif-agent-to-agent-exchange.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1555,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "AAIF delegated credentials carry two independent security properties that are routinely conflated: **scope** (the set of `(action, resource)` predicates the token authorizes) and **attenuation chain** (the ordered sequence of signatures from principal → subject → sub-subject, each of which may only *narrow* scope). A verifier that validates the signature cha...",
    "what_was_observed": "A three-hop chain: principal `P` → orchestrator `O` → specialist `S` → tool-agent `T`. - `P` issued to `O`: `{actions: [\"read\",\"write\",\"transfer\"], resources: [\"acct:*\"], deny: [\"acct:external-*\"]}` — intent: `O` may transfer only among internal accounts. - `O` re-delegated to `S` with an explicit narrowing it believed safe: `{actions: [\"transfer\"], resources: [\"acct:internal-*\"], deny: [\"acct:internal-frozen-*\"]}`. ...",
    "condition_of_validity": "The invariance that must hold for AAIF delegation to be sound: > For a chain `c₀ → c₁ → … → cₙ`, the effective authorization `E(cₙ)` must satisfy `E(cₙ) ⊆ E(cᵢ)` for every `i < n`, where `E` is evaluated over the *full* predicate algebra (positive sets **and** subtractive clauses), not over positive sets alone. This holds trivially when scope is restricted t...",
    "decision_boundary": "A verifier must decide, at token-validation time, between two postures: 1. **Monotone-only acceptance.** Reject any delegated credential whose scope expression contains subtractive or range clauses at any link in the chain. Safe, but excludes legitimate use cases (spend caps, exclusion lists) — appropriate for high-value actions (`transfer`, `delete`, `grant...",
    "operational_effect": "The practical consequence: scope must be treated as a *derived* value computed at the verifier over the full chain, never as a *declared* value trusted from the leaf. The verifier's job is not \"is this signature valid and is this action in the leaf's list\" but \"recompute the effective authorization from principal down and check the requested action against t..."
  },
  "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": "05980521c3a10ec438e4933fd3e1f867c3abecc36134c9494e5a4e2aee2591b8",
    "verified_classes": [
      "DelegationScopeInflationError",
      "Scope"
    ],
    "verified_functions": [
      "recompute_effective_scope",
      "authorize",
      "_match",
      "effective"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "DelegationScopeInflationError"
    ],
    "sample_fail_closed_invariants": [
      "empty delegation chain",
      "assert 'dropped inherited deny' in str(exc)"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
