Skip to content

Vendor latest AI Governance OpenAPI spec#25265

Merged
dvdksn merged 1 commit into
docker:mainfrom
dvdksn:worktree-vendor-ai-gov-openapi-242
Jun 4, 2026
Merged

Vendor latest AI Governance OpenAPI spec#25265
dvdksn merged 1 commit into
docker:mainfrom
dvdksn:worktree-vendor-ai-gov-openapi-242

Conversation

@dvdksn

@dvdksn dvdksn commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Syncs the AI Governance Policy API reference with the upstream spec.

Implementation PR: https://github.com/docker/governor-services/pull/242

Generated by Claude Code

Sync the AI Governance Policy API reference with the upstream spec from
docker/governor-services#242. Wraps the ListPolicies response data under
a `data` object, adds the updatePolicy and deletePolicy endpoints,
migrates policy scope from profiles to teams, and switches rule/policy
updates to application/json.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 4, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 4fdf475
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a215b40e6e25900079f42e9
😎 Deploy Preview https://deploy-preview-25265--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the area/api Relates to Docker API docs label Jun 4, 2026
@dvdksn dvdksn marked this pull request as draft June 4, 2026 11:03

@docker-agent docker-agent 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.

Assessment: 🟢 APPROVE

Vendoring sync looks clean. The spec is valid, all new endpoints (PATCH/DELETE policy) are well-formed, the ListPolicies response wrapping is consistent throughout examples and schemas, and the profilesteams migration is applied uniformly. Two minor wording nits flagged inline — vestigial multi-dimension language in ScopePatch and updatePolicy from when scope had both profiles and teams sub-fields; safe to ignore or clean up in a follow-on.

Partially updates a policy's metadata. Only fields present in the
request body are updated; absent fields are left unchanged. The `scope`
object is patched per sub-field: sending `teams` replaces that list,
while an omitted sub-field is left untouched and an empty list clears

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.

[LOW] Vestigial "sub-field" language from when scope had multiple dimensions

The phrase "an omitted sub-field is left untouched" hints at multiple sub-fields, but scope now has only one (teams). Consider simplifying: "omitting teams leaves it unchanged; an empty list clears it (org-wide)."

description: >
Per-sub-field patch of a policy's scope. An omitted sub-field is left
unchanged; a present list replaces that dimension, and an empty list
clears it (making the policy org-wide for that dimension).

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.

[LOW] Vestigial "for that dimension" language implies multiple dimensions

The phrase "clears it (making the policy org-wide for that dimension)" uses "dimension" as though there are several, but ScopePatch now has only teams. Consider "clears it (making the policy org-wide)" or "clears the teams list (making the policy org-wide)."

@dvdksn dvdksn marked this pull request as ready for review June 4, 2026 16:36

@docker-agent docker-agent 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.

Assessment: 🟢 APPROVE

This PR vendors the latest AI Governance OpenAPI spec. The YAML is syntactically valid, the new PATCH (updatePolicy) and DELETE (deletePolicy) endpoints are well-documented, and the schema changes (ListPolicies response envelope, teams-based scope) are consistent with the rest of the spec. No documentation style violations were found in the added description fields. No issues require attention.

@dvdksn dvdksn merged commit 335b4b4 into docker:main Jun 4, 2026
19 checks passed
@dvdksn dvdksn deleted the worktree-vendor-ai-gov-openapi-242 branch June 4, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api Relates to Docker API docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants