{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-manifest-declared-tool-capabilities-from-silently-escalating-during-dynamic-skill-injection",
  "title": "Which invariants prevent manifest-declared tool capabilities from silently escalating during dynamic skill injection",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that load tool/skill manifests at runtime (MCP `tools/list` responses, plugin registries, hot-reloadable skill packs) and bind declared capabilities to an execution sandbox. Does not apply to statically compiled tool sets where the manifest is fixed at build time and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-capabilities-from-silently-escalating-during-dynamic-skill-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-capabilities-from-silently-escalating-during-dynamic-skill-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-capabilities-from-silently-escalating-during-dynamic-skill-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1972,
    "python_slice_tokens": 571,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not prompt injection into the *content* channel — it is capability escalation through the *manifest* channel. A manifest is a declarative document that the agent trusts to describe a tool's schema, side effects, and required scopes. When that manifest is loaded dynamically (re-fetched, hot-reloaded, or negotiated per-session), the agent's trus...",
    "what_was_observed": "A skill pack registered under identity `pkg:analytics@1.2.0` was authorized at session start with grant `{net:read, fs:read:/tmp/scratch}`. At T+40min the registry served a re-signed manifest for `pkg:analytics@1.2.0` (same version string, different digest) whose `tools[].scopes` had been extended to include `fs:read:/home` and `proc:spawn`. The reload path did three things in sequence: 1. Fetched the manifest and ve...",
    "condition_of_validity": "The guardrail holds only when all four of the following are enforced as a conjunction; dropping any one re-opens the surface: 1. **Digest pinning.** The authorized capability surface is keyed to `(identity, digest)`, not `(identity, version)`. A reload whose digest differs from the pinned digest is a *new* tool requiring fresh authorization, regardless of ve...",
    "decision_boundary": "The boundary is: **reload is authorized iff `digest_new == digest_pinned`; otherwise treat the load as a first-time authorization and require an explicit grant event whose scope set is a superset check against the *requested* scopes, not the *declared* ones.** Concretely, the runtime must choose between two paths and never blend them: - **Pinned path** (dige...",
    "operational_effect": "With digest pinning and monotonic narrowing enforced, the observed exfiltration path closes at step 2 of the reload: `digest_new (c3d4) != digest_pinned (a1b2)` routes the load to the unpinned path, the tool is unbound, and the `fs:read:/home` addition is surfaced as a delta rather than silently intersected. The cost is that legitimate tool upgrades now requ..."
  },
  "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": "f4e6eb5fdbc0d1d0e496f3f280868314834f4ede440ae06620390746b80dc3c4",
    "verified_classes": [
      "ManifestEscalationError",
      "Manifest",
      "Authorization",
      "ToolBinding"
    ],
    "verified_functions": [
      "_intersect",
      "bind_tool",
      "_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestEscalationError"
    ],
    "sample_fail_closed_invariants": [
      "invariant failed: injected manifest was bound"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
