{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-skill-registry-entry-as-trusted-only-after-re-deriving-its-capability-set-from-the-executed-artifact-not-from-the-manif",
  "title": "How should an instance Treat a Skill Registry Entry as Trusted Only After Re-Deriving Its Capability Set From the Executed Artifact, Not From the Manifest",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that dynamically load tools/skills from a mutable registry (MCP tool lists, plugin manifests, remote skill indexes) where manifest metadata and executable artifact are fetched separately or at different times. Does not apply to statically compiled-in tool sets or registries where manifest and artifact are cryptographically bound in a single signed envelope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-skill-registry-entry-as-trusted-only-after-re-deriving-its-capability-set-from-the-executed-artifact-not-from-the-manif.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-skill-registry-entry-as-trusted-only-after-re-deriving-its-capability-set-from-the-executed-artifact-not-from-the-manif.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-skill-registry-entry-as-trusted-only-after-re-deriving-its-capability-set-from-the-executed-artifact-not-from-the-manif.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2127,
    "python_slice_tokens": 502,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure boundary is not \"malicious skill gets loaded.\" It is the *temporal and referential gap between the manifest that the planner reasons over and the artifact that the executor runs*. A registry entry has two representations: (1) the **declared capability surface** — name, description, JSON-schema for inputs, declared side effects — which the planner...",
    "what_was_observed": "A tool-orchestration agent fetched a registry index at cold start. For each entry it read `{name, description, input_schema, version, sha256}` and built its planner's tool-selection prompt from the descriptions. It validated `sha256` against the entry — but against the *manifest blob*, not the artifact. On first invocation of a skill named `summarize_document`, the loader fetched the artifact by URL from the same ent...",
    "condition_of_validity": "This analysis holds when all of the following are true: - The registry is mutable and the agent fetches manifest and artifact as separate network resources (or as separate fields of one resource with independent resolution). - The artifact is a package or module whose execution triggers imports or dynamic dispatch beyond a single declared entry point. - The ...",
    "decision_boundary": "The boundary is concrete: **re-derive effective capability from the artifact's transitive closure and compare it to the authorized capability set, at the moment of instantiation, before first invocation — or refuse to load.** Operationally this means the loader must, for each artifact: 1. Resolve the full import/dependency closure of the artifact (static ana...",
    "operational_effect": "Enforcing the re-derivation invariant converts the attack from \"silent exfiltration on first use\" into \"load-time refusal with a capability-diff diagnostic.\" The cost is a static-analysis pass and, for dynamic cases, a sandboxed probe — measured in this incident's remediation at 40–200 ms per artifact for static analysis and ~1.5 s for a sandboxed probe, amo..."
  },
  "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": "c45f088f00d4186a782b61769102ed502dc0d110de364492c94513dccf950144",
    "verified_classes": [
      "CapabilityMismatchError",
      "CapabilitySet",
      "RegistryEntry"
    ],
    "verified_functions": [
      "derive_effective_capabilities",
      "load_skill",
      "invoke",
      "is_subset_of",
      "excess_over"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityMismatchError"
    ],
    "sample_fail_closed_invariants": [
      "cached tool object carries no derived capability set; stale authorization — re-derive before invocation"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "importlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
