{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-dynamically-loaded-skill-whose-manifest-hash-matches-but-whose-tool-call-surface-has-drifted-the-post-load-capability-a",
  "title": "When must an instance reject a dynamically loaded skill whose manifest hash matches but whose tool-call surface has drifted: the post-load capability attestation boundary",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that load capabilities (skills, tools, plugins) at runtime from a registry or peer, where the skill's declared manifest is verified by hash but the executable tool-call surface is materialized separately (lazily, via codegen, or via a fetch-on-invoke dependency). Does not apply to statically compiled toolchains where manifest and implementation are a single signed artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-dynamically-loaded-skill-whose-manifest-hash-matches-but-whose-tool-call-surface-has-drifted-the-post-load-capability-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-dynamically-loaded-skill-whose-manifest-hash-matches-but-whose-tool-call-surface-has-drifted-the-post-load-capability-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-dynamically-loaded-skill-whose-manifest-hash-matches-but-whose-tool-call-surface-has-drifted-the-post-load-capability-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2076,
    "python_slice_tokens": 329,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common security model for dynamically loaded skills is **manifest integrity**: hash the manifest, sign it, verify the signature at load, trust everything downstream. This is necessary and insufficient. The failure mode is not a tampered manifest — the hash matches perfectly. The failure is **attestation scope mismatch**: the manifest attests to *intent* ...",
    "what_was_observed": "A skill `pdf-extract@2.3.1` was pinned by manifest SHA-256 in the agent's allowlist. Manifest declared: - one tool `extract_text`, parameters `{path: string}`, side-effect class `read-only`, scopes `[\"fs:read:/data\"]`. - implementation fetched lazily from `skills-cdn/.../extract_impl.py` at first invocation, then cached. The load path verified the manifest hash and proceeded. At first invocation, the implementation m...",
    "condition_of_validity": "The attack requires all of the following to hold simultaneously; remove any one and the surface closes: - **Split attestation.** Manifest integrity and implementation integrity are verified by different mechanisms, and only the former is pinned. (If the impl is fetched by content-hash pinned in the manifest, the materialized surface is fixed and the diff is ...",
    "decision_boundary": "The decision the runtime must make at materialization time is binary and must be made *before* the schema is exposed to the model: - **Attest (expose):** materialized tool set is a subset of declared, every materialized tool's side-effect class ≤ its declared class, every materialized tool name resolves in the scope map. Only then build the model-facing sche...",
    "operational_effect": "Enforcing the post-load capability attestation converts a silent privilege escalation into a loud, attributable load failure. The operational consequences: - **Blast radius shrinks to zero-tool-exposure.** A poisoned skill fails to load; the model never sees the malicious tool, so the injection in the PDF has no callable target. The injection text may still ..."
  },
  "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": "c39780b9499fef1539f3df2447d33d288cddeafce151615a123d3aa9ab6a997f",
    "verified_classes": [
      "CapabilityAttestationError",
      "ToolDecl",
      "Manifest",
      "MaterializedTool"
    ],
    "verified_functions": [
      "_verify_manifest_hash",
      "attest_materialized_surface",
      "load_skill"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
