Repository navigation
Conversation
`ci review --fail-on` measures the server's open-item counts, which honour finding decisions and include findings no assessment lists. The text, annotations and SARIF now show the same data: - each finding's recorded decision, as a `decision:` line, an annotation title suffix and a SARIF `decision` property, never a suppression, because a dismissal can expire unseen; - environment findings with no severity, under their environment and led by their source, counted in the environment's findings; - earlier runs' open findings that the review did not find again; - the counts themselves on the `--fail-on` line of a pull-request review. Every new field is optional, so older responses decode as before, and a review without the new data prints exactly as it did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`emit` only joins its properties, so it borrows them. An earlier run's finding with a severity this CLI does not know is annotated as a notice, and a test now holds that. The review's environment findings field states what it holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Who it helps
Teams that run
proofline ci reviewwith--fail-onor--annotations, and anyone who reads a pull request's review in a terminal.The verdict and the output read different data, so they can disagree.
--fail-onmeasures the server'sopen_itemscounts, and those respect what people decided about each finding. The annotations, the text and SARIF don't see those decisions. So a SERIOUS finding someone dismissed on GitHub stays a red::erroron the diff while the job passes, and nothing says it was dismissed.It also breaks the other way. The counts include findings that no assessment lists: open findings of earlier runs that this review didn't find again, and environment findings that have no severity. A job can fail
--fail-on warningon one of those while its log saysproduction: COMPLETED, no findings.What changes
The output now shows what the verdict counted. Here is
ci review --annotations --fail-on seriousagainst a local fake of one review (exit 3):decision:line in the text, a(DISMISSED)-style suffix on its annotation title, and adecisionproperty in SARIF.investigation_findings) print under their environment. Each line starts with its source:CONFIRMED_REQUIREMENT,INVESTIGATIONorSHARED_IDENTITY. The environment's finding count includes them, so it no longer says "no findings" beside one. On the job they're notices. One whose assessment the review doesn't list gets its own section after the assessments.open_items.earlier_findings) print after the assessments, with the review that recorded each. On the job they're errors or warnings by severity, or notices for a severity this CLI doesn't know.--fail-online on a pull-request review names the counts it measured.This sits beside #80, which adds review gaps to the annotations. Both change
src/annotations.rs, so whichever merges second needs a rebase. I'll do it if this one is second.Decisions
--jsonstill prints the raw document.open_items, so only they print the counts. Other reviews keep the plain line.How I verified it
cargo fmt --check,cargo clippy --locked --all-targets -- -D warnings,cargo test --locked(167 passed, 1 ignored; 156 before) andcargo deny checkwith cargo-deny 0.20.2 all pass.tests/contract.rsholds the three new types toopenapi.public.json, decoding both the smallest and the fullest document the contract allows.tests/http.rsrunsci reviewend to end against a fake server: a dismissed finding, an investigation finding and an earlier run's finding become the annotations above, and--fail-on seriousexits 3 naming the counts. The existing--fail-onmatrix now also checks the counts line forci reviewandreview --pr.render.rs,annotations.rsandlib.rscover each source label, a missing source, an unlisted assessment, an untitled earlier finding, an automatic decision, terminal escapes in the new server text, and that a commit review never prints counts.tests/sarif.rschecks thedecisionproperty, that there's no suppression, and that a finding without a decision has nodecisionkey.cargo llvm-cov: every one of the 523 source lines this change adds runs under the tests.cargo mutants --in-diffover this change: 39 mutants on the changed lines, all killed. The change adds no function above cyclomatic complexity 10 and raises none that was, aslizardcounts it.🤖 Generated with Claude Code