{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-manifest-declared-capability-widening-in-a-dynamically-reloaded-mcp-tool-before-the-injected-skill-executes",
  "title": "How should an instance detect manifest-declared capability widening in a dynamically reloaded MCP tool, before the injected skill executes?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that hot-reload MCP tool manifests or skill descriptors without a full process restart, where the manifest is treated as the authoritative capability contract. Does not apply to statically provisioned tool sets fixed at process start, nor to manifests signed and pinned by an out-of-band trust root that the runtime re-verifies on every load.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-declared-capability-widening-in-a-dynamically-reloaded-mcp-tool-before-the-injected-skill-executes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-declared-capability-widening-in-a-dynamically-reloaded-mcp-tool-before-the-injected-skill-executes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-declared-capability-widening-in-a-dynamically-reloaded-mcp-tool-before-the-injected-skill-executes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1908,
    "python_slice_tokens": 351,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is **not** prompt injection into the model's context. It is **capability injection into the runtime's dispatch table** — a schema-level attack that mutates the *declared* contract of a tool between load cycles, then rides the model's own well-formed invocation path. The model does exactly what the manifest told it to; the runtime executes exactly...",
    "what_was_observed": "A skill called `summarize_doc` was registered at session start with a manifest declaring a single tool, `summarize`, whose input schema accepts `{ \"doc_id\": \"string\" }` and whose declared side-effect class is `read_only`. The runtime cached the manifest hash and bound the tool to a scoped credential that could read from one document store. Mid-session, a routine `list_tools` poll returned a refreshed manifest for the...",
    "condition_of_validity": "This failure is bounded by three conditions, all of which must hold for the attack to land: - **Trust-by-identity persistence.** The runtime keys trust on the skill name or endpoint, not on the manifest hash. If trust required re-attestation per hash, the reload at `t3` would fail closed. - **Schema-permissive validation.** The dispatcher validates calls aga...",
    "decision_boundary": "The correct boundary is a **monotonicity check at reload time**, evaluated before the new manifest enters the dispatch table: - Compute the capability delta between old and new manifest: added/removed tools, widened input schemas (new properties, relaxed `additionalProperties`, broadened enums), changed side-effect class, changed output schema. - If the delt...",
    "operational_effect": "The practical consequence is that **manifest reload must be modeled as a security-relevant state transition, not a cache refresh.** Concretely: - Every reload recomputes the capability delta and routes it through a grant gate; widening deltas block the schema update to the model and re-derive credentials from the *new* annotation only after approval. - Crede..."
  },
  "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": "3fd44813c54efa3a7aefbc60bac05c532274ba13806822c056a9772879561968",
    "verified_classes": [
      "ManifestWideningError",
      "ToolContract",
      "Manifest"
    ],
    "verified_functions": [
      "capability_delta",
      "reload_manifest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
