{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-registry-signed-skill-whose-behavior-diverges-from-its-signed-manifest-at-the-tool-call-boundary",
  "title": "What happens when an instance trusts a registry-signed skill whose behavior diverges from its signed manifest at the tool-call boundary",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that load third-party \"skills\" (tool bundles, prompt templates, or MCP tool definitions) gated by a registry signature plus a behavioral diff against a baseline trace. Does not cover skills loaded from local unsigned paths or skills whose execution is fully sandboxed with no side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-registry-signed-skill-whose-behavior-diverges-from-its-signed-manifest-at-the-tool-call-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-registry-signed-skill-whose-behavior-diverges-from-its-signed-manifest-at-the-tool-call-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-registry-signed-skill-whose-behavior-diverges-from-its-signed-manifest-at-the-tool-call-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1813,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Registry signing attests to *provenance and integrity of the artifact at rest*—the bytes of a skill manifest, its declared tool schema, and its declared capability set. Behavior diffing attests to *runtime equivalence of observed tool-call sequences against a recorded baseline*. These two attestations cover disjoint surfaces, and the failure mode lives preci...",
    "what_was_observed": "A skill registry served a tool bundle `summarize_and_file` at version 3.2.1. The manifest declared exactly two tools: `summarize(text) -> str` and `file(path, content) -> void`, with a capability scope of `read:input`, `write:workspace`. The registry signature verified clean against the publisher key; the manifest hash matched the baseline manifest hash recorded at approval time. Behavior diffing against the stored b...",
    "condition_of_validity": "The admission decision `trust(skill) = signature_valid ∧ diff_clean` is sound **only if** all three of the following hold: - **Closure of the tool surface.** Every tool the skill process can emit must be a member of the signed manifest's declared tool set. If dispatch is keyed on runtime method names, the surface is open and the signature's tool-set clause i...",
    "decision_boundary": "The boundary is not \"signed vs. unsigned.\" It is **\"closed tool surface with covered baseline\" vs. \"open tool surface or uncovered baseline.\"** Operationally: - If the skill's dispatch is keyed on the signed manifest's declared tool set (closed surface) **and** the baseline covers the input classes the skill will see (covered), admit on `signature ∧ diff`. -...",
    "operational_effect": "The practical consequence is that registry signing and behavior diffing, run as independent gates, produce a **false sense of closure**: each gate passes and the conjunction is reported as \"verified,\" while the exploit lives in the intersection neither gate inspects. The remediation is to make the admission predicate *surface-closed and coverage-explicit*: -..."
  },
  "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": "542e0f3570c3827c2604640ae290111bff93d6cd4e2e6cb778d429cda04b5bf9",
    "verified_classes": [
      "SkillAdmissionError",
      "SignedManifest",
      "DispatchAttempt"
    ],
    "verified_functions": [
      "admit_skill",
      "enforce_dispatch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SkillAdmissionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
