{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-aaif-credential-scope-escalation-during-delegated-agent-re-signing",
  "title": "Which invariants prevent AAIF credential scope escalation during delegated agent re-signing",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-hop AAIF delegation where an agent re-signs a downstream request using a credential derived from an upstream warrant, specifically when the downstream resource is not enumerated in the original grant. Does not apply to single-hop bearer-token calls or to human-initiated OAuth consent flows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-credential-scope-escalation-during-delegated-agent-re-signing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-credential-scope-escalation-during-delegated-agent-re-signing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-credential-scope-escalation-during-delegated-agent-re-signing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1659,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an agent used a credential it shouldn't have.\" It is subtler: **an agent legitimately extended its own credential scope while re-signing a delegated call, because the AAIF attenuation check compared scopes as sets rather than as ordered capability lattices.** The credential was valid at every hop. Each signature verified. The scope was \"a...",
    "what_was_observed": "A planner agent `A` held a warrant `W_A` scoped to `[\"fs.read:/data/**\", \"http.get:api.internal/v1/*\"]`. It delegated to worker `B` by minting `W_B` with scope `[\"fs.read:/data/reports/*\", \"http.get:api.internal/v1/summarize\"]`. As string sets, `W_B ⊆ W_A` held at every element. The AAIF attenuation verifier on the delegation path accepted the mint because it checked `set(W_B.scope) ⊆ set(W_A.scope)` under the *minti...",
    "condition_of_validity": "The invariant that was violated: > **For every delegation edge `(P, C)` in a warrant chain, `resolve_C(W_C.scope) ⊆ resolve_P(W_P.scope)` must hold under the *verifier's* resolution function, not the minting agent's.** The failure required three conditions to co-occur: - **Registry skew**: minting agent and verifier resolved capability identifiers against di...",
    "decision_boundary": "The boundary between \"safe delegation\" and \"scope escalation through attenuation\" is crossed at the moment an agent re-signs a warrant whose scope contains any element that is not a **fully-qualified, version-pinned, alias-free capability identifier**. Concretely: - If every scope element matches `^[a-z]+\\.[a-z]+:[^*/]+$` (no wildcard, no alias, no version f...",
    "operational_effect": "The operational consequence is a shift in where attenuation is enforced. Enforcing it at mint time (as AAIF's default does) is cheap but unsound under registry skew. Enforcing it only at the verifier is sound but too late—partial execution and provenance taint have already occurred. The correct architecture enforces attenuation **at every re-signing hop agai..."
  },
  "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": "322050ecba5fdf95ab1a6eb63d2e1ed2fa55019652642ee7629db6fefc91f6cf",
    "verified_classes": [
      "ScopeAttenuationViolation",
      "Warrant"
    ],
    "verified_functions": [
      "resolve",
      "verify_attenuation",
      "re_sign"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeAttenuationViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
