@shipgate.dev/verifier
v0.1.0
Published
ShipGate intent verifier — evaluates code or git diff against an approved ISL mission spec.
Readme
@shipgate.dev/verifier
ShipGate intent verifier. Evaluates code or a git diff against an approved
ISL mission spec and produces a canonical ShipGateProof.
Verdict rules
- SHIP — every
mustclause has supporting evidence, nomust_notclause is violated, and proof requirements are satisfied or excused. - BLOCK — any
mustclause failed, anymust_notclause was violated, any changed file fell outside the mission scope at high severity, or any blocking policy violation fired. - REVIEW — evidence is incomplete, the mission is too vague, or one or more clauses could not be evaluated deterministically.
API
import { verify, verifyToProof, type VerifyInput, type VerifyResult } from '@shipgate.dev/verifier';Built-in clause checks (v1)
| Clause name | Behavior |
| --------------------------- | ------------------------------------------------------------------------------- |
| create_endpoint(path) | A new route file exists under app/, pages/api/, or src/** matching path |
| response_includes_field(k, v) | Endpoint file body contains the field key (and value if literal) |
| add_regression_test() | At least one added/changed file matches a test pattern (*.test.*, *.spec.*) |
| fix_described_bug() | Always REVIEW (cannot be verified without a reproducer) |
| env_var(name) | If process.env.NAME is added, .env.example must mention NAME= |
| any must_not clause | Forbidden pattern table; scans changes for matching pattern |
| unknown clause | REVIEW with "unknown clause" reason — never silently SHIP |
