Skip to content

Add a CI summary for SDK review outcomes - #119

Open
AdeptArbitrage wants to merge 1 commit into
prooflinedev:mainfrom
AdeptArbitrage:feat/review-summary
Open

AdeptArbitrage wants to merge 1 commit into
prooflinedev:mainfrom
AdeptArbitrage:feat/review-summary

Conversation

@AdeptArbitrage

Copy link
Copy Markdown

Why

A CI operator should be able to tell which revision Proofline actually reviewed without opening the review UI. The existing wrong-head check correctly returned INCOMPLETE, but the README example printed only the verdict and prose, not the recorded commit.

What changed

format_review_outcome() returns one log line with the existing outcome status, the recorded Git commit or patch revision when available, and stable reason codes. It never substitutes the requested SHA, does not print server prose, and does not change classification or make network calls. This is plain log output, distinct from the GitHub Actions Markdown summary proposed in #41 and from severity gating or outcome classification.

Before and after

Same synthetic wrong-head review. The verdict is unchanged.

Before: INCOMPLETE The review is pinned to another head commit.
After:  proofline_review status=INCOMPLETE reviewed_commit=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb pinned_revision=unknown reason_codes=HEAD_COMMIT_MISMATCH

The original focused checks passed, but a separate review found that an unsupported status could produce more than one physical line. The correction preserves recognized statuses, renders unsupported ones as unknown, and leaves the original outcome unchanged. The final check also confirms that unreadable recorded revision metadata cannot suppress the summary.

Verification

  • Debian Linux / Python 3.13.12: python scripts/check.py --artifacts artifacts passed. 237 tests, including 19 formatter tests; generated-client freshness, API contract checks, lint, formatting, types, and clean installs from the wheel and source archive also passed.
  • Windows / Python 3.12.10: 237 tests passed. The generated-client difference was observed on both baseline and candidate under Windows; the candidate's Linux freshness check passed.
  • Strict patch whitespace validation passed against cd0eba8c8b3a716300d35523b95cb2a25b2a3c58. No generated files, dependencies, or workflows changed.

These are local results, not a claim about PR CI. The added checks measure SDK behavior, not AI-model improvement.

Coding-session record

The four original user-submitted SDK coding prompts are in chronological order in the HTML comment below. One proprietary paragraph is explicitly redacted; the separate private review session is not included.

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