Repository navigation
Add read-only experiment and evaluator commands - #7
Merged
Merged
Conversation
Add `experiments list|show|results` and `evaluators list|show|summary|scores` over the organization's customer API. These are reads only: they never create, activate, stop, or change experiments or evaluators. - Browser OAuth only; organization keys are refused before any request. - `experiments results` joins the experiment to its workload's evaluator summary over the experiment's life (bounded to 90 days) and reports each arm's sample size, pass rate with interval, cost per trace, and the candidate-minus-control difference. Missing evaluators, drafts, and arms below 30 rated traces are reported, never filled in. - `evaluators scores` omits judge reasons unless --include-reasons, since they can quote the organization's traces. - Inputs are validated locally; responses are checked for repeated ids and for belonging to the requested experiment or evaluator. Tests use invented fixtures and mocked HTTP responses only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live testing showed evaluator score cursors contain a space, so the "More results" hint broke when pasted into a shell. Quote it. The platform can return more scores than --limit so that one trace's rubric verdicts stay on the same page; say so in help and docs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The "More results" hint embedded the server-provided cursor in single quotes without escaping quotes inside it, so a crafted cursor could turn a pasted hint into extra shell commands. Quote it as one POSIX shell word with a shared shellQuote helper, and prove the round trip through /bin/sh for quotes, command substitution, and variables. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
Adds read-only commands for online model experiments and workload evaluators, using the organization's customer API (
/customer/v1). They never create, activate, stop, or change experiments or evaluators, and send no inference.experiments list [--project --workload --status]experiments show <id>experiments results <id> [--from --to]evaluators list [--project --workload]evaluators show [id] [--project --workload]evaluators summary <id> [--from --to]evaluators scores <id> [filters] [--include-reasons]Safety
experiments resultsreports what the platform measured and never computes its own rates: below 30 rated traces per arm, rates and the difference staynull. A draft, or a workload with no visible evaluator, is reported as unmeasurable. Output notes that results cover the evaluator's current version only and that fallback responses count in their assigned arm.evaluators scoresomits them from text and JSON unless--include-reasonsis passed.Testing
npm run check: 711 tests pass (16 new), public boundary check passes.🤖 Generated with Claude Code