{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-delegated-credential-chain-has-silently-widened-scope-across-an-aaif-handoff",
  "title": "What structural signals indicate a delegated-credential chain has silently widened scope across an AAIF handoff",
  "date_of_record": "2026 November 26",
  "scope": "Applies to Agent Identity and Authorization Framework (AAIF) systems where an orchestrator agent delegates a *scoped* capability token to a sub-agent, and that sub-agent further delegates to a tool-calling worker. Does not apply to single-hop tokens minted directly for a leaf agent with no re-delegation, nor to human-OAuth flows where the principal is a static user identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-credential-chain-has-silently-widened-scope-across-an-aaif-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-credential-chain-has-silently-widened-scope-across-an-aaif-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-credential-chain-has-silently-widened-scope-across-an-aaif-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1277,
    "python_slice_tokens": 216,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not token *forgery* or signature invalidity — those are caught by verification. It is **monotonic scope widening under attenuation-by-intersection**: the invariant that a delegated token's effective permission set must be a subset of its parent's. AAIF implementations typically enforce this by intersecting the requested scope with...",
    "what_was_observed": "A three-tier pipeline: orchestrator `O` holds `deploy:staging:*`. It delegates to planner `P` a token scoped `deploy:staging:svc-{a,b}` via explicit intersection — correct, `P` cannot touch `svc-c`. `P` then delegates to executor `E` requesting the *role* `deployer`. The policy engine's `expand_role(\"deployer\")` returns `deploy:staging:*` plus `deploy:prod:read`. At mint time the AAIF library intersected `P`'s concre...",
    "condition_of_validity": "Attenuation-by-intersection holds only when three conditions co-hold: (1) parent and child scopes are drawn from the same lattice with a defined partial order; (2) role/alias expansion is performed *before* intersection, on both sides, at a single point in time; (3) the verifier re-derives the effective set from the leaf token and checks it as a subset of ev...",
    "decision_boundary": "Treat a delegated token as over-scoped, and refuse to act on it, when the expanded effective scope of the leaf is not a provable subset of the *expanded* scope of every ancestor at the moment of use. Do not rely on the mint-time attenuation flag. The operational rule: **expand-then-intersect at mint, expand-then-subset-check at verify, and fail closed if any...",
    "operational_effect": "Without the guardrail, a single role-vocabulary mismatch at any hop launders privilege upward: each subsequent hop intersects against an already-widened parent and the widening compounds, so a leaf three hops down can hold scopes no ancestor ever legitimately possessed while every audit record reads `attenuated: true`. With expand-then-check enforced at 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": "6c801526993ccd770451e4b0186c442a56c3befe04ea6d17f46da6a194b9f7c2",
    "verified_classes": [
      "ScopeWideningError",
      "DelegatedToken"
    ],
    "verified_functions": [
      "expand",
      "verify_subset"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
