failfirst (Python)
Acceptance criteria that must be proven to fail on the unfixed code before they may count as passing. A check that has never failed carries no information.
pip install failfirst
failfirst baseline # before the work; writes .failfirst.lock.json
failfirst verify # after; passes only if every criterion failed first, passes now, and is unchanged
Library:
from failfirst import load_criteria, baseline, verify, format_report
criteria = load_criteria("failfirst.yaml")
report, code = baseline(criteria, ".failfirst.lock.json")
# ... do the work ...
report, code = verify(criteria, ".failfirst.lock.json")
print(format_report(report))
Exit codes: 0 pass, 1 fail, 2 bad input, 3 judgment criteria awaiting human review.
Full documentation, the language-neutral spec and the conformance vectors: see the repository root (spec/SPEC.md). MIT licensed.
Agent use
failfirst describe --json (Anthropic / OpenAI / MCP tool definitions), failfirst mcp (MCP stdio server), --json on every command, stable FF_E_* error codes. See agent/AGENTS.md and agent/llms.txt in this package.
Metadata
Release files for failfirst 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| failfirst-0.1.0.tar.gz | 24.1 kB | Without provenance | Details for failfirst-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| failfirst-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for failfirst-0.1.0-py3-none-any.whl |
Total release size: 47.2 kB
Release files / failfirst-0.1.0.tar.gz
| Download URL | failfirst-0.1.0.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4000114ada9c3589a9308ee0f37fe42be75e84f87aa4c764b921357323e14fc
|
|
BLAKE2b-256 checksum How to use checksums |
775d70b5c01c2f5cc9e6b2c611c1ce463bf98bb89dd690d109b1a9302ebe2de2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / failfirst-0.1.0-py3-none-any.whl
| Download URL | failfirst-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2586b60064e4c015ecb878468e66740539bd2aa6ac903e17321414c5f801d55
|
|
BLAKE2b-256 checksum How to use checksums |
3172bde6482ca72e9f656aa30ffa4ce24be1263025517c811af3c564e4c702fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for failfirst 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.