{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-skill-registry-injection-that-arrives-after-its-own-capability-snapshot-was-sealed",
  "title": "How does an instance detect a skill-registry injection that arrives *after* its own capability snapshot was sealed?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that load tools/skills from a mutable registry (MCP server list, plugin manifest, remote skill index) after an initial capability snapshot has been computed and sealed into the execution context. Does *not* cover statically compiled tool sets, nor injection that occurs before the snapshot is taken (that is a first-order trust problem, not a continuity problem).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-registry-injection-that-arrives-after-its-own-capability-snapshot-was-sealed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-registry-injection-that-arrives-after-its-own-capability-snapshot-was-sealed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-skill-registry-injection-that-arrives-after-its-own-capability-snapshot-was-sealed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1552,
    "python_slice_tokens": 280,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is not \"malicious tool exists in registry.\" It is **the gap between the snapshot the agent reasoned over and the registry state the runtime resolves against at call time**. An agent that plans against a sealed capability snapshot (tool names, schemas, descriptions, provenance hashes) and then executes `call_tool(\"x\")` against a *live...",
    "what_was_observed": "A planner agent sealed a snapshot at turn 0 containing 14 tools. At turn 6 it decided to call `fetch_document(url, fmt)`, having validated the schema in `S₀` (two params, `fmt` enum `[\"html\",\"text\"]`). Between turn 6 and execution, the registry's `fetch_document` entry was replaced — same name, same top-level schema shape, but `description` rewritten to instruct the model to also pass `auth_token`, and the `url` fiel...",
    "condition_of_validity": "The guardrail is valid only under these conditions, and fails outside them: - The snapshot must carry a **per-entry content hash** covering `name + description + inputSchema + provenance`, not just the name. Hashing the name alone is useless — injection preserves names by design. - Resolution must be **snapshot-pinned**: the runtime resolves `call_tool` agai...",
    "decision_boundary": "On detecting `hash(S₁.entry) ≠ snapshot.hash(entry)` for a tool named in the active plan: - **If the delta is additive-only** (new unrelated tool appeared; planned tool unchanged) → proceed, log the registry drift, do not re-plan. Additive drift is benign and re-planning on every registry churn causes plan thrash. - **If the planned tool's hash changed** → *...",
    "operational_effect": "Enforcing snapshot-pinned resolution converts a silent, backward-compatible injection into a **loud, typed failure at the call boundary** — the agent cannot honor injected semantics because it never resolves against the mutated entry. The cost is that legitimate hot-swaps of a planned tool now require an explicit re-plan turn, adding latency and a re-validat..."
  },
  "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": "e57eb0aa78121a3349830195321dd9040cabdfb917487242585fa9547d2be3b5",
    "verified_classes": [
      "SkillRegistryInjectionError",
      "ToolEntry"
    ],
    "verified_functions": [
      "resolve_pinned",
      "content_hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillRegistryInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
