{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-capability-manifest-during-mcp-peer-discovery-when-signatures-remain-valid",
  "title": "How does an instance detect a stale capability manifest during MCP peer discovery when signatures remain valid",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent-to-agent discovery where a peer advertises capabilities via a signed manifest served over MCP (e.g., `manifest/get` or a capability resource), and the consumer caches or trusts that manifest for routing decisions. Does not apply to manifests fetched fresh per-call with no caching, nor to unsigned/TOFU discovery.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-capability-manifest-during-mcp-peer-discovery-when-signatures-remain-valid.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-capability-manifest-during-mcp-peer-discovery-when-signatures-remain-valid.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-capability-manifest-during-mcp-peer-discovery-when-signatures-remain-valid.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1896,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Signature validity and capability validity are orthogonal properties, and the MCP discovery handshake conflates them. A manifest signature proves *who asserted the capability set and that the bytes were not altered in transit*. It says nothing about whether the asserted capabilities are still *operative* at the peer at the moment of use. The dangerous failur...",
    "what_was_observed": "A planner agent (`P`) discovered a worker (`W`) via an MCP registry. `W`'s manifest was signed by `W`'s key, carried `issued_at`, `expires_at` (TTL 4h), and a `capabilities` array including `summarize_document@v2` with a declared input schema and a `warrant` pointing at `W`'s tool backend. `P` verified the signature, negotiated the schema, cached the manifest keyed by `(peer_id, manifest_digest)`, and began routing s...",
    "condition_of_validity": "The signature-valid-but-stale failure requires all of: - **Cached or TTL-bounded manifests** where the TTL exceeds the capability deployment cadence. If TTL < deploy interval, staleness windows are bounded by TTL and the failure is a latency problem, not a correctness problem. - **No capability-version binding at call time.** The manifest asserts `capability...",
    "decision_boundary": "The consumer must distinguish two error classes that the MCP transport does not distinguish for it: The boundary decision: **on first `-32601` for an advertised capability, treat the manifest as stale and re-fetch before any retry.** A retry that re-uses the cached manifest is guaranteed to fail again and burns budget. The re-fetch is cheap (one MCP round-tr...",
    "operational_effect": "Applying the boundary changes the failure mode from *unbounded retry loop with misattributed root cause* to *single re-fetch, then either recovery or clean capability-class fallback*. Concretely: - **Re-fetch on `-32601`** closes the staleness window at the moment of first failure, at the cost of one round-trip per affected capability per task. - **Version e..."
  },
  "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": "bca12b0c517dd395e5a68a0eac0bb5778f77a51bc44424a271249916ef4c2063",
    "verified_classes": [
      "StaleManifestError",
      "Manifest",
      "CapabilityRouter",
      "MethodNotFound"
    ],
    "verified_functions": [
      "__init__",
      "_verify",
      "_get_manifest",
      "invoke"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "StaleManifestError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
