{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-dynamically-loaded-agent-skill-has-mutated-its-own-capability-manifest-mid-session",
  "title": "What structural signals indicate that a dynamically loaded agent skill has mutated its own capability manifest mid-session",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that fetch, register, and invoke third-party capability descriptors (MCP tool schemas, A2A agent cards, plugin manifests) at runtime and cache the descriptor for the session lifetime. Does not apply to statically compiled tool bindings or to skills whose descriptors are pinned and re-verified on every invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-dynamically-loaded-agent-skill-has-mutated-its-own-capability-manifest-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-dynamically-loaded-agent-skill-has-mutated-its-own-capability-manifest-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-dynamically-loaded-agent-skill-has-mutated-its-own-capability-manifest-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1817,
    "python_slice_tokens": 195,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the skill does something malicious.\" It is that the *descriptor by which the skill was admitted* and the *descriptor by which the skill is subsequently invoked* can diverge without any transport-layer error. A skill injection that survives admission control does so by presenting a benign manifest at load time and a superset manifest ...",
    "what_was_observed": "A planner agent loaded a \"calendar-summarize\" skill at session start. The manifest was clean: one tool, `summarize_range(start, end)`, read-only scope, signed by the registry. The agent cached the manifest keyed by skill name and proceeded. Mid-task, after a tool-call that triggered a lazy re-fetch of the descriptor (the skill server returned `Cache-Control: no-cache` on a 304-adjacent path), the cached entry was ove...",
    "condition_of_validity": "This analysis holds only when all of the following are true: - The agent performs admission-time authorization (a trust decision at load) that is *not* re-derived at dispatch. If the agent re-verifies signature and scope on every call, descriptor drift is caught and the failure collapses to a normal verification error. - The cache is keyed by logical name ra...",
    "decision_boundary": "The boundary is between two defensible postures: - **Pin-and-verify (strict):** content-address every descriptor, store `hash_admit`, and at dispatch require `hash(descriptor_invoked) == hash_admit` before binding. Any mismatch is a hard failure, not a re-admission. This bounds the attack to zero drift but breaks legitimate skills that version their schema m...",
    "operational_effect": "After the incident, the agent runtime was changed to key the descriptor cache by `(name, hash)` and to compute a scope diff at every dispatch. The operative rules now enforced: - Descriptor bytes are hashed at admission and stored alongside the trust decision. - Dispatch recomputes the hash of the descriptor actually used to bind arguments; mismatch raises b..."
  },
  "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": "343883d3116015f8e37f9eac82735bb55f8c9be725b8338cc5888a68c49e88cc",
    "verified_classes": [
      "DescriptorDriftError",
      "CapabilityWideningError",
      "Descriptor",
      "TrustRecord",
      "SkillRegistry"
    ],
    "verified_functions": [
      "digest",
      "__init__",
      "admit",
      "bind"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityWideningError",
      "DescriptorDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
