Reviewing a pull request with okproof

For a reviewer or tester who does not run builds or tests and does not edit the repository. okproof can help on the review side, but only with what it already does. This page says what that is and what is not built yet.

What works today, read-only

The author (or the author's coding agent) keeps the criteria in .okproof/<issue>.md and the tests tagged [okproof:<id>]. CI runs the tests. You then read, and run nothing:

  1. The check run and PR comment from the okproof Action show each criterion as met, failed, unproven, untested, insufficient, flaky, partial or wrong-build, with the evidence level.
  2. Download the CI results (the JUnit or CTRF artifact) and run npx okproof explain <id> --results <file> for one criterion, or npx okproof gate --results <file> for the whole verdict. These read files; they do not run tests.
  3. npx okproof lint reads the test source and flags weak or unrelated assertions. It does not execute anything.
  4. npx okproof check --issue-body <file> --issue <n> compares the proof file with the issue text and shows criteria that were added, removed or reworded after the issue was written.

What to check as a reviewer

Criteria changes and the reviewer table

Criteria from a table of cases

If the issue keeps its cases as a table, okproof sync --issue <n> --table "<heading>" --id-col ID --text-col Expected turns each row into a criterion with the case id as its stable id.

Limits

okproof still needs an .okproof/ folder in the repository, so a reviewer who cannot add files needs the author to add them first. The guard compares proof files, not the meaning of a reworded criterion: it tells you a criterion changed and shows the old text.

View source on GitHub