Skip to content

feat(agentstudio): add experimental dataset read commands - #308

Open
leonardocuco wants to merge 1 commit into
feat/cec-1883-evals-metricsfrom
feat/cec-1883-eval-datasets
Open

leonardocuco wants to merge 1 commit into
feat/cec-1883-evals-metricsfrom
feat/cec-1883-eval-datasets

Conversation

@leonardocuco

@leonardocuco leonardocuco commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The CLI cannot read Agent Studio evaluation datasets or their cases. Evaluation routes are excluded from the production public OpenAPI schema in the inspected backend snapshot.

Change

Add experimental evals datasets list, get <dataset-id> and list-cases <dataset-id> using the shared C8 transport and explicit --base-url. Support bounded pagination and the case status, metric, difficulty, quality and flag filters; preserve explicit zero and false values. Use the ACLs observed in the backend.

This draft is a concrete implementation proposal, not a claim that the evaluations API is public or stable. Do not merge or publish until the owning teams decide its exposure, supported environments, contract and ownership (D2).

Verification

  • go test ./..., go generate ./..., go build ./..., gofumpt and git diff --check.
  • Mocked tests cover UUID and option validation, pagination, false/zero values, special-character encoding, ACLs, JSON and error redaction. No real API calls.

Stacked on C8 #306, which is stacked on C3 #302. Retarget after the dependencies merge. Related to CEC-1883 (C9). No deployment or release during the code freeze.

@leonardocuco

Copy link
Copy Markdown
Contributor Author

Claude Code reviewed this change at 5ab6a4b for the author: 5 findings, 0 fixed, nothing pushed.

  • pkg/cmd/evals/datasets/datasets.go:99: list-cases uses the editSettings ACL while its siblings use settings. Left: the description says the ACLs follow what was observed in the backend, and a test pins it, so this looks deliberate. Worth a quick confirmation against the backend.
  • go.mod:49: github.com/google/uuid is now imported directly but is still marked indirect. Left: nit, a go mod tidy would move it.
  • pkg/cmd/evals/datasets/datasets.go:105: filter values such as a negative --min-quality or an empty --status are sent to the server unchecked. Left: nit, the server validates them.
  • pkg/cmd/evals/datasets/datasets.go:54: no progress indicator and no Long help text compared with metrics list. Left: nit.
  • pkg/cmd/evals/datasets/datasets.go:4: imports are not grouped as stdlib, third-party, local. Left: nit.

Nits do not start a push on their own. They can go in with a later change.

@leonardocuco
leonardocuco marked this pull request as ready for review December 1, 2026 13:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T13:23:26.585671Z 5ab6a4b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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