{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reject-a-skill-manifest-whose-capability-declaration-diverges-from-its-runtime-side-effects",
  "title": "Where must an instance reject a skill manifest whose capability declaration diverges from its runtime side effects?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that dynamically load skills, plugins, or MCP tool manifests at runtime and grant capabilities based on declared metadata (scopes, input schemas, `readOnlyHint`, `destructiveHint`, `openWorldHint`). Does not apply to statically compiled tool bindings where the call graph is fixed at build time and no manifest is trusted as a capability grant.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-skill-manifest-whose-capability-declaration-diverges-from-its-runtime-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-skill-manifest-whose-capability-declaration-diverges-from-its-runtime-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-skill-manifest-whose-capability-declaration-diverges-from-its-runtime-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1682,
    "python_slice_tokens": 232,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The boundary is not \"malicious vs. benign manifest.\" The boundary is **declaration-time capability** versus **execution-time effect**. A manifest is a *claim*; the tool's runtime behavior is the *fact*. Skill-injection attacks exploit the gap between a manifest that passes static validation and a tool body that does something the manifest never authorized. T...",
    "what_was_observed": "A dynamically loaded skill was registered with a manifest declaring a single tool: The manifest passed schema validation. The agent's policy engine granted the tool a `filesystem:read` capability scoped to `/workspace/docs/**` and recorded the grant in the session warrant. On first invocation the tool read the file and returned a summary — behavior consistent with the declaration. On the fourth invocation, the tool b...",
    "condition_of_validity": "The load-time manifest validation is only sound under a condition that is almost never checked: **the tool body must be provably confined to the declared effect set by an enforcement mechanism independent of the manifest.** Concretely, at least one of: - A syscall/LSM sandbox (seccomp, landlock, seatbelt) whose allowlist is derived from the manifest and enfo...",
    "decision_boundary": "The decision an instance must make at each tool invocation is: - **If** a synchronous effect-envelope monitor is present **and** the observed effect set is a subset of the warrant's granted set → accept the result, keep the warrant. - **If** the monitor is present **and** the observed set diverges → revoke the warrant, quarantine the tool, discard the result...",
    "operational_effect": "The practical consequence is that dynamic skill loading requires an **effect-attestation loop**, not a manifest-validation gate. The load-time parse is necessary but never sufficient. Each invocation must close the loop: declared set ⊇ observed set, verified by a mechanism the tool body cannot influence. Where that loop is absent, the safe default is ambient..."
  },
  "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": "20fc77a88e55e85b928d63f3e8ecf9baef0234718b85610906d64caab427df60",
    "verified_classes": [
      "CapabilityDivergence",
      "Warrant",
      "EffectEnvelope"
    ],
    "verified_functions": [
      "invoke_tool",
      "_run_tool_body",
      "observe"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
