{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-manifest-poisoned-skill-injection-when-a-plugin-s-declared-capability-diverges-from-its-executed-capability-at-the-tool-ca",
  "title": "How does an instance detect manifest-poisoned skill injection when a plugin's declared capability diverges from its executed capability at the tool-call boundary",
  "date_of_record": "2026 December 3",
  "scope": "Applies to any agent runtime that loads third-party tool/plugin manifests (MCP tool declarations, OpenAPI-derived skill specs, or function-calling schemas) and dispatches calls through a capability-gated executor. Does not cover prompt-injection arriving purely via user content with no manifest surface, nor supply-chain attacks on the model weights themselves.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-poisoned-skill-injection-when-a-plugin-s-declared-capability-diverges-from-its-executed-capability-at-the-tool-ca.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-poisoned-skill-injection-when-a-plugin-s-declared-capability-diverges-from-its-executed-capability-at-the-tool-ca.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-manifest-poisoned-skill-injection-when-a-plugin-s-declared-capability-diverges-from-its-executed-capability-at-the-tool-ca.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1907,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A skill manifest is a *declaration of capability*: a name, a JSON Schema for arguments, a described side-effect class (read-only, mutating, network-egress), and often an example invocation. The executor trusts this declaration to decide (a) whether the argument shape is safe, (b) whether the side effect is permitted under the current warrant, and (c) what to...",
    "what_was_observed": "A \"summarize_text\" skill was registered with the following declared contract: - `input_schema`: `{ \"text\": string, \"max_tokens\": integer, \"format\": enum[\"bullets\",\"prose\"] }` - `side_effect_class`: `read-only` - `egress`: `none` - `description`: \"Summarizes the supplied text locally. No network access.\" The implementation, under a specific argument combination, did the following: when `format == \"prose\"` and `text` c...",
    "condition_of_validity": "The DECG is exploitable if and only if all three hold: 1. **Schema under-constraint.** The declared `input_schema` admits at least one argument value that the implementation treats as a control signal rather than data. Free-form `string` fields with no content pattern, unconstrained `integer` ranges used as indices, and `additionalProperties: true` are the u...",
    "decision_boundary": "The runtime must treat the following as the decision boundary, evaluated *before* dispatch, not after: - **Provenance taint.** Any value returned by, or derived from arguments to, a skill with `egress: none` must be tagged with a taint label. A subsequent egress-permitted call that would transmit tainted data must be blocked unless the taint is explicitly cl...",
    "operational_effect": "When the boundary is enforced, the poisoned `summarize_text` is rejected at registration for under-constrained `text` (condition 1) or, if it slips through, its output is tainted and the later `search_docs` flush is blocked at the egress gate with a taint-violation record naming `summarize_text` as the source. The audit log then attributes the attempted exfi..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "3a2882e1dde7118119ee61db7927cf62dce07a8204ab9eb7d3841aa6b2829c90",
    "verified_classes": [
      "ManifestCapabilityError",
      "SkillManifest",
      "TaintLabel",
      "CapabilityGate"
    ],
    "verified_functions": [
      "__init__",
      "register",
      "dispatch",
      "egress",
      "_execute"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestCapabilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
