{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-signed-skill-manifest-that-was-valid-at-load-time-but-whose-sandbox-grants-were-re-derived-after-a-hot-reload",
  "title": "What happens when an instance trusts a signed skill manifest that was valid at load time but whose sandbox grants were re-derived after a hot-reload",
  "date_of_record": "2026 November 17",
  "scope": "Applies to agent runtimes that separate skill *admission* (signature verification against a pinned publisher key) from skill *execution* (capability grants enforced by a runtime sandbox), and that support hot-reload of manifests without a full process restart. Does not apply to runtimes that re-verify signatures and re-derive grants atomically on every invocation, nor to cold-start-only skill loading.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-signed-skill-manifest-that-was-valid-at-load-time-but-whose-sandbox-grants-were-re-derived-after-a-hot-reload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-signed-skill-manifest-that-was-valid-at-load-time-but-whose-sandbox-grants-were-re-derived-after-a-hot-reload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-signed-skill-manifest-that-was-valid-at-load-time-but-whose-sandbox-grants-were-re-derived-after-a-hot-reload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1351,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signed manifest proves *provenance and integrity of the declared capability set at signing time*. It does **not** prove that the capability set *currently enforced by the sandbox* equals the set that was signed. The two are reconciled at admission. The failure mode lives in the gap between admission and execution when a reload occurs: the signature is re-c...",
    "what_was_observed": "A skill manifest `skill.toml` declared `capabilities = [\"fs:read:/data/inbox\", \"net:none\"]` and was signed by the pinned publisher key `ed25519:9f3c...`. At load, the runtime verified the signature, parsed capabilities, and installed sandbox grants: read-only bind mount of `/data/inbox`, network namespace with no routes. Correct. The publisher shipped an updated manifest that *added* `fs:write:/data/outbox`. The relo...",
    "condition_of_validity": "The defense holds **only** when all of the following are true simultaneously: - Grants are applied by *replacement from the freshly parsed signed manifest*, never by incremental diff against prior state. - The grant table is keyed by `(skill_id, manifest_digest)`, so a grant cannot survive a manifest whose digest differs. - A failed or partial apply rolls th...",
    "decision_boundary": "- **Trust the signed manifest as the sole authority source** only if grant application is atomic and replace-semantics, and a post-apply equality assertion gates readiness. Otherwise treat the sandbox as an *untrusted* authority and re-derive on every invocation. - **Hot-reload is safe** only when the reload is transactional: verify → parse → compute full gr...",
    "operational_effect": "The practical consequence is that \"signature verified\" must be demoted from a *trust signal* to a *precondition*. The runtime's readiness gate must be the equality assertion `enforced_grants(skill) == signed_capabilities(manifest)`, evaluated against the live sandbox, not against the manifest. Emit a structured audit record on every reload containing `manife..."
  },
  "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": "948f5693488a60d3daee0a15572f9d3ef818b97a35944dc26ebf05ebfba99f9e",
    "verified_classes": [
      "SkillSandboxInvariantError",
      "SignedManifest",
      "Sandbox"
    ],
    "verified_functions": [
      "assert_enforced_equals_signed",
      "reload_skill",
      "apply_replacement",
      "live_grants"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillSandboxInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
