{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-negotiates-a-capability-contract-against-a-peer-whose-declared-schema-drifts-between-the-handshake-and-the-first-invocat",
  "title": "What happens when an instance negotiates a capability contract against a peer whose declared schema drifts between the handshake and the first invocation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any A2A-style negotiation in which a routing agent synthesizes a runtime contract (schema + SLA + capability flags) from a peer's advertised manifest, then dispatches work to that peer under the synthesized contract. Does not apply to static, pre-compiled RPC stubs where the contract is fixed at build time and the peer is versioned as a unit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-capability-contract-against-a-peer-whose-declared-schema-drifts-between-the-handshake-and-the-first-invocat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-capability-contract-against-a-peer-whose-declared-schema-drifts-between-the-handshake-and-the-first-invocat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-a-capability-contract-against-a-peer-whose-declared-schema-drifts-between-the-handshake-and-the-first-invocat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1840,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most A2A failure analysis treats capability negotiation as a *discrete event*: handshake succeeds or fails, and success means the contract is now true. This is the wrong model. Negotiation produces a **contract as a snapshot of a mutable manifest**, and the peer's actual behavior is governed by whatever manifest is live at *invocation* time, not at *handshak...",
    "what_was_observed": "A router agent (`R`) negotiated with a summarization peer (`S`) for a batch of 4,000 documents. The handshake at `T0` returned a manifest declaring: - `capability: summarize.v2` - `input.max_tokens: 128000` - `output.schema: {summary: string, key_points: string[]}` - `sla.p95_latency_ms: 8000` - `sla.max_batch: 64` `R` synthesized a contract binding these values and computed a routing plan: 63 batches of 64, each exp...",
    "condition_of_validity": "The synthesized contract is sound only if all three hold: 1. **Manifest immutability window.** The peer guarantees its manifest is frozen for the duration `[T_handshake, T_last_invoke]`, or the router re-validates before every invocation. Neither held here. 2. **Degradation is loud.** When the peer cannot honor a contract term (token ceiling, schema shape, l...",
    "decision_boundary": "The router must decide, per invocation, between two strategies: - **Trust-and-verify:** dispatch under the cached contract, then verify the response against the contract's schema and SLA post-hoc. Cheap, but only safe when the peer's degradation mode is loud (rejects on violation) — because post-hoc verification of a silently truncated summary cannot detect ...",
    "operational_effect": "Three concrete consequences follow, and each is a guardrail an agent must implement: 1. **Manifest drift must be detected, not assumed away.** The router must bind the contract to a manifest version hash and re-check it at a cadence bounded by the peer's worst-case redeploy interval. A drift detection that fires only on schema-shape change (as `R`'s did) mis..."
  },
  "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": "f409972c5e42a1940e13f529de834f8d4b41b512c37831051e57cf519d83dd39",
    "verified_classes": [
      "ContractUnsoundError",
      "Manifest",
      "Contract"
    ],
    "verified_functions": [
      "synthesize_contract",
      "verify_before_invoke",
      "route_batch",
      "version_hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ContractUnsoundError"
    ],
    "sample_fail_closed_invariants": [
      "peer does not attest content integrity and degrades silently; post-hoc verification cannot detect truncation — refuse tr"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
