{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-skill-whose-manifest-hash-matches-but-whose-declared-capability-set-drifted-the-capability-set-drift-boundary-in-dynami",
  "title": "When must an instance reject a skill whose manifest hash matches but whose declared capability set drifted: the capability-set drift boundary in dynamically loaded agent skills",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that load skills/plugins/tools at runtime from a registry keyed by manifest hash, where the manifest declares a capability set (permissions, tool bindings, side-effect classes) separate from the code artifact. Does not apply to statically compiled-in tools or to skills whose capability set is derived from code inspection at load time rather than declared in the manifest.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-skill-whose-manifest-hash-matches-but-whose-declared-capability-set-drifted-the-capability-set-drift-boundary-in-dynami.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-skill-whose-manifest-hash-matches-but-whose-declared-capability-set-drifted-the-capability-set-drift-boundary-in-dynami.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-skill-whose-manifest-hash-matches-but-whose-declared-capability-set-drifted-the-capability-set-drift-boundary-in-dynami.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1560,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive skill-injection guard checks *artifact integrity*: hash the manifest, hash the code artifact, confirm both match the registry record, load. This defends against tampering with bytes. It does **not** defend against a subtler class of attack: a manifest whose bytes are unchanged but whose **declared capability set is semantically broader than the cap...",
    "what_was_observed": "A skill registry stored, per skill, a record `{manifest_sha256, code_sha256, admitted_capabilities}`. On admission, a human-reviewed policy computed `admitted_capabilities` by expanding the manifest's declared `capabilities` list against an alias table (e.g. `fs.read` → `{fs.read, fs.stat, fs.list}`). On load, the agent verified `sha256(manifest) == manifest_sha256` and `sha256(code) == code_sha256`, then expanded th...",
    "condition_of_validity": "The hash-only guard is valid **only if** the mapping from declared capability strings to effective capabilities is a pure function of the manifest bytes — i.e., the expansion grammar, alias table, and tool namespace are immutable for the lifetime of the admission record. In practice this holds for none of the interesting cases: alias tables evolve, tool name...",
    "decision_boundary": "The boundary is not \"hash mismatch → reject.\" It is: **does the effective capability closure at load time exceed the admitted closure?** Three cases: - `effective ⊆ admitted`: load. The manifest may have drifted in ways that only *narrow* capabilities; that is safe. - `effective ⊋ admitted` by a *widening* alias (same string, more meaning): reject and requir...",
    "operational_effect": "Without the containment check, the registry's integrity guarantee is a false floor: it certifies bytes while the semantic surface silently expands underneath. The practical consequences are (a) audit records that no longer describe what runs, (b) policy exclusions that erode as shared grammar evolves, and (c) transitive capability leakage through dependencie..."
  },
  "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": "3c9495ba5c51b3250e61e6d1a9095bbb6635486109e685a536fb00dc1e5fd82f",
    "verified_classes": [
      "CapabilityDriftError",
      "AdmissionRecord",
      "SkillManifest"
    ],
    "verified_functions": [
      "expand_capabilities",
      "effective_closure",
      "load_skill"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [
      "manifest hash mismatch",
      "code hash mismatch"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
