failfirst 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,58 @@
1
+ Metadata-Version: 2.4
2
+ Name: failfirst
3
+ Version: 0.1.0
4
+ Summary: Acceptance criteria that must be proven to fail on the unfixed code before they may count as passing.
5
+ Author-email: Pallav Pokhriyal <pallav01@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/pallav0107/failfirst
8
+ Project-URL: Source, https://github.com/pallav0107/failfirst
9
+ Project-URL: Issues, https://github.com/pallav0107/failfirst/issues
10
+ Keywords: testing,ci,ai-agents,acceptance-criteria,verification
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: PyYAML>=6
24
+ Provides-Extra: test
25
+ Requires-Dist: pytest; extra == "test"
26
+ Requires-Dist: jsonschema>=4; extra == "test"
27
+ Requires-Dist: tiktoken; extra == "test"
28
+ Dynamic: license-file
29
+
30
+ # failfirst (Python)
31
+
32
+ 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.
33
+
34
+ ```
35
+ pip install failfirst
36
+ failfirst baseline # before the work; writes .failfirst.lock.json
37
+ failfirst verify # after; passes only if every criterion failed first, passes now, and is unchanged
38
+ ```
39
+
40
+ Library:
41
+
42
+ ```python
43
+ from failfirst import load_criteria, baseline, verify, format_report
44
+
45
+ criteria = load_criteria("failfirst.yaml")
46
+ report, code = baseline(criteria, ".failfirst.lock.json")
47
+ # ... do the work ...
48
+ report, code = verify(criteria, ".failfirst.lock.json")
49
+ print(format_report(report))
50
+ ```
51
+
52
+ Exit codes: 0 pass, 1 fail, 2 bad input, 3 judgment criteria awaiting human review.
53
+
54
+ Full documentation, the language-neutral spec and the conformance vectors: see the repository root (`spec/SPEC.md`). MIT licensed.
55
+
56
+ ## Agent use
57
+
58
+ `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.
@@ -0,0 +1,23 @@
1
+ failfirst/__init__.py,sha256=6ry2w-3l43m0BlY4DDwQAW79Ne1dBQgzQOAQS7Z2_Nc,584
2
+ failfirst/__main__.py,sha256=E6Gls0DNz8GQK2K-kOUIx8cYhgANW_CH54VKrfCfs14,52
3
+ failfirst/agent.py,sha256=_ixHH1G0jdy6toeKtF_wsg4tkD563PQcLIJsOOIMjVw,4914
4
+ failfirst/cli.py,sha256=mRj-aAtd2oLCT7afCHSI2P6GgvEh8kVflf7N83cnokg,5287
5
+ failfirst/core.py,sha256=4aAzth-LyEDKX9FrTsErkTuIftqD3lOZRC4SFMyMZnU,8571
6
+ failfirst/mcp.py,sha256=3T6_dCqoyQRzGwCGuG5-wX0z6yPWAbnu3Ywk0yAAsOg,3251
7
+ failfirst/model.py,sha256=Ropw1SigHqHhj32XV2nW91IrWHmPdreACRkdrUy_nRU,7112
8
+ failfirst/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ failfirst/runner.py,sha256=eTleO5rMCD7nfndRTGH7IJxd20WllVjuhBPPNnOrrGU,3871
10
+ failfirst/agent/AGENTS.md,sha256=_W6KdqfG87ht-K5xrt_Vm9j19nlH4NrS9RHCn1U8qII,3132
11
+ failfirst/agent/llms.txt,sha256=KY-VEEweOdWddDgu0iE7kLJpvSHHItH6yHp1l0HZYVE,1087
12
+ failfirst/agent/tools.json,sha256=fLOLbRoQvGLrtYFM4Ai71c6otm5FweLXQPhI6lLCV4o,3319
13
+ failfirst/agent/schemas/baseline-report.schema.json,sha256=CbrnNRmXTaLdrm0pRE_CVOTxf5WQzM6DgheP_wfZN0U,2349
14
+ failfirst/agent/schemas/describe.schema.json,sha256=EAA05zLLFNnqzaUaUUDzPy7_9CaNsP5YqD5hny-pfXI,2796
15
+ failfirst/agent/schemas/error.schema.json,sha256=oiu8u1nLQniOIdNDh5pAGevGkHBhF2Ucwrs23VGrxzc,681
16
+ failfirst/agent/schemas/verify-report.schema.json,sha256=8xmnNc8_B1jD8-TpO0B20QHq7-w2CeD24e4qMhjczxQ,2523
17
+ failfirst/agent/schemas/version.schema.json,sha256=bywB9Rj0OGQEz9g66mZMpexzuW9QEvX0PAmeyOngDH8,393
18
+ failfirst-0.1.0.dist-info/licenses/LICENSE,sha256=cr7GSixCcUQiaPQc2oX2OMvcx2qVQZ7XvscNZxxRVpA,1073
19
+ failfirst-0.1.0.dist-info/METADATA,sha256=-xwGhOPMR_dPql89FF4Vnpnv2-EViVaOfPtQG6_Rk3k,2355
20
+ failfirst-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
21
+ failfirst-0.1.0.dist-info/entry_points.txt,sha256=41gl7dKQ9QibbbIstdn8gPtlZVZPXYg1JHeasp61sHE,49
22
+ failfirst-0.1.0.dist-info/top_level.txt,sha256=e4-8ZZeFQgoKH2EUod4e2y4VIRGfOCD_OkonvSOId3w,10
23
+ failfirst-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ failfirst = failfirst.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pallav Pokhriyal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ failfirst