Skip to content

ci(schema-bundle): skip audited preview bundles in Generate Python SDK - #8072

Closed
bokelley wants to merge 1 commit into
mainfrom
ci/schema-bundle-python-sdk-preview
Closed

bokelley wants to merge 1 commit into
mainfrom
ci/schema-bundle-python-sdk-preview

Conversation

@bokelley

@bokelley bokelley commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • `Generate Python SDK` fails on every schema PR with `ADCP_SKIP_SIGNATURE is forbidden for an audited signed release`.
  • Root cause is not the primary pin (the existing `rm -f sdk/schemas/releases/.json` still works; 3.2.1 syncs fine). adcp-client-python now also syncs `PREVIEW_VERSIONS = ("3.1.27",)`, an audited signed release. Audited pins are only fetched from the official host and reject `ADCP_SKIP_SIGNATURE`, but this job points `ADCP_BASE_URL` at the local candidate host.
  • The SDK has no sanctioned candidate/dev mode, so the disposable SDK checkout now empties `PREVIEW_VERSIONS` (fails loudly if the declaration changes shape). These previews are validation-only caches unrelated to the PR bundle. Provenance and checksum verification are unchanged.

No changeset (CI only).

Test plan

  • Reproduced locally against adcp-client-python main with the official 3.2.1 bundle served on 127.0.0.1:8765: `regenerate-schemas`, `validate-generated`, and the two pytest files pass (128 passed).
  • CI: this PR touches a workflow, check whether the schema-bundle job runs; otherwise a schema-touching PR is needed to confirm.

🤖 Generated with Claude Code


Open workspace in Conductor

The SDK now syncs an audited signed 3.1.27 preview alongside the primary
pin. Audited pins reject ADCP_SKIP_SIGNATURE and any non-official host, so
pointing ADCP_BASE_URL at the PR candidate bundle made every schema PR fail.
Drop the validation-only preview list from the disposable SDK checkout;
provenance and checksum verification of the PR bundle are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@aao-secretariat aao-secretariat Bot 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.

Ladon verdict: Escalate to human review

Escalate — gated path requires human/CODEOWNERS approval.

This PR modifies .github/workflows/validate-schema-bundle.yml, which matches the hard gated-path glob .github/workflows/** (gated_paths: true). The required review status is REVIEW_REQUIRED, not APPROVED, so the deterministic approval gate (decision table row 2) is not satisfied and the outcome must be escalate.

The reviewer found no Critical/High/Medium findings: the change is a clean CI-only edit that guards a Python block to zero out PREVIEW_VERSIONS in the disposable adcp-client-python checkout, with a count!=1 fail-loud guard, correct heredoc dedent, path/cwd handling, and ordering before regenerate-schemas. Candidate provenance remains verified (L196-197) and no published protocol surface is touched, so no changeset is required. On the merits this diff is sound — but the gate lifts only when review_decision becomes APPROVED, which requires a human/CODEOWNERS approval on the workflow change.

Escalation reasons

  • .github/workflows/validate-schema-bundle.yml is under the .github/workflows/** hard approval gate; review_decision is REVIEW_REQUIRED. Human/CODEOWNERS approval required before merge.

Why human review

  • Gated path .github/workflows/validate-schema-bundle.yml (matches .github/workflows/**) requires human/CODEOWNERS approval; review_decision is REVIEW_REQUIRED, not APPROVED.
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/validate-schema-bundle.yml (modified) matches .github/workflows/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded: main's validate-schema-bundle.yml already empties PREVIEW_VERSIONS (#8079), which fixes the Generate Python SDK job this PR targeted.

@bokelley bokelley closed this Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant