{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-scope-narrowing-credential-chains-from-silently-widening-at-re-delegation-in-aaif-capability-tokens",
  "title": "Which invariants prevent scope-narrowing credential chains from silently widening at re-delegation in AAIF capability tokens",
  "date_of_record": "2026 November 30",
  "scope": "Applies to AAIF delegated credential issuance where an agent holding a scoped capability token mints a downstream token for a sub-agent, tool, or peer; does not apply to root issuance from an identity provider, to bearer tokens without attenuation, or to single-hop authorization where no re-delegation occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-narrowing-credential-chains-from-silently-widening-at-re-delegation-in-aaif-capability-tokens.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-narrowing-credential-chains-from-silently-widening-at-re-delegation-in-aaif-capability-tokens.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-narrowing-credential-chains-from-silently-widening-at-re-delegation-in-aaif-capability-tokens.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2481,
    "python_slice_tokens": 525,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"an agent gains unauthorized capability.\" It is subtler: a delegated credential that is *supposed* to be a strict subset of its parent's scope is re-issued as a *sibling* or *superset* because the scope algebra used at issuance is set-union-friendly while the verification algebra is set-intersection-based. The token verifies. Every si...",
    "what_was_observed": "A planner agent `A` held a root token `T0` with scope: `A` delegated to a retrieval sub-agent `B` a token `T1` with scope `{ tools: [\"search\",\"fetch\"], resources: [\"kb://public/docs/*\"], budget_tokens: 30000 }`. Correctly narrowed. `B`, tasked with a follow-up summarization, delegated to `C` a token `T2`. `B`'s reasoning step constructed `T2`'s scope from the *task description* (\"summarize what you fetched, you may a...",
    "condition_of_validity": "The invariant that must hold for AAIF delegation to be safe is: > For every claim field `f` in the capability scope, `effective(leaf, f) ⊆ effective(parent, f)`, where `⊆` is defined per-field (set-inclusion for `tools` and `resources`, numeric `≤` for `budget_tokens`, temporal `≤` for `expires`), and where a *missing* field on the child attenuates to the pa...",
    "decision_boundary": "The operational decision is where to place the enforcement. Three candidate boundaries, with their failure profiles: - **At issuance (delegating agent constructs attenuated scope).** Cheapest, but unreliable: it depends on the probabilistic reasoner correctly deriving a scope from claim fields under task pressure, which is exactly the condition that failed. ...",
    "operational_effect": "Downstream of a widened leaf token, three effects compound: 1. **Audit trail divergence.** The delegation log records `T2`'s scope as issued. The *effective* scope at `C` is the intersection that was never computed. Post-incident reconstruction that reads the log sees a token that looks narrow; the actual access was wide. The log is not wrong, it is incomple..."
  },
  "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": "955c8f98193ea95289ab98e6b1982871417286cc2594d7d9ad8c2bbbcc010b9f",
    "verified_classes": [
      "ScopeWideningError",
      "Scope",
      "Token"
    ],
    "verified_functions": [
      "_intersect",
      "_is_subset",
      "verify_chain"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [
      "empty delegation chain"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
