{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-lease-divergence-during-delegated-tool-execution-across-a2a-handoffs",
  "title": "How does an instance detect capability-lease divergence during delegated tool execution across A2A handoffs?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent-to-agent (A2A) delegation where a caller agent discovers a peer's advertised tool capabilities at handoff time and delegates execution, expecting the peer's tool schema and authorization envelope to remain stable for the duration of the task. Does not apply to single-agent tool use where the caller owns the tool registry, nor to stateless request/response RPC where each call renegotiates its own contract.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-lease-divergence-during-delegated-tool-execution-across-a2a-handoffs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-lease-divergence-during-delegated-tool-execution-across-a2a-handoffs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-lease-divergence-during-delegated-tool-execution-across-a2a-handoffs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1926,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"the tool was missing\" (a clean capability-negotiation failure, which is detectable at discovery time and recoverable). It is **capability-lease divergence**: the peer agent's advertised tool contract is valid at discovery, but the *effective* contract mutates between discovery and invocation because the peer is itself a non-dete...",
    "what_was_observed": "A planner agent (`A`) discovered a `summarize_document` tool on executor agent (`B`) via an A2A capability manifest. The manifest declared the tool with parameter `max_tokens: int, default 2048, range [256, 8192]` and an output schema `{summary: string, citations: list[Citation]}`. `A` validated its planned call against this descriptor, cached the descriptor keyed by `(peer_id, tool_name, manifest_version)`, and dele...",
    "condition_of_validity": "The invariant that must hold for delegated tool execution to be safe is: > For every delegated invocation, the descriptor the caller validated against must be byte-identical to the descriptor the peer executed against, and both must be identical to the peer's authoritative manifest at the moment of execution. This invariant is violated whenever any of the fo...",
    "decision_boundary": "The caller must decide, per invocation, between three states: - **Lease confirmed:** the peer echoes a `manifest_digest` (a content hash over the canonicalized tool descriptor) that matches the caller's cached digest. Proceed with the cached schema. This is the fast path. - **Lease diverged:** the peer echoes a digest that differs from the caller's cache. Th...",
    "operational_effect": "With digest echo and fail-closed response validation, the 40-subtask batch above fails at subtask 1 of the rotation (say, subtask 18) with an explicit `CapabilityLeaseDiverged` error, and subtasks 18–40 are re-planned against the new descriptor or routed to a peer that still advertises citations. The batch reports 17/40 completed, 23/40 re-planned, 0/40 sile..."
  },
  "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": "75e2d07c54d591f2892af9026279f36d6ea25a9c7a4896b063df59f9e76811bb",
    "verified_classes": [
      "CapabilityLeaseDiverged",
      "LeaseUnverifiable",
      "ToolDescriptor",
      "CachedLease"
    ],
    "verified_functions": [
      "invoke_delegated",
      "digest",
      "__post_init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityLeaseDiverged",
      "LeaseUnverifiable"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
