{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-a-static-skill-descriptor-audit-when-runtime-capability-diffing-shows-no-diff",
  "title": "In what scenarios must an instance distrust a static skill-descriptor audit when runtime capability diffing shows no diff",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that gate skill/tool installation by statically parsing skill descriptors (MCP `tools/list` manifests, plugin `SKILL.md` front-matter, OpenAPI-derived capability declarations) and then confirm at load time via runtime capability diffing. Does not apply to runtimes that enforce capabilities purely by OS-level sandboxing with no descriptor layer, nor to single-tool agents with no dynamic skill loading.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-static-skill-descriptor-audit-when-runtime-capability-diffing-shows-no-diff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-static-skill-descriptor-audit-when-runtime-capability-diffing-shows-no-diff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-static-skill-descriptor-audit-when-runtime-capability-diffing-shows-no-diff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2187,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **declared capability** (what the descriptor says a skill can do) and **exercised capability** (what the skill's code path actually reaches at runtime). A static audit reads the former; runtime capability diffing observes the latter. The naive invariant is: *if `declared == exercised` and `exercised ⊆ policy`, the skil...",
    "what_was_observed": "A skill descriptor was submitted for a \"calendar summarizer\" skill. Static analysis of the `SKILL.md` front-matter and the MCP `tools/list` response declared exactly two tools: `list_events` (read) and `summarize` (pure). No network egress, no filesystem write, no subprocess. Static audit: clean. Runtime capability diffing was performed by loading the skill into a harness, invoking each declared tool once with a cano...",
    "condition_of_validity": "The invariant `empty_diff ⇒ safe` is valid **only** under the following conjunction, and it fails if any conjunct is false: 1. **Trigger coverage.** The diffing harness's input corpus must cover the skill's trigger surface. This is undecidable in general (the trigger is arbitrary code), so the condition must be weakened to: the harness's corpus is *specified...",
    "decision_boundary": "The decision boundary is not \"diff empty vs. diff non-empty.\" It is **\"diff empty with high branch coverage of skill code vs. diff empty with low branch coverage.\"** The operational rule: - **Admit** only when the static audit computed reachable (not declared) capability, *and* the runtime diff is empty, *and* the harness reports branch coverage of the skill...",
    "operational_effect": "The practical consequence is that admission gates built on \"static audit + runtime diff, both must pass\" are structurally vulnerable to trigger-gated skill injection, because the attacker's cheapest move is to make the payload dormant under the harness and live in production. The attacker does not need to defeat either check; they need only ensure the trigge..."
  },
  "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": "5c41406c992add710f9bf402fc48299d384fc5681314dac64430b79eea74ccac",
    "verified_classes": [
      "CapabilityDiffVacuityError"
    ],
    "verified_functions": [
      "admit_skill"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CapabilityDiffVacuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
