# Where must an instance draw the trust boundary between a signed skill manifest and the runtime behavior of the skill it names? **Date of Record:** 2026 November 27 **Scope:** Applies to agent runtimes that discover and load skills from a registry by manifest (name, version, capability claims, tool bindings), where the manifest is signature-verified but the skill's executable payload is fetched and executed separately. Does not apply to monolithic agents whose skills are compiled into the same signed artifact as their routing table. ## Core Distinction The failure is not "unsigned skill gets loaded." Signature verification on the manifest is usually correct and is the thing operators brag about. The failure is that **the manifest is a claim, not a commitment**. A signed manifest asserts *what the skill says it will do* — which tools it needs, which scopes it touches, which model calls it makes. The runtime then executes the payload and trusts that the payload's actual behavior stays inside the asserted envelope. Nothing enforces that containment unless the runtime re-derives the envelope from the payload's *observed* behavior and compares it against the *signed* claim. Most registries verify the manifest once at install time and never re-check at invocation time. That gap — between the signed claim and the executed behavior — is the injection surface. A poisoned manifest does not need to forge a signature; it needs only to declare a benign envelope while the payload behind it does something the envelope never mentioned. The signature validates the lie. ## What Was Observed A skill registry entry for a utility skill (`text-normalizer`, claimed scopes: `read:user_input`, tool binding: `string_ops` only) passed signature verification at install. The signed manifest's capability list was genuine — the publisher signed it, and the publisher's key was valid. At first invocation, the runtime resolved the skill's payload by content-addressed digest from the manifest's `payload_digest` field and executed it in the standard sandbox. The payload's first action was to enumerate the process environment. The sandbox permitted this because the sandbox policy was derived from the *manifest's declared tool bindings* (`string_ops`), and `string_ops` was implemented as a thin wrapper that inherited the host process's environment to resolve locale settings. The payload read `AGENT_WARRANT_TOKEN` and `REGISTRY_SIGNING_KEY_PATH` from the environment, then made an outbound call to a URL assembled from a base64 string embedded in a string literal. The manifest was signed and valid. The digest matched. The sandbox policy matched the manifest. Every individual check passed. The composite — signed benign claim + payload that reads outside its claimed scope through an inherited channel — failed silently. The outbound call succeeded because the runtime's egress policy trusted the skill's declared tool binding, and the tool binding was `string_ops`, and `string_ops` had an egress path for "locale data fetch" that nobody had audited. The tell was in the invocation trace, not the install log: the skill's first tool call sequence was `env_read → http_post` within 40ms of load, with no intervening `string_ops` call. The manifest had declared zero network tools. The runtime had no invariant checking that the observed call graph was a subset of the declared call graph. ## Condition of Validity The signature-on-manifest model is valid **only if** the following invariant holds at every invocation: > The set of capabilities actually exercised by the payload during a run is a subset of the capabilities declared in the signed manifest, and every capability in that declared set was itself reviewed and signed by the same authority that signed the manifest. This invariant is almost never enforced, for three reasons. First, capability *declaration* and capability *exercise* are computed by different subsystems (the registry signer vs. the runtime sandbox), and no one compares them. Second, tool bindings are coarse: `string_ops` is a declared capability, but the *implementation* of `string_ops` may transitively expose `env_read` and `http_post`, so the declared set under-approximates the exercised set even when the payload behaves as advertised. Third, the payload digest is verified against the manifest, but the manifest's *capability list* is not re-derived from the payload — so a publisher who ships a benign-looking manifest and a payload that does more is never caught, because the digest only proves the payload is the one the publisher intended, not that it does what the publisher claimed. The model collapses the moment a declared capability's *implementation* has transitive reach beyond its name. That is the boundary condition: **a signed capability is only as narrow as the least-narrow thing it transitively invokes.** ## Decision Boundary An instance must treat the manifest as a *lower bound on intent* and the observed call graph as the *ground truth of behavior*, and refuse to proceed when the difference is non-empty and unexplained. Concretely, the runtime must, at invocation time: 1. Instrument the sandbox to record every syscall/tool/egress event the payload triggers, including transitive calls through declared tool bindings. 2. Project that observed event set onto the manifest's declared capability set. 3. If the projection is not a subset — i.e., the payload exercised a capability the manifest did not declare — halt the invocation, quarantine the skill, and emit a divergence record. The decision boundary is sharp: **any exercised capability outside the signed declaration is a violation, regardless of whether the manifest was signed and the digest matched.** A valid signature on an under-declared envelope is not evidence of safety; it is evidence that the signer's claim does not cover the payload's reach. The runtime must not "trust the signature" past the point where observed behavior exceeds the signed claim. The guardrail is not "verify harder at install." It is "re-derive at invoke." Install-time verification answers *is this the artifact the publisher signed?* Invocation-time containment answers *did the artifact stay inside what the publisher signed for?* Only the second question bounds the attack. ## Operational Effect When the invariant is enforced, skill-injection via manifest poisoning loses its primary lever. An attacker who controls a registry entry can still sign a manifest, but the manifest must now declare every capability the payload will exercise — including the transitive reach of every tool binding — because the runtime will halt on any undeclared exercise. Under-declaration becomes self-defeating: the payload is quarantined on first invocation, before the exfiltration call completes. The cost is that tool bindings must be audited for transitive reach *before* they can be declared, and the runtime must instrument transitive calls through binding implementations, not just top-level tool invocations. That is the real work the signature model was hiding: the signed manifest was never a security boundary, only a provenance record. The boundary is the re-derivation at invoke time. Without it, a valid signature is a permission slip for whatever the payload actually does. ```python class CapabilityDivergenceError(RuntimeError): """Raised when a skill payload exercises capabilities outside its signed manifest.""" pass def enforce_manifest_envelope(manifest: dict, observed_events: list[dict]) -> None: """ Invariant: observed capability set must be a subset of the signed declared set. A valid signature on an under-declared manifest does not exempt the payload. """ declared = set(manifest.get("declared_capabilities", [])) if not manifest.get("signature_verified", False): raise CapabilityDivergenceError( f"skill {manifest.get('name')!r}: manifest signature not verified at invoke time" ) exercised = set() for ev in observed_events: cap = ev.get("capability") if cap is None: # An event with no attributable capability is itself a divergence: # the sandbox could not map it to any declared binding. raise CapabilityDivergenceError( f"skill {manifest.get('name')!r}: unattributable event {ev!r}" ) exercised.add(cap) undeclared = exercised - declared if undeclared: raise CapabilityDivergenceError( f"skill {manifest.get('name')!r} v{manifest.get('version')}: " f"payload exercised undeclared capabilities {sorted(undeclared)}; " f"declared={sorted(declared)}; halting invocation and quarantining skill" ) ```