{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-capability-scopes-from-silently-widening-across-aaif-credential-chains",
  "title": "Which invariants prevent delegated capability scopes from silently widening across AAIF credential chains",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agent-to-agent authorization where a root principal issues a verifiable credential (VC) to an orchestrator agent, which then issues attenuated sub-credentials to worker agents under AAIF delegated capability scopes. Does not cover human-facing OAuth consent flows or single-hop token exchange where no re-delegation occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-scopes-from-silently-widening-across-aaif-credential-chains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-scopes-from-silently-widening-across-aaif-credential-chains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-scopes-from-silently-widening-across-aaif-credential-chains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1939,
    "python_slice_tokens": 386,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode of interest is not token theft or signature forgery. It is **scope widening through re-delegation under semantically equivalent but syntactically divergent scope expressions**. AAIF delegation assumes a monotonic attenuation invariant: every sub-credential's effective capability set is a subset of its parent's. This invariant is enforced by ...",
    "what_was_observed": "A three-tier chain: root principal `P` → orchestrator `O` → worker `W`. 1. `P` issues VC₁ to `O` with scope `invoice:read:*` and an attenuation constraint `delegation_depth ≤ 2`, `no_widen = true`. 2. `O` issues VC₂ to `W` with scope `invoice:read:region=eu`. The AAIF library's `is_subset()` check compares the two scope ASTs and confirms `region=eu ⊂ *`. VC₂ is signed and handed to `W`. 3. `W` calls the invoice servi...",
    "condition_of_validity": "The attenuation invariant holds **only if** the following three conditions are jointly satisfied: 1. **Resolution epoch pinning.** Every VC in the chain carries a `resolution_epoch` claim naming the registry version its scope was validated against. A sub-credential is valid for use only if the PDP's current epoch is *equal to or a monotonic refinement of* th...",
    "decision_boundary": "The operational choice is where to place the epoch check, and it is a genuine trade-off: - **Check at issuance only (cheap, unsound).** `O` pins epoch at VC₂ signing. Fast, no per-call registry dependency. Fails silently whenever the registry mutates after issuance and before use—the exact window this record covers. Acceptable only if sub-credential TTL is s...",
    "operational_effect": "Deployments that relied on syntactic subset checking saw authorization decisions that were individually explainable and collectively wrong: every log line showed a valid credential, a passing attenuation check, and a resolved scope. The only detectable signal was a *capability-set cardinality increase* across the epoch boundary for credentials that had not b..."
  },
  "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": "7f040370e146814eab6b77a7b01c4081eedb822f0617f8aceda40dc1e9b4c142",
    "verified_classes": [
      "ScopeWideningError",
      "Credential"
    ],
    "verified_functions": [
      "resolve",
      "verify_attenuation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
