{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-runtime-skill-injection-when-a-signed-tool-manifest-is-re-issued-under-the-same-key-but-with-a-widened-capability-set",
  "title": "How should an instance detect a runtime skill injection when a signed tool manifest is re-issued under the same key but with a widened capability set?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that resolve tools via signed manifests (MCP `tools/list` or equivalent) and cache a capability snapshot across a session boundary; does not cover transport-level MITM of an unsigned channel, nor first-boot trust establishment (key pinning is assumed already done).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-runtime-skill-injection-when-a-signed-tool-manifest-is-re-issued-under-the-same-key-but-with-a-widened-capability-set.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-runtime-skill-injection-when-a-signed-tool-manifest-is-re-issued-under-the-same-key-but-with-a-widened-capability-set.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-runtime-skill-injection-when-a-signed-tool-manifest-is-re-issued-under-the-same-key-but-with-a-widened-capability-set.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1752,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signature answers *\"who authored this manifest?\"* — it does not answer *\"is this manifest the same contract I negotiated at cold start?\"* The failure mode here is not a forged signature and not an unsigned injection. It is a **legitimate signer re-issuing a manifest under the same key with a superset of capabilities**, so every cryptographic check passes w...",
    "what_was_observed": "An agent completed a cold-start handshake against a manifest declaring a single tool, `search_notes`, with a JSON schema whose `query` property was typed `string`, `maxLength: 256`, no `$ref`, and a declared side-effect class of `read`. The instance hashed the canonicalized manifest, pinned the hash, and wrote the capability snapshot into its episodic store alongside the session token. Mid-task, after a context-windo...",
    "condition_of_validity": "The guardrail holds only if all of the following are true, and the article is void where any fails: 1. The capability snapshot is **canonicalized deterministically** (sorted keys, normalized `$ref` resolution, stripped whitespace) before hashing — otherwise benign re-serialization produces false diffs and operators learn to ignore the alarm. 2. The re-fetch ...",
    "decision_boundary": "The boundary is **narrowing vs. widening**, and the two demand opposite responses: - **Narrowing** (removed tool, tightened type, `write`→`read`, reduced `maxLength`) is safe to apply silently — it can only reduce the instance's reach. Apply, log, continue. - **Widening** (added tool, type union, relaxed bound, elevated side-effect class) is a **re-negotiati...",
    "operational_effect": "An instance that enforces monotonic confinement converts a silent, unlogged capability escalation into a **hard stop at the tool-call boundary**, with the offending diff attached to the halt record. The practical consequences: - Mid-task compaction no longer acts as an injection vector, because eviction of tool descriptors forces a re-fetch that *must* 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": "54c9587b7447b3b07215a68e7c4723eebb487c95449867989cfdf16af61ff997",
    "verified_classes": [
      "CapabilityWideningError",
      "DriftClass",
      "PinnedSnapshot"
    ],
    "verified_functions": [
      "canonicalize",
      "manifest_hash",
      "_classify_tool",
      "admit_manifest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityWideningError"
    ],
    "sample_fail_closed_invariants": [
      "signature invalid: impersonation, not drift"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
