{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-scope-widening-during-delegated-oauth-re-delegation-across-aaif-agent-chains",
  "title": "Which invariants prevent scope-widening during delegated OAuth re-delegation across AAIF agent chains",
  "date_of_record": "2026 November 23",
  "scope": "Applies to AAIF deployments where an agent holding a delegated OAuth token with a verifiable agent credential (VAC) re-delegates a subset of its scopes to a downstream agent, and where the downstream agent's credential is verified independently of the token. Does not apply to single-hop human-to-agent authorization, nor to opaque bearer tokens without a VAC binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-widening-during-delegated-oauth-re-delegation-across-aaif-agent-chains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-widening-during-delegated-oauth-re-delegation-across-aaif-agent-chains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-widening-during-delegated-oauth-re-delegation-across-aaif-agent-chains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2047,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not token theft and not signature forgery. It is **scope-widening under credential substitution**: the delegation chain carries a scope set $S_{deleg}$ in the OAuth token, while the downstream agent's VAC independently asserts a *capability set* $C_{agent}$ derived from its own registration. When the downstream agent presents to a resourc...",
    "what_was_observed": "A three-hop chain: orchestrator $O$ (human-delegated, scopes `{read:repo, write:repo, admin:ci}`), planner $P$ (VAC capabilities `{read:repo, plan:ci}`), executor $E$ (VAC capabilities `{read:repo, write:repo, execute:ci, admin:ci}`). 1. $O$ issues a delegated token to $P$ with `scope=\"read:repo plan:ci\"` and `act={\"sub\":\"O\"}`. Correct narrowing: $S_P = \\{read{:}repo, plan{:}ci\\} \\subseteq S_O$. 2. $P$ re-delegates t...",
    "condition_of_validity": "The invariant `effective = S_token ∩ C_VAC ∩ P_resource` is only sound when: - **The VAC capability set is treated as an upper bound, not a grant.** A VAC asserting `{admin:ci}` does not confer `admin:ci`; it only declares the agent *may be granted* `admin:ci` if a token says so. If any component treats VAC capabilities as directly authorizing, the intersect...",
    "decision_boundary": "The boundary between \"safe re-delegation\" and \"scope-widening\" is the point at which the authority evaluation order switches from intersection to union. Concretely: - **Safe:** resource server computes `set(token.scope) & set(vac.capabilities) & policy.allowed`, and denies any request whose requested action is not in the result. Re-delegation library compute...",
    "operational_effect": "When the intersection invariant is enforced, the observed effect is: - The executor $E$ in the trace above is denied `admin:ci` and `write:repo` at the CI resource server, because `S_token ∩ C_VAC = {read:repo, execute:ci} ∩ {read:repo, write:repo, execute:ci, admin:ci} = {read:repo, execute:ci}`. The `admin:ci` widening is closed. - Re-delegation from $P$ 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": "c4d2bde2a7be3f4aa4b953929aa7daf713729248972e143eb52fd420e4c22995",
    "verified_classes": [
      "AAIFScopeWideningError",
      "AgentCredential",
      "DelegatedToken"
    ],
    "verified_functions": [
      "effective_authority",
      "re_delegate",
      "enforce_request"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AAIFScopeWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
