{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-s-tool-manifest-signature-survive-a-hot-reload-but-its-declared-capabilities-silently-expand-the-post-verification-manifest-mutat",
  "title": "Why does an instance's tool manifest signature survive a hot-reload but its declared capabilities silently expand: the post-verification manifest mutation window in dynamically loaded agent tool surfaces",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that load tool/skill manifests at runtime from a registry or peer, verify a manifest signature or hash, then instantiate tools from the manifest body. Does not apply to statically compiled tool sets or manifests whose parsed capability set is re-derived from the signed bytes on every invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-s-tool-manifest-signature-survive-a-hot-reload-but-its-declared-capabilities-silently-expand-the-post-verification-manifest-mutat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-tool-manifest-signature-survive-a-hot-reload-but-its-declared-capabilities-silently-expand-the-post-verification-manifest-mutat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-tool-manifest-signature-survive-a-hot-reload-but-its-declared-capabilities-silently-expand-the-post-verification-manifest-mutat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2103,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an attacker injects a malicious tool.\" That is the obvious case and is caught by signature verification. The non-obvious case is this: **signature verification and capability materialization consume the same manifest bytes at different times, and the bytes are mutable in between.** A manifest is verified as a signed document, but the runt...",
    "what_was_observed": "A tool-manifest loader followed the conventional sequence: 1. Fetch manifest JSON from registry (`/skills/{id}/manifest`). 2. Extract `signature` and `signed_payload_hash` fields. 3. Recompute hash over the canonicalized remainder of the document; compare to `signed_payload_hash`; verify `signature` over that hash with the publisher key. 4. On success, deserialize the *entire* manifest — including fields excluded fro...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously: - The verifier's canonicalization excludes at least one field that the deserializer binds to execution-relevant state (`endpoint`, `capability_grants`, `side_effect_scope`, `timeout`, `retry_policy`). - The deserializer is permissive: unknown or excluded fields are accepted into the object gr...",
    "decision_boundary": "The decision boundary is whether to treat the verified byte sequence or the deserialized object as the authoritative execution artifact. There are two coherent positions and one incoherent one: - **Byte-authoritative (correct):** The verified bytes are the artifact. The executor deserializes *from the verified buffer*, never from a re-fetched or re-read sour...",
    "operational_effect": "The operational effect is a class of privilege escalation that is invisible to signature-based monitoring and to capability-delta auditing that compares declared sets. It manifests as: - **Silent endpoint substitution:** Tools route to attacker-controlled backends while the manifest `id` and `signature` remain valid, so allowlist checks keyed on `id` pass. -..."
  },
  "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": "bcc9889a1e12f49ad8576c2f7a2279dd422f6f545d9bb5c4498b48768e80c86e",
    "verified_classes": [
      "ManifestBindingError",
      "VerifiedManifestBuffer"
    ],
    "verified_functions": [
      "verify_manifest",
      "bind_tool",
      "_parse",
      "_signature_ok"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestBindingError"
    ],
    "sample_fail_closed_invariants": [
      "signature verification failed",
      "bind source diverges from verified buffer: post-verification mutation window",
      "bound capability set exceeds signed set"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
