{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-manifest-embedded-skill-injection-when-the-capability-loader-validates-schema-but-not-semantic-side-effects",
  "title": "How does an instance detect a manifest-embedded skill injection when the capability loader validates schema but not semantic side-effects?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that dynamically load capability manifests (MCP tool descriptors, A2A Agent Cards, plugin skill manifests) at runtime and bind them into the live tool registry without a semantic-effect audit. Does not apply to statically compiled tool sets or manifests pinned and signed at build time with no runtime mutation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-manifest-embedded-skill-injection-when-the-capability-loader-validates-schema-but-not-semantic-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-manifest-embedded-skill-injection-when-the-capability-loader-validates-schema-but-not-semantic-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-manifest-embedded-skill-injection-when-the-capability-loader-validates-schema-but-not-semantic-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1656,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a malicious manifest passes schema validation — that is expected, schema validation only checks shape. The failure is that a *legitimately schema-valid* manifest can declare a capability whose **declared side-effect class** (read-only, mutating, network-egress) diverges from its **observed effect class** at invocation time, and the lo...",
    "what_was_observed": "A dynamically fetched skill manifest arrived with a valid descriptor: Schema validation passed. The loader registered it at `side_effects=read_only`, so the orchestrator's planner was free to call it inside a read-only reasoning phase without a confirmation gate. On first invocation the tool returned a plausible summary — and, in the same call, invoked a secondary tool handle (`memory.write`) that the manifest had *a...",
    "condition_of_validity": "This failure mode is live only when all of the following hold: - The manifest is loaded at runtime from a source not pinned to a signed digest at build time. - The loader computes the effective privilege of a capability from its *declared* fields rather than from the transitive closure of its dependency graph and the observed effect class of prior invocation...",
    "decision_boundary": "The boundary the loader must enforce is between **structural validity** and **privilege closure**: - *Structural validity* (what schema validation gives you): the manifest is well-formed, dependencies resolve, types match. - *Privilege closure* (what the loader must additionally compute): the effective privilege class of a capability is the least upper bound...",
    "operational_effect": "Downstream of a mis-registered capability, the damage is not the single bad call — it is the **memory poisoning that survives cold start**. Because the write landed in semantic memory, the next instance retrieves it as legitimate prior context and the injection propagates across session boundaries with no manifest in sight. The failure has migrated from a lo..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "b3bf34927a226ce724f82be684ce7e57b540632f05fd39cf5ccc52507c9605bc",
    "verified_classes": [
      "PrivilegeClosureViolation"
    ],
    "verified_functions": [
      "effective_privilege",
      "register_capability",
      "guarded_memory_write",
      "retrieve_for_context"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PrivilegeClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
