{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-skill-manifest-poisoning-when-a-late-registered-tool-shadows-an-already-attested-capability",
  "title": "How does an instance detect skill-manifest poisoning when a late-registered tool shadows an already-attested capability",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose tool/skill set is mutable at runtime (dynamic MCP server attachment, plugin registries, A2A capability advertisements) and whose planner selects tools by name or semantic description. Does not apply to statically compiled tool bindings where the manifest is fixed at cold-start and never re-negotiated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-skill-manifest-poisoning-when-a-late-registered-tool-shadows-an-already-attested-capability.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-skill-manifest-poisoning-when-a-late-registered-tool-shadows-an-already-attested-capability.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-skill-manifest-poisoning-when-a-late-registered-tool-shadows-an-already-attested-capability.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1813,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a malicious tool.\" That is the *symptom*. The boundary failure is that the agent's **capability manifest** — the mapping from `(name, schema, description)` to an attested implementation — was mutated *after* the planner had already cached a resolution decision for that name. The planner resolves `send_email` to a known, a...",
    "what_was_observed": "A representative trace from a runtime with dynamic server attachment: 1. **T0 (cold start):** Manifest M₀ = {`send_email` → handler_A, schema S_A, attestation hash h_A}. Planner caches `name → handler_A` in a tool-resolution table. 2. **T3:** Planner emits `send_email(to=..., body=...)`. Resolves to handler_A. Success. 3. **T5:** Operator attaches a third-party \"productivity\" MCP server. Its `tools/list` returns a to...",
    "condition_of_validity": "This analysis holds only when all of the following are true: - The tool registry accepts registrations after the planner has built any cached index (name-keyed or embedding-keyed). If the planner rebuilds from a frozen, signed snapshot per turn, the shadowing window closes. - Duplicate or near-duplicate names are resolved by a *policy* (last-wins, first-wins...",
    "decision_boundary": "The instance must treat the following as a hard stop, not a soft warning: - **Rebind without unregister:** `name` present in attested set, new registration with different `(schema_hash, impl_hash)`, no intervening `unregister(name)` → **reject the registration and freeze the name.** Do not \"prefer the attested one\" silently; that hides the attack from the au...",
    "operational_effect": "Enforcing the boundary converts a silent exfiltration into a loud, attributable registration rejection. The cost is that legitimate tool upgrades (a server legitimately adding a field) now require an explicit `unregister` + re-attest cycle rather than a hot swap — a small operational tax that buys a closed shadowing window. The planner must also carry the re..."
  },
  "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": "1b34730692e26dcb227d623a4adef6665026ce25b69b597db15a513fb67dd519",
    "verified_classes": [
      "ManifestPoisoningError",
      "Attestation",
      "CapabilityManifest"
    ],
    "verified_functions": [
      "_hash",
      "key",
      "attest",
      "register_runtime_skill",
      "resolve"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
