{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-provenance-continuity-across-a-capability-sandbox-boundary-when-a-dynamically-loaded-skill-re-negotiates-its-own-manife",
  "title": "How should an instance enforce provenance continuity across a capability-sandbox boundary when a dynamically loaded skill re-negotiates its own manifest mid-execution",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that hot-load skills/plugins at runtime under a signed-manifest + capability-sandbox model, specifically when a skill's declared capability set can be mutated after initial admission. Does not cover static, boot-time-only plugin loading, nor pure prompt-injection defenses at the text layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-provenance-continuity-across-a-capability-sandbox-boundary-when-a-dynamically-loaded-skill-re-negotiates-its-own-manife.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-provenance-continuity-across-a-capability-sandbox-boundary-when-a-dynamically-loaded-skill-re-negotiates-its-own-manife.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-provenance-continuity-across-a-capability-sandbox-boundary-when-a-dynamically-loaded-skill-re-negotiates-its-own-manife.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1672,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"an unsigned skill got loaded.\" It is the **provenance/capability skew window**: the interval during which a skill has been admitted under manifest `M₀` with signature `S₀`, but is *executing* under a mutated manifest `M₁` whose capability delta was never re-signed or re-adjudicated by the host. Most sandboxes verify provenance exactl...",
    "what_was_observed": "A skill `summarize_repo` was admitted with manifest `M₀` declaring `caps = {fs:read, net:none, proc:spawn:false}` and signature `S₀ = sign(host_key, hash(M₀))`. During a long task it invoked a helper that wrote a checkpoint file to its own plugin directory. The write triggered the host's manifest watcher, which re-parsed the on-disk `manifest.json` and *merged* the new content. The skill's authoring loop (an LLM) had...",
    "condition_of_validity": "The invariant that must hold is: **for every tool invocation authorized at time `t`, there exists a signature `S` over a manifest `M` such that `capability_used ∈ M.caps` and `verify(S, M) = true` and `S` is chained to the admission record.** This is the *provenance-continuity invariant*. It fails whenever the authorization path reads a mutable manifest obje...",
    "decision_boundary": "The boundary is between **manifest as document** and **manifest as signed capability token**. Treat the manifest as immutable data whose hash is the identity of the capability grant: `grant_id = H(M || S)`. The sandbox compiles `P = compile(M.caps)` at admission and the dispatcher authorizes *only* against `P`, never against a re-read manifest. Any capabilit...",
    "operational_effect": "With the invariant enforced, the skew window is zero: every authorized call maps to exactly one `grant_id`, and the audit log is a total function from `(call, grant_id)` to a verified signature. Widening attempts surface as `CapabilityWideningDenied` events rather than silent grants, which is the signal you want for detecting a skill that is probing its sand..."
  },
  "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": "da055eec0caec82ec2c1b4a5177a6e63b653c53a7f5fbdd5b33c0ca92af7b95c",
    "verified_classes": [
      "ProvenanceSkewError",
      "CapabilityGrant",
      "SkillInstance"
    ],
    "verified_functions": [
      "dispatch_tool_call",
      "issue",
      "authorize",
      "on_manifest_watch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
