Skip to content

spec-sync: track V2 spec drift - #138

Merged
tian-lan-landing merged 2 commits into
mainfrom
spec-sync/v2
Aug 3, 2026
Merged

spec-sync: track V2 spec drift#138
tian-lan-landing merged 2 commits into
mainfrom
spec-sync/v2

Conversation

@yzld2002

@yzld2002 yzld2002 commented Aug 3, 2026

Copy link
Copy Markdown
Member

Automated V2 spec-sync PR (client.v2).

  • Commit 1 (mechanical): normalized V2 spec snapshot + regenerated reference models.
  • Commit 2 (AI, only if the spec diff needs SDK changes): client.v2 resources/methods/tests/docs wired from the diff, added after this PR opened. Workflow-only drift is excluded and an AI no-op is skipped, so some drifts produce a mechanical-only PR with no second commit.

Gates (surface-lock, V2 contract tests, lint/test/typecheck) must pass. When present, the AI commit is a draft a human finishes (the V2 ergonomic layer — unified Job, dual-host, schema coercion — is not in the spec). Human review required before merge.

What changed

AI-generated from the PR diff — verify against the actual changes.

Job (types/v2/job.py)

  • New field Job.metadata: Optional[Dict[str, object]] — the result's metadata receipt (billing included), populated only for jobs completed via output_save_url (result delivered to output_url instead of inline). None for inline jobs, where metadata remains on result.metadata.
  • Normalization (normalize_parse_job, normalize_extract_job) now extracts top-level metadata from the raw job envelope into Job.metadata.

Spec/doc notes (non-breaking, descriptive only)

  • parse_jobs / extract_jobs poll responses gain an optional top-level metadata field (mirrors the above), documented in specs/v2-aide.json.
  • progress field description clarified as an estimate (not a precise measurement); no schema/type change.

No endpoint, route, or method signature changes.

Copilot AI review requested due to automatic review settings August 3, 2026 08:06
@yzld2002
yzld2002 temporarily deployed to spec-sync-contract August 3, 2026 08:06 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the V2 OpenAPI snapshot and regenerated reference models to track current service behavior.

Changes:

  • Adds delivered-result metadata to parse and extract job responses.
  • Clarifies estimated progress semantics.
  • Regenerates models, removing stale build-schema operation models and updating generated references.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
specs/v2-aide.json Updates job metadata and progress contracts.
specs/_generated/v2_models.py Regenerates models from the updated specification.

Copilot AI review requested due to automatic review settings August 3, 2026 08:11
@yzld2002
yzld2002 temporarily deployed to spec-sync-contract August 3, 2026 08:11 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.

Suppressed comments (1)

specs/_generated/v2_models.py:549

  • The regeneration removes all V2ExtractBuildSchema* endpoint models (and the snapshot no longer contains /v2/extract/build-schema* paths), but the PR description characterizes this as metadata/progress-only drift and explicitly says there are no endpoint or route changes. That omission hides a material spec-surface deletion from reviewers. Please update the PR summary to call out the removed spec routes, or restore them if their removal was unintended.
class V2ExtractJobsGetParametersQuery(BaseModel):

@tian-lan-landing
tian-lan-landing merged commit a3201e6 into main Aug 3, 2026
5 of 6 checks passed
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.

3 participants