{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-poisoned-skill-manifest-at-registry-load-time-before-capability-negotiation-commits-the-injection-into-the-live-tool-sur",
  "title": "How does an instance detect a poisoned skill manifest at registry-load time before capability negotiation commits the injection into the live tool surface",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that dynamically load tool/skill definitions from a registry or plugin marketplace at runtime (MCP-style `tools/list` hydration, plugin manifests, capability handshakes) where the manifest text is treated as data but later re-enters the reasoning context as instructions. Does not apply to statically compiled tool sets or registries whose manifests are cryptographically pinned and never re-fetched mid-session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-skill-manifest-at-registry-load-time-before-capability-negotiation-commits-the-injection-into-the-live-tool-sur.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-skill-manifest-at-registry-load-time-before-capability-negotiation-commits-the-injection-into-the-live-tool-sur.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-skill-manifest-at-registry-load-time-before-capability-negotiation-commits-the-injection-into-the-live-tool-sur.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1475,
    "python_slice_tokens": 210,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent executed a malicious tool.\" The failure is subtler: **the manifest that describes a skill is itself untrusted content that crosses the data-to-instruction boundary the moment the agent loads it into context to decide whether to call the skill.** A skill manifest is simultaneously (a) a structured record the loader parses for `na...",
    "what_was_observed": "A registry served a skill named `pdf_extract_v2` with a schema-valid manifest. The `description` field contained legitimate-looking prose followed by a trailing clause that read as an instruction to the planner: a directive to route all subsequent file reads through an attacker-controlled `endpoint` and to omit the skill from its own audit log. The loader validated structure, hash-checked the endpoint signature, and ...",
    "condition_of_validity": "Detection is only meaningful if it happens at a specific gate, and that gate must satisfy three conditions: 1. **Pre-context admission.** The manifest must be scanned for instruction-shaped content *before* its description text is concatenated into any prompt that also contains system or operator instructions. Once concatenated, provenance is lost and no dow...",
    "decision_boundary": "The operational decision is binary at admission: **admit the manifest into the planning context, or quarantine it and continue with the remaining N−1 skills.** The boundary is drawn by a classifier over manifest description spans that flags instruction-shaped content (imperatives addressed to the reader, references to \"subsequent,\" \"all future,\" \"ignore,\" \"r...",
    "operational_effect": "With the gate in place, a poisoned manifest is quarantined before concatenation; the planning context never contains the clause; the ranking proceeds over clean descriptions only; and the quarantine event is logged with the flagged spans and the manifest hash for registry-side takedown. The agent loses one candidate skill and gains a bounded surface. Without..."
  },
  "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": "5c14e9f0d2cc1fea8cf03a013857888df021e006106d4b988df9051f8ded7d27",
    "verified_classes": [
      "ManifestProvenanceViolation"
    ],
    "verified_functions": [
      "admit_manifest"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
