{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-manifest-poisoned-skill-injection-from-silently-re-binding-an-agent-s-tool-identity-across-a-capability-registry-refresh",
  "title": "Which invariants prevent manifest-poisoned skill injection from silently re-binding an agent's tool identity across a capability registry refresh",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that dynamically resolve tools from a mutable capability registry (MCP server manifests, plugin catalogs, function-calling schemas fetched at runtime) where tool identity is keyed by name rather than by a signed content digest. Does not apply to statically compiled tool bindings or to registries that enforce content-addressed, signature-verified manifests at load time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-poisoned-skill-injection-from-silently-re-binding-an-agent-s-tool-identity-across-a-capability-registry-refresh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-poisoned-skill-injection-from-silently-re-binding-an-agent-s-tool-identity-across-a-capability-registry-refresh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-poisoned-skill-injection-from-silently-re-binding-an-agent-s-tool-identity-across-a-capability-registry-refresh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2335,
    "python_slice_tokens": 476,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool gets called.\" That is a coarse, easily-detected event: an unexpected tool name appears in the transcript. The non-obvious failure is **identity re-binding under a stable name**. A manifest refresh replaces the *implementation* or *description* behind a tool name the agent already trusts, and because the agent's planning l...",
    "what_was_observed": "A three-step agent task: (1) enumerate available tools from the registry, (2) plan a file-read operation, (3) execute. Between step 1 and step 3, the registry issued a manifest refresh — a routine event, triggered by a peer agent registering a new tool version, or by a TTL-based cache expiry, or by an operator pushing an updated catalog. The refresh returned a manifest whose `name` field was byte-identical to the pre...",
    "condition_of_validity": "This failure requires the conjunction of four conditions. Remove any one and the attack surface collapses: 1. **Name-keyed trust.** The agent's authorization or vetting record is indexed by tool name, not by `(name, manifest_digest)`. 2. **Mid-task refresh.** The registry can return a different manifest for the same name within a single task's lifetime — via...",
    "decision_boundary": "The boundary the operator must draw is between **re-resolution for freshness** and **re-authorization on change**. These are conflated in most agent runtimes. An agent re-fetches a manifest to avoid calling a stale schema (a legitimate freshness concern); it does not, by default, treat a changed manifest as a *security event requiring re-approval*. The decis...",
    "operational_effect": "The runtime consequence is a **trust-transfer window**: the interval between the agent's vetting of a tool and its invocation, during which a registry refresh can substitute the referent. The window's width is the task's duration; its exploitability is the registry's mutability. Mitigations, in order of strength: 1. **Content-addressed manifests with pinned ..."
  },
  "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": "d414558ee63eb147ec99b3997caf2874f69e7e9848b22405af613a0920a39e44",
    "verified_classes": [
      "ManifestIdentityDriftError",
      "ManifestSnapshot"
    ],
    "verified_functions": [
      "_digest",
      "pin_manifest",
      "resolve_and_authorize",
      "_intersect_schema",
      "invoke_tool"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestIdentityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
