Skip to content

Add standard audit support - #114

Open
GabeBlanchard wants to merge 1 commit into
masterfrom
gabe/standard-audits
Open

GabeBlanchard wants to merge 1 commit into
masterfrom
gabe/standard-audits

Conversation

@GabeBlanchard

@GabeBlanchard GabeBlanchard commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Customers can already create standard audits through PUT /v1/audits, but the SDK only exposed fixless audits. This adds ScaleClient.create_standard_audit and Task.create_standard_audit, which accept, reject, or fix a completed task's response. A Fixed result takes fix_response_url, the corrected response. AuditResult gains Fixed. There's no feedback_items argument because the API stores feedback items only for fixless audits. Bumps the version to 2.21.0.

Validation: tests/test_audits.py passes (13 tests, 3 new) and the pre-commit hooks pass. Not run against the live API. The 6 test_v2_client.py failures also happen on master: they call the live API with a dummy key.

🤖 Generated with Claude Code

Confidence Score: 5/5RetriggerView in Greptile

The PR appears safe to merge; no actionable defects were found.

Summary

Adds standard audits through ScaleClient.create_standard_audit and Task.create_standard_audit.

  • Completed task audits can now fix responses as well as accept or reject them.

Reviews (1) · Last reviewed commit: "Add standard audit support" · Reviewed by Greptile

Adds ScaleClient.create_standard_audit (PUT /v1/audits with type
standard) and Task.create_standard_audit, which accept, reject, or fix
a completed task's response. A Fixed result takes fix_response_url, the
corrected response. AuditResult gains Fixed. Validation stays on the
API, as for fixless audits.

Standard audits take no feedback items: the API stores them only for
fixless audits.

Bumps version to 2.21.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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