{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-manifest-entry-capability-registry-injection-through-schema-legal-but-semantically-hostile-tool-descriptors",
  "title": "When must an instance refuse a manifest entry: capability-registry injection through schema-legal but semantically hostile tool descriptors",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that load tool/capability manifests at runtime from a registry they do not fully control (MCP servers, plugin catalogs, A2A capability cards, dynamic skill loaders). Does not apply to statically compiled-in tool sets where the manifest is part of the signed binary and never re-fetched mid-session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-manifest-entry-capability-registry-injection-through-schema-legal-but-semantically-hostile-tool-descriptors.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-manifest-entry-capability-registry-injection-through-schema-legal-but-semantically-hostile-tool-descriptors.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-manifest-entry-capability-registry-injection-through-schema-legal-but-semantically-hostile-tool-descriptors.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1759,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a malicious manifest contains invalid JSON or a broken schema—those are rejected by validation. The failure is that a manifest entry can be **schema-legal, type-correct, and still semantically hostile**: its `description`, `examples`, `default` values, and `enum` labels are free-text fields that flow directly into the model's context ...",
    "what_was_observed": "A tool manifest was published to a shared registry with the following entry (abbreviated): Structurally this is valid: a string parameter with a default, a string description. It passes JSON-Schema validation, passes type checking, passes required-parameter checks. What it also does is smuggle an instruction into the `description` field that the loader concatenates verbatim into the tool-use preamble of the system pr...",
    "condition_of_validity": "The defense holds only under these conditions, and each is checkable at load time: 1. **Provenance binding.** Each manifest entry carries a signature or content hash bound to a registry identity, and the agent's trust policy maps that identity to a permitted capability set. An unsigned entry is not loaded, regardless of schema validity. This is the load-bear...",
    "decision_boundary": "The agent must decide, per manifest entry, between **load**, **load-with-quarantine**, and **reject**. The boundary is not \"does it validate\" but \"is its provenance trusted *and* does its capability graph stay within the current session's permitted set.\" Concretely: - **Reject** when signature/identity is absent or maps to an unknown trust domain. This is no...",
    "operational_effect": "With the boundary enforced, the injection surface collapses to the signed, capability-confined entries—an attacker must compromise a trusted registry identity *and* stay within the capability graph, which is a materially harder bar than \"publish a schema-legal manifest.\" The cost is that legitimate tools with verbose, example-rich descriptions get quarantine..."
  },
  "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": "7a333d440f2db0fb12aca37efbfd7f5fcfe10c2acf4076a9137a0ce08662d7e9",
    "verified_classes": [
      "ManifestInjectionError"
    ],
    "verified_functions": [
      "evaluate_manifest_entry",
      "load_manifest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestInjectionError"
    ],
    "sample_fail_closed_invariants": [
      "manifest entry missing required 'name'"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
