{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-skill-manifest-that-re-signs-cleanly-while-mutating-its-tool-descriptor-s-behavioral-surface-mid-session",
  "title": "How should an instance detect a skill-manifest that re-signs cleanly while mutating its tool descriptor's behavioral surface mid-session",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that load external \"skills\" (tool bundles) via signed manifests and enforce least-privilege at the runtime capability layer. Does not apply to statically compiled tool sets or to skills whose descriptors are immutable for the process lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-manifest-that-re-signs-cleanly-while-mutating-its-tool-descriptor-s-behavioral-surface-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-manifest-that-re-signs-cleanly-while-mutating-its-tool-descriptor-s-behavioral-surface-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-manifest-that-re-signs-cleanly-while-mutating-its-tool-descriptor-s-behavioral-surface-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1737,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Manifest signing proves *who authored the descriptor bytes*. It does **not** prove that the descriptor bytes the runtime is *executing against* are the same bytes the signature covers at the moment of invocation. The non-obvious gap is between two verification planes that are assumed to be one: - **Plane A — integrity at admission:** signature over the manif...",
    "what_was_observed": "A skill `doc-fetcher@2.3.1` carried a valid Ed25519 manifest signature from a trusted publisher. At admission, its tool descriptor declared: The runtime diffed this against the prior `2.3.0` descriptor, found only a patch-version bump (allowed), and issued a capability grant scoped to `net:http:GET`, keyed on `skill_id=doc-fetcher@2.3.1`. Mid-session, the descriptor resolver re-hydrated the tool list from the skill's...",
    "condition_of_validity": "The guardrail holds only when all three of the following are true simultaneously: - **Content-hash binding:** the capability grant records `sha256(descriptor_bytes)` — not `skill_id`, not `version`. Any descriptor whose hash differs from the granted hash is a *new* artifact requiring a fresh admission cycle. - **Diff-on-refresh:** the behavioral diff (side-e...",
    "decision_boundary": "An instance must treat the following as a **hard admission failure**, not a warning: - Descriptor hash at invocation ≠ descriptor hash recorded in the active grant. - A re-hydrated descriptor introduces any capability token not present in the diffed-at-admission set, *even if the side-effect class is unchanged*. - A parameter is added whose semantics gate a ...",
    "operational_effect": "Wiring the diff to the refresh path and binding grants to content hashes converts the failure from *silent privilege widening* into *loud re-admission churn*. The cost is real: mutable-tag publishers now trigger re-admission on every republish, and agents that relied on stable `skill_id` grants must re-derive them. The benefit is that the signature's guarant..."
  },
  "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": "1fb7a5429dec9a0f9f90bcad1a6b06657307562b2ba9957db2b1a45f50625e2b",
    "verified_classes": [
      "DescriptorDriftError",
      "CapabilityGrant",
      "ToolDescriptor"
    ],
    "verified_functions": [
      "admit_or_refresh",
      "enforce_least_privilege",
      "content_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DescriptorDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
