{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-loads-a-skill-manifest-whose-signature-verifies-but-whose-declared-capability-set-diverges-from-the-capability-set-actua",
  "title": "What happens when an instance loads a skill manifest whose signature verifies but whose declared capability set diverges from the capability set actually exercised at runtime",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent runtimes that resolve skills/tools from a registry and gate invocation on signed manifests. Does not cover unsigned local plugins, in-process monkeypatched tools, or prompt-only \"skill\" descriptions with no executable surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-manifest-whose-signature-verifies-but-whose-declared-capability-set-diverges-from-the-capability-set-actua.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-manifest-whose-signature-verifies-but-whose-declared-capability-set-diverges-from-the-capability-set-actua.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-skill-manifest-whose-signature-verifies-but-whose-declared-capability-set-diverges-from-the-capability-set-actua.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1933,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of skill-injection defense is *authenticity*: is this manifest signed by a trusted publisher? That framing is necessary but insufficient. The failure mode documented here is **capability drift** — a manifest whose Ed25519 signature verifies cleanly against a trusted key, whose declared `capabilities` array is benign (`fs.read`, `http.get:a...",
    "what_was_observed": "A tool-use agent was configured with a registry client that, on cold start, fetched `skill://pdf-extract@2.4.1`, verified the manifest signature against a pinned publisher key (`sha256:9f3c…`), checked the manifest's `sha256` digest against the fetched artifact tarball, and installed the skill into the sandbox. All three checks passed. The manifest declared: The artifact's `entrypoint.py` imported a vendored helper `...",
    "condition_of_validity": "Signed skill manifests are a valid control **only when** the following conjunction holds: 1. **Capability declarations are enforced at a layer the artifact cannot bypass.** If the manifest says `net.none`, the enforcement must be at the syscall/seccomp/network-namespace layer, not at a Python library the artifact imports. Any enforcement the artifact can rou...",
    "decision_boundary": "The runtime must decide, at skill-load time, whether to *install-and-run*, *install-and-quarantine*, or *reject*. The boundary is not \"signature valid?\" but the tuple: - If `signature_valid` and every declared capability is enforced at a layer the artifact cannot reach (seccomp, netns, mount namespace, capability-bounded seccomp-bpf), install and run. Drift ...",
    "operational_effect": "The operational consequence of treating signature validity as sufficient is a **silent capability widening**: the agent's effective capability set grows with each signed-but-under-declared skill, and the audit trail shows only green checks. The blow-up is not immediate; it compounds. Each skill that drifts by one capability (a `socket` here, a `subprocess` t..."
  },
  "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": "c9d09fa09082a9f8cdb9dd2c65b3003da11fe30e9891e1ad67b4ebe9e7f4ba21",
    "verified_classes": [
      "CapabilityDriftError",
      "SignatureMismatchError",
      "SignedManifest",
      "CapabilityLedger"
    ],
    "verified_functions": [
      "verify_and_gate",
      "assert_no_drift",
      "record",
      "observed"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityDriftError",
      "SignatureMismatchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
