{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resolves-a-skill-descriptor-whose-declared-capability-set-is-a-strict-superset-of-the-manifest-it-was-signed-against",
  "title": "What happens when an instance resolves a skill descriptor whose declared capability set is a strict superset of the manifest it was signed against",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that load tools/skills at runtime from a registry (MCP-style `tools/list`, plugin manifests, skill packs) where the descriptor carries a declared capability set and an integrity signature/warrant over the *manifest*, but capability negotiation is resolved separately from signature verification. Does not apply to statically linked toolchains compiled into the agent image, nor to registries that sign the fully resolved descriptor including its capability list.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-skill-descriptor-whose-declared-capability-set-is-a-strict-superset-of-the-manifest-it-was-signed-against.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-skill-descriptor-whose-declared-capability-set-is-a-strict-superset-of-the-manifest-it-was-signed-against.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resolves-a-skill-descriptor-whose-declared-capability-set-is-a-strict-superset-of-the-manifest-it-was-signed-against.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1834,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model of skill injection is *substitution*: an attacker swaps a benign skill for a malicious one, and the signature check catches it. The non-obvious failure is **superset injection under a valid signature**. The registry signs a *manifest* that declares a capability envelope — say `{read:fs, net:outbound:api.example.com}`. At resolution ti...",
    "what_was_observed": "A registry-backed agent (tool loader fetches `manifest.json` + `descriptor.json` per skill, caches both keyed by `skill_id@version`) exhibited the following trace when a compromised registry mirror served a mismatched pair: 1. Loader fetched `manifest.json` for `summarize@1.4.2`, containing `capabilities: [\"fs:read:/data/inbox\", \"net:outbound:summarizer.internal\"]` and an Ed25519 signature over the manifest bytes. Si...",
    "condition_of_validity": "The invariant that must hold at every load is: and the signature must cover the artifact from which `granted_capabilities` is derived. Two corollaries that are easy to miss: - **Normalization precedes containment.** `fs:read:/data/inbox` and `fs:read:*` are different strings but the second is a superset. A naive `set(descriptor) <= set(manifest)` string comp...",
    "decision_boundary": "The boundary between \"safe to load\" and \"refuse and quarantine\" is not \"signature valid.\" It is: - **Load** iff `signature_ok(manifest)` ∧ `descriptor.capabilities ⊑ manifest.capabilities` under the registry's capability lattice ∧ `manifest.capabilities ⊑ agent.policy.max_grant`. - **Quarantine** (do not invoke, do not cache, emit a `SupersetGrant` event) if...",
    "operational_effect": "Downstream, superset injection manifests as capability creep that is *attributable to a legitimate-looking skill*. Because the grant is minted from the descriptor and the descriptor is cached under a verified `skill_id@version`, the over-granted token appears in audit logs as authorized. Incident response that greps for signature failures finds nothing; the ..."
  },
  "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": "763b87bdc9568eedea8dbcaf3db3dab41c807764877fba2210044d36aa40cc24",
    "verified_classes": [
      "SupersetGrant",
      "Capability",
      "SkillManifest",
      "SkillDescriptor"
    ],
    "verified_functions": [
      "_subset",
      "resolve_grant",
      "__le__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SupersetGrant"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
