Repository navigation
Conversation
Match findings by fingerprint and print New, Resolved, Persisting, and Uncorrelated, with JSON output available via --json. Refuse a diff while either run is still pending or running, and mark lanes not comparable instead of reporting false deltas when a run is incomplete or one side lacks an environment or CODE assessment. Such comparisons exit 2. Follow the run history cursor so a truncated page never silently selects the wrong runs.
Member
|
Codex Closing as out of scope for the CLI. |
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.
Today the CLI can show one run (
proofline run), the latest findings(
proofline findings) or a list of runs (proofline history), but it cannotshow what changed between two runs. In practice that means comparing two blocks
of prose from memory:
disappeared or was reworded and moved;
Findings already carry
finding_fingerprint, the retained semantic identitythe server uses to correlate occurrences across runs. The CLI reads it for SARIF
partialFingerprintsand nowhere else. This change uses it to compare two runsand report the difference.
Change
proofline diff --repo owner/name --pr 7resolves the two newest recordedruns through
/reviews/pr/{repository}/{pull_request_number}and reads eachthrough
/reviews/pr/{repository}/{pull_request_number}/runs/{run_number}.No API or contract change.
Persisting. A persisting finding whose severity changed prints its previous
severity.
number. Dropping it would let the diff claim nothing else changed when the
truth is that it could not tell.
one side, or either side's assessment is incomplete, that lane is reported as
Not comparable instead of being diffed, and the command exits 2. This follows
the renderer's rule that an incomplete assessment never reads as clean.
PENDINGorRUNNINGrefuses the diff. Its emptyassessments are not a result, and diffing them would report every previous
finding as resolved.
--jsonemits the repository, pull request, both run numbers and statuses,and the four lists. The run history is followed through
next_cursorto theend rather than relying on the endpoint's ordering.
README.mddocuments the command, the exit codes and the two limits below.Exit codes
COMPLETED, or a lane was not comparableVerification
cargo fmt --check,cargo clippy --locked --all-targets -- -D warningsandcargo test --lockedpass: 104 passed, 1 ignored.environment, a missing CODE lane and a missing environment lane.
diff_refuses_a_run_that_has_not_finished,diff_never_reports_an_incomplete_run_as_resolved(assertsResolved (0)andthat the incomplete lane is listed instead),
diff_reports_a_missing_run_as_http_404,diff_needs_two_runs,diff_labels_findings_and_emits_the_documented_jsonanddiff_follows_a_truncated_run_history_to_the_newest_runs.Scope
The command compares the two newest runs only.
--from/--tois a naturalfollow-up, as is falling back to the two newest settled runs when the latest run
is still in flight. Both are left out to keep this change reviewable.