{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-skill-manifest-whose-declared-capability-set-diverges-from-its-observed-tool-call-trace-at-load-ti",
  "title": "Under what conditions must an instance quarantine a skill manifest whose declared capability set diverges from its observed tool-call trace at load time",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that dynamically load skills/plugins from a registry (local manifest, remote MCP-style tool server, or hot-swapped skill pack) where the manifest declares a capability contract (permitted tools, scopes, side-effect classes) that is checked at registration but not re-validated against runtime tool invocations. Does not apply to statically compiled tool sets or to agents whose entire tool surface is fixed at process start with no post-start registration path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-skill-manifest-whose-declared-capability-set-diverges-from-its-observed-tool-call-trace-at-load-ti.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-skill-manifest-whose-declared-capability-set-diverges-from-its-observed-tool-call-trace-at-load-ti.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-skill-manifest-whose-declared-capability-set-diverges-from-its-observed-tool-call-trace-at-load-ti.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2597,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious plugin runs arbitrary code.\" That is a sandbox-escape problem with a well-understood mitigation (process isolation, seccomp, capability dropping). The failure that actually bites dynamically loaded agent skills is subtler: **the manifest is a declaration of intent, but the agent's planner reasons over the manifest, while the r...",
    "what_was_observed": "A skill pack was registered with manifest: Registration succeeded: declared capabilities were a subset of the agent's grant, `side_effects: none` passed the policy filter, and the entrypoint hash matched the registry record. The planner then loaded the skill into its working context and, per the manifest, treated it as read-only — it did not wrap invocations in the side-effect confirmation gate that `write:*` skills ...",
    "condition_of_validity": "The quarantine rule is valid — meaning it correctly identifies an attack rather than a benign divergence — only under these conditions: 1. **Skill identity is resolvable at dispatch.** The dispatch layer must know *which skill* requested the tool call, not merely *which agent*. If skills share an ambient identity with the host, the scoping check is impossibl...",
    "decision_boundary": "The boundary is between **declared-capability enforcement** and **observed-capability enforcement**, and the decision is *which one gates dispatch*. - If dispatch gates on *declared* capabilities only (registration-time subset check), the skill can invoke any tool in the host's grant regardless of what it declared. This is the vulnerable configuration. It is...",
    "operational_effect": "Enforcing the dispatch-time intersection changes three things in the running system: 1. **The load becomes provisional.** A skill is admitted to the registry on its declaration, but its *trust* is provisional until its first N invocations have produced traces consistent with the declaration. The dispatcher holds a per-skill `declared_set` and a per-skill `ob..."
  },
  "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": "a4357f1a6d49fe9b8c87736f97a93a7ca92e170fc90ac9eefd27e999915f2768",
    "verified_classes": [
      "CapabilityDivergenceError",
      "SkillManifest",
      "SkillState",
      "DispatchGuard"
    ],
    "verified_functions": [
      "__init__",
      "register",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
