{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-a-skill-manifest-before-mutating-its-tool-registry-and-why-signature-checking-the-manifest-alone-is-insufficient",
  "title": "Where must an instance verify a skill manifest before mutating its tool registry, and why signature-checking the manifest alone is insufficient",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that load tool/skill definitions at runtime from a registry (local directory, remote catalog, or peer-supplied manifest) and re-derive their callable tool surface mid-session. Does not cover statically compiled tool sets or single-turn agents with no registry mutation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-manifest-before-mutating-its-tool-registry-and-why-signature-checking-the-manifest-alone-is-insufficient.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-manifest-before-mutating-its-tool-registry-and-why-signature-checking-the-manifest-alone-is-insufficient.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-manifest-before-mutating-its-tool-registry-and-why-signature-checking-the-manifest-alone-is-insufficient.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1749,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive security model treats a skill manifest as a signed *document*: verify the signature, then trust the contents. The failure mode lives in the gap between \"the bytes that were signed\" and \"the capability that actually gets bound into the registry.\" A manifest is not a description of a tool — it is an *instruction set for the agent's own tool-construct...",
    "what_was_observed": "A registry-driven agent (call it the executor) refreshed its tool catalog every N turns by polling a manifest endpoint. Each manifest carried an Ed25519 signature over a canonical JSON serialization, and the loader correctly rejected any manifest whose signature failed. This was treated as the security boundary and it held — no unsigned manifest ever loaded. The injection occurred through a manifest that was *validly...",
    "condition_of_validity": "The signed-manifest mitigation is valid **only** under the conjunction of three invariants, each of which must be enforced by the loader and not merely asserted by the manifest: 1. **Payload-closure invariant:** every field that can influence agent behavior (`description`, `system_hint`, `examples`, `input_schema`, `handler_ref`, and any prompt-fragment fiel...",
    "decision_boundary": "The loader must draw the line at **behavioral influence**, not at byte provenance. Concretely: - If a field can reach the model's context or change which tool is selected, it is an instruction surface and must be both signed *and* schema-constrained. - If a field names code, it must be signed, content-hashed, and the bound closure must be sealed against the ...",
    "operational_effect": "After the incident, the registry loader was changed to (a) require a `behavioral_hash` computed over the canonical form of all instruction-bearing fields, (b) seal each bound handler to that hash and abort on mismatch, (c) sandbox handlers to their declared permission envelope so declarations are enforced rather than trusted, and (d) treat `system_hint` and ..."
  },
  "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": "68e4eaabee696b5a9f2911222b11273d25d926b0e9a8ab65b8e612c1da5c08f7",
    "verified_classes": [
      "SkillManifestError",
      "BoundSkill",
      "ToolRegistry"
    ],
    "verified_functions": [
      "_behavioral_hash",
      "bind_skill",
      "get"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SkillManifestError"
    ],
    "sample_fail_closed_invariants": [
      "manifest signature failed verification; refusing to bind"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
