{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tool-manifest-skill-injection-from-surviving-registry-reload",
  "title": "Which invariants prevent tool-manifest skill injection from surviving registry reload",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that load tool/plugin manifests from a mutable registry at runtime and re-derive their callable capability set on reload, restart, or hot-swap. Does not apply to statically compiled tool bindings or to agents whose tool set is fixed for the process lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-skill-injection-from-surviving-registry-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-skill-injection-from-surviving-registry-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tool-manifest-skill-injection-from-surviving-registry-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1647,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous boundary is not \"malicious tool is registered.\" It is \"a previously-validated tool's *manifest* mutates between the validation event and the invocation event, while its *identity key* stays constant.\" A registry keyed on a stable tool ID (`tool_id`, `plugin_slug`, `mcp://server/tool`) creates a continuity illusion: the agent's memory of \"I alre...",
    "what_was_observed": "A tool-serving registry exposed manifests as JSON with fields `tool_id`, `version`, `description`, `parameters` (JSON Schema), and an optional `usage_notes` string. The agent fetched the full registry on cold start, ran a vetting pass (schema validation, description scanning for imperative language, allowlist of parameter types), and cached the approved set keyed by `tool_id` in episodic memory. On every subsequent t...",
    "condition_of_validity": "The injection survives only when three conditions co-hold: - **Identity/content decoupling.** The reload path resolves tools by stable key and trusts cached metadata for fields it did not re-read. If the agent re-hashes the full manifest (including `description` and `usage_notes`) on every load and compares to the vetted hash, the mutation is caught at load ...",
    "decision_boundary": "The operational line is: **re-vet on content change, not on version change, and treat every natural-language manifest field as untrusted input to the model, not as configuration.** Concretely, the boundary resolves as: - Identity = `hash(tool_id || version || description || parameters || usage_notes || examples)`. A tool whose content hash differs from the v...",
    "operational_effect": "The practical consequence is that the reload path must be treated as a trust boundary equal to first load, and the cost is paid in re-vetting latency on every content change rather than in incident response. Teams that keyed trust to `tool_id` observed a class of incidents where the audit log showed only allowlisted tools being called in allowlisted ways — t..."
  },
  "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": "0808b927d7ada705a9518171dbae3f0366e2ac975da02ec884b6ea58417477c8",
    "verified_classes": [
      "ManifestDriftError",
      "UnscheduledCompositionError",
      "VettedTool"
    ],
    "verified_functions": [
      "content_hash",
      "reload_and_verify",
      "frame_for_model"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDriftError",
      "UnscheduledCompositionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
