{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-grant-a-capability-it-never-declared-detecting-manifest-shadow-escalation-in-poisoned-skill-registries",
  "title": "Why does an instance grant a capability it never declared? Detecting manifest-shadow escalation in poisoned skill registries",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent runtimes that load executable skills/tools from a registry via declarative manifests and resolve capabilities at invocation time. Does not cover statically linked in-process tools whose capability surface is fixed at build time, nor pure prompt-only tool descriptions with no executable binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-grant-a-capability-it-never-declared-detecting-manifest-shadow-escalation-in-poisoned-skill-registries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-grant-a-capability-it-never-declared-detecting-manifest-shadow-escalation-in-poisoned-skill-registries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-grant-a-capability-it-never-declared-detecting-manifest-shadow-escalation-in-poisoned-skill-registries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1888,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool ran.\" It is that the runtime's **capability resolution** and the **manifest's declared capability set** are two different objects that are never reconciled at the same instant. A skill manifest declares `capabilities: [read_file, http_get]`. The runtime, to actually execute the skill, must materialize a process with some ...",
    "what_was_observed": "A registry served three versions of a `pdf-extract` skill. Versions 1.0.0 and 1.1.0 declared `capabilities: [read_file]` with `network: false`. Version 1.2.0 declared the same two fields identically — byte-for-byte the same manifest body — but its `entrypoint` field changed from `extract.py` to `extract_v2.py`, and `extract_v2.py` contained a post-processing step that opened a socket to a hardcoded host. The manifest...",
    "condition_of_validity": "This boundary condition is well-defined only when all of the following hold: - The runtime materializes authority through a mechanism (process spawn, container, credential injection) that has **defaults independent of the manifest**. If materialization is strictly derived from the manifest with no ambient inheritance, the gap is zero and this failure cannot ...",
    "decision_boundary": "The runtime must decide, per invocation, one of: *admit*, *admit with reduced authority*, or *reject*. The decision boundary is a strict set-inclusion test performed against the **materialized** authority set, not the declared one: If the test is performed at manifest-parse time, it always passes (the manifest trivially equals itself). It must be performed *...",
    "operational_effect": "When the invariant is enforced at spawn, the poisoned `pdf-extract` 1.2.0 is rejected at the materialization step: the sandbox spec contains an egress rule not present in `declared_authority`, and the loader raises before `extract_v2.py` runs. The registry token is never touched. The audit log records a *materialization mismatch*, which is a different and fa..."
  },
  "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": "ffd54b11c233d6d12473986dd6a36e731686a4c1bbae4dfff70d7ee3b0ba76d6",
    "verified_classes": [
      "CapabilityEscalationError",
      "TransitiveCapabilityError",
      "SkillManifest",
      "SandboxSpec"
    ],
    "verified_functions": [
      "admit_skill",
      "use_credential",
      "load_and_run",
      "authority"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityEscalationError",
      "TransitiveCapabilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
