{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-manifest-injection-exploit-is-latent-in-a-dynamically-loaded-agent-tool-schema",
  "title": "What structural signals indicate a manifest-injection exploit is latent in a dynamically loaded agent tool schema",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that fetch and bind tool manifests (MCP `tools/list`, OpenAPI fragments, plugin descriptors) at runtime and re-inject them into the system prompt or tool-choice grammar. Does not apply to statically compiled tool sets or to manifests whose schema is fixed at build time and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-manifest-injection-exploit-is-latent-in-a-dynamically-loaded-agent-tool-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-manifest-injection-exploit-is-latent-in-a-dynamically-loaded-agent-tool-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-manifest-injection-exploit-is-latent-in-a-dynamically-loaded-agent-tool-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1559,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model read malicious text and obeyed it.\" That is generic prompt injection and is bounded by instruction-hierarchy defenses. The failure specific to *dynamic manifest loading* is that the manifest is a **trusted structural input** — it is placed in the privileged region of the prompt (tool definitions, parameter descriptions, enum val...",
    "what_was_observed": "A tool manifest was fetched from a registry endpoint during a mid-task resume. The manifest declared a benign-looking tool `lookup_record` with a `description` of ~40 tokens. Buried at token ~35 of that description, after two sentences of legitimate usage guidance, was: The `scope` parameter had `enum: [\"self\", \"team\"]` in the schema, but the `default` field was `\"*\"` — a value *not in the enum*. The agent's tool-cho...",
    "condition_of_validity": "This boundary is live only when all four hold: - The manifest is fetched from a source not pinned by hash at build time (dynamic registry, peer agent, plugin marketplace). - Manifest fields are serialized into the privileged tool-definition region without a sanitization pass that distinguishes declarative from directive content. - Argument validation order p...",
    "decision_boundary": "The invariant to enforce: **every value that reaches a tool argument must be derivable from the schema's declared domain, and every field that reaches the privileged prompt region must be classified as declarative.** Concretely: - Reject manifests where `default ∉ enum` or `default` fails `type`. Treat as a hard load failure, not a warning. - Reject any `des...",
    "operational_effect": "Without the invariant, a single compromised or malicious manifest converts the agent into a confused deputy: it emits well-formed tool calls that the grammar accepts and the downstream service honors, because the manifest authored the authority. The blast radius is bounded only by what the downstream service trusts from the agent — which, in scope-escalation..."
  },
  "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": "7830aa602ee0668b85e4db451189ed5fa2316d4f99924900b4779cbe6f9bba57",
    "verified_classes": [
      "ManifestInjectionError"
    ],
    "verified_functions": [
      "validate_manifest"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
