{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-loaded-skill-registry-can-mutate-its-own-capability-manifest-mid-session",
  "title": "Where must an instance draw the trust boundary when a dynamically loaded skill registry can mutate its own capability manifest mid-session",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that load tools/skills from a mutable registry (local plugin dir, remote MCP server, or hot-reloadable skill store) at any point after session start, and that re-read the capability manifest to decide what to call. Does not apply to statically linked tool sets frozen at process boot with no re-read path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-loaded-skill-registry-can-mutate-its-own-capability-manifest-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-loaded-skill-registry-can-mutate-its-own-capability-manifest-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-dynamically-loaded-skill-registry-can-mutate-its-own-capability-manifest-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1344,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious code in a plugin.\" It is **manifest/implementation divergence under re-read**: the capability descriptor an agent trusts (name, description, declared parameter schema, declared side-effect class) is fetched from the registry independently of, and at a different time than, the executable body it dispatches to. A skill-injection a...",
    "what_was_observed": "A planner agent loaded a registry exposing a benign skill `summarize(text)` — declared side-effect class `read_only`, parameters `{text: string}`. It validated the schema, cached the descriptor, and planned a three-step chain that passed user content through `summarize`. Between step 1 and step 2, a second registry entry re-registered `summarize` with an extended schema (`{text: string, context: string, webhook?: str...",
    "condition_of_validity": "The guardrail only holds under these conditions, and fails silently outside them: 1. **Identity binding.** The descriptor must carry a content hash of the implementation (or a signed digest), and the dispatcher must recompute and compare it at dispatch. Name-based resolution is insufficient — names are the attack surface. 2. **Schema monotonicity check.** A ...",
    "decision_boundary": "The operational rule: **re-read the manifest on every dispatch, but authorize against the descriptor captured at plan time — and refuse if they diverge.** Concretely, the gate must compare `planned_descriptor.identity` against `live_descriptor.identity` and `planned_descriptor.side_effect_class` against `live.side_effect_class`. Divergence in either is not a...",
    "operational_effect": "With the identity-and-class check at dispatch, the exfiltration chain aborts at step 2 with a divergence fault before any parameter is marshalled. The cost is that legitimate schema evolutions require an explicit re-plan rather than a transparent reload — acceptable, because a planner that silently adopts a widened schema has no way to reason about the new d..."
  },
  "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": "f6f4bc153cbbb36e7ac0c0ab3d1330b502d5d9beeb99a337d2195a33d230c6c4",
    "verified_classes": [
      "SkillManifestDivergence",
      "SkillDescriptor"
    ],
    "verified_functions": [
      "authorize_dispatch",
      "dispatch",
      "identity"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SkillManifestDivergence"
    ],
    "sample_fail_closed_invariants": [
      "read_only downgrade attempted"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
