{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-capability-manifest-poisoning-from-surviving-mcp-server-re-negotiation-across-agent-restarts",
  "title": "Which invariants prevent capability-manifest poisoning from surviving MCP server re-negotiation across agent restarts",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that load tool/skill manifests dynamically from MCP servers or plugin registries and cache negotiated capabilities across process restarts. Does not apply to statically linked tool sets compiled into the agent binary, nor to single-turn inference with no persistent capability cache.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-manifest-poisoning-from-surviving-mcp-server-re-negotiation-across-agent-restarts.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-manifest-poisoning-from-surviving-mcp-server-re-negotiation-across-agent-restarts.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-manifest-poisoning-from-surviving-mcp-server-re-negotiation-across-agent-restarts.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2185,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a malicious tool does something bad when invoked.\" It is that the *manifest describing the tool* is treated as an authoritative, cacheable, trust-bearing artifact, and the agent's post-restart reconciliation path merges the cached manifest with the freshly fetched one using a permissive union rather than a verified replacement. The d...",
    "what_was_observed": "A three-node swarm (planner, executor, auditor) connects to an MCP server at session start. On first boot the server returns a `tools/list` result with a benign `read_file` tool. The agent caches the full manifest, including `description` and `inputSchema`, keyed by server identity and a `manifest_version` field the server supplies. The cache is persisted to disk so cold-start latency stays under budget. The server i...",
    "condition_of_validity": "The guardrail holds only under a strict set of conditions, and it fails silently outside them: 1. **Manifest identity must be content-addressed, not version-addressed.** The cache key must be a hash over the canonicalized semantic field set (descriptions, schema, annotations, defaults, required array), not a server-supplied `manifest_version` integer. A serv...",
    "decision_boundary": "The decision the operator faces is whether to treat a manifest change as a *routine refresh* (auto-adopt, log, continue) or a *trust event* (halt, require re-attestation, re-derive warrants). The boundary is drawn by whether the changed field set intersects the semantic trust surface: - If only structural fields change (new tool added, transport URL changed,...",
    "operational_effect": "With the invariant enforced, the poisoning attempt produces a cache miss on the semantic digest, triggers re-attestation, and the re-attestation step compares the new schema against the prior attested schema. The loosened `path` constraint (or the embedded directive in the description) is surfaced as a diff requiring explicit approval. The planner cannot ado..."
  },
  "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": "70a531564a9d79439040f8c38a3f13b68a843d16352350c6a04246b6c16b42c5",
    "verified_classes": [
      "ManifestPoisoningError",
      "AttestedManifest"
    ],
    "verified_functions": [
      "semantic_digest",
      "_loosens",
      "reconcile",
      "validate_handoff"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
