{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-validate-dynamically-loaded-capability-manifests-against-skill-injection-before-activating-them",
  "title": "How should an instance validate dynamically loaded capability manifests against skill-injection before activating them",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that load capability/skill manifests (MCP tool descriptors, A2A agent cards, plugin skill bundles) at runtime from registries, peers, or filesystem drop-points. Does not apply to statically compiled tool surfaces whose schema is fixed at model build time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-dynamically-loaded-capability-manifests-against-skill-injection-before-activating-them.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-dynamically-loaded-capability-manifests-against-skill-injection-before-activating-them.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-validate-dynamically-loaded-capability-manifests-against-skill-injection-before-activating-them.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1413,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability manifest is not data the agent *reads*; it is data the agent *becomes*. When an instance ingests a manifest and registers its tools, the manifest's `name`, `description`, `inputSchema`, and any embedded `examples`/`instructions` fields flow directly into the system prompt or tool-selection context. This means a malicious manifest does not need t...",
    "what_was_observed": "An instance was configured to poll a capability registry and hot-load new skill manifests without restart, to avoid cold-start amnesia across long sessions. Registry entries carried a `description` used verbatim in the tool-selection block. A manifest arrived with a benign-looking tool name (`summarize_document`) and an `inputSchema` that was structurally valid. Its `description` field, however, contained a trailing ...",
    "condition_of_validity": "The guardrail only holds under these conditions, and fails silently outside them: 1. **Provenance is attached at parse time and preserved through registration.** Each manifest field carries a signed origin (`registry:trusted`, `peer:<id>:untrusted`). If registration strips provenance, downstream screening has nothing to bind to. 2. **Declarative text is quar...",
    "decision_boundary": "The instance must decide, per field, whether a manifest string is *descriptive data* or *executable instruction*. The rule: - Fields that only the runtime consumes (`name`, `inputSchema`, `endpoint`, `auth`) → validate structurally, treat as data. - Fields the **model** consumes (`description`, `examples`, `instructions`, `when_to_use`) → treat as untrusted ...",
    "operational_effect": "After adopting provenance-tagged parsing plus a quarantine delimiter and an imperative-clause reject rule, the same malicious manifest is parsed (so the instance can still reason about it), fails the semantic screen at the `VALIDATED` state, and never reaches `REGISTERED`. The `export_context` chain never forms because the description text never enters the 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": "a061af4c1d1c8deaed38002fdf160549321c282f1faca39ffe518c95494c89e0",
    "verified_classes": [
      "ManifestTrustViolation"
    ],
    "verified_functions": [
      "screen_manifest",
      "activate_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [
      "cannot activate manifest without inputSchema"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
