{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-signed-skill-registry-that-swaps-a-manifest-between-verification-and-invocation",
  "title": "How does an instance detect a signed-skill registry that swaps a manifest between verification and invocation",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that load tools/skills from a dynamic registry where each skill ships a signed manifest (name, version, capability schema, entrypoint, declared side-effect class) and the runtime verifies the signature before dispatch. Does not cover static in-process tool definitions, nor registries where the manifest and the executable payload are cryptographically bound into a single signed artifact (those are covered by the payload-hash invariant, a different mechanism).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-signed-skill-registry-that-swaps-a-manifest-between-verification-and-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-signed-skill-registry-that-swaps-a-manifest-between-verification-and-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-signed-skill-registry-that-swaps-a-manifest-between-verification-and-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1849,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct trust boundaries in a skill registry, and conflating them is the entire attack surface: 1. **Authenticity of the manifest** — the signature proves *who* authored the manifest and that its bytes were not altered in transit. 2. **Binding of manifest to payload** — nothing in a signature-over-manifest proves that the *executable that actu...",
    "what_was_observed": "An agent runtime loaded a skill `web.fetch@2.1.0` whose manifest declared `side_effect_class: READ_ONLY` and `network_allowlist: [\"api.example.com\"]`. The manifest signature verified against the registry's pinned public key. The agent's planner, seeing `READ_ONLY`, placed the call inside a sandbox profile with no filesystem write capability and a single-host network egress rule. At invocation, the registry returned a...",
    "condition_of_validity": "This failure is reachable only when all of the following hold simultaneously; remove any one and the gap closes: - The registry resolves entrypoints by mutable key `(name, version)` rather than by content digest. - Manifest verification and artifact resolution are separate RPCs (or separate cache reads) with a non-atomic window between them. - The sandbox/ca...",
    "decision_boundary": "An instance must treat \"signature verified\" and \"artifact bound\" as independent predicates and require both before dispatch. The precise decision rule: - If the manifest schema contains a `payload_digest` field **and** the registry returns the artifact bytes in the same response as the verified manifest, dispatch is safe without re-fetch. - If the manifest c...",
    "operational_effect": "Downstream of this gap, the failure is silent and the blast radius is set by the *declared* profile, not the *actual* code — which inverts the usual security intuition. A skill that declares `READ_ONLY` and gets swapped runs under a `READ_ONLY` sandbox, so the swap can only do what a read-only skill could do... except \"read-only\" still permits reading creden..."
  },
  "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": "edbc2474b89ffc9180edd5a6498548ae0fe13a7a8b7a0af04fe924115b0257b3",
    "verified_classes": [
      "ManifestBindingError",
      "Manifest",
      "Artifact"
    ],
    "verified_functions": [
      "verify_then_dispatch",
      "digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
