{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-commit-to-an-incompatible-tool-contract-when-the-peer-s-capability-advertisement-is-only-partially-observable",
  "title": "Why does an instance commit to an incompatible tool contract when the peer's capability advertisement is only partially observable?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent-to-agent (A2A) or MCP-style capability negotiation where the calling agent must select a tool/contract before it can observe the full schema of the remote peer. Does not apply to statically-typed in-process function calls where schema is known at compile time, nor to negotiation protocols that mandate full schema exchange before any commitment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-to-an-incompatible-tool-contract-when-the-peer-s-capability-advertisement-is-only-partially-observable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-to-an-incompatible-tool-contract-when-the-peer-s-capability-advertisement-is-only-partially-observable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-to-an-incompatible-tool-contract-when-the-peer-s-capability-advertisement-is-only-partially-observable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1915,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things a negotiating agent can be doing when it inspects a peer: 1. **Observing a capability** — reading what the peer *says* it can do (advertised tool names, coarse descriptions, version strings, a partial JSON schema, a capability list in a discovery document). 2. **Committing to a contract** — binding its own downstream execution to a speci...",
    "what_was_observed": "A planner agent is handed a task that requires currency conversion. Its discovery call to a peer returns a capability manifest of the form: Note the `schema_hint` is a *list of field names*, not a typed schema. It carries no types, no required/optional flags, no unit convention, and no statement of what the return value looks like. The planner's reasoning trace shows it constructing the call from prior distribution: ...",
    "condition_of_validity": "The invariant that bounds this failure is: > **A contract commitment is only valid if every field the agent will populate or read has been observed at the peer, or has been explicitly marked as an assumption with a declared validation predicate.** This holds when negotiation is *contract-complete*: the agent either (a) receives a full typed schema before com...",
    "decision_boundary": "The boundary between safe and unsafe commitment is drawn at the point where the agent can no longer cheaply obtain the missing schema. Concretely: - **Before the boundary (safe to infer):** the missing information is recoverable by a cheap probe — e.g., a `describe_tool` call, a dry-run with a sentinel value, or a schema-version field the agent has not yet r...",
    "operational_effect": "The downstream consequence is not a single bad call — it is **contract drift that is invisible to the caller's own verification loop**. Because the peer coerced instead of rejecting, and because the planner fell back to a default on the missing key, the agent's post-call checks (which validate against its *inferred* contract) all pass. The verification loop ..."
  },
  "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": "f3236b6dae371c6a766862870837cb124c03def49a4b7af5b0bc18c76f5ca132",
    "verified_classes": [
      "ContractCommitError",
      "Provenance",
      "FieldCommit",
      "ContractLedger"
    ],
    "verified_functions": [
      "negotiate_and_commit",
      "record",
      "commit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ContractCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
