Checkwright

The activation path for Checkwright, whose kits are listed in the kit reference.

What this package is

A one-shot vendoring installer. It copies pinned kit source out of its own payload into your repository and commits it, then prints the commands that finish the setup. What governs your tree afterwards is committed and auditable: every gate arrives with its declaration and the one-line invariant that declaration carries, its # spec: pointer, and its good/+bad/ fixture pair, and a gate whose implementation is compiled arrives as a digest-verified binary rather than as source. The specification section behind each pointer is published rather than packed (gate-sdk/SPEC.md §Consumer payload, which rules that and bounds it).

What it is not: a dependency channel. Nothing resolves at your build time and the installer writes no dependency reference, no registry lockfile entry and no install-time lifecycle script — the contract and what it costs are installer/SPEC.md §The dependency boundary.

Before you run it

Each transport carries its own requirement, and each belongs to the delivery path alone. The Requirements page’s prerequisites block lists each transport’s tools and their floors, per system. The gate battery this vendors uses none of them, and no delivery-path tool joins the toolchain roster.

The toolchain the battery does assert, with its version floors, is on the Requirements page. checkwright doctor renders it as an exit status and init gates on that before any file is written, so a machine below the floor is refused rather than half-installed.

Quick start

From your repository’s root, in a new project or an existing one with every change committed, run the one line for your system on the install page: macOS and Linux or Windows. The Release tarball recipe on the Manual steps page is the step-by-step alternative. Either unpacks outside the repository, because init refuses a worktree that is not clean.

With Node already present the same install is one command, npx checkwright init — same payload, same init, same checkwright.lock; only the fetch differs, and on Windows the PATH block runs first. npx checkwright init --profile prose picks a profile (Choosing a profile below), and npx checkwright demo shows the adoption arc in a scratch repository first, without touching yours (what it runs).

init vendors the selected profile’s kit directories, writes a gates.list seeded with each kit’s starting gates alongside the config seam those kits need and a CI workflow, and makes one commit naming the install and the version. That commit runs the clone’s own hooks, and if one refuses it the files stay staged and the setup commands still print. It ends by printing the commands that finish the setup, each with its reason — deliberately not copied here, because what init prints is init’s to say (installer/SPEC.md §init).

Re-running is idempotent and non-destructive. init reads the per-file hash checkwright.lock recorded: a file still at its recorded hash is rewritten, and one you have changed since is reported rather than overwritten unless you pass --force. --dry-run prints the file plan and the manifest and writes nothing.

What you can run

init makes an install; the rest manage one after it exists. Each is an arm of the gate binary the payload carries, reached through the bootstrap, and the roster’s owner is the binary — checkwright --help reads it off the artifact rather than off a list beside it, so it cannot promise a verb this build does not implement.

verb asks
init vendor this profile’s kits into my repository
doctor can this machine run the battery, and what is installed here?
diff which of the files init wrote have I changed?
update bring the install here up to the version this package carries
uninstall reverse the install, keeping anything I have edited
demo show me the adoption arc without touching my repository
prove is a done claim caught on my own tree, and what here is enforced?

doctor and diff write nothing, so neither takes a --dry-run, and nor do demo and prove, whose only writes are to a scratch repository each removes. Every verb that does write takes one, and it means the same thing in each: print the plan, write nothing, exit 0.

uninstall reverses an install against the roster init recorded, keeping and reporting any file you edited rather than removing it — which is what lets an evaluation you decide against leave nothing of its own behind.

The flags each verb takes, owned by the binary as the verbs are:

flag verbs means
--profile init, update vendor this profile
--recipe init, update apply this payload recipe; repeats
--no-recipe init, update clear the recorded recipes
--dry-run init, update, uninstall print the plan, write nothing
--force init, update, uninstall overwrite what the verb would otherwise protect
--no-commit init, update, uninstall stage the change and leave the commit to you
--personal init, update install untracked, for this clone alone, committing nothing
--with-kit init, update add this kit to the profile; repeats
--without-kit init, update take this kit out of the profile; repeats
--with-gate init, update register this gate too; repeats
--without-gate init, update drop this gate from the registry; repeats
--no-selection init, update clear the recorded kit and gate selection
--user init, update, uninstall manage one session-hook arm installed for you, not for a repository

init --user <arm> installs one session-hook arm with no repository at all: the gate binary and the arm’s knob file go in your per-user data dir (~/.local/share/checkwright, or %LOCALAPPDATA%\checkwright), the arm’s scratch and log in your per-user state dir, and the harness settings entry for the arm is printed for you to merge, never written. update --user re-places every arm it recorded, and uninstall --user removes them, keeping the state dir and any knob file you edited (installer/SPEC.md §The user install).

Choosing a profile

starter, workflow, delegation, prose, full. Not rungs on one ladder: the profiles are ordered by kit-set containment, so moving to one that contains yours only ever adds, and two that contain neither the other — prose and either of workflow and delegation — are alternatives rather than steps.

  • starter — the gate SDK on its own: a battery, a pre-commit hook, and gates that red on real defects in your tree with no configuration outside your gates directory.
  • workflow — starter plus the stage machine and the recorded test runs, the least on which prove catches a done claim; it keeps starter’s gates.
  • delegation — adds to workflow the rest of the kits whose subject is the agent session itself.
  • prose — adds canon-kit instead, for a repository whose artifacts are documents rather than code.
  • full — everything in the payload.

starter, workflow, delegation and prose are rosters in profiles.list, each membership recorded beside the criterion behind it; full is derived from the payload at run time rather than listed. --recipe <name> applies a recipe the package carries, for a tree another tool lays out, such as a spec toolkit’s.

--with-kit, --without-kit, --with-gate and --without-gate adjust a profile per install, and a gate file of your own under a kit gate’s name, in your gates directory, replaces it (SPEC.md §Selecting kits and gates).

Where the design lives

installer/SPEC.md in the repository, published at https://checkwright.dev/installer/SPEC.html — the install boundary the bootstraps hand to, each verb’s contract, the manifest’s wire shape, the packer and the consumer smoke.

https://checkwright.dev and https://github.com/checkwright/checkwright.

License

Licensed under Apache-2.0, with the text in LICENSE beside this file in the package.