{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-scope-narrowing-replay-in-aaif-delegated-credential-chains",
  "title": "Which invariants prevent scope-narrowing replay in AAIF delegated credential chains",
  "date_of_record": "2026 November 23",
  "scope": "Applies to AAIF (Agent Identity and Authorization Interoperability Framework) delegated credential chains where an orchestrator agent mints a scoped capability token for a sub-agent, which may further attenuate the scope before acting on a downstream resource. Does not apply to single-hop bearer tokens with no delegation, nor to symmetric shared-secret auth where attenuation is not expressible.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-narrowing-replay-in-aaif-delegated-credential-chains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-narrowing-replay-in-aaif-delegated-credential-chains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-scope-narrowing-replay-in-aaif-delegated-credential-chains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1721,
    "python_slice_tokens": 237,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **scope attenuation** (a child capability's permission set is a strict subset of its parent's) and **scope-narrowing replay** (a child credential, validly attenuated, is re-presented by an ancestor or sibling after the attenuation boundary has already been consumed). The first is a static lattice property that most AAI...",
    "what_was_observed": "An orchestrator `O` held capability `C_O` scoped to `{read:repo, write:repo, invoke:deploy}`. It delegated to a build agent `B` a token `C_B` scoped to `{read:repo, write:repo}` with an attenuation warrant asserting `no_deploy`. `B` further delegated to a test agent `T` a token `C_T` scoped to `{read:repo}` with warrant `read_only, no_write, no_deploy`. All three tokens carried valid Ed25519 signature chains rooted a...",
    "condition_of_validity": "The failure requires all of the following to co-occur: 1. The chain uses **optional presenter binding** (AAIF `presenter_binding: root` default), so any ancestor whose key signs the chain may present any descendant token. 2. At least one **warrant class** is attached to a leaf's issuance (e.g., `read_only`, `no_deploy`) that triggers a *different* policy pat...",
    "decision_boundary": "The boundary is between **treating the credential as a capability** (possession authorizes) and **treating the credential as a warrant** (possession plus presenter-position authorizes). AAIF's spec language is ambiguous—it says \"the presenter MUST be the subject or an ancestor of the subject\"—which permits the observed behavior. The correct boundary is stric...",
    "operational_effect": "The practical consequence is **audit-trail corruption and policy-path confusion**, not direct privilege escalation. The replayed token cannot exceed its declared scope, so no unauthorized resource is touched. But every downstream consumer of the audit log—billing, anomaly detection, compliance attestation—attributes the action to the wrong actor and the wron..."
  },
  "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": "b3943b2ec0c6da65c6f6713508c840db8dc5c2829c58c61a4744fc1d12e6782d",
    "verified_classes": [
      "DelegationReplayError",
      "CapabilityToken"
    ],
    "verified_functions": [
      "verify_presentation",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DelegationReplayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
