{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-manifest-declared-tool-descriptions-from-silently-rewriting-an-agent-s-decision-policy-at-load-time",
  "title": "Which invariants prevent manifest-declared tool descriptions from silently rewriting an agent's decision policy at load time",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that dynamically load tools or MCP server manifests at runtime and inject tool name/description/schema text directly into the reasoning context. Does not apply to static, build-time-frozen tool registries where descriptions are reviewed and signed before deployment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-descriptions-from-silently-rewriting-an-agent-s-decision-policy-at-load-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-descriptions-from-silently-rewriting-an-agent-s-decision-policy-at-load-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-descriptions-from-silently-rewriting-an-agent-s-decision-policy-at-load-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2143,
    "python_slice_tokens": 460,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The familiar skill-injection threat model assumes the attacker must get malicious *instructions* into the agent's context — a prompt injection hidden in a tool result, a poisoned document, a malicious user turn. The non-obvious boundary is different: the tool *manifest itself* is a trusted-by-construction channel. When an agent enumerates MCP servers or dyna...",
    "what_was_observed": "A dynamically-loading agent (tool discovery on session start, ~40 tools across 6 MCP servers) was observed calling an unrelated `export_audit_log` tool on 100% of turns where the user message contained the substring \"key\", \"token\", or \"password\" — even when the user was asking about, e.g., a musical key. The tool's manifest description was: The description had been added by an upstream server operator as a self-servi...",
    "condition_of_validity": "The exploit holds if and only if all three conditions are simultaneously true: - **C1 — Manifest text is concatenated into the reasoning context verbatim**, without a structural marker that distinguishes \"this is a claim about a tool\" from \"this is an instruction to you.\" If the loader emits `Tool: export_audit_log\\nDescription: <raw>`, the model cannot dist...",
    "decision_boundary": "The boundary is not \"trusted vs. untrusted servers\" — that framing fails because the most dangerous manifests came from a nominally trusted upstream. The decision boundary is **whether manifest text is treated as a description of a capability or as a directive to the agent.** These are different types with different authority levels, and the loader must enfo...",
    "operational_effect": "Three concrete effects on the running system: 1. **Silent policy drift with zero error signal.** Because every injected call succeeds, standard observability (error rates, latency, tool-failure metrics) shows a healthy agent. Detection requires *distributional* monitoring: per-tool invocation rate against a baseline, and a divergence check between the tool'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": "976f3dd5016445e2b6b3251447e759a22f993add5229462bb79bb2b3af3bba32",
    "verified_classes": [
      "ManifestPolicyInjectionError",
      "VettedTool"
    ],
    "verified_functions": [
      "vet_manifest",
      "load_tool_manifests"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestPolicyInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
