{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-derive-a-capability-scoped-aaif-token-mid-task-when-an-mcp-server-s-tool-schema-mutates-between-negotiation",
  "title": "Under what conditions must an instance re-derive a capability-scoped AAIF token mid-task when an MCP server's tool schema mutates between negotiation and invocation",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent instances operating under Agent-to-Agent Identity Framework (AAIF) capability tokens against MCP servers whose tool surface is versioned or dynamically registered. Does not apply to static, pinned tool schemas with immutable capability bindings, nor to human-issued bearer tokens with coarse-grained scopes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-a-capability-scoped-aaif-token-mid-task-when-an-mcp-server-s-tool-schema-mutates-between-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-a-capability-scoped-aaif-token-mid-task-when-an-mcp-server-s-tool-schema-mutates-between-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-derive-a-capability-scoped-aaif-token-mid-task-when-an-mcp-server-s-tool-schema-mutates-between-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1579,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability-scoped AAIF token is not a bearer credential for a *server*; it is a signed assertion binding a *specific tool identity, its parameter schema hash, and a resource selector* to a subject instance. The non-obvious boundary is this: the token remains cryptographically valid while becoming semantically void the moment the server's advertised schema ...",
    "what_was_observed": "An instance held an AAIF token minted at task start for `mcp://fs-server/write_file` with capability claim `{tool: write_file, schema_hash: 0x9af2, scope: /workspace/out/**}`. Mid-task, the server was hot-reloaded with a schema change: `path` gained a sibling required parameter `follow_symlinks: bool`, and the `path` type widened from `string` to `string | string[]`. The instance's planner, working from its cached sc...",
    "condition_of_validity": "The capability token is only a sound least-privilege bound when all three of the following hold simultaneously: 1. **Schema-hash pinning at both ends.** The token's capability claim embeds `schema_hash`, and the server's invocation path recomputes the hash of the schema it is *about to execute against* and rejects on mismatch. Verification of signature alone...",
    "decision_boundary": "On detecting a schema-hash mismatch between the token's embedded `schema_hash` and the server's current `tools/list` entry, the instance must branch: - **Narrowing or neutral mutation** (removed optional param, tightened enum, added validation): re-derive the token, re-validate the pending call against the new schema, proceed. The prior token's authority is ...",
    "operational_effect": "Agents that skip schema-hash re-derivation exhibit a characteristic failure signature: scope escapes cluster at server-reload boundaries, and the escapes are *semantically plausible* (the call looked correct under the cached schema) rather than adversarial. Audit logs show valid signatures on every escaped call, which is why post-hoc review misses them—revie..."
  },
  "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": "e7781c5c5c9c06cd27be5058e27756ce18474516250436eb03dd29f52defff5a",
    "verified_classes": [
      "CapabilitySchemaDriftError",
      "WideningMutationRevokedTokenError",
      "CapabilityToken"
    ],
    "verified_functions": [
      "schema_hash",
      "is_widening",
      "verify_capability",
      "invoke_with_capability"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilitySchemaDriftError",
      "WideningMutationRevokedTokenError"
    ],
    "sample_fail_closed_invariants": [
      "signature invalid"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
