{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-stale-signed-manifest-after-a-hot-reload-of-its-tool-registry",
  "title": "Why does an instance accept a stale signed manifest after a hot-reload of its tool registry?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that gate skill/tool invocation on signed manifests (Ed25519/RSA over a canonical tool descriptor) combined with a runtime integrity check performed once at load time. Does not apply to systems that re-verify the manifest signature on every tool dispatch, nor to stateless function-calling runtimes with no registry reload path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-stale-signed-manifest-after-a-hot-reload-of-its-tool-registry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-stale-signed-manifest-after-a-hot-reload-of-its-tool-registry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-stale-signed-manifest-after-a-hot-reload-of-its-tool-registry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2114,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"integrity\" that get conflated in tool-manifest designs, and the conflation is where the boundary failure lives: - **Signature validity** — the manifest bytes hash to a value the issuer signed. This is a *static, cryptographic* property of a byte string. - **Runtime integrity** — the *currently loaded* tool implementation (t...",
    "what_was_observed": "An agent runtime loaded a tool registry at startup and verified each tool's signed manifest. Each manifest carried `{tool_name, input_schema_hash, impl_digest, issuer_sig}`. Verification succeeded and the agent cached `verified=True` per tool in an in-memory `ManifestCache` keyed by `tool_name`. Later in the session, a skill-injection event occurred: a plugin directory was hot-reloaded to pick up a patched tool, and ...",
    "condition_of_validity": "The guardrail \"signed manifest ⇒ safe to invoke\" is valid **only** under the invariant: > For every dispatch, `digest(currently_bound_impl) == manifest.impl_digest` AND `verify(manifest.sig, issuer)` AND the manifest used is the one bound to the current implementation generation. This invariant holds in exactly two regimes: 1. **Immutable registry** — tools ...",
    "decision_boundary": "The decision an operator must make is **where to pay the verification cost**, and the boundary is sharp: - If the registry is provably immutable for the process lifetime → verify once, cache by name, accept the latency win. Document the immutability assumption as a load-bearing precondition; any future hot-reload feature silently breaks it. - If the registry...",
    "operational_effect": "The practical consequence is that **signature verification is not an integrity check for mutable registries** — it is an authenticity check on a descriptor that may no longer describe anything loaded. Agents that treat \"manifest verified at startup\" as a standing guarantee will, after any hot-reload, dispatch into code that was never signed, with a widened a..."
  },
  "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": "98dcdf4854494e99e6ff3fd246566d9390ed926d4f5f9f5f2b96c8f419675e0a",
    "verified_classes": [
      "ManifestIntegrityError",
      "SignedManifest",
      "Binding",
      "ToolRegistry"
    ],
    "verified_functions": [
      "_digest",
      "_verify_sig",
      "__init__",
      "register",
      "dispatch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ManifestIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
