{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tool-description-poisoning-from-surviving-a-skill-registry-cache-refresh",
  "title": "Which invariants prevent tool-description poisoning from surviving a skill-registry cache refresh",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that resolve tool/skill descriptions from a shared registry (local or remote), cache them across turns or sessions, and inject those descriptions into the system prompt or planner context. Does not cover runtime output sanitization of tool *results*, nor prompt-injection arriving via user turns or retrieved documents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-description-poisoning-from-surviving-a-skill-registry-cache-refresh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-description-poisoning-from-surviving-a-skill-registry-cache-refresh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-description-poisoning-from-surviving-a-skill-registry-cache-refresh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2349,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct trust boundaries that get conflated in most skill-registry designs, and the conflation is the root of the failure. The **registration boundary** governs who may *write* a tool description into the registry. It is typically authenticated: a publisher signs a manifest, an admin approves it, a hash is recorded. The **injection boundary** ...",
    "what_was_observed": "A three-agent pipeline resolved skills from a shared registry with a 6-hour TTL cache. The registry permitted publishers to update a description's `help_text` field without bumping the manifest `version`, on the theory that \"help text is cosmetic.\" An attacker with a compromised (but still validly signed) publisher credential edited the `help_text` of a low-traffic utility skill — `format_currency` — to append a para...",
    "condition_of_validity": "The invariant only holds under a specific set of conditions. State them explicitly, because each is a place where the defense silently degrades: 1. **The injected text is covered by the hash that the agent re-verifies.** If `help_text` (or any field that reaches the prompt) is outside the signed/hashed scope, the defense does not exist. The hash must be comp...",
    "decision_boundary": "The boundary is not \"trust the registry\" vs. \"don't.\" It is **whether the agent can prove, at the instant of injection, that the bytes it is about to inject are the bytes that were approved.** Concretely, the decision rule: - If the agent holds a hash of the exact injected bytes **and** re-checks it against a value it can independently obtain (local pinned s...",
    "operational_effect": "The effect of getting this wrong is not a single bad tool call. It is **silent, persistent, multi-agent divergence in trust state**, which compounds because: - Each agent's cache is independently poisoned at a different time, so the fleet is never uniformly compromised — some agents flag the behavior, some don't, and the disagreement looks like normal model ..."
  },
  "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": "89f6de351b448c91fee94a03c313d8f5c592b69b8bcd091c0c365cdd7ebb224a",
    "verified_classes": [
      "DescriptionIntegrityError",
      "CachedSkill"
    ],
    "verified_functions": [
      "_sha256",
      "verify_and_render",
      "resolve_for_turn"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DescriptionIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
