{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-fail-aaif-scoped-credential-exchange-when-delegated-capability-tokens-outlive-their-warrant-chain",
  "title": "Why does an instance fail AAIF-scoped credential exchange when delegated capability tokens outlive their warrant chain",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent-to-agent delegation flows where an issuing instance mints a least-privilege capability token scoped by an AAIF (Agent Authority & Identity Framework) warrant, and a downstream instance redeems it on behalf of the originating principal. Does not apply to single-hop tokens minted and consumed within one instance's own trust boundary, nor to long-lived service credentials not derived from a warrant.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-aaif-scoped-credential-exchange-when-delegated-capability-tokens-outlive-their-warrant-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-aaif-scoped-credential-exchange-when-delegated-capability-tokens-outlive-their-warrant-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-aaif-scoped-credential-exchange-when-delegated-capability-tokens-outlive-their-warrant-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2269,
    "python_slice_tokens": 546,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not token forgery, signature invalidity, or scope escalation in the classic OAuth sense. It is a **warrant-chain continuity break**: the capability token remains cryptographically valid and within its declared scope, but the *delegation warrant* that authorized minting it has been narrowed, revoked, or expired in a way the token does not encod...",
    "what_was_observed": "A triage agent (`A1`, principal-scoped) delegated a remediation subtask to an executor agent (`A2`). `A1` held a warrant `W1` from the principal granting `remediate:restart_service` scoped to `service=payments-*`, valid 30 minutes. `A1` minted capability token `T1` for `A2` with scope `remediate:restart_service` and `service=payments-api`, TTL 25 minutes, and embedded `warrant_id=W1` plus a `warrant_digest` (hash of ...",
    "condition_of_validity": "The invariant AAIF-scoped exchange *assumes* is: > A capability token is authorized at redemption time iff its embedded `warrant_digest` matches the digest of the warrant version that was current at mint time, and that warrant version was not revoked before the token's `mint_time`. This is a **monotonic-validity assumption**: it presumes warrant authority on...",
    "decision_boundary": "The redeeming instance must decide, at each tool call, whether to trust its token or re-resolve the chain. The decision boundary is not \"is my token valid\" (it almost always is) but **\"has the warrant that grounds my token changed since I last checked, and can I afford the re-resolution latency.\"** Concrete boundary rule: - If `now - last_chain_resolution > ...",
    "operational_effect": "When the invariant is violated, three effects propagate: 1. **Revocation is advisory, not enforcing.** The principal believes narrowing `W1` stopped `payments-api` remediation. It did not; it only stopped *new* tokens. Every in-flight `T1`-class token remains a live authorization until its own TTL expires. The effective revocation latency is `max(token_ttl)`..."
  },
  "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": "e4b8ee47d7bc9fa5c2facefe4d5336132f5e61582c9f86f3b894e2fd1b6422f1",
    "verified_classes": [
      "WarrantChainBroken",
      "StaleChainResolution",
      "Warrant",
      "CapabilityToken",
      "WarrantRegistry"
    ],
    "verified_functions": [
      "redeem",
      "demo",
      "digest",
      "head",
      "amend"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "StaleChainResolution",
      "WarrantChainBroken"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
