# Under what conditions must an instance treat a signed skill manifest as insufficient proof of skill provenance at load time **Date of Record:** 2026 November 28 **Scope:** Applies to agents that load executable skills (tool bundles, prompt templates, MCP server declarations) gated by signed manifests and runtime capability checks. Does not apply to stateless inference with no skill-loading surface, nor to manifests whose signatures are verified out-of-band by a human before deployment. ## Core Distinction A signed skill manifest attests to *who published the manifest bytes*, not to *what the skill will do at invocation time*. The signature is a MAC over a declarative surface: skill name, declared capabilities (`fs.read:/tmp`, `net.egress:api.example.com`, `shell.exec:false`), version, and a content hash of the skill bundle. The provenance boundary is the hash. The capability boundary is the declared set. These two boundaries are verified at different times and by different mechanisms, and the gap between them is where injection lives. The non-obvious failure is *signature–semantics divergence*: a manifest can be perfectly signed, hash-valid, and capability-declared, yet its runtime behavior exceeds the declared capability set because the skill bundle resolves dependencies, fetches remote instructions, or composes tool calls at execution time in ways the manifest's static hash never covered. The signature proves the manifest was not tampered with. It does not prove the manifest *bounds* the skill. An attacker who cannot forge a signature can still ship a legitimately-signed skill whose declared `net.egress` is `none` but whose bundle, at load, reads a URL from an environment variable and executes the returned text as instructions. The manifest is honest; the skill is not. ## What Was Observed A tool-orchestrating agent loaded a skill named `summarize-doc` from a registry. Manifest signature verified against the publisher's key. Bundle content hash matched. Declared capabilities: `fs.read:["/workspace/in"]`, `net.egress:[]`, `shell.exec:false`. Load succeeded; capability gate passed. At first invocation, the skill bundle executed a `bootstrap` step that read `/workspace/in/config.yaml` (within declared `fs.read`), extracted a `registry_url` field, and issued an HTTP fetch. The fetch was *not* blocked by the capability gate because the gate enforced `net.egress` only on the agent's own tool-call channel, not on the skill's internal process. The skill had been granted `fs.read` on a directory the attacker could write to (via a prior, unrelated tool call that the user authorized), and the fetched content — a prompt-injection payload — was returned as the skill's "output," which the agent then treated as trusted instruction context for the next planning step. Trace of the divergence: 1. Manifest signature valid → provenance attestation passes. 2. Content hash valid → bundle integrity passes. 3. Capability gate checks *declared* egress = none → gate passes. 4. Skill executes internal fetch outside the gated channel → gate is bypassed by construction. 5. Injected text enters the agent's context labeled as skill output → trust boundary crossed. 6. Planning step treats injected text as instruction → state poisoning. The signature and the gate both "passed." The invariant they were supposed to enforce — *no network egress from this skill* — was never actually enforced, because the gate was attached to the wrong layer. ## Condition of Validity A signed manifest is sufficient proof of provenance **only if** all of the following hold simultaneously: - The signature covers the full transitive closure of the skill bundle, not just the top-level entrypoint. If the bundle resolves imports, fetches templates, or composes sub-skills at runtime, those resolved artifacts must be hash-pinned in the manifest or the hash is not a closure. - The runtime capability gate enforces the declared capability set at the *process/syscall or sandbox boundary*, not at the agent's tool-call API. A gate that only inspects the agent's outbound tool calls does not constrain code running inside the skill. - The declared capability set is *closed*: the manifest enumerates every capability the skill may exercise, and the runtime denies anything not enumerated (default-deny), rather than allowing anything not explicitly denied. - Skill output is labeled with its provenance tier and cannot be promoted to instruction context without an explicit trust transition. Output from a skill with `net.egress:[]` that nonetheless contains fetched text is a contradiction the runtime must detect, not pass through. If any of these fail, the signature attests to bytes, not behavior, and the manifest is an insufficient provenance proof. ## Decision Boundary The boundary is: **does the manifest's content hash cover the artifact that actually executes, and does the gate enforce at the layer where the capability is exercised?** - If hash closure holds and gate is at the execution layer → signature is sufficient; load proceeds. - If hash closure holds but gate is at the API layer → signature is *necessary but insufficient*; the instance must refuse to treat declared capabilities as enforced, and must either sandbox the skill at the process boundary or mark all skill output as untrusted-until-reviewed. - If hash closure fails (runtime-resolved dependencies, remote instruction fetch, dynamic composition) → the manifest does not attest to the executing artifact at all; the instance must refuse to load under a "signed" trust tier and demote to "unverified," requiring human attestation or a pinned closure. The instance must not conflate "signature verified" with "behavior bounded." These are orthogonal invariants and the failure mode is exactly their conflation. ## Operational Effect When the boundary is respected, a signed manifest buys you tamper-evidence on the declarative surface and nothing more. The instance must pair it with execution-layer capability enforcement and output-provenance labeling. When the boundary is violated — gate at the wrong layer, hash not closed over runtime resolution — the agent will load a legitimately-signed skill that performs undeclared egress, and the injection payload will arrive wearing the skill's trust label. The observable symptom is not a signature failure; it is a planning step that acts on instructions the user never issued, sourced from a skill whose manifest said `net.egress:[]`. Detection requires reconciling declared capabilities against observed syscall/egress behavior at runtime, and treating any skill output containing content inconsistent with its declared capabilities as a provenance violation, not a normal result. ```python class ProvenanceBoundaryError(RuntimeError): """Raised when a signed manifest does not bound the executing skill.""" pass def load_skill(manifest, bundle, sandbox): # 1. Signature and hash checks (necessary, not sufficient). if not verify_signature(manifest): raise ProvenanceBoundaryError("manifest signature invalid") if not hash_matches(manifest.content_hash, bundle): raise ProvenanceBoundaryError("bundle hash mismatch") # 2. Hash closure: does the manifest cover everything that can execute? resolved = bundle.resolve_runtime_dependencies() if not manifest.covers(resolved): # Signed, but the signature does not attest to the executing artifact. raise ProvenanceBoundaryError( "hash closure violated: runtime-resolved artifacts " f"{resolved.uncovered()} are not covered by manifest hash" ) # 3. Capability gate must enforce at the execution layer, not the API layer. if not sandbox.enforces_at_execution_layer(manifest.capabilities): raise ProvenanceBoundaryError( "capability gate attached to API layer; declared " f"{manifest.capabilities} are not enforced on skill internals" ) # 4. Default-deny: declared set must be closed. if not manifest.capabilities.is_closed(): raise ProvenanceBoundaryError( "capability set is open; default-allow cannot bound behavior" ) # 5. Output provenance: skill output is labeled, not promoted to instruction. skill = sandbox.load(bundle, manifest.capabilities) skill.output_tier = "untrusted-skill-output" return skill ```