Skip to main content

proofit — fail-closed linter for locked-down runbooks

A runbook is a step-by-step procedure written so tightly that two different people following it do the same thing and get the same result. proofit checks a runbook draft against fourteen rules of workflow discipline — ten structural rules plus the 1337 module's four (cross-role duplication, header date, suspicious character count, missing-file verification) — and rejects the draft if any structural rule is violated. Heuristic and convention rules (R1, R5, R8, R13) come back as warnings — shown, but they don't fail the draft unless --strict is passed. Fail-closed where it counts: exit 1 until the structural rules pass, exit 0 when it's locked down.

It checks the runbook's shape, not its truth: it can tell you a step is missing its verification block, not whether the verification would actually work. A fully-specified unwise workflow passes; a wise but sloppy one doesn't. That distinction is the whole product — see the FAQ.

No prerequisites. You don't need to know anything about this project's history or any framework. The mechanism is the whole product.

(Lineage: this is the front-facing conversion of the proofit skill from Ryan's skill-suite, MIT. What changed in the conversion is documented in CHANGELOG.md.)

What it does

You write the runbook as Markdown in the template shape (templates/runbook-template.md — or print it with python -m proofit template):

  • Ground Rules & Prerequisites — baseline, routing specs per service, tools/items, expected outcome
  • Step-by-Step Directives — numbered steps, each with Do: / Look for: / Verify: / If wrong: / Fix:
  • Validation & Closure — success condition plus consistency checkpoints

The linter parses that shape and runs ten checks:

# Rule How it's checked
1 Remove every assumption Heuristic: flags bare unlabeled directives ("Press Continue") and claims of automatic behavior ("is done automatically"). Narrow by design — see below.
2 All prerequisites upfront Structure: the section must exist before step 1 and cover all eight fields (hardware, software, accounts, permissions, files, internet access, free-tier limits, starting state).
3 One action per step Structure: each Do: holds exactly one verb-led action; steps numbered 1..N.
4 Concrete references Flags bare UI nouns ("the button") and vague references ("open the file") with no visible label. Qualified nouns ("a confirmation dialog") don't fire.
5 Explain technical terms Convention: where a glossary exists, every entry must match Term (definition). Detecting undefined jargon without a glossary is out of scope — stated, not pretended.
6 Verification after every milestone Structure: every step ends with a Verify: block in observable language ("displays", "exists", "contains").
7 Immediate recovery Structure: every step carries If wrong: + Fix:.
8 Never skip state changes Heuristic: a Do: starting with a state-changing verb (open, close, install, …) must describe the resulting state in transition language ("a dialog appears"). Narrow by design.
9 Routing decisions upfront Schema: per named service — when to use, free-tier limits, verbatim prompt, expected output format — plus rate-limit handling and error paths.
10 Finish with full validation Structure: the document ends with Validation & Closure (never a step), with a success condition and a checklist.

Why it works

Most workflow failures are specification failures, not execution failures. Someone improvises mid-stream because the routing decision was never written down. Someone skips a prerequisite because it was revealed in step 9. Someone combines two actions in one step and does them in the wrong order. The ten rules attack exactly these failure modes, and the linter makes them mechanical: the rules that can be checked as structure are checked as structure, so compliance isn't a matter of discipline — it's a matter of passing the gate.

Two rules (1 and 8) are phrase-list heuristics — tripwires, not proof. They report as warnings in default mode and block only under --strict, so they are deliberately narrow: they fire only on clear hits. A foolproof gate that misfires on good drafts isn't foolproof, it's a tax. The narrowness is documented in the code and tested.

Quickstart

Zero dependencies beyond Python 3.10+.

cd proofit
PYTHONPATH=src python3 -m unittest discover -s tests   # 90 offline tests

Lint a known-good draft first (expect PASS: no violations):

PYTHONPATH=src python3 -m proofit lint examples/fixed-runbook.md

The blank template REJECTS until its placeholders are real observable checks. Then lint a draft:

PYTHONPATH=src python3 -m proofit lint my-runbook.md
# violations listed as RULE n [location] ERROR|WARNING — message + fix
# exit 1: REJECTED — fix and re-run
# exit 0: PASS — the runbook is locked down

Print the blank template:

PYTHONPATH=src python3 -m proofit template > my-runbook.md

Or use it as a library:

from proofit import lint_text

result = lint_text(open("my-runbook.md").read())
if not result.passed:
    for v in result.violations:
        print(v.render())

See examples/run_local.py for the full cycle (broken draft rejected, fixed draft passes).

Inputs, outputs

  • Input: a runbook draft in Markdown following the template shape (templates/runbook-template.md, or print it with python -m proofit template). Freeform Markdown is out of scope by design, not by accident: the linter parses the template's sections, so a document that isn't in the template shape fails wholesale on missing sections rather than producing meaningful per-rule violations. Write it in the template, get it checked — anything else isn't a bad runbook to proofit, it's not a runbook at all.
  • Output: a list of findings (RULE n [location] ERROR|WARNING — message plus a fix: line), and an exit code: 1 if any ERROR exists, 0 if clean. Structural violations are fail-closed; heuristic and convention hits are warnings unless --strict.

Worked example

examples/example-1-lint-cycle.md — the same workflow as a broken draft (18 violations, rejected) and a fixed draft (passes). The fixture files examples/broken-runbook.md and examples/fixed-runbook.md are the actual inputs; the test suite asserts the broken one yields exactly 18 violations across the ten workflow rules (the 1337 module's four add none on these fixtures) and the fixed one yields zero.

FAQ

Does it check whether the runbook is correct? No. It checks the runbook's shape, not its truth — it can't tell whether a stated rate limit is right or a recovery path works. It guarantees the workflow is fully specified, not that it is wise.

What if a heuristic fires on a good draft? Rules 1 and 8 are narrow by design, but false positives are possible (documented in checks.py). If one blocks a draft you believe is correct, the honest move is to reword past the tripwire — the rewording is usually clearer anyway — not to fork the linter.

Why fail-closed instead of warnings? Because the skill's promise is "unbreakable, zero-assumption directive." A warning you can ignore is the opposite of idiot-proof — so structural violations are fail-closed, no exceptions. The heuristic and convention rules (R1, R5, R8, R13) are the narrow exception: they report as warnings because they're tripwires, not proof, and tripwires can false-positive. Pass --strict to make them fail the draft too. The gate is still the product.

Single-service workflow — do I need the routing section? No. Rule 9 is vacuous when no services are named. Delete the Routing Architecture section and the check passes silently.

License

MIT. See LICENSE.

Metadata

Release files for frontface-proofit 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for frontface-proofit 1.2.2
File Size Uploaded Provenance Actions
frontface_proofit-1.2.2.tar.gz 32.8 kB With provenance Details for frontface_proofit-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for frontface-proofit 1.2.2
File Interpreter ABI Platform Actions
frontface_proofit-1.2.2-py3-none-any.whl Python 3 none any Details for frontface_proofit-1.2.2-py3-none-any.whl

Total release size: 60.2 kB

Release files / frontface_proofit-1.2.2.tar.gz

Download URL frontface_proofit-1.2.2.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2df0400abbdaada8becf95cd555aaa630bb2efe61db28075cb85f5cdb4400f88
BLAKE2b-256 checksum
How to use checksums
738c1b22090d7a151591a0cfb294e9281bd9f8b8aa7efeceb0087b17f78bf4f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / frontface_proofit-1.2.2-py3-none-any.whl

Download URL frontface_proofit-1.2.2-py3-none-any.whl
Size 27.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d64c70f1dda58a32b5e0e1c41b40f711e9f5d61ee279b9521f842687cb50005
BLAKE2b-256 checksum
How to use checksums
58852758c3d6d00f6e380bbe26b28cee1e546de190c5f6f10621cf81cb1d6d1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for frontface-proofit 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for frontface_proofit-1.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page