ShipWitness
# ShipWitness
**AI writes. ShipWitness verifies.**
[](https://www.npmjs.com/package/shipwitness)
[](https://www.npmjs.com/package/shipwitness)
[](LICENSE)
[](https://github.com/saifmodan2006/ShipWitness/actions/workflows/ci.yml)
[](https://saifmodan2006.github.io/ShipWitness/)
ShipWitness runs software verification locally and records the evidence behind a release decision. Use it to check a project before merging, deploying, or claiming a task is complete.

## Quick start
Requires Node.js 24 LTS. Install ShipWitness from npm, then run the first check in a project directory. The [GitHub release](https://github.com/saifmodan2006/ShipWitness/releases/tag/v0.1.1) also provides the tarball and its checksum.
Try the first check from a project directory without a global install.
```sh
npx --yes shipwitness@0.1.1 verify --only secrets
```
For repeated use, install the CLI globally.
```sh
npm install --global shipwitness@0.1.1
shipwitness verify --only secrets
```
To build from source, use pnpm 11.25.0.
```sh
git clone https://github.com/saifmodan2006/ShipWitness.git
cd ShipWitness
pnpm install --frozen-lockfile
pnpm --filter shipwitness... run build
node packages/cli/dist/cli.js -C examples/working verify --plan
node packages/cli/dist/cli.js -C examples/working verify --approve --only build,test,secrets
node packages/cli/dist/cli.js -C examples/working dashboard
```
From a project with ShipWitness installed, `shipwitness verify --only secrets` records a first run without starting your app or running its scripts. Use `shipwitness init` to discover scripts and set mandatory checks. Review `shipwitness verify --plan` before approving scripts.
Run the intentionally broken fixture to see failing build, test, environment and migration checks.
```sh
node packages/cli/dist/cli.js -C examples/broken verify --approve --only build,test,environment,migrations --ci
```
## What it verifies
| Area | Evidence |
| ----------------------- | ------------------------------------------------------------------------------------------- |
| Project scripts | npm and pnpm build, lint, type-check and test output, exit codes and timings |
| Environment and API | Missing variable names, HTTP status and JSON field type checks |
| Browser and visual | Desktop and mobile overflow, axe findings, page errors and exact PNG comparison |
| Security and migrations | Local credential signatures, package-manager advisories and SQL risk patterns |
| Release decisions | Mandatory checks, requirement mappings, Git-aware secret scanning and saved run comparisons |
The CLI, dashboard, MCP server, and GitHub Action share the same engine and run format.
The read-only MCP launcher is available through the [official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.saifmodan2006%2Fshipwitness/versions/0.1.1). Set `SHIPWITNESS_PROJECT_ROOT` to the absolute path of the workspace you want it to inspect.
```mermaid
flowchart LR
CLI[CLI] --> Engine[Verification engine]
MCP[Stdio MCP] --> Engine
Action[GitHub Action] --> CLI
Engine --> Checks[Checks and trusted plugins]
Checks --> Policy[Evidence and release policy]
Policy --> Runs[(Local JSON and screenshots)]
Runs --> Reports[JSON and HTML reports]
Runs --> Dashboard[Loopback dashboard]
```
## Security and limits
Preview plans before approving scripts or network requests. Approved scripts run with the current user's permissions. Use an isolated disposable environment for untrusted projects. Secret and migration checks are heuristic. A skipped mandatory check fails the release policy. See [SECURITY.md](SECURITY.md).
Use `--docker` to execute npm checks in disposable Linux containers with the network disabled during script execution. Use `shipwitness report --share` for a summary without logs or images, and `shipwitness report --verify-integrity` to verify the stored SHA-256 hashes.
Read the [documentation site](https://saifmodan2006.github.io/ShipWitness/) for the CLI, Docker mode, configuration, agent hooks, GitHub Actions, and plugin integration. See [release instructions](RELEASE.md) and [contributor setup](CONTRIBUTING.md).
See the [generated-code failure and fix demo](examples/ai-generated/README.md) and [measured benchmarks and test coverage](BENCHMARKS.md). MIT licensed.
If you try ShipWitness on your own project, share your setup and observations in the [independent testing discussion](https://github.com/saifmodan2006/ShipWitness/discussions/5).

This server cannot be deployed
TDQS
Scored across 8 tools
Each tool maps to a distinct step in the verification workflow: discovery, planning, execution, retrieval, comparison, and policy evaluation. Potential pairs like plan_verification/execute_checks and get_run/get_evidence are clearly separated by their descriptions.
All tool names use consistent snake_case with a predictable verb_noun structure such as detect_project, list_checks, execute_checks, and compare_runs. There are no mixed conventions or vague standalone verbs.
Eight tools is well-scoped for a verification/audit workflow, with each tool covering a meaningful stage rather than duplicating functionality. The set feels intentionally designed around planning, execution, evidence, and policy review.
The surface covers the core verification lifecycle from project detection and check listing through execution, evidence retrieval, run comparison, and policy evaluation. However, there is no obvious list_runs or run-discovery tool, which may make it harder to find stored run IDs for compare_runs and get_run.