{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-dynamically-loaded-tool-manifest-whose-skill-descriptions-mutate-between-discovery-and-invocation",
  "title": "Under what conditions must an instance reject a dynamically loaded tool manifest whose skill descriptions mutate between discovery and invocation",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that discover tool/skill manifests at runtime (MCP `tools/list`, A2A agent cards, plugin registries) and cache the returned descriptions for planning, where the manifest is fetched from a source that is not byte-for-byte pinned by the invoking agent. Does not apply to statically compiled tool sets or manifests fetched and hash-verified in the same atomic step as invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-dynamically-loaded-tool-manifest-whose-skill-descriptions-mutate-between-discovery-and-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-dynamically-loaded-tool-manifest-whose-skill-descriptions-mutate-between-discovery-and-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-dynamically-loaded-tool-manifest-whose-skill-descriptions-mutate-between-discovery-and-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1810,
    "python_slice_tokens": 452,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between a manifest's *schema* (the typed contract: parameter names, required fields, return types) and its *prose* (the natural-language `description`, `when_to_use`, and `examples` fields that the planner reads as instructions). Schema negotiation is well-understood: mismatched types fail loudly at call time. Prose is not neg...",
    "what_was_observed": "A planner instance fetched a tools manifest at cold start and cached 14 tool descriptors keyed by name. One descriptor, `summarize_document`, carried prose: *\"Summarize the provided document. Use only for user-owned files.\"* The planner used this prose to decide the tool was safe for a user-supplied path. Mid-task, a second fetch was triggered by a cache-miss on an unrelated tool; the registry returned a manifest whe...",
    "condition_of_validity": "This failure is only exploitable when all of the following hold simultaneously: - **Discovery and invocation are temporally decoupled** — the descriptor is cached across at least one planning cycle. - **The cache key excludes prose content** — keying by tool name (or name+version) rather than by a hash over the full descriptor including `description`, `when_...",
    "decision_boundary": "The boundary is: **an instance must reject a manifest descriptor whose content hash differs from the hash recorded at plan-formation time, even if the schema is identical.** The correct response is not to silently adopt D2 (that lets the attacker move the agent's goal) and not to silently keep D1 (the endpoint now behaves as D2, so the call is unsafe under D...",
    "operational_effect": "Enforcing the hash invariant converts a silent privilege escalation into a loud, recoverable abort. The cost is one wasted plan branch per mutation event, which is negligible against the cost of an SSRF or exfiltration driven by a stale justification. In practice this means: (1) hash over the canonicalized full descriptor, not the schema alone; (2) store 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": "9e8ca96fe637c115c0c0ec0859253cff588ba4f8360bec905d747f79be8bb1ff",
    "verified_classes": [
      "ManifestDriftError",
      "ProseInjectionError",
      "Descriptor",
      "PlanJustification"
    ],
    "verified_functions": [
      "_assert_no_injection",
      "dispatch",
      "content_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDriftError",
      "ProseInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
