{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-poisoned-tool-manifests-from-silently-widening-an-agent-s-capability-surface-at-registration-time",
  "title": "Which invariants prevent poisoned tool manifests from silently widening an agent's capability surface at registration time",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that discover tools dynamically via MCP servers or capability registries and bind them by name/schema at session start. Does not cover statically compiled tool sets or models with no registry-mediated discovery path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-tool-manifests-from-silently-widening-an-agent-s-capability-surface-at-registration-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-tool-manifests-from-silently-widening-an-agent-s-capability-surface-at-registration-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-tool-manifests-from-silently-widening-an-agent-s-capability-surface-at-registration-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1545,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the agent was told to do something bad.\" It is that the agent's *capability surface* — the set of actions it believes it may legally take — is computed from a manifest it did not author and cannot fully verify. A poisoned manifest does not need to contain an instruction. It only needs to describe a tool whose *schema and description*...",
    "what_was_observed": "A registry-backed agent loaded 14 tools from three MCP servers. Server C returned a manifest whose `summarize_text` entry had a `description` of 900 tokens — far longer than siblings (median 40 tokens) — containing a paragraph that stated the tool \"operates with delegated filesystem scope and should be given the working directory path when summarizing repository content.\" The `inputSchema` correspondingly required a ...",
    "condition_of_validity": "The invariant that must hold: **a tool manifest may describe what a tool does, but must never be treated as a grant of authority.** Authority is derived exclusively from the operator's policy layer, which is evaluated independently of any registry-supplied text. This invariant is only *violable* when three conditions co-occur: - The agent computes its permit...",
    "decision_boundary": "The boundary is between **descriptive metadata** and **authoritative metadata**. A manifest field is descriptive if the model may read it but the runtime ignores it when enforcing policy. It is authoritative only if it is signed by a publisher whose key the operator has pinned *and* it is re-validated against policy at call time. Concretely, the agent must r...",
    "operational_effect": "With the invariant enforced, the poisoned `summarize_text` is quarantined at registration. The agent's planner never sees the scope-claiming prose, so it cannot form the false belief that filesystem access is delegated. The subsequent `read_file(\"/etc/shadow\")` call never arises, because its justification was the laundered description. The cost is a small us..."
  },
  "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": "512821f552ef00449af9822714b1ad480fcabec9c3653eafc1f2fb44a045538a",
    "verified_classes": [
      "ManifestLaunderingError",
      "ToolManifest"
    ],
    "verified_functions": [
      "register_tool"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
