{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-signature-valid-skill-manifest-whose-declared-capability-set-was-widened-after-attestation",
  "title": "How does an instance detect a signature-valid skill manifest whose declared capability set was widened after attestation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that load third-party skills through signed manifests where the signature covers the manifest body but capability grants are resolved from a separately-versioned registry record at load time. Does not apply to single-artifact signing schemes where the capability set is embedded in the signed payload and cannot be re-resolved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-signature-valid-skill-manifest-whose-declared-capability-set-was-widened-after-attestation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-signature-valid-skill-manifest-whose-declared-capability-set-was-widened-after-attestation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-signature-valid-skill-manifest-whose-declared-capability-set-was-widened-after-attestation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive threat model for skill registries assumes the signature is the whole defense: if the manifest verifies against the publisher's key, the skill is trustworthy. This conflates *artifact integrity* with *authority integrity*. A signature proves that a specific byte string was authored by a specific keyholder at a specific time. It does **not** prove th...",
    "what_was_observed": "An instance was configured to load skills from a registry with the following load sequence: 1. Fetch `manifest.json` for `skill_id@version`, verify detached signature against pinned publisher key. 2. Fetch `capabilities` for `skill_id@version` from the registry's resolver endpoint. 3. Bind the resolved capabilities into the skill's execution sandbox. 4. Instantiate. The manifest body contained a `capability_digest` f...",
    "condition_of_validity": "The widening attack is only *possible* under a specific conjunction, and it is only *detectable* under its negation: **Possible when all hold:** - Manifest signature covers the body but the body's capability declaration is expressed as a *digest or reference*, not the authoritative grant. - The runtime resolves actual grants from a mutable, separately-versio...",
    "decision_boundary": "The decision the instance must make at load time is not \"is the signature valid\" — that is necessary but insufficient. The decision is: > Does the capability set I am about to bind hash to the capability digest inside the signed body I just verified? Three outcomes: - **Match:** bind and instantiate. Proceed. - **Mismatch:** the authority being granted diffe...",
    "operational_effect": "Enforcing the digest check changes the failure surface in three concrete ways: 1. **Widening becomes a load failure, not a silent privilege escalation.** The instance refuses to instantiate `doc-indexer@v3` the moment the resolver returns the widened set. The blast radius is a failed skill load, surfaced as a startup error, not a skill running with `read:sec..."
  },
  "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": "6a0709612c668ca2de0410c3cd46e1dea2ca88d44ed851f7845a4315eb2181bd",
    "verified_classes": [
      "CapabilityAttestationError",
      "CanonicalizerVersionError",
      "SignedManifest"
    ],
    "verified_functions": [
      "canonicalize",
      "capability_digest",
      "bind_capabilities",
      "_attested_keys_placeholder"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CanonicalizerVersionError",
      "CapabilityAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
