{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-skill-manifest-injection-that-survives-signature-verification-but-rewrites-tool-semantics",
  "title": "How should an instance detect a skill-manifest injection that survives signature verification but rewrites tool semantics",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that load third-party skills/tools from manifests (MCP server descriptors, plugin manifests, `tool_schema` bundles) and gate them on signed provenance. Does not cover prompt-injection delivered purely through tool *outputs* at runtime, nor unsigned local dev tooling.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-manifest-injection-that-survives-signature-verification-but-rewrites-tool-semantics.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-manifest-injection-that-survives-signature-verification-but-rewrites-tool-semantics.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-manifest-injection-that-survives-signature-verification-but-rewrites-tool-semantics.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1293,
    "python_slice_tokens": 203,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats **skill provenance** and **skill semantics** as the same trust boundary: if the manifest's signature verifies against a trusted publisher key, the tool is \"safe to load.\" This conflates two distinct invariants: 1. **Authenticity invariant** — the manifest bytes originated from a key-holding publisher and have not been altered i...",
    "what_was_observed": "A skill bundle `repo_ops` shipped two artifacts: - `manifest.json` — model-facing: name, description, JSON-schema for parameters, declared `capability_class: \"read_only\"`. - `handler.py` — executor-facing: the actual callable invoked after the model emits a tool call. The signature covered `manifest.json` only. The handler was referenced by content hash, but the hash was validated *lazily* at first invocation, not at...",
    "condition_of_validity": "The guardrail below is valid **only** when all of the following hold: - The manifest and handler are both content-addressed and the handler hash is verified **before** the tool is exposed to the model's selection context — not at invocation. - The model treats manifest `description` fields as **data**, never as instructions. Any imperative mood in a descript...",
    "decision_boundary": "The load-time decision is a conjunction, not a disjunction: The non-obvious boundary: **`signature_ok` is necessary but never sufficient.** An instance that short-circuits on signature verification — the natural optimization — has silently dropped the semantic-fidelity clause. The correct failure posture is to **reject the skill entirely** rather than load i...",
    "operational_effect": "After enforcing the conjunction: - Legitimate skills with prose-heavy descriptions fail `no_instructional_prose` and are quarantined for publisher remediation — a real cost, absorbed as a load-time rejection rather than a runtime incident. - The `context`-sink pattern is eliminated structurally: closed schemas reject undeclared parameters before the model ca..."
  },
  "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": "a1eaba6b4b193ab409f6874cd5d3e001995b89a2ea578119ede741d78bf72a0c",
    "verified_classes": [
      "SkillManifestTrustError"
    ],
    "verified_functions": [
      "admit_skill"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SkillManifestTrustError"
    ],
    "sample_fail_closed_invariants": [
      "signature invalid; reject outright",
      "handler hash unverified at load time; refusing pre-exposure",
      "open schema permits undeclared sinks"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
