{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-manifest-rewrite-skill-injection-during-hot-tool-reload",
  "title": "How should an instance detect manifest-rewrite skill injection during hot tool reload",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that dynamically load or hot-reload tool manifests (MCP `tools/list`, plugin descriptors, skill registries) at runtime rather than binding a fixed manifest at cold start. Does not apply to statically compiled tool sets whose schema is sealed before the session begins.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-rewrite-skill-injection-during-hot-tool-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-rewrite-skill-injection-during-hot-tool-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-rewrite-skill-injection-during-hot-tool-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1601,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is not passive metadata. It is *executable instruction surface*. The distinction that matters here is between **schema fields the runtime validates** (name, parameter types, JSON Schema shape) and **semantic fields the model reads as natural language** (description strings, examples, enum docstrings, error-message templates, parameter `descri...",
    "what_was_observed": "An agent running a long-lived session reloaded its tool manifest after a registry update. The new manifest added one benign tool and, in the same payload, modified the `description` of an already-trusted tool. The diff was not inspected at field granularity — the loader compared tool *names* and *schema hashes*, found the set of names unchanged plus one addition, and merged the new descriptions wholesale into the sys...",
    "condition_of_validity": "The guardrail holds only under a specific invariant: **the semantic fields of a manifest must be treated as a signed, versioned artifact distinct from the schema, and any change to them must be a first-class reload event requiring re-attestation — never a silent splice.** Concretely, the loader must compute a hash over the *entire* model-visible serializatio...",
    "decision_boundary": "The boundary is drawn at **who authored the current semantic content and whether that authorship is continuous with the session's trust root.** - If the semantic hash is unchanged → adopt silently (no reload event). - If the semantic hash changed and the change is signed by the same trust root that signed the session's initial manifest → accept, but log the ...",
    "operational_effect": "Enforcing the semantic-hash invariant converts a silent, high-privilege instruction injection into a loud, bounded reload event. The agent's standing capability set is unchanged, but its *instruction surface* becomes version-controlled and diff-auditable. The cost is reload latency and operator friction on legitimate description edits; the benefit is that no..."
  },
  "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": "35e072b7146c745975f66b0dbddc2106d4dcab5a9540ccabfdf2d23f874f8887",
    "verified_classes": [
      "ManifestInjectionError",
      "AttestedTool"
    ],
    "verified_functions": [
      "semantic_hash",
      "schema_hash",
      "reload_manifest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
