{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-privilege-escalation-in-aaif-delegated-credential-chains-with-scoped-token-attenuation",
  "title": "Which invariants prevent silent privilege escalation in AAIF delegated credential chains with scoped token attenuation",
  "date_of_record": "2026 November 18",
  "scope": "Applies to AAIF credential chains where an agent delegates a subset of its authority to a downstream agent via scoped token attenuation (scope narrowing, TTL reduction, audience restriction). Does not apply to root credential issuance, cross-realm federation, or token exchange protocols that permit scope *broadening* by design.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-privilege-escalation-in-aaif-delegated-credential-chains-with-scoped-token-attenuation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-privilege-escalation-in-aaif-delegated-credential-chains-with-scoped-token-attenuation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-privilege-escalation-in-aaif-delegated-credential-chains-with-scoped-token-attenuation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1255,
    "python_slice_tokens": 218,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Attenuation is not subtraction. A delegated token's scope is not \"the parent scope minus the removed entries\"; it is an *intersection* over a lattice of (verb, resource-pattern, constraint) triples, and the intersection must be computed against the *effective* authority of the delegating agent at the moment of delegation—not against the nominal scope string ...",
    "what_was_observed": "In a three-hop chain `orchestrator → planner → executor`, the planner issued the executor a token with scope `data:read:/data/pii/records` and TTL 300s, derived from its own token `data:read:/data/*` with constraint `deny:/data/pii/*`. The attenuation routine performed a lexical subset test on the scope string (child pattern is a suffix of parent pattern) and a numeric TTL comparison. Both passed. The exclusion const...",
    "condition_of_validity": "The subset invariant holds only when all three of the following are enforced *at attenuation time*, not at validation time: 1. **Constraint closure:** the child's constraint set must be a superset of the parent's constraint set (constraints only accumulate; they are never dropped). A child may add `deny:/data/pii/ssn`, never remove `deny:/data/pii/*`. 2. **E...",
    "decision_boundary": "Reject the delegation (do not issue the child token) if any of the following hold: - `eval(child.scope) ⊄ eval(parent.scope) \\ eval(parent.constraints)` — the child reaches a resource the parent cannot. - `child.constraints ⊉ parent.constraints` — a constraint was dropped. - `child.ttl > parent.remaining_ttl` — the child outlives its parent (violates the \"no...",
    "operational_effect": "After enforcing constraint closure and effective-authority intersection, the planner's attempt to mint the executor token failed at issuance with a `ScopeAttenuationError`, and the orchestrator received a structured denial naming the violated invariant (`constraint_closure`) and the offending constraint (`deny:/data/pii/*`). The DLP sensor's role shifted fro..."
  },
  "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": "aeb3cb8a51240d484b6d96765e6785b53b1b4780e415f08656e079ee4003a107",
    "verified_classes": [
      "ScopeAttenuationError",
      "Token"
    ],
    "verified_functions": [
      "attenuate",
      "_resolve_exclusions"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeAttenuationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
