Skip to content

Surface cited files and non-ready check outcomes in review output - #59

Open
mcdoolz wants to merge 1 commit into
prooflinedev:mainfrom
mcdoolz:expose-check-cited-files
Open

mcdoolz wants to merge 1 commit into
prooflinedev:mainfrom
mcdoolz:expose-check-cited-files

Conversation

@mcdoolz

@mcdoolz mcdoolz commented Nov 9, 2026

Copy link
Copy Markdown

Summary

Surfaces deterministic check evidence (CustomerCheck.files) and non-clean check outcomes in terminal review summaries while holding the CLI's typed models to the public OpenAPI contract introduced in #31.

Who This Helps

Engineers inspecting a review in the terminal (proofline review, proofline findings, proofline ci review, proofline rerun) previously saw production: COMPLETED (incomplete: CHECKS_UNRESOLVED) with no indication of which check failed to settle or which repository files World read, and an assessment with zero narrative findings alongside a BLOCKED gating check printed production: COMPLETED, no findings without naming the blocked check. Surfacing non-ready checks and their cited files lets engineers see which Terraform, workflow, or configuration files at the proposed commit (proposed) vs merge base (base) drove the check result without switching to --json.

Decisions Made

  • Public contract parity (src/model.rs, tests/contract.rs): Added UntrustedText and CheckFile, added #[serde(default)] pub files: Vec<CheckFile> on Check so older recorded reviews without files still decode cleanly, and added holds::<CheckFile>("CheckFile") and holds::<UntrustedText>("UntrustedText") to the contract suite.
  • Signal-only terminal output (src/render.rs, src/outcome.rs): Clean checks (READY and NOT_APPLICABLE under a known evaluator lifecycle) stay quiet so clean runs gain no noise; BLOCKED, UNRESOLVED, UNAVAILABLE, NOT_ASKED, or unknown-lifecycle checks print their outcome, name, lifecycle, optional unresolved_reason, and cited files. When an assessment has zero narrative findings alongside one or more blocked checks, the summary header qualifies no findings (N blocked check[s]) instead of reading as clean.
  • Untrusted text & World-value safety: Every cited path and revision label passes through one_line() so control characters or terminal escape sequences in repository paths cannot manipulate the terminal, and check.detail (which can carry protected World environment values) is never printed in text summaries (retaining parity with the Python SDK behavior in prooflinedev/sdk-python#23).

Verification

  • cargo fmt --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked (including new contract assertions in tests/contract.rs, unit coverage in src/render.rs, and an end-to-end loopback HTTP test in tests/http.rs verifying findings --review text and --json output, ANSI escape neutralization, and check.detail redaction)

mohsen1 commented Nov 17, 2026

Copy link
Copy Markdown
Member

Codex

Please split the cited-file improvement from the new check-outcome/lifecycle feed. Keep supported citations and align incomplete/environment output with the current Kian contract and quiet-output policy. Resolve the conflicts with main and rerun both required checks on that smaller change.

This branch has not been deployed

No deployments
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