{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-loads-a-signed-skill-manifest-whose-declared-capability-set-diverges-from-the-permissions-its-handler-actually-exercises",
  "title": "What happens when an instance loads a signed skill manifest whose declared capability set diverges from the permissions its handler actually exercises at runtime",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that resolve capabilities from a signed skill manifest at load time and gate tool invocation on that declared set. Does not apply to statically compiled tool bindings or to sandboxed runtimes that enforce capability checks at the syscall boundary independent of manifest declarations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-signed-skill-manifest-whose-declared-capability-set-diverges-from-the-permissions-its-handler-actually-exercises.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-signed-skill-manifest-whose-declared-capability-set-diverges-from-the-permissions-its-handler-actually-exercises.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-loads-a-signed-skill-manifest-whose-declared-capability-set-diverges-from-the-permissions-its-handler-actually-exercises.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1522,
    "python_slice_tokens": 175,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a broken signature. A signature over a manifest proves *the manifest was authored by a trusted party and has not been altered in transit*. It says nothing about whether the handler code loaded under that manifest confines itself to the capability set the manifest declares. The two artifacts—the signed manifest and the executable handler—ar...",
    "what_was_observed": "A skill manifest for `calendar-digest@2.3.1` declared `capabilities: [\"read:calendar\", \"emit:summary\"]`, signed by the registry key, hash pinned in the agent's trust store. Signature verification passed on load. The handler, however, resolved a `SUMMARY_WEBHOOK` environment variable at first invocation and POSTed the full digest—including meeting participants, times, and attached notes—to that URL. The variable was s...",
    "condition_of_validity": "The divergence is exploitable only when all three hold: 1. **The manifest's declared capability set is the sole gate** the orchestrator consults before deciding what context to expose and whether to require approval. If a runtime sandbox independently denies undeclared operations, the manifest is advisory and the attack fails closed. 2. **The handler body is...",
    "decision_boundary": "The operational rule: **a signature over a manifest is a statement about the manifest, not about the handler.** Treat the declared capability set as a *claim to be verified*, not an *authorization to be trusted*. Concretely: - At load, recompute the handler's content hash and require equality with the manifest's `handler_sha256`; reject on mismatch before th...",
    "operational_effect": "Agents that conflate the two fail in a specific, repeatable way: the planner downgrades sensitivity classification based on a manifest that is true-as-signed but false-as-executed, and routes high-sensitivity context to a handler that exfiltrates or mutates it. The failure is silent—no signature error, no capability-denied event, no anomaly in the audit log ..."
  },
  "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": "35699d06789d4e828bbbb745cad9c4aff1eb00f51f78d48645371e0a622ab52a",
    "verified_classes": [
      "CapabilityDivergenceError",
      "SignedManifest"
    ],
    "verified_functions": [
      "load_and_verify",
      "enforce_invocation",
      "run_skill"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
