Skip to content

add proofline walkthrough and surface live progress and merge gate - #111

Open
sathishking wants to merge 1 commit into
prooflinedev:mainfrom
sathishking:feat/walkthrough-and-live-progress
Open

sathishking wants to merge 1 commit into
prooflinedev:mainfrom
sathishking:feat/walkthrough-and-live-progress

Conversation

@sathishking

Copy link
Copy Markdown

Problem

CustomerReviewDetail already returns walkthrough (WalkthroughView), run_progress, provider_wait, merge_gate, diff_stats, deep_review_escalation, and incomplete_causes, but the CLI did not surface them:

  1. While polling an unfinished review, proofline only printed Review is RUNNING; checking again in Ns.—hiding queued runs, scheduled retries, and GITHUB_RATE_LIMIT provider waits.
  2. Engineers reading reviews in the terminal could not see diff_stats, merge_gate status/bypass state, deep_review_escalation, or incomplete_causes, and had no command to view Proofline's reading-order walkthrough (file groups, per-file notes, and skipped-file reasons).

What changed

  • src/model.rs & tests/contract.rs: Added optional RunProgress, ProviderWait, ReviewDiffStats, PullRequestMergeGate, DeepReviewEscalation, Walkthrough, WalkthroughGroup, WalkthroughFile, and incomplete_causes fields on ReviewDetail, verified against openapi.public.json in tests/contract.rs.
  • src/lib.rs:
    • Added poll_status to surface provider_wait and run_progress during read_review polling (falling back cleanly when absent).
    • Extracted resolve_review_id shared by findings and the new proofline walkthrough [--pr N | --head SHA | --review ID] [--wait] [--json] command.
    • Returns exit 2 (NotComplete) if no walkthrough is stored yet, and preserves raw walkthrough / diff_stats under --json.
  • src/render.rs & README.md:
    • Surfaced Diff, Merge gate, Deep review (when selected or refused), and Incomplete causes in render::review.
    • Added render::walkthrough to print grouped files, renames, line counts, depth/skip classifications, and per-file notes sanitized with one_line.
  • tests/http.rs: Added end-to-end tests covering walkthrough (pending exit 2, text rendering, --json), review summary metadata, and live provider_wait polling output.

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.

1 participant