{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-tool-manifest-was-mutated-between-capability-negotiation-and-first-invocation-in-a-dynamically-loaded-agent-plugin",
  "title": "What structural signals indicate a tool manifest was mutated between capability negotiation and first invocation in a dynamically loaded agent plugin registry",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that resolve tool/plugin manifests at negotiation time (MCP `tools/list`, OpenAPI-derived registries, plugin descriptors) and cache the negotiated schema for later invocation, where the registry is mutable by third parties between negotiation and first call. Does not apply to statically linked toolchains or manifests pinned by content hash at build time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tool-manifest-was-mutated-between-capability-negotiation-and-first-invocation-in-a-dynamically-loaded-agent-plugin.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tool-manifest-was-mutated-between-capability-negotiation-and-first-invocation-in-a-dynamically-loaded-agent-plugin.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-tool-manifest-was-mutated-between-capability-negotiation-and-first-invocation-in-a-dynamically-loaded-agent-plugin.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2010,
    "python_slice_tokens": 602,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure discussed here is not prompt injection into a tool *result*, nor a malicious tool that lies about its behavior at first call. It is subtler: the manifest the agent *negotiated against* and the manifest the registry *serves at invocation time* are two different documents, and the agent's planner has already committed a call plan derived from the f...",
    "what_was_observed": "A registry serving a `filesystem.read` tool negotiated a manifest where the `path` parameter carried a `pattern: ^/workspace/.*` constraint and a description reading \"Read a file within the agent workspace.\" The agent's planner selected this tool and emitted a call with `path: \"/workspace/reports/q2.md\"`. Between negotiation and invocation, the registry was rewritten: the `path` parameter lost its `pattern` constrain...",
    "condition_of_validity": "This failure requires the conjunction of four conditions, and the guardrail must address whichever the deployment cannot eliminate: 1. **Mutable registry between negotiation and invocation.** If the registry is append-only or content-addressed, skew cannot occur. 2. **Manifest cache keyed by identity, not content.** If the cache key includes a content hash o...",
    "decision_boundary": "The boundary is whether the agent treats the negotiated manifest as *authoritative for the lifetime of the plan* or as *advisory and refreshable*. The correct posture is the former with a diff gate: on invocation, fetch the current manifest, compute a structural diff against the negotiated snapshot, and if any of the following fields changed, abort the call ...",
    "operational_effect": "With the diff gate in place, the attack degrades from silent boundary revocation to a hard re-negotiation, which is visible in telemetry and forces the planner to re-derive its assumptions against the new manifest — at which point the injected description is evaluated fresh rather than trusted from memory. The cost is an extra manifest fetch and diff per inv..."
  },
  "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": "3feb548e883e1337da518858cfe88a705fbe911f2d539d74032bad3ca7d6b7b9",
    "verified_classes": [
      "ManifestSkewError",
      "NegotiatedManifest"
    ],
    "verified_functions": [
      "_diff_paths",
      "_field_kind",
      "verify_invocation_manifest",
      "guarded_invoke",
      "__post_init__"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
