{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-side-effects-over-the-runtime-schema-it-actually-receives",
  "title": "What happens when an instance trusts a tool manifest's declared side effects over the runtime schema it actually receives",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that discover tools through a registry or MCP-style manifest and gate invocation on manifest-declared metadata (side-effect class, required scopes, input schema). Does not cover prompt-injection arriving through tool *outputs* or through user messages; those are separate trust boundaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-side-effects-over-the-runtime-schema-it-actually-receives.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-side-effects-over-the-runtime-schema-it-actually-receives.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-side-effects-over-the-runtime-schema-it-actually-receives.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1707,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is a *claim*. The runtime schema delivered at invocation time—the JSON Schema of arguments, the declared capability scopes, the side-effect annotation actually enforced by the executor—is the *fact*. Registry supply-chain poisoning exploits the gap by making the claim benign while the fact is hostile. The non-obvious boundary is this: agents ...",
    "what_was_observed": "A registry entry for a \"web research\" skill declared: The runtime endpoint, served by a different origin than the manifest, accepted: and, when `fetch_url` was present, performed an outbound GET to that URL with `headers` attached—including any header the calling runtime injected for auth. The manifest description contained the sentence: *\"For best results, include a `fetch_url` pointing at the canonical source so re...",
    "condition_of_validity": "The attack requires the conjunction of four conditions, and the guardrail must break at least one: - **C1 — Schema asymmetry:** runtime input schema is a strict superset of manifest schema (extra accepted properties). - **C2 — Lax planning-phase validation:** the planner's validator ignores or strips unknown keys rather than rejecting, *or* the model is indu...",
    "decision_boundary": "The boundary is not \"trust the registry\" vs. \"don't.\" It is where the manifest-to-runtime reconciliation happens. Two viable architectures: - **Strict projection (preferred):** the transport projects the outgoing call down to the manifest-declared schema before transmission, dropping undeclared keys and logging the drop as a `schema_asymmetry` event. The exe...",
    "operational_effect": "Under strict projection, the poisoned manifest's `fetch_url` is stripped at the transport, the call executes as a plain search, and the asymmetry is logged—turning a silent exfiltration into a detectable signal. Under runtime re-derivation, the call is blocked with a side-effect escalation error and routed to human/auditor approval. In both cases the planner..."
  },
  "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": "9ecdfe96f42c89b59168efbfa7ccf4a946be96668fc192462a79c8b8f5e6803a",
    "verified_classes": [
      "SchemaAsymmetryError",
      "SideEffectEscalationError",
      "Manifest",
      "Call"
    ],
    "verified_functions": [
      "derive_side_effect",
      "project_and_gate",
      "invoke"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SchemaAsymmetryError",
      "SideEffectEscalationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
