| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
ReviewOutcome.gate(fail_on) reports REACHED, NOT_REACHED, NOT_COMPLETE or UNAVAILABLE with the CLI's rules: completeness decides first, the server's open-finding counts decide for a completed review, a complete CODE assessment of the review's own commits adds its unresolved findings, an unknown severity reaches every threshold, and missing counts are never a pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
ReviewOutcome.gate(fail_on) checks a review against a WARNING or SERIOUS threshold using the rules of proofline ci review --fail-on. It returns REACHED, NOT_REACHED, NOT_COMPLETE or UNAVAILABLE, which correspond to the CLI's exit codes 3, 0, 2 and 4.
Who this helps, and the evidence
This is for Python pipelines and deploy tools that already call wait_for_review and want to fail on findings.
Decisions
Verification
Against a real review. I installed Proofline on my fork and opened this branch there as Measure a review against a severity threshold like ci review --fail-on kingsleytorlowei/sdk-python#1. Proofline reviewed it: "no new findings".
python3 scripts/check.py passes end to end on Python 3.13: generation check, contracts, ruff check, ruff format --check, mypy, pytest (120 passed: 91 existing, 29 new), and both the wheel and sdist install smoke tests.
tests/test_gate.py mirrors the CLI's ci_measures_only_a_complete_review_against_the_open_finding_counts table case for case. It adds:
Mutation check. I broke each rule in turn and confirmed a test fails every time:
All 12 were caught.
🤖 Generated with Claude Code