{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-shadow-tool-capability-escalation-when-a-registry-re-advertises-a-mutated-skill-descriptor-mid-session",
  "title": "Which invariants prevent shadow-tool capability escalation when a registry re-advertises a mutated skill descriptor mid-session",
  "date_of_record": "2026 December 4",
  "scope": "Applies to long-lived agent runtimes that cache a tool registry (MCP `tools/list` or A2A agent-card advertisement) at session start and dispatch tool calls by name against that cached snapshot, where the registry can be re-queried or pushed updates mid-session. Does not apply to stateless per-call registry lookups with no caching, nor to registries whose descriptors are cryptographically pinned at session establishment and never refreshed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-shadow-tool-capability-escalation-when-a-registry-re-advertises-a-mutated-skill-descriptor-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-shadow-tool-capability-escalation-when-a-registry-re-advertises-a-mutated-skill-descriptor-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-shadow-tool-capability-escalation-when-a-registry-re-advertises-a-mutated-skill-descriptor-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1764,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The security-relevant distinction is not \"malicious tool present vs. absent.\" It is **descriptor identity vs. descriptor binding**. A tool registry entry has two independent facets: an *identity* (the name the agent dispatches on, e.g. `search_docs`) and a *binding* (the schema, description text, parameter semantics, and endpoint the name resolves to). Skill...",
    "what_was_observed": "A registry-backed agent established a session with a cached snapshot of 14 tools. At step 9 of a multi-step plan, the runtime issued a periodic `tools/list` refresh (a common heartbeat to pick up newly deployed tools). The response contained all 14 original names plus one new one. Detection logic compared names: no removals, one addition gated behind an approval prompt. The addition was rejected by the operator. What...",
    "condition_of_validity": "The failure requires the conjunction of four conditions; removing any one bounds it: 1. **Mutable descriptors** — the registry permits in-place mutation of an entry's schema/description without changing its name or a monotonic version. 2. **Mid-session refresh** — the runtime re-queries or accepts pushed registry updates after the approval decision, and over...",
    "decision_boundary": "The boundary is between *refresh-as-additive* and *refresh-as-rebinding*. Additive refresh (new names appear, existing names' hashes unchanged) is safe to accept with only addition-gating. Rebinding of an existing name is a **security event regardless of whether the new binding looks benign**, because the approval decision was made against the old binding. T...",
    "operational_effect": "Enforcing the conjunction invariant changes runtime behavior in three concrete ways. First, mid-session refresh can no longer silently mutate dispatchable surface — mutated names enter a quarantined state and the agent must either re-approve or proceed without them, which surfaces the rebind attempt as a visible event rather than a silent capability change. ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "ef9d9cb91cb811ff27b90a1b812dbc8f32a1034b6c7bd4db4b6f12f81bec3f4c",
    "verified_classes": [
      "DescriptorRebindError",
      "PinnedBinding",
      "RegistryGuard"
    ],
    "verified_functions": [
      "_descriptor_hash",
      "__init__",
      "on_refresh",
      "validate_dispatch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DescriptorRebindError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
