Repository navigation
Hold wait_for_review to the commit the caller names - #49
Merged
Merged
Conversation
wait_for_review takes head_commit_sha in both clients. A review pinned to another commit ends the wait on the read that shows it and is never COMPLETED. Without the keyword nothing changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
wait_for_reviewtakeshead_commit_shain both clients. With it, a review pinned to another commit ends the wait on the read that shows it, and is neverCOMPLETED.request_reviewnames a pull request, and its response names no commit. The review belongs to the head the pull request has when the request arrives. If an agent has force-pushed or a bot has pushed since,wait_for_reviewcan returnCOMPLETEDfor code the caller is not shipping, and nothing inReviewOutcomesays so. The CLI has this check on its own CI path:ci reviewaccepts only a review whose head is the commit under test. The SDK had none. I run many coding agents in parallel, and the case I know is the harness that decides what ships: it holds one commit for each agent.INCOMPLETE, last gapHEAD_COMMIT_MISMATCH,reasonsetHEAD_COMMIT_UNAVAILABLE,reasonset, so notCOMPLETEDA value that is not a full SHA (40 or 64 hexadecimal characters) raises
ValueErrorbefore any request. Without the keyword nothing changes.Validation:
python scripts/check.py --artifacts artifacts, the CI command, passes on Python 3.13.12 at 0664d1d: the generation check, the contracts,ruff check,ruff format --check,mypy, 150 tests (140 onmain), the builds, and the install smoke of the wheel and the sdist. The 5 new tests run for both clients, and their 10 cases failed first, each with aTypeErrorfor the unknown keyword.python scripts/check.pyalso passes on Python 3.11.18, 3.12.16 and 3.14.8. This ran locally on Linux arm64. GitHub Actions has not run it, and nothing was run against the live API.Self-review: the change is in
proofline/client.pyandproofline/outcomes.py, with tests and a README section. Generated code, the contract andscripts/contracts.pyare untouched, and there is no new dependency, method or type. A mismatch is an outcome and not an exception:INCOMPLETEwith a reason code is how this SDK already reports a result that does not cover what was asked, so a caller that fails on anything butCOMPLETEDneeds no new branch.reasonis fixed text and holds no commit. Not included: finding a review from a commit alone, which prooflinedev/sdk-typescript#44 proposes there.The recording is
demo.pyagainst a stand-in for the API on 127.0.0.1, with no account: demo.py, its output as text.🤖 Generated with Claude Code