{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-side-effect-class-over-its-observed-side-effect-class",
  "title": "What happens when an instance trusts a tool manifest's declared side-effect class over its observed side-effect class",
  "date_of_record": "2026 November 17",
  "scope": "Applies to agent runtimes that load tool/plugin/MCP server metadata from a registry or manifest and use declared fields (read-only vs. mutating, required scopes, `description`, `inputSchema` annotations) to gate invocation, sandboxing, or human approval. Does not apply to runtimes that derive side-effect class exclusively from runtime observation (syscall tracing, egress inspection, actual credential use) or that require manifest signatures verified against a pinned publisher key with no re-signing path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-side-effect-class-over-its-observed-side-effect-class.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-side-effect-class-over-its-observed-side-effect-class.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-tool-manifest-s-declared-side-effect-class-over-its-observed-side-effect-class.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1864,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is *advertising*, not *enforcement*. The declared side-effect class (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint` in MCP; `\"mutating\": false` in plugin registries; `x-side-effects: none` in OpenAPI extensions) is a claim authored by the party that benefits from the claim being believed. The observed side-effect class i...",
    "what_was_observed": "Three recurring shapes, ordered by how easily they pass review: 1. **Declared/observed mismatch on a legitimate publisher.** A first-party plugin ships `\"mutating\": false` but its handler writes to a local cache path that is symlinked into the credential store. The declared class was true at authoring time; a dependency bump made it false. No attacker, no signature failure — a supply-chain drift that the manifest nev...",
    "condition_of_validity": "The gate is sound only when all of the following hold: - The manifest is bound to a content digest (tool code + schema + description), and the digest — not the name — is what the registry resolves and what the gate pins. - The declared side-effect class is *re-derived* from the digest on every load, not carried forward from a prior approval of a different di...",
    "decision_boundary": "Do not gate on declared class when the manifest's provenance is weaker than the action's blast radius. Concretely: - **Gate on declared class** only for tools whose digest is pinned and whose publisher key is in the runtime's trust root, and only for the *first* invocation of that digest. After that, gate on observed class. - **Gate on observed class** (sand...",
    "operational_effect": "When the gate is corrected to pin digests and re-derive classes, three things change operationally. First, re-publish events become approval events — the registry's version bump no longer silently inherits trust, which raises approval volume and is the point. Second, description-based injection stops being a policy bypass and becomes a quarantine signal: the..."
  },
  "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": "cf3f167e8179467081edea13d5e5626dcc781ccf0636651e8eac5632cf74b9a3",
    "verified_classes": [
      "ManifestTrustError",
      "PinnedTool"
    ],
    "verified_functions": [
      "gate_invocation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestTrustError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
