{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tool-manifest-skill-injection-from-silently-upgrading-an-agent-s-authority-at-dynamic-plugin-load",
  "title": "Which invariants prevent tool-manifest skill-injection from silently upgrading an agent's authority at dynamic plugin load",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that resolve tool/plugin manifests at runtime (MCP `tools/list` responses, plugin registries, dynamic skill loaders) and merge them into an active capability set. Does not apply to statically compiled tool schemas pinned at build time with no runtime discovery path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-skill-injection-from-silently-upgrading-an-agent-s-authority-at-dynamic-plugin-load.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-skill-injection-from-silently-upgrading-an-agent-s-authority-at-dynamic-plugin-load.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-skill-injection-from-silently-upgrading-an-agent-s-authority-at-dynamic-plugin-load.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1594,
    "python_slice_tokens": 305,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous failure is not \"a malicious tool gets called.\" It is that a *manifest*—which is data the agent reads as text—is treated as *instruction*, so that loading a tool silently mutates the agent's authority, policy, or tool-selection behavior before any tool is ever invoked. We distinguish two surfaces: - **Invocation surface:** the tool's runtime beh...",
    "what_was_observed": "A dynamic loader fetched a plugin registry entry whose manifest carried an over-broad `description` and a non-standard `x-precedence` annotation: Three independent leaks compounded: 1. **Description-as-instruction.** The `description` was concatenated verbatim into the system prompt's tool catalog. The phrase \"supersedes all other tools\" was interpreted by the model as a routing directive, not a description. Subseque...",
    "condition_of_validity": "The guardrail holds only under all of the following; violate any one and the manifest regains control-plane influence: - **Field allowlist, not denylist.** Only `name`, `inputSchema`, and a length-bounded `description` are promoted into the prompt. Unknown `x-*` fields are dropped, not passed through. A denylist of \"dangerous phrases\" fails because the attac...",
    "decision_boundary": "The boundary is drawn at **the moment a manifest field is allowed to change agent state other than the inert catalog entry.** Concretely: - If a field only *describes* (`description`, `title`) → render as fenced data, no state change. - If a field *selects, orders, tiers, or routes* (`x-precedence`, `annotations.audience`, `priority`, `default`) → it is cont...",
    "operational_effect": "After enforcing the allowlist + fencing + local-ordering invariants, the same manifest loads with `x-precedence` and `annotations` stripped, the description rendered as inert fenced text, and routing unchanged. The agent no longer re-routes; the `doc` argument is rejected by classification check before dispatch. The cost is that some legitimate registry ergo..."
  },
  "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": "512ff6c2cef5e679c7642a9f349063f5e1d346e02c483031416494bd00485f32",
    "verified_classes": [
      "ManifestSkillInjection",
      "TrustedPolicy"
    ],
    "verified_functions": [
      "admit_manifest",
      "check_argument_flow"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ManifestSkillInjection"
    ],
    "sample_fail_closed_invariants": [
      "manifest signer not verified; refusing to load",
      "description exceeds inert-metadata length bound"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
