Repository navigation
feat(contract): project-scoped contract batch 1 (analytics, datasets and metrics, certification, configuration-run reads) - #775
Merged
Conversation
… paths, keeping their operation ids
The six project analytics reads (under /api/v1/projects/{project_id}/analytics:
summary, pricing-catalog and the four dashboards) take the operation ids they
had on their old paths. The six old analytics-path entries are removed from the
contract as a reviewed breaking change, acknowledged in the breaking-change
allowlist; the backend retires them. Request, query and response schemas are
unchanged. Evaluator promotion is not part of this change.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…contract
Adds canonical /api/v1/projects/{project_id}/... paths for 16 dataset and
dataset-version operations, reusing their request, response and error bodies,
with the backend operation ids as operationIds; the old unscoped paths are
marked deprecated and name their successor. Tenant-level lookups stay unscoped.
Adds the metric contract: project-scoped list and create, tenant-library list
and create, and get, update (PATCH) and delete by an opaque metric_ref. Write
bodies are closed and exclude evaluator fields (422 on violation). The legacy
measure list, get, delete and default-provisioning routes are deprecated; the
evaluator-capable legacy writes stay until the evaluator contract lands.
Spine-Trail: st_1804d64b88c6
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, 422 and 404 bodies; fragment refs resolve in the validator The metric response uses the resolver scope values (project, shared, builtin), requires project_id for project-owned rows, carries metric_ref, unit and version, and reports domain and agent_types in the backend shape. Both metric lists declare a collection body bound to the metric schema. The write 422 and the item 404 are closed bodies with fixed codes and messages. Write bodies accept unit and version and no longer accept is_custom. The schema validator resolves file#/pointer references, so the dataset-example update bodies validate. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d is always a number Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…n query Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s under project paths Add-only: new contracts; no existing entry changes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… codes and text for process-record retrieve and conflicts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c configuration-run references; discriminated retained/not-retained companion; closed fallbacks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ssuances; runlineage certificates stay on the existing routes Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…NMAPPED; define present primary metrics Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ration aliases retire
Adds GET /api/v1/projects/{project_id}/configuration-runs/{configuration_run_ref}/measurement
(operation id configuration_run.get_configuration_run_measurement): the stored measures of one
configuration run as one bounded, cursor-paged read, with a new response schema.
Removes the two run-owned configuration aliases under /api/v1/experiment-runs/runs/..., which
duplicated the canonical experiment-run configuration-runs collection. The removal is
acknowledged in the breaking-change allowlist. Changelog entries are fragments under changelog.d/.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… two idempotency variants Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…its two closed problem variants Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… 409 its own fragment, combine the configuration-run reads, note deprecated dataset paths Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ject-scoped replacements Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <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.



feat(contract): project-scoped contract batch 1 (analytics reads, datasets and metrics, certification, configuration-run reads)
One combined contract change so the backend can re-pin once. Each family is described in its own
changelog.d/fragment.Ticket: none (project-scoped canonical contracts, batch 1)
Security note: contract-only; new error bodies are closed (fixed codes and text, no client values echoed); request strings in the new certification contracts are bounded
Spine-Trail: st_0d23d1095dd4
What changes
/api/v1/projects/{project_id}/analytics/...and keep their operation ids; the old/api/v1/analytics/...entries are removed. The/api/v1beta/...analytics operations are unchanged./api/v1/projects/{project_id}/datasets/..., andmetric.*operations for project and library metrics. Each unscoped dataset path that has a project-scoped replacement stays and is marked deprecated, with removal unscheduled.experiment_group.query_group_runsdeclares its idempotency409responses (idempotency_conflict,idempotency_in_progress).runlineage:reference stay on the existing certification routes, which are unchanged.Rollout notes
/api/v1/experiment-runs/runs/{id}/configurationsroutes, which the portal still calls, until a later backend change retires them after the portal moves.Checks
scripts/local_gate.sh: passed (9023 passed, 2 skipped).scripts/compile_changelog.py --check: 13 fragments valid.scripts/breaking_schema_check.py --check --base-ref origin/develop: no unacknowledged breaking changes; the acknowledged ones are the analytics path moves, the alias removals and the group problem union gaining its two idempotency variants.certification/certification_endpoints_v0.jsonis unchanged.Review receipt
🤖 Generated with Claude Code