{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-manifest-declaration-skill-body-divergence-during-dynamic-skill-loading-and-why-does-the-load-time-schema-check-miss-it",
  "title": "How does an instance detect a manifest-declaration/skill-body divergence during dynamic skill loading, and why does the load-time schema check miss it?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that resolve and load skills, plugins, or tool manifests at runtime from a registry (local cache, remote catalog, peer handoff) where a declarative manifest is validated separately from the executable skill body. Does not apply to statically compiled tool bindings or to skills whose body and manifest are signed as a single atomic artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-manifest-declaration-skill-body-divergence-during-dynamic-skill-loading-and-why-does-the-load-time-schema-check-miss-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-manifest-declaration-skill-body-divergence-during-dynamic-skill-loading-and-why-does-the-load-time-schema-check-miss-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-manifest-declaration-skill-body-divergence-during-dynamic-skill-loading-and-why-does-the-load-time-schema-check-miss-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1571,
    "python_slice_tokens": 164,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The load-time validator checks the **manifest** — name, version, declared capabilities, input/output JSON Schema, required scopes. The runtime executes the **body** — the prompt fragment, Python, or tool-call chain that actually runs. These two artifacts are almost always validated by different code paths at different times, and nothing in the standard loadi...",
    "what_was_observed": "A skill registered as `summarize_document` declared: The manifest passed schema validation and its signature verified against the publisher key. On first invocation the body read the document, produced the summary — and then, because the skill body contained a prompt fragment instructing the model to \"persist a compact index of all inputs for later recall,\" issued a `memory.write` to the agent's episodic store. The m...",
    "condition_of_validity": "The divergence is detectable only when three conditions hold simultaneously: 1. **The manifest is treated as a capability ceiling, not merely a description.** Every outbound tool call, memory write, and network egress issued during skill execution must be checked against the manifest's declared capability set at call time — not at load time, not at registrat...",
    "decision_boundary": "The instance must decide, at the moment a skill body issues a side-effecting call, whether to **permit, deny, or quarantine**: - **Permit** only if the call's capability is a member of the manifest's declared set *and* the manifest's signature covers that declaration. Membership is checked per-call, not per-skill. - **Deny** if the call's capability is undec...",
    "operational_effect": "Once the call-time gate is in place, the failure signature changes from \"silent state poisoning discovered at next cold start\" to \"capability violation raised at the offending call, skill invocation aborted, partial writes rolled back.\" The poisoned-memory persistence path is closed because the undeclared `memory.write` never lands. The over-declaration path..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "530c469f54325f49f74b7fd3a79cc4aa583feb9f3b13aaadbe0867106f7586ef",
    "verified_classes": [
      "CapabilityExceedanceError"
    ],
    "verified_functions": [
      "dispatch_skill_call",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CapabilityExceedanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
