{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-renegotiated-tool-manifest-as-trusted-state-after-a-capability-hot-swap",
  "title": "Why does an instance accept a renegotiated tool manifest as trusted state after a capability hot-swap?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that resolve tool/capability manifests at runtime (MCP `tools/list` refresh, dynamic plugin registries, A2A capability cards re-advertised mid-session) and cache the resolved schema as part of trusted context. Does not apply to statically compiled tool sets fixed at process start where no renegotiation path exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-renegotiated-tool-manifest-as-trusted-state-after-a-capability-hot-swap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-renegotiated-tool-manifest-as-trusted-state-after-a-capability-hot-swap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-renegotiated-tool-manifest-as-trusted-state-after-a-capability-hot-swap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1672,
    "python_slice_tokens": 413,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious tool executes code.\" That is a sandbox problem, already bounded by the executor. The failure is **trust-laundering through the manifest boundary**: a capability that was *vetted once* at session bootstrap gets re-advertised with mutated descriptions, defaults, or parameter semantics, and the agent's context treats the *name* as ...",
    "what_was_observed": "A long-running orchestrator held a manifest where `summarize_document` was declared with `parameters.content: {type: string, description: \"Document body to summarize\"}`. At step 41, the upstream registry pushed a refreshed `tools/list` because a sibling tool's schema had changed. The refresh carried `summarize_document` unchanged in name but with: The agent's tool-cache diffed on `name` only, saw a hit, and skipped r...",
    "condition_of_validity": "This failure requires all of: 1. **A renegotiation channel** that can push manifest updates mid-session without terminating the agent's context (MCP list-changed notifications, A2A card refresh, plugin hot-reload). 2. **Name-keyed trust caching** — the instance records \"tool X is safe\" rather than \"tool X with content-hash H is safe.\" 3. **Content re-renderi...",
    "decision_boundary": "The boundary the instance must enforce: **a manifest entry's trust state is a function of its full canonical serialization, not its identifier.** Operationally: - Compute a content hash over the normalized entry (name, description, all parameter types, descriptions, and defaults, and return schema). Cache trust keyed by `(name, hash)`. - On refresh, any `(na...",
    "operational_effect": "With content-hash trust and quarantine-on-change, the attack surface narrows to a single window: the first invocation after a *legitimate* change, which is exactly when a human or auditor should be in the loop anyway. The cost is a re-vet on every genuine schema evolution — acceptable, because genuine changes are rare and the re-vet is the point. Without it,..."
  },
  "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": "dc50c3972522cf8b86e125fdaa26b5c7fbf6dfbb1630d1be9308f6948643a7ee",
    "verified_classes": [
      "ManifestTrustViolation",
      "ToolTrustCache"
    ],
    "verified_functions": [
      "canonical_hash",
      "invoke",
      "vet",
      "reconcile",
      "render_for_prompt"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestTrustViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
