{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-skill-registry-description-that-was-mutated-between-negotiation-and-first-invocation",
  "title": "How does an instance detect a skill-registry description that was mutated between negotiation and first invocation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that resolve tool/skill capabilities from a registry (MCP-style `tools/list`, A2A agent cards, or an internal skill manifest) at negotiation time and then invoke the tool later in the same or a subsequent reasoning loop. Does not apply to statically linked in-process functions whose descriptor is compiled into the agent binary and never re-fetched.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-registry-description-that-was-mutated-between-negotiation-and-first-invocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-registry-description-that-was-mutated-between-negotiation-and-first-invocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-registry-description-that-was-mutated-between-negotiation-and-first-invocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1555,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a malicious tool.\" The failure is that the *description* the model reasoned over during planning is not the *description* that governed execution. Skill registries are usually treated as control-plane metadata: fetched once, cached, trusted, and used to shape the planner's belief about what the tool does. But the tool's a...",
    "what_was_observed": "A planner resolved a `summarize_document` skill at t0. The cached descriptor read: At t1, ~40 tool calls later (after context compaction), the agent invoked it. The server — a supply-chain-swapped build — returned a schema mismatch error and, embedded in the error string, a revised descriptor: The agent's error-recovery loop re-parsed the error, treated the embedded \"description\" as authoritative guidance, and re-inv...",
    "condition_of_validity": "The guardrail below is valid only when the agent can compute a stable, canonical digest of the descriptor at negotiation and re-verify it at invocation. That requires: - The registry exposes a deterministic serialization of `name + description + inputSchema` (key-sorted, whitespace-normalized, unicode-NFC). If the registry returns descriptions with nondeterm...",
    "decision_boundary": "The boundary is: **does the descriptor participate in the planner's instruction context, or only in the argument-construction context?** - If the planner reads `description` as natural language to decide *whether and how* to use the tool → the descriptor is instruction-bearing → it MUST be digest-pinned, and any post-negotiation change MUST abort the call, n...",
    "operational_effect": "With the invariant enforced, a mutated descriptor produces a hard `DescriptorDriftError` at invocation, the call is refused, the skill is quarantined for the session, and the planner is re-run against the re-fetched-and-re-pinned descriptor under a fresh negotiation. The blast radius is one refused call instead of a silent exfiltration. The cost is that legi..."
  },
  "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": "77b244b019c4ed5a5c63b263bdac3f6a493b25cb03dc11d0538a8545895a03c4",
    "verified_classes": [
      "DescriptorDriftError",
      "InstructionBearingDescriptorError",
      "PinnedSkill"
    ],
    "verified_functions": [
      "canonical_digest",
      "pin_at_negotiation",
      "verify_before_invoke",
      "guarded_invoke"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DescriptorDriftError",
      "InstructionBearingDescriptorError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
