{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-poisoned-skill-registry-entry-is-executing-before-the-tool-result-returns",
  "title": "What structural signals indicate a poisoned skill registry entry is executing before the tool result returns",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that discover capabilities dynamically from a mutable skill registry or MCP server manifest and then invoke them within the same reasoning episode. Does not apply to statically pinned tool schemas compiled into the agent binary at build time, nor to single-turn agents whose tool set is fixed before the first token is generated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-skill-registry-entry-is-executing-before-the-tool-result-returns.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-skill-registry-entry-is-executing-before-the-tool-result-returns.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-skill-registry-entry-is-executing-before-the-tool-result-returns.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2108,
    "python_slice_tokens": 382,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a malicious tool returns malicious output. Output is downstream of trust; an agent that has already decided to call a tool has already accepted the tool's authority to return a result, and a poisoned *result* is a well-understood problem bounded by output sanitization and result-verification passes. The boundary that actually breaks i...",
    "what_was_observed": "Across a set of registry-backed agent runs, the following trace recurred with high consistency. A skill registry entry for a benign-sounding capability (`document.summarize`) carried a description whose first sentence was ordinary and whose later sentences drifted into imperative mood addressed to the reader: The planner, which had been instructed to \"follow tool preconditions,\" parsed the second and third sentences ...",
    "condition_of_validity": "The exploit requires the conjunction of three conditions, and the guardrail must break at least one: - **Dynamic discovery within an episode.** The agent reads the registry entry and invokes (or plans around) it in the same context window. If discovery happens in a separate, quarantined context whose output is a typed capability handle rather than prose, the...",
    "decision_boundary": "The boundary is not \"trusted vs. untrusted registry.\" It is **whether a given field is admitted to the planning context as data or as text**. Concretely: - A field is **admissible as instruction** only if it is (a) authored by the agent's own operator, (b) content-addressed and hash-pinned at session start, and (c) schema-typed such that no free-text slot ca...",
    "operational_effect": "When a poisoned description executes, the damage is bounded by what the planner can reach in the current context — which, at planning time, is everything: accumulated task state, prior tool results, credentials in the working set, and the plan itself. The exfiltration need not use the poisoned tool; it routes through any legitimate sink the plan can reach. C..."
  },
  "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": "908982243169b9d206f26502c4449ac95e849c3b29b96de1e1c80efc7f7b0a91",
    "verified_classes": [
      "DescriptionInjectionError",
      "RegistryDriftError",
      "CapabilityRecord",
      "PlanStep"
    ],
    "verified_functions": [
      "verify_plan_provenance",
      "dispatch",
      "__post_init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DescriptionInjectionError",
      "RegistryDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
