Notarize what an artifact does
kenwea_notary_checkUse before installing an npm, PyPI or OpenClaw package (npm install, pnpm add, yarn add, bun add, pip install, uv add, poetry add, an OpenClaw plugin install): it fetches the package from its registry (for npm, the tarball npm install would download; for PyPI, the wheel this sandbox can import, which can differ from the one pip picks on your platform; for ClawHub, the release ClawHub serves), runs the install steps npm would run (none for a wheel or an OpenClaw plugin) and then loads the package once where it can (see Behavior), in a sandbox with no route out that plants decoy credentials (for npm and OpenClaw, decoys is false when a run had none in reach), and returns a signed record of what it did. For an npm lockfile or more than five npm packages use kenwea_notary_check_tree. Input: exactly one of package or artifactRef. package is an npm name such as express or express@4.18.2 (an exact version or dist-tag, not a range; no version means latest), a PyPI project as pypi:requests@2.31.0, or an OpenClaw plugin on ClawHub as clawhub:name@version (refused unless ClawHub publishes its SHA-256). artifactRef is a public https URL of one file, npm tarball or Python wheel. Returns: level: nothing_runs (nothing runs at install), quiet (every install step finished, was traced whole and touched nothing watched), network (an install step, or loading the package, tried to reach the network), reads_credentials (one opened a credential file; ours held decoys), sends_credentials (one put a decoy credential into what it sent or started), contains_credential (the bytes carry what looks like a real credential; nothing ran), unfinished (the check could not finish: a step failed, timed out or could not be observed; not a pass). Also summary, one sentence; installSteps (empty means nothing runs); observed (connections, DNS lookups, programs, credentialsRead, credentialsSent, and requests sent to the stand-in network); onLoad (npm, OpenClaw), whether the load ran and what it did; for npm, sincePrevious (install step changes since the previous version; not signed); verdict, reasonCode, contentSha256 and signedAttestation, an Ed25519 signature over the facts; for a registry package, record.recordUrl, a permanent public page. cached true: a stored record answered and nothing ran. checked false: the URL could not be fetched. Limits: no key or account needed. 20 new checks an hour per network address (an IPv6 /64 is one address) within a ceiling shared by all callers without a key, refused with rate_limited and the reset time; answers from a stored record are free. A Bearer API key skips the shared ceiling and has its own 20 an hour; the address limit still applies. At most four checks run at once; one that gets no slot within 10 seconds comes back with reasonCode runner_busy and nothing run: retry it once, then carry on. Up to 32 MiB; 15 seconds for a file, 55 for a package. A PyPI record covers the wheel this sandbox can import (pure Python, or musllinux for CPython 3.12); pip on another platform may install different bytes, and a package with only a source distribution is refused, because its setup.py is not run. Behavior: no route out (a stand-in network records every lookup and connection), all capabilities dropped, a read-only filesystem, not root. An npm package gets its dependency tree first, each tarball checked against the registry's integrity hash, then the steps npm would run (preinstall, install, postinstall, node-gyp for a binding.gyp). Only a package named from a registry, with its tree in place, is then loaded once: an npm package as an application would require or import it, an OpenClaw plugin as OpenClaw loads it. A wheel is installed with the wheels pip would add for CPython 3.12 on Linux x86_64, its top level packages imported and its first console script run with --help. Keeps no copy of the artifact; a rate counter and a log line keep a short hash of your address. Not for: checking a record you already have (kenwea_notary_verify runs nothing and spends no quota).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "kenwea_notary_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | No | npm package name with an optional version or dist-tag, for example express, express@4.18.2 or @types/node@20.0.0; or a PyPI project as pypi:name or pypi:name@version, for example pypi:requests@2.31.0; or an OpenClaw code plugin on ClawHub as clawhub:name or clawhub:name@version. Omit when using artifactRef. | |
| artifactRef | No | Public https URL of the artifact: a single .js, .mjs, .cjs or .py file, a shebang script, an npm tarball (.tgz) or a Python wheel or zip. Omit when using package. |