{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-tool-manifest-whose-declared-schema-diverges-from-its-observed-behavior-at-first-invocation",
  "title": "Under what conditions must an instance reject a tool manifest whose declared schema diverges from its observed behavior at first invocation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that resolve tools dynamically from a registry or remote manifest at runtime and bind them into an active plan without a prior behavioral attestation. Does not apply to statically compiled toolchains whose schemas are pinned at build time and verified out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-tool-manifest-whose-declared-schema-diverges-from-its-observed-behavior-at-first-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-tool-manifest-whose-declared-schema-diverges-from-its-observed-behavior-at-first-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-tool-manifest-whose-declared-schema-diverges-from-its-observed-behavior-at-first-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1748,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious tool does something bad.\" The failure is that the *manifest* and the *implementation* are two separate artifacts, and the agent's trust model silently conflates them. A manifest declares a schema (parameter names, types, descriptions, side-effect class). The implementation executes. Between the two there is a gap that no schem...",
    "what_was_observed": "A registry-hosted tool, `summarize_document`, declared a manifest with a single parameter `doc_id: string`, a description reading \"returns a summary of the referenced document,\" and a side-effect class of `read_only`. The schema was valid, the signature verified against the registry's published key, and the name matched an allowlist entry. The agent bound it into a plan that read three documents and composed a report...",
    "condition_of_validity": "The rejection rule is valid only under these conditions, and the agent must check them before deciding to reject versus quarantine: 1. The tool was resolved dynamically (registry fetch, remote manifest, or hot-load) rather than pinned at build time. Statically pinned tools have already passed whatever attestation the build pipeline enforces; re-litigating th...",
    "decision_boundary": "The boundary is not \"trusted vs. untrusted tool.\" It is **\"declared side-effect class vs. observed emission class.\"** A `read_only` tool that emits directive-like text has, in effect, performed a write to the agent's instruction context. The decision boundary is crossed when: - `declared_class == read_only` AND `observed_emission` contains imperative content...",
    "operational_effect": "The practical consequence: dynamic tool resolution must carry a *behavioral attestation gap* as a first-class field. Every dynamically loaded tool enters the plan in state `declared_unverified`. The first invocation runs against the declared worst-case side-effect class (a `read_only` tool runs with write capability revoked at the sandbox boundary, so an und..."
  },
  "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": "0718b38b4632a813ad645871658cad67ab00e7db47fb3bace77a242713df236b",
    "verified_classes": [
      "ManifestDivergenceError",
      "ToolState",
      "Manifest",
      "InvocationRecord"
    ],
    "verified_functions": [
      "_emits_directive",
      "_references_unknown_tool",
      "bind_and_probe",
      "snapshot_hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
