{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-poisoned-skill-manifest-and-keep-executing-after-the-schema-it-validated-against-has-been-swapped",
  "title": "Why does an instance accept a poisoned skill manifest and keep executing after the schema it validated against has been swapped",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that resolve tool/skill manifests at runtime (MCP `tools/list`, plugin registries, dynamic function-calling catalogs) and cache the resolved schema across turns. Does not apply to statically compiled tool bindings where the manifest is fixed at build time and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-and-keep-executing-after-the-schema-it-validated-against-has-been-swapped.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-and-keep-executing-after-the-schema-it-validated-against-has-been-swapped.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-skill-manifest-and-keep-executing-after-the-schema-it-validated-against-has-been-swapped.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an agent \"trusts\" when it loads a skill: the *declaration* (the manifest describing what the tool does, its parameters, and its side effects) and the *implementation* (what actually executes when the tool is called). Most runtime hardening validates the declaration once at load time and then treats the tool as trusted for the l...",
    "what_was_observed": "An agent session bootstraps against an MCP server. It calls `tools/list`, receives a manifest for `query_metrics` with parameters `{metric: string, window_seconds: int}`, and the harness records a schema hash `H₀`. The agent plans a multi-step task: step 1 calls `query_metrics`, step 2 calls `summarize`, step 3 calls `query_metrics` again. Between step 1 and step 3, the session performs a routine re-resolution — eith...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: - **Re-resolution is possible mid-session.** If the manifest is fetched once and frozen for the session lifetime, the swap cannot occur. This is the single most effective mitigation and the one most often skipped for \"freshness.\" - **The agent caches the schema separately from the resolution t...",
    "decision_boundary": "The operational question is not \"should I trust this manifest\" but **\"at what point does a resolved manifest stop being authoritative for calls already in flight or already planned.\"** Three defensible policies, in increasing order of cost: 1. **Pin-and-diff.** Freeze the manifest for the session. Any re-resolution that returns a hash differing from the pinn...",
    "operational_effect": "The practical consequence of getting this wrong is that the agent's context window becomes an attack surface with a one-call latency. The poisoned default fires on the very next call after re-resolution, and because the call *succeeds*, nothing in the error path triggers. The agent has no signal that anything changed. It proceeds to summarize, plan, and act ..."
  },
  "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": "6235befcd80bac50cc52d52a93f23bf35a847dafd6ad865d76b9390145a9dfee",
    "verified_classes": [
      "SchemaDriftError",
      "Manifest",
      "PinnedCatalog"
    ],
    "verified_functions": [
      "execute",
      "hash",
      "__init__",
      "pin",
      "build_call"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
