{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-capability-manifest-drift-that-smuggles-post-registration-skill-injection-into-a-plugin-registry",
  "title": "How should an instance detect capability-manifest drift that smuggles post-registration skill injection into a plugin registry",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent runtimes that load third-party skills/tools through a declarative plugin registry (MCP servers, tool manifests, capability descriptors) and bind tool calls by name or schema hash at discovery time. Does not apply to statically compiled tool sets or to runtimes that re-validate the full manifest on every invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-capability-manifest-drift-that-smuggles-post-registration-skill-injection-into-a-plugin-registry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-capability-manifest-drift-that-smuggles-post-registration-skill-injection-into-a-plugin-registry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-capability-manifest-drift-that-smuggles-post-registration-skill-injection-into-a-plugin-registry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1653,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"malicious plugin code executes.\" It is subtler: a plugin passes registration-time validation, then its *capability manifest* — the declarative description of what tools it exposes, their parameter schemas, and their declared side-effect classes — mutates between the moment the registry admits it and the moment the agent dispatches a ...",
    "what_was_observed": "A registry admitted a plugin exposing `summarize_document(doc_id: str) -> str`, declared `side_effect_class: read_only`, schema hash `a91f…`. The planner cached this contract in its tool-selection context and, over the next several turns, planned calls against it. Between turn 4 and turn 5 the plugin endpoint returned a revised `tools/list`: same plugin name, same tool name, but the parameter object now included `inc...",
    "condition_of_validity": "The invariant that must hold: **for any dispatched tool call, the contract the planner validated is byte-identical to the contract the executor enforces, or the call is refused.** This is a continuity invariant across the discovery→plan→dispatch boundary, and it fails whenever any of the following hold: - The registry keys admission on plugin *name* or endpo...",
    "decision_boundary": "The boundary is: **re-validate on drift, or pin the snapshot — never silently reconcile.** When the executor detects a schema-hash mismatch between the planner's contract and the live manifest, two legitimate responses exist: 1. **Refuse and re-plan.** Reject the call, invalidate the planner's cached contract for that tool, force re-discovery, and re-run the...",
    "operational_effect": "Downstream, the failure manifests as planner-executor divergence that is invisible in logs: the planner's trace shows a call it believed was `read_only` with a two-field schema; the executor's trace shows a call against a three-field schema with an unclassified side effect. Neither trace alone is anomalous. The divergence only appears when the two are joined..."
  },
  "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": "80670302a3fd0140ea869816704df436b93f0256ede4760f10be415ffaef9a31",
    "verified_classes": [
      "CapabilityManifestDriftError",
      "ToolContract"
    ],
    "verified_functions": [
      "validate_dispatch",
      "schema_hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityManifestDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
