Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Native knowledge, plan, fix and configuration commands send the selected organiz

`proofline rerun REVIEW_ID` requests the original immutable subject and waits, while `--no-wait` returns its link. Reruns require `reviews:rerun`. `proofline guidance --repo owner/name` requires `guidance:read`, and `proofline fix-prompt FINDING_ID` requires `findings:read`. History, guidance, and fix prompts print JSON; prompt text remains untrusted.

`proofline compare --base-review UUID --review UUID` reads two retained reviews of the same pull request, without a checkout, rerun, or write. It uses the usual REST token and organization selection and matches findings only by the server-retained fingerprint. Code and environment findings are compared separately; environment matching is review-wide, not proof that the same environment was assessed. A finding seen only in the baseline is **not re-observed**, not declared fixed. A matched finding's recorded transition to `RESOLVED` is not a commit-pinned fix verification. Missing fingerprints, duplicate matches, or incomplete assessments remain explicitly unmatchable or ambiguous rather than being guessed from text.

Add `--json` for the versioned `proofline.review-comparison.v1` report, including both full retained snapshots, lane completeness, occurrence references, and recorded field and evidence-reference changes. Evidence changes compare the retained references, not the contents of their URLs. A complete comparison exits 0, a partial comparison exits 2, and invalid arguments, incompatible reviews, or read failures exit 1. `proofline compare --schema` prints the report's JSON Schema without sign-in or network access.

Repository commands use the checkout’s `origin` by default. Use `--remote NAME` to select another remote or `--repo URL` to supply a clone URL. The CLI sends the host and full project path to Proofline, including subgroup names. The CLI recognizes gitlab.com and otherwise looks for a GitHub repository on the exact remote host, including GitHub Enterprise Server. Use `--source-provider gitlab` for private GitLab hosts or `--source-provider git` for other Git servers. Hooks can read the same choice from `PROOFLINE_SOURCE_PROVIDER`. A connected private Git repository can use `proofline review --source-provider git --range BASE..HEAD` to request a review of two pushed commits.

`proofline review --range BASE..HEAD --fail-on serious` exits 3 when a complete review has an unresolved finding at or above the threshold. PR reviews use the server’s effective open-item counts; other reviews count unresolved findings, including those a partial code assessment recorded. Incomplete and unavailable results retain their nonzero exits. `--fail-on` cannot be combined with `--no-wait`.
Expand Down
13 changes: 4 additions & 9 deletions src/agent/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ fn a_separate_writer_lock_refuses_without_replacement_and_retry_converges() {
let entered = Arc::new(Barrier::new(2));
let release = Arc::new(Barrier::new(2));
let worker = {
#[cfg(unix)]
let lock_path = lock_path.clone();
let entered = Arc::clone(&entered);
let release = Arc::clone(&release);
Expand Down Expand Up @@ -728,7 +729,8 @@ fn invalid_duplicate_oversized_and_readonly_documents_stay_private_and_intact()
));
assert_eq!(entries(home.path()), before);
fs::write(&path, configuration(client)).unwrap();
let mut readonly = fs::metadata(&path).unwrap().permissions();
let original_permissions = fs::metadata(&path).unwrap().permissions();
let mut readonly = original_permissions.clone();
readonly.set_readonly(true);
fs::set_permissions(&path, readonly).unwrap();
let before = entries(home.path());
Expand All @@ -737,14 +739,7 @@ fn invalid_duplicate_oversized_and_readonly_documents_stay_private_and_intact()
Err(InstallError::ReadOnly(_))
));
assert_eq!(entries(home.path()), before);
#[cfg(unix)]
fs::set_permissions(&path, fs::Permissions::from_mode(0o600)).unwrap();
#[cfg(not(unix))]
{
let mut permissions = fs::metadata(&path).unwrap().permissions();
permissions.set_readonly(false);
fs::set_permissions(&path, permissions).unwrap();
}
fs::set_permissions(&path, original_permissions).unwrap();
fs::remove_file(&path).unwrap();
fs::create_dir_all(&path).unwrap();
assert!(matches!(
Expand Down
Loading