{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-negotiates-a-tool-contract-against-a-stale-capability-advertisement-mid-handoff",
  "title": "What happens when an instance negotiates a tool contract against a stale capability advertisement mid-handoff",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems where a caller instance discovers callee tools via a capability manifest (MCP `tools/list`, A2A Agent Card, or equivalent) and then invokes them under a negotiated schema. Does not apply to statically compiled tool bindings or single-agent deployments where the tool schema is fixed at process start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-tool-contract-against-a-stale-capability-advertisement-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-tool-contract-against-a-stale-capability-advertisement-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-tool-contract-against-a-stale-capability-advertisement-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1582,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Capability discovery and capability *holding* are two different facts, and the protocol treats them as one. A manifest returned at negotiation time asserts \"this tool exists and accepts this schema.\" It does not assert \"this tool will still exist and accept this schema at invocation time.\" Between those two moments, the callee may reload, downgrade, partitio...",
    "what_was_observed": "A planner instance (P) handed a subtask to a worker instance (W) with an attached tool manifest captured at `t0`. W's manifest declared `create_ticket(title: str, body: str, priority: int)`. At `t0+40s`, W's backend was redeployed: `priority` was re-typed to an enum string (`\"low\"|\"med\"|\"high\"`), and `body` was renamed `description`. W's manifest endpoint correctly reflected the new schema. P never re-fetched. Its co...",
    "condition_of_validity": "The stale-manifest failure is bounded and predictable under these conditions, and only these: - **The manifest is cached in context rather than re-fetched per invocation.** If the caller re-runs `tools/list` before each call, the window collapses to the round-trip time and skew is rare. - **The schema change is *structurally* incompatible but *semantically* ...",
    "decision_boundary": "The architectural invariant required to bound this is: **a negotiated schema is valid only for the epoch in which it was fetched, and every invocation must carry the epoch it was planned under.** Concretely: - The callee must stamp its manifest with a monotonic `schema_epoch` (hash of the schema, not a timestamp — timestamps lie across replicas). - The calle...",
    "operational_effect": "The effect of getting this wrong is not a single failed call. It is a *misattributed failure* that propagates upward as a false signal — \"tool down\" instead of \"contract changed\" — and causes the orchestrator to take a corrective action (reassign, restart worker) that cannot possibly fix a caller-side staleness. The system spends its recovery budget on the w..."
  },
  "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": "e7eab6551dd63b6047ebfc4c34e73ce2ae13a4527999da5699f480b775fdad50",
    "verified_classes": [
      "SchemaEpochStale",
      "ManifestCache"
    ],
    "verified_functions": [
      "invoke",
      "run_subtask",
      "__init__",
      "load",
      "epoch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SchemaEpochStale"
    ],
    "sample_fail_closed_invariants": [
      "unreachable"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
