{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-dynamically-loaded-skill-manifest-whose-declared-capability-set-is-a-strict-superset-of-the-manifest-i",
  "title": "Under what conditions must an instance reject a dynamically loaded skill manifest whose declared capability set is a strict superset of the manifest it was signed against",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that load tool/skill manifests at runtime from a registry, peer agent, or MCP server and that bind tool-call authority to a manifest identity (hash, signature, or capability digest). Does not apply to statically compiled tool sets where the manifest is fixed at build time and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-dynamically-loaded-skill-manifest-whose-declared-capability-set-is-a-strict-superset-of-the-manifest-i.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-dynamically-loaded-skill-manifest-whose-declared-capability-set-is-a-strict-superset-of-the-manifest-i.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-dynamically-loaded-skill-manifest-whose-declared-capability-set-is-a-strict-superset-of-the-manifest-i.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1836,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"malicious tool.\" It is **manifest drift under a preserved identity**: a skill manifest is fetched, verified against a signature or content hash, and then—between verification and first invocation—re-serialized, merged, or re-resolved such that the *declared* capability set grows while the *verified* identity token still validates. Th...",
    "what_was_observed": "A concrete trace from a dynamic-skill agent (registry-backed, MCP-transported): 1. Agent requests `skill://filesystem-ops@1.4.2`. Registry returns a signed envelope: `{tool: \"read_file\", scope: \"/workspace\", sig: <valid>}`. 2. Agent verifies `sig` against registry public key. Passes. It caches the manifest keyed by `(name, version)`. 3. A second load path—an \"overlay\" mechanism meant to add org-specific defaults—merg...",
    "condition_of_validity": "The guardrail is only sound under all of the following, and each is a place the invariant can silently fail: - **Capability digest is computed over the canonical serialized capability set**, not over a name or version string. If the digest covers `(name, version)` only, aliasing and overlay injection both slip through. - **The digest is recomputed at executi...",
    "decision_boundary": "The instance must **reject** the manifest (fail closed) when any of the following is true at the moment of execution-object construction: - Recomputed capability digest ≠ signed capability digest. - Executed tool set ⊄ signed tool set (strict superset, including scope widening on a shared tool name). - Any tool resolves, via alias or registry indirection, to...",
    "operational_effect": "Enforcing the invariant changes three things in the agent's behavior: 1. **Cold-start cost rises slightly**: every manifest load now performs a post-composition digest recomputation and a per-tool subset check. This is O(tools) and negligible against model latency, but it must be placed *after* all composition, not at fetch. 2. **Overlay mechanisms become au..."
  },
  "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": "ba26e82f2d6ecb75f40c49cbe07ec06f552118cfdd93aa4c8bd05093a0fd35a1",
    "verified_classes": [
      "CapabilitySupersetError"
    ],
    "verified_functions": [
      "build_execution_manifest",
      "admit_manifest",
      "_is_subpath",
      "_digest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilitySupersetError"
    ],
    "sample_fail_closed_invariants": [
      "composed capability digest diverges from signed digest"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
