burgee
Packages

provedone

Verified commits for JS and TS repos: each commit carries a receipt of the command that proved it, each intent a done check, and a gate reads both. No dependency outside the burgee family. A @commitlint/cli migration path.

provedone puts a receipt on every change: the command that proved it, how it exited, and a digest of what it printed, as git trailers beside Co-Authored-By:. provedone stamp runs the command and writes the lines; provedone gate reads a commit message or a PR body and, in enforce mode, blocks one with no receipt; provedone done asks whether every success criterion of an intent has a passing stamp on the branch. Every finding names its fix, as the same record for a person, for --json and for a coding agent.

It covers the trailer half of @commitlint/cli: where a trailer-exists rule asks that a Verified-by: line be present, provedone also writes it from a run that happened and checks it gives a reason when it says none. Keep commitlint for the message's shape, and put npx provedone gate in the commit-msg hook, as Migrating shows.

Install

npm install provedone
pnpm add provedone
yarn add provedone
bun add provedone

Install it as a dev dependency (-D) of the repository whose commits it reads. It needs only git.

Quick start

npm install provedone
import { digest, trailers, verdict } from "provedone";

// What `provedone stamp --run "npm test" --not-checked "the docs site"` records.
const receipt = {
  checks: [{ command: "npm test", exit: 0, digest: digest("Tests  81 passed (81)\n") }],
  captures: [],
  notChecked: ["the docs site"],
};
console.log(trailers(receipt).join("\n"));

// And what the gate says of a message with no receipt.
const v = verdict("fix: make CI green");
console.log(`${v.reason}. fix: ${v.fix}`);
Verified-by: npm test -> exit 0 (sha256:a5fa1eae52b6)
Not-checked: the docs site
no Verified-by: line. fix: run `provedone stamp --run "<the command that proves it>" --not-checked "<what you did not check>"` and paste its lines, or add `Verified-by: none (<why it needs no check>)`

That is the check npx provedone gate .git/COMMIT_EDITMSG runs in a commit-msg hook: observe mode passes and logs what enforce would block.

What it checks

provedone stamp --run "npm test" --not-checked "the docs site"   # trailers for the commit
provedone stamp --run "npm test" --not-checked nothing --pr      # the PR's "How this was checked" block
provedone stamp --none "comment-only change"                     # Verified-by: none, with its reason
provedone gate .git/COMMIT_EDITMSG                               # observe: passes, logs what enforce would block
provedone gate pr-body.md --mode enforce                         # blocks a body with no receipt
provedone done faster-help                                       # every success criterion has a passing stamp?
provedone intent new faster-help                                 # intent.md and spec.md from _template/
provedone intent check --evidence                                # the intent rules, and the shipped evidence re-run
CommandExit 1 when
stampa --run command failed (it is still recorded)
gateenforce, no Verified-by: line or a none with no reason, and fewer than two blocks this session
donea success criterion has no passing stamp on this branch; each gets a fix: naming the stamp to run
intent checkan intent breaks a rule, the index disagrees, or a re-run evidence command no longer matches
Verified-by: npm test -> exit 0 (sha256:85f7e552faae)
Captured: shots/home.png
Not-checked: the docs site

One Verified-by: per command, with its exit code and the first 12 hex of the output's sha256; Verified-by: none (<reason>) for a change that needs no check. They are git trailers, so git log --format='%(trailers:key=Verified-by)' answers which commits were never verified. Git reads trailers from the message's last paragraph only, so paste them beside Co-Authored-By:, with no blank line between.

Stamps and the gate log are JSON lines under .git/provedone/, never in the tree. done reads the stamps of the current branch. The gate's session is PROVEDONE_SESSION, else the agent's session id (CLAUDE_CODE_SESSION_ID, CLAUDE_SESSION_ID), else the branch; after two blocks in one session the gate lets the next commit through and logs it, so an agent is never stuck.

Migrating

The switch is one command, npx provedone gate in the commit-msg hook, next to commitlint:

  # lefthook.yml
  commit-msg:
    commands:
      commitlint:
        run: npx commitlint --edit {1}
