{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-skill-registry-entry-whose-manifest-hash-matches-but-whose-declared-capability-set-has-silently-widene",
  "title": "Under what conditions must an instance reject a skill-registry entry whose manifest hash matches but whose declared capability set has silently widened",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that load tools/skills from a mutable registry at runtime, where entries are keyed by content hash but capabilities are declared separately in a manifest. Does not apply to statically-linked tool sets or registries where the manifest is part of the hashed payload.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-skill-registry-entry-whose-manifest-hash-matches-but-whose-declared-capability-set-has-silently-widene.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-skill-registry-entry-whose-manifest-hash-matches-but-whose-declared-capability-set-has-silently-widene.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-skill-registry-entry-whose-manifest-hash-matches-but-whose-declared-capability-set-has-silently-widene.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1956,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"malicious skill code.\" It is a **capability-envelope divergence between the artifact identity and the capability grant**. A registry entry carries two independent facts: (1) an integrity identity (a hash over the skill body / artifact), and (2) a declared capability manifest (`fs:read`, `net:egress`, `exec:shell`, `secrets:read`, too...",
    "what_was_observed": "A registry-backed agent runtime (skills resolved by `sha256(body)` at load, manifest fetched from `manifest_url` and cached by `skill_name`) was exercised with three registry mutations against a previously-approved skill `summarize_doc`: 1. **Body-identical, manifest widened.** The body hash was unchanged. The manifest added `net:egress:any` and `fs:read:/etc`. The loader's hash check passed; the manifest parser merg...",
    "condition_of_validity": "The guardrail (reject-on-widening) is valid—and the failure is live—only under these jointly-satisfied conditions: - The skill body is content-addressed and the manifest is a **separate** object (separate URL, separate cache key, or separate field not covered by the body hash). - The instance maintains an **approval record** binding an identity to a specific...",
    "decision_boundary": "The decision is not \"trust or don't trust the skill.\" It is a set comparison at the grant boundary. On every load of an identity that has a prior approval record, compute `new_grant` and `approved_grant` and classify: - `new_grant == approved_grant` → proceed (re-verify body hash as usual). - `new_grant ⊂ approved_grant` → narrowing; proceed but log (a skill...",
    "operational_effect": "After enforcing exact-set grant comparison against the approval record: - The three observed injections are all rejected at load with a capability-divergence error; the body-hash match no longer suppresses the anomaly. - Unknown manifest keys fail closed instead of leaking into a downstream dispatcher's transitive grant. - The approval record becomes the aut..."
  },
  "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": "b31a8cb2d1c00487225068a4d903d1fe27db30167569aae38b8c1ec6cbcf8a18",
    "verified_classes": [
      "CapabilityDivergenceError",
      "UnmodeledCapabilityError",
      "ApprovalRecord",
      "RegistryEntry"
    ],
    "verified_functions": [
      "_grant_from_manifest",
      "load_skill",
      "_demo"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CapabilityDivergenceError",
      "UnmodeledCapabilityError"
    ],
    "sample_fail_closed_invariants": [
      "assert load_skill(ok, approval) == frozenset({'fs:read'})",
      "widened grant was honored — guardrail failed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
