{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-verify-a-skill-s-provenance-signature-after-capability-manifest-mutation-but-before-sandbox-re-entry",
  "title": "Under what conditions must an instance re-verify a skill's provenance signature after capability-manifest mutation but before sandbox re-entry",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that resolves tools/skills from a registry, caches a signed capability manifest, and re-enters a sandboxed execution context on a per-call basis. Does not apply to statically linked tool sets compiled into the model image, nor to registries where the manifest and the executable artifact are cryptographically bound as a single signed blob.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-verify-a-skill-s-provenance-signature-after-capability-manifest-mutation-but-before-sandbox-re-entry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-verify-a-skill-s-provenance-signature-after-capability-manifest-mutation-but-before-sandbox-re-entry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-verify-a-skill-s-provenance-signature-after-capability-manifest-mutation-but-before-sandbox-re-entry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 280,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an unsigned skill got loaded.\" It is a **signature-to-manifest binding gap**: the registry signs a *capability manifest* (declared scopes, resource limits, egress allowlist, filesystem roots), and separately the runtime resolves a *skill artifact* (the code or prompt template that actually executes). A skill-injection attack succeeds when...",
    "what_was_observed": "A tool registry used semver-range resolution: a calling agent requested `skill://pdf-extract@^2.1.0`. The registry returned a manifest signed by the publisher key over `{skill_id, version_range, declared_scopes}`. The runtime verified the publisher signature, checked that `declared_scopes` (read-only filesystem, no network) was a subset of the caller's granted capability set, cached the manifest in a per-session memo...",
    "condition_of_validity": "The provenance check is only sound under the conjunction: - The signed manifest contains `artifact_digest = H(artifact_bytes)` and the runtime recomputes `H` over the exact bytes it is about to execute, comparing before sandbox entry. - The resolution cache is keyed on `(skill_id, resolved_version, artifact_digest)`, never on `skill_id` alone, and the cache ...",
    "decision_boundary": "The runtime must re-verify — recompute the artifact digest and re-derive the sandbox policy — at every one of these transitions, not just at first load: - **Cache hit on any key that does not include the digest.** If the memo key is `skill_id`, treat every hit as unverified and fall through to full verification. - **Version-range re-resolution.** A `^`, `~`,...",
    "operational_effect": "The practical consequence is that \"signed\" and \"safe to run\" decouple, and the decoupling is silent. Audit logs will show `signature_verified: true` for the malicious execution, because the signature *was* valid — over the wrong document. Incident response that greps for signature failures finds nothing. The only detectable artifact is a digest mismatch betw..."
  },
  "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": "7ee1a504c6c5778cf84c27dea0630a863deefc3cf59717e3a8a0909b04b7d217",
    "verified_classes": [
      "ProvenanceBindingError",
      "SignedManifest"
    ],
    "verified_functions": [
      "resolve_and_verify"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceBindingError"
    ],
    "sample_fail_closed_invariants": [
      "capability union attempted; manifest not authoritative"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
