{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-delegated-aaif-credential-has-silently-widened-its-scope-through-transitive-capability-intersection",
  "title": "What structural signals indicate a delegated AAIF credential has silently widened its scope through transitive capability intersection",
  "date_of_record": "2026 November 27",
  "scope": "Applies to AAIF-style delegated credential chains where a parent agent issues a scoped capability token to a child agent, which may itself re-delegate. Does not apply to flat single-hop bearer tokens or to MAC-only capability systems without scope algebra.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-aaif-credential-has-silently-widened-its-scope-through-transitive-capability-intersection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-aaif-credential-has-silently-widened-its-scope-through-transitive-capability-intersection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-aaif-credential-has-silently-widened-its-scope-through-transitive-capability-intersection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2014,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a token leaked\" or \"a signature failed.\" It is that the *scope algebra of delegated capability tokens is closed under intersection at issuance time but not under union at re-delegation time*. When agent A holds a token scoped `{read:repo, write:repo}` and delegates to agent B a token scoped `{read:repo, admin:ci}`, a naive issuer computes...",
    "what_was_observed": "A three-hop chain: orchestrator O → worker W → tool-runner T. O issues W a token with `scope = {read:repo, write:repo}` and `delegable = true` with `max_depth = 2`. W requests a child token for T with `scope = {read:repo, exec:test}`. The AAIF issuer on W's side is configured with `inherit_parent_scope = true` (a common default intended to let leaf tools call back to the parent's resources). The issuer computes: T no...",
    "condition_of_validity": "The subset invariant `child.scope ⊆ parent.scope` holds if and only if the issuer computes effective scope as: and refuses issuance when `requested \\ parent.scope ≠ ∅`. Two conditions must both hold for the invariant to be trustworthy: 1. `parent.delegable_scope` must be an explicit, signed field, not derived. If it is derived at verification time from `pare...",
    "decision_boundary": "The decision boundary is whether the issuer treats scope as a **lattice with a meet operation** or as a **bag of strings to be merged**. The signal that distinguishes them is observable before any incident: - If the issuance code path contains a `union`, `merge`, `combine`, or `extend` over scope collections, the system is in the bag-of-strings regime and th...",
    "operational_effect": "Downstream of a widened token, three effects compound: 1. **Audit divergence.** The issuance log records `requested` scope, the verification log records `presented` scope, and neither records `effective` scope. The widened capability appears in no log line as an anomaly because each line is individually consistent. Reconciliation requires reconstructing the ..."
  },
  "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": "800226459ce65217884daa4695a1686a8160c8242b7d65af34c0bb5d5bb58dfc",
    "verified_classes": [
      "ScopeWideningError",
      "CapabilityToken"
    ],
    "verified_functions": [
      "issue_delegated_token",
      "verify_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
