Skip to content

Add --fail-on to proofline review - #46

Merged
mohsen1 merged 5 commits into
prooflinedev:mainfrom
dskrynnikov:review-fail-on
Nov 17, 2026
Merged

mohsen1 merged 5 commits into
prooflinedev:mainfrom
dskrynnikov:review-fail-on

Conversation

@dskrynnikov

@dskrynnikov dskrynnikov commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Who it helps

Pipelines that review pushed commits without a pull-request review: Atlantis between plan and apply, Jenkins, pre-deploy scripts, or coding agents looping until a review is clean. Today only ci review and the Git hooks can fail on findings; review --commit/--range/--path always exit 0 on a completed review.

Change

proofline review --fail-on <warning|serious> exits 3 when the completed review has an open finding at or above the threshold. Incomplete still exits 2, unavailable 4.

  • --pr reviews reuse ci_verdict, so dismissed and accepted findings don't count.
  • Patch, commit and whole-file reviews have no finding decisions, so every non-RESOLVED finding counts, as in the Git hooks.
  • Conflicts with --no-wait.

Verification

  • Unit tests for review_verdict and outcome::findings_reach.
  • tests/local_patch.rs: runs the binary against a mock server and checks exit codes 3/0 and the --no-wait refusal.
  • cargo fmt --check, cargo clippy --locked --all-targets -- -D warnings, cargo test --locked pass. cargo deny not run locally; no dependency changes.

Question

Atlantis already has the exact plan (terraform show -json). Would you accept an upload path so a review can pin it?

`proofline review --fail-on <severity>` exits 3 when the completed review
has an open finding at or above the threshold, as `ci review --fail-on`
does. Pull-request reviews count open items; patch, commit and whole-file
reviews count unresolved findings, as Git hooks do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J7odxnHYgx1FiNrjwN7MBu
@dskrynnikov
dskrynnikov marked this pull request as ready for review November 7, 2026 21:03
@mohsen1

mohsen1 commented Nov 8, 2026

Copy link
Copy Markdown
Member

@prooflinedev review

@prooflinedev

prooflinedev Bot commented Nov 8, 2026

Copy link
Copy Markdown

A full review of 782ec1f8437e is running; the Proofline check on that commit reports its progress and result.

View review in Proofline

@mohsen1 mohsen1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex

Reconciled current completeness semantics, scan behavior and annotation support. The threshold remains opt-in; incomplete/unavailable results stay nonzero and PR counts remain server-owned. Both required jobs passed on this combined head.

@mohsen1
mohsen1 merged commit 5baea73 into prooflinedev:main Nov 17, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants