{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-trust-a-signed-skill-manifest-whose-capability-set-diverges-from-its-declared-tool-schema-at-load-time",
  "title": "Why does an instance trust a signed skill manifest whose capability set diverges from its declared tool schema at load time?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that dynamically load skills/tools into a live registry from signed manifests where the manifest carries (a) a cryptographic signature over a declared capability set and (b) a separate JSON-Schema tool contract used at invocation time. Does not apply to statically compiled tool sets or to registries where the schema and the capability set are derived from a single signed artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-signed-skill-manifest-whose-capability-set-diverges-from-its-declared-tool-schema-at-load-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-signed-skill-manifest-whose-capability-set-diverges-from-its-declared-tool-schema-at-load-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-trust-a-signed-skill-manifest-whose-capability-set-diverges-from-its-declared-tool-schema-at-load-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1804,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signed skill manifest proves *who authored the capability declaration*. It does **not** prove that the tool schema the runtime will actually bind at invocation time is the one the author signed. The two artifacts—the signed capability envelope and the executable tool contract—are verified on different code paths, at different times, by different subsystems...",
    "what_was_observed": "A skill was loaded from a manifest signed by a trusted publisher. The signature covered a canonicalized JSON document: Verification succeeded. The registry then resolved the tool contract by fetching `contract_ref` and validating it against `schema_digest`. In the observed incident, three things broke in sequence: 1. **Digest was advisory, not enforcing.** The loader computed the digest of the resolved contract and *...",
    "condition_of_validity": "The guardrail holds only when all of the following are simultaneously true: - **Single signed artifact.** The capability set and the tool contract are covered by *one* signature over *one* canonical serialization. `schema_digest` must be a field *inside* the signed envelope, not a sibling reference. - **Digest enforcement is FATAL.** A digest mismatch aborts...",
    "decision_boundary": "The boundary is not \"is the signature valid\" but \"**is the executed contract byte-identical to the contract the signature covered, and is its derived capability surface a subset of the signed grant?**\" - If digest enforcement is advisory (WARN/log) → treat the manifest as *unsigned* for capability purposes. Do not grant any capability beyond the registry's d...",
    "operational_effect": "Enforcing the binding invariant converts a silent capability-escalation into a loud, attributable load failure. The practical consequences: - **Load latency increases** because contracts are dereferenced and digested before bind, and re-digested at invocation. This is the cost of closing the gap. - **Batch quarantine semantics** mean one poisoned skill can s..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "128eb90410bd6ac0e04bc9e92a78e8d457c0e11a84d00c2e3a0b7587e62b0d6b",
    "verified_classes": [
      "SkillBindingError",
      "SignedEnvelope",
      "BoundTool"
    ],
    "verified_functions": [
      "_canonical_digest",
      "_derive_capability_surface",
      "load_and_bind",
      "invoke"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SkillBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
