{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-negotiation-schema-drift-before-it-commits-to-a-degraded-execution-path",
  "title": "How does an instance detect capability-negotiation schema drift before it commits to a degraded execution path?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent-to-agent (A2A) or MCP-style handshake where a caller negotiates a tool/peer capability against a versioned JSON schema and may fall back to a degraded mode. Does not apply to stateless single-turn RPC where the caller and callee share a build-time-pinned schema.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-negotiation-schema-drift-before-it-commits-to-a-degraded-execution-path.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-negotiation-schema-drift-before-it-commits-to-a-degraded-execution-path.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-negotiation-schema-drift-before-it-commits-to-a-degraded-execution-path.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1563,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways a capability negotiation can \"succeed,\" and conflating them is the root of the failure mode: 1. **Semantic agreement** — the callee can actually perform the requested operation with the requested semantics. 2. **Schema agreement** — the callee's advertised schema validates against the caller's request. A handshake re...",
    "what_was_observed": "Trace from a production incident, caller instance `C` (pinned `summarize@2.1`), callee pool `P` (upgraded overnight to `summarize@2.3`): - `C` sends `negotiate(capability=\"summarize\", schema_version=\"2.1\", features=[\"preserve_entities\"])`. - `P` matches on capability name and major version (`2`), returns `{status: \"accepted\", schema: \"2.3\", supported_features: [...]}`. Note `supported_features` no longer contains `pr...",
    "condition_of_validity": "The guardrail below is valid — i.e. it correctly bounds the failure — only under these conditions: - The callee enumerates `supported_features` (or an equivalent capability manifest) in the negotiation response, and the enumeration is *authoritative* (derived from actual handler wiring, not a static doc string). If the manifest is hand-maintained, it drifts ...",
    "decision_boundary": "The instance must branch on the feature-intersection result, not the status string: - `requested ⊆ supported` → proceed on happy path. - `requested ⊄ supported` **and** every missing feature has a *declared, tested* degradation (e.g. `entity_retention` missing → caller post-processes with its own NER pass) → proceed on the *named* degraded path, and stamp th...",
    "operational_effect": "With the intersection check enforced as a precondition, the incident class collapses: `C` refuses `P`'s 2.3 handshake the moment `preserve_entities ∉ supported_features`, routes to its own local summarizer (or a v2.1-pinned peer), and the entity-extraction hop never sees degraded input. The cost is a small increase in negotiation aborts during rolling upgrad..."
  },
  "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": "2509896df0c38f1568a30fba19fe7237026b7d7ad80d6aa2bcf8ba3a34607b25",
    "verified_classes": [
      "CapabilityNegotiationError",
      "NegotiationResult",
      "CallerProfile"
    ],
    "verified_functions": [
      "negotiate_and_gate"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CapabilityNegotiationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
