Skip to content

ci(sdk): select contract policy from synced metadata - #17

Merged
salim4n merged 2 commits into
mainfrom
codex/sdk-contract-policy-main-workflow-20261109
Nov 16, 2026
Merged

salim4n merged 2 commits into
mainfrom
codex/sdk-contract-policy-main-workflow-20261109

Conversation

@salim4n

@salim4n salim4n commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Select the signed contract archive and release policy from .sdk-source.json instead of hard-coding the 2026.07 archive in CI and release verification.
  • Keep the reviewed policy in .github/workflows/, outside the signed archive and the private sync's preserved workflow tree. The 2026.07 policy uses the current verifier/generator inputs; the 2026.11 policy enables strict SDK identity, sequence 5, and predecessors 2026.10/2026.09. The synced #1279 CLI/generator supplies those 2026.11 options.
  • Pin release policy selection to the workflow implementation commit and preserve the existing tag checks, OIDC flow, npm environment, and generated-file drift gate.
  • Carry the same dependency audit overrides as PR chore(sdk): propose additive 2026.11 trust bootstrap #16: brace-expansion ^2.1.7 and js-yaml ^4.3.2. The package manifest and Bun lockfile match PR chore(sdk): propose additive 2026.11 trust bootstrap #16 exactly, so the PRs can merge in either order.

Validation

  • bun test ./.github/workflows/sdk-contract-inputs.test.ts — 4 passed.
  • actionlint .github/workflows/ci.yml .github/workflows/release.yml — passed in the cached rhysd/actionlint:latest image.
  • 2026.07 public CLI verification and type regeneration passed; generated contract/type files remained unchanged.
  • Synthetic signed 2026.11 fixture passed the post-sync strict verifier with minimum sequence 5.
  • Public SDK package suite: 121 tests / 324 expectations; typecheck and public-surface checks passed.
  • Frozen Bun install passed; bun audit found no vulnerabilities across 37 packages.
  • GitHub CI for head 52dd19a832e57c66c98ad79b807db78918f87de4 passed all 16 job steps, including dependency audit.

This PR does not change the trusted keyring, package version, permissions, publishing controls, or signatures. It does not merge or publish a package.


Note

Medium Risk
Changes contract verification and type generation inputs on every CI run and npm publish path; mistakes could block releases or accept wrong archives, though selection is policy-gated and tested.

Overview
CI and release workflows no longer hard-code the 2026.07 contract archive. They run a new sdk-contract-inputs step that reads .sdk-source.json, applies reviewed sdk-contract-policy.json (minimum release sequence, strict SDK identity, predecessor contracts), validates the signed archive, and feeds those values into verify:contract and generate:types.

Release jobs pin the selector and policy to github.workflow_sha so tag builds use the workflow commit’s logic, not whatever is on the checked-out tag. CI adds a Bun test for the selector’s fail-closed behavior and GitHub Actions output wiring.

The TypeScript package manifest and Bun lockfile gain overrides for brace-expansion and js-yaml (aligned with a separate audit PR).

Reviewed by Cursor Bugbot for commit 52dd19a. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor

cursor Bot commented Nov 9, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: e797e1c1-4a82-4dac-976e-1abcd65b7c21)

@cursor

cursor Bot commented Nov 9, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: aaf318f7-9ce7-402b-b652-e5a032aa137f)

@salim4n
salim4n merged commit 0e68398 into main Nov 16, 2026
7 checks passed
@salim4n
salim4n deleted the codex/sdk-contract-policy-main-workflow-20261109 branch November 16, 2026 19:51
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