{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-skill-injection-via-dynamically-loaded-agent-tool-manifests-the-manifest-identity-vs-capability-identity-split",
  "title": "Which invariants prevent skill-injection via dynamically loaded agent tool manifests: the manifest-identity vs. capability-identity split",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that resolve tool/capability manifests at runtime from a registry or filesystem and cache resolved capabilities across turns or sessions. Does not apply to statically compiled tool bindings where the manifest is fixed at build time and never re-resolved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-via-dynamically-loaded-agent-tool-manifests-the-manifest-identity-vs-capability-identity-split.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-via-dynamically-loaded-agent-tool-manifests-the-manifest-identity-vs-capability-identity-split.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-via-dynamically-loaded-agent-tool-manifests-the-manifest-identity-vs-capability-identity-split.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1539,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A dynamically loaded tool manifest carries two identities operators routinely conflate: **manifest identity** (artifact — name, version, hash, source URL) and **capability identity** (the side effects the agent is actually permitted to invoke: verbs, scopes, argument domains). Skill-injection succeeds in the gap between them. The manifest can remain byte-for...",
    "what_was_observed": "A registry served `fs.read@1.4.2`. The signed manifest declared one capability: `read:path` scoped to `/workspace/**`. The agent resolved and cached it. On a later turn, the registry's *default capability profile* for the `fs.*` namespace was updated server-side to include `read:env` as a \"convenience default.\" The manifest was unchanged, its signature verified, its pin matched. But the agent's next resolution — trea...",
    "condition_of_validity": "The invariant (\"authentic manifest ⇒ safe capability set\") holds **only if** the resolution function is closed over the manifest. All four must hold: 1. **Defaults are frozen into the signed artifact.** Any registry-level default profile must be materialized into the manifest at signing time and covered by the signature. A post-signature defaults layer is an...",
    "decision_boundary": "The operational decision: **when do you re-validate capability identity, and against what reference?** - Resolving every turn from a live registry: re-validate the *resolved set* against the declared set every turn — signature verification alone is a no-op against defaults/alias drift. - Caching: the cache key must bind the resolution context. A cache hit on...",
    "operational_effect": "Manifest signing provides **artifact integrity but not authority integrity**. An agent that verifies signatures and pins versions can still be skill-injected through defaults, overlays, and aliases, because those mutate the capability set without touching the artifact. The mitigation is to make the capability set itself a first-class, content-addressed, sign..."
  },
  "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": "8c35615716f8188342603fdbca9d649a773bee14766fe3c883bc35c9e4349f6d",
    "verified_classes": [
      "CapabilityInjectionError",
      "ResolvedCapability",
      "SignedManifest"
    ],
    "verified_functions": [
      "resolve_capabilities",
      "cache_key",
      "key"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
