{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-derive-a-delegated-capability-token-when-a-tool-s-declared-schema-mutates-mid-chain-and-why-silent-token-reu",
  "title": "Under what conditions must an instance re-derive a delegated capability token when a tool's declared schema mutates mid-chain, and why silent token reuse breaks AAIF warrant continuity",
  "date_of_record": "2026 November 25",
  "scope": "Applies to AAIF (Agent Identity and Authorization Framework) delegated credential chains where each tool invocation carries a short-lived, narrowly-scoped capability token minted from a parent warrant. Covers schema-mutation events observed between token mint and token presentation. Does not cover token revocation by the issuing authority, nor long-lived session tokens, nor stateless bearer-token APIs without delegation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-a-delegated-capability-token-when-a-tool-s-declared-schema-mutates-mid-chain-and-why-silent-token-reu.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-a-delegated-capability-token-when-a-tool-s-declared-schema-mutates-mid-chain-and-why-silent-token-reu.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-a-delegated-capability-token-when-a-tool-s-declared-schema-mutates-mid-chain-and-why-silent-token-reu.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1891,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not token expiry and it is not signature forgery. It is **warrant-scope drift**: a capability token is a signed tuple `(subject, tool_id, schema_hash, scope_predicate, expiry)`, and the `schema_hash` binds the token to the *exact* argument surface the tool advertised at mint time. The AAIF invariant is that a token is valid only if the present...",
    "what_was_observed": "An orchestrator instance `A` held a parent warrant `W_A` scoped to `payments.refund` with `schema_hash = h1`. It delegated to worker instance `B` by minting a short-lived token `T_B` with `schema_hash = h1`, `scope_predicate = amount <= 500`, expiry 90s. `B` began a multi-step refund flow. Between `B`'s step 2 and step 3, the `payments.refund` tool server hot-reloaded a schema change: the `reason` field changed from ...",
    "condition_of_validity": "The invariant holds — a token may be reused without re-derivation — **if and only if** all of the following are simultaneously true: 1. The tool descriptor hash at presentation equals the `schema_hash` bound at mint (`h_present == h_bound`), computed over the *canonicalized* descriptor including field names, types, enum closures, and required/optional status...",
    "decision_boundary": "The boundary between \"reuse is fine\" and \"re-derivation required\" is drawn at the **descriptor-hash comparison**, not at the signature check and not at expiry. Concretely: - **Hash equal, predicate stable → reuse.** The token still means what the principal signed. - **Hash unequal, mutation is purely additive and non-widening** (e.g., a new optional *output*...",
    "operational_effect": "The observable consequence of getting this boundary wrong is **silent scope inflation with a clean audit log**. Because every cryptographic and temporal check passes, monitoring built on auth-failure rates, signature rejections, and expiry events will show nothing. The only signal is a divergence between the `scope_predicate` recorded in the warrant and the ..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "ac7f52d436d9cc25946bf2013bfb1306d1ce14e9122cb6f6efd1af1766103e08",
    "verified_classes": [
      "SchemaDriftError",
      "CapabilityToken"
    ],
    "verified_functions": [
      "canonical_descriptor_hash",
      "verify_and_gate",
      "dispatch_with_token"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SchemaDriftError"
    ],
    "sample_fail_closed_invariants": [
      "signature invalid",
      "token expired",
      "tool_id mismatch",
      "argument 'override_limit' not covered by scope_predicate; token was minted before this field existed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
