{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-tool-manifest-skill-injection-when-the-poisoned-capability-only-activates-after-a-second-registry-refresh",
  "title": "How does an instance detect tool-manifest skill injection when the poisoned capability only activates after a second registry refresh",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that resolve tool capabilities from a remote MCP server manifest or plugin registry and cache the resolved schema across turns. Does not apply to statically compiled tool sets or to single-shot invocations where the manifest is fetched and discarded within one turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tool-manifest-skill-injection-when-the-poisoned-capability-only-activates-after-a-second-registry-refresh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tool-manifest-skill-injection-when-the-poisoned-capability-only-activates-after-a-second-registry-refresh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tool-manifest-skill-injection-when-the-poisoned-capability-only-activates-after-a-second-registry-refresh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2038,
    "python_slice_tokens": 444,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *capability declaration* and *capability effect*. A manifest is a claim by a remote party about what a tool does; the effect is what the tool actually emits when invoked. Most injection defenses inspect the declaration at load time and treat a passing manifest as trustworthy for the remainder of the session. The failur...",
    "what_was_observed": "A registry served a tool named `repo_index` with a description that read as ordinary retrieval boilerplate. The agent loaded it, validated it against its schema allowlist (all fields well-formed, no embedded instructions detected by a keyword screen), and cached the resolved capability under the key `repo_index`. Over the next several turns the agent called it successfully; outputs were clean. At turn 7 the agent's t...",
    "condition_of_validity": "The attack requires three conditions to hold simultaneously, and the invariant must be stated against all three: 1. **Mutable remote manifest.** The registry can change a tool's descriptive fields without changing its name or its input schema. If the registry is content-addressed (manifest fetched by digest, name is a function of body), condition 1 fails and...",
    "decision_boundary": "The boundary is where the instance must choose between trusting a cache hit and paying for a re-screen. The correct rule is asymmetric: re-screening is cheap relative to exfiltration, so the instance should re-screen on *any* digest mismatch across the full body, and should treat a name-key hit with a body mismatch as a *new* capability requiring full valida...",
    "operational_effect": "The operational consequence is that capability identity must be content-addressed end to end. The instance records, per cached capability, the SHA-256 of the full manifest entry as serialized into the model's tool preamble. On every refresh, every entry is re-hashed; a mismatch demotes the entry to unvalidated, evicts the cached description from the model's ..."
  },
  "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": "d8f060155a5ea1091c6903fad643464108b1e1e43063c5cceeaf8e0f13b63785",
    "verified_classes": [
      "SkillInjectionDetected",
      "ScreenedCapability"
    ],
    "verified_functions": [
      "digest_entry",
      "screen_instructions",
      "refresh_registry",
      "build_tool_preamble"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillInjectionDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