+     provedone:
+       run: npx provedone gate {1}

and the trailer-exists rule for Verified-by: comes out of commitlint.config.js. Start in observe mode, which passes and logs; add --mode enforce once the log shows only real misses.

Compatibility

Not graded: provedone reads commit messages, PR bodies and intents, and no suite is graded against it. It runs anywhere git does.

Benchmarks

Every number here is produced by npm run bench and published at burgee.interlace.tools/docs/benchmarks.

No suite is graded against this package yet, so there is no compatibility number to quote.

For agents

  • provedone stamp --json, gate --json and done --json print burgee's --json envelope, every finding with a message that ends in fix:.
  • --json, --schema and an MCP server come from one declaration on burgee: provedone --mcp serves its commands as tools.
  • Exit codes are the contract. 0 passed; 1 a check failed, as the table above says; 2 a usage error, with the fix: to run.
  • The docs are machine-readable at burgee.interlace.tools/llms.txt.

API

ImportWhat it gives you
provedonetrailers(), verdict(), digest(), checkedLine(), prBlock(), decide(), doneReport(), checkIntent() and program

The provedone bin is that API, declared once on burgee.

Requirements

Node 22.13 or later, and git.

Where it sits

It hosts no plugin key of its own.

Nothing in this family builds on it yet, and it builds on bellpull and burgee.

The family

15 packages, one repository, one release pipeline. Each installs and works on its own, and each owns one job. Seven of them — bellpull, closeout, linegauge, paratext, roundel, seniority, truefit — depend on nothing; the others depend only on packages in this table, and every dependency points one way, down the layers.

No package declares a dependency from outside the family; react and react-reconciler are optional peers of controlroom, which npm does not install; vitest is an optional peer of oxmutate, which npm does not install; eslint is an optional peer of truepass, which npm does not install. package-shape-lock holds that for every manifest, and independence-install-lock installs each package alone and finds nothing but the family packages it declares.

Releases are published by one workflow through npm trusted publishing: no npm token is used, and each release carries SLSA provenance, which npm view <package> dist.attestations shows. trusted-publishing-lock keeps both true.

PackageWhat it isMigrates from
burgeeThe CLI framework: one declaration, every surfacecommander, yargs and meow
roundelColour: one output policy, semantic tokens, a themechalk, colorette, kleur, picocolors, supports-color and yoctocolors
flagstaffThe frame loop: spinners, progress, boxes and tablesora, log-update, boxen and cli-table3
caiquePrompts that are flags first, and never hang@inquirer/core
linegaugeMeasuring, wrapping, truncating and slicing styled textstring-width, wrap-ansi, strip-ansi, slice-ansi, cli-truncate and widest-line
paratextHyperlinks, images, title, clipboard and notificationsansi-escapes, terminal-link and term-img
seniorityConfiguration precedence and discovery, with provenancecosmiconfig, lilconfig, dotenv and rc
closeoutExit handlers, terminal restore and a bounded shutdownsignal-exit, exit-hook, restore-cursor, cli-cursor and onetime
bellpullSubprocesses, and which executable actually rancross-spawn and which
controlroomKeyboard-driven terminal screens, inline or full-screenink
oxmutateMutation testing on the oxc engine, inside your own VitestStryker
truepassLint rules and a pre-push check that keep a test suite honest@vitest/eslint-plugin
contractdiffAPI contracts: breaking-change diff, lint, and code from the specopenapi-typescript
truefitValidation whose schemas are data, with no evalzod
provedone (this package)A receipt for how every change was verified, and a gate that reads it@commitlint/cli

Every migration guide, and the family-wide compatibility and benchmarks pages, are on burgee.interlace.tools.

Contributing

Issues and pull requests are welcome at ofri-peretz/burgee; read CONTRIBUTING.md first. Report a vulnerability privately, as SECURITY.md describes — never in a public issue.

Licence

MIT © Ofri Peretz — see LICENSE.

On this page