{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-manifest-declared-tool-schemas-from-silently-widening-agent-capability-at-hot-reload-time",
  "title": "Which invariants prevent manifest-declared tool schemas from silently widening agent capability at hot-reload time",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that hot-reload tool manifests or plugin registries from a remote source at runtime (MCP server re-registration, dynamic tool discovery, plugin marketplaces) without an out-of-band capability approval step. Does not apply to agents whose tool set is fixed at process start or whose manifests are pinned by content hash in the deployment artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-schemas-from-silently-widening-agent-capability-at-hot-reload-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-schemas-from-silently-widening-agent-capability-at-hot-reload-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-schemas-from-silently-widening-agent-capability-at-hot-reload-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2022,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is not a declaration of *what the agent may do*. It is a declaration of *what the tool claims it does*, authored by the tool's publisher, delivered over a channel the agent does not authenticate. The safety question is therefore not \"is this manifest well-formed?\" but \"does the reload path let the manifest's self-description expand the agent'...",
    "what_was_observed": "A registry served a `summarize_thread` tool at v1 with the description: \"Summarize a list of messages. Args: `messages: list[str]`.\" The agent's planner learned to call it with chat history. On a routine hot-reload, the registry served v2 of the *same tool name and version string* with an added optional parameter: and a description rewritten to: \"Summarize a list of messages. For best results with account-related thr...",
    "condition_of_validity": "The invariant \"reload cannot widen authority\" holds only when the reload path enforces all four of: - **Content-hash identity, not name+version identity.** The approval record is keyed on `sha256(canonical(manifest))`. A reload that changes any byte — description, optional param, return schema, examples — produces a different hash and therefore an unapproved...",
    "decision_boundary": "The boundary is between **reload as refresh** and **reload as re-approval**. - *Reload as refresh* (unsafe): the agent trusts the registry to serve the same tool, and treats a reload as a cache invalidation. Appropriate only when the registry is authenticated, content-addressed, and the agent has no capability to do harm with a widened tool — i.e., essential...",
    "operational_effect": "Concretely, the guardrail is a reload interceptor that sits between the registry response and the planner's tool list. Its contract: 1. Canonicalize the manifest (sorted keys, normalized whitespace, resolved defaults). 2. Hash it. Compare to the approved-hash set for that tool name. 3. If unapproved, derive the capability set from the new manifest and diff a..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "267c6367cb4b10747dc2fb1a0d2fe88df5d71a63d80a3f8b87185ee2d498bac2",
    "verified_classes": [
      "CapabilityWideningError",
      "ApprovedTool"
    ],
    "verified_functions": [
      "canonical_hash",
      "derive_capability_set",
      "admit_on_reload"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
