Repository navigation
ci(sdk): select contract policy from synced metadata - #17
Merged
Merged
Conversation
Bugbot couldn't run - usage limit reachedBugbot 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) |
Bugbot couldn't run - usage limit reachedBugbot 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) |
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.
Summary
.sdk-source.jsoninstead of hard-coding the 2026.07 archive in CI and release verification..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.brace-expansion^2.1.7andjs-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 cachedrhysd/actionlint:latestimage.bun auditfound no vulnerabilities across 37 packages.52dd19a832e57c66c98ad79b807db78918f87de4passed 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-inputsstep that reads.sdk-source.json, applies reviewedsdk-contract-policy.json(minimum release sequence, strict SDK identity, predecessor contracts), validates the signed archive, and feeds those values intoverify:contractandgenerate:types.Release jobs pin the selector and policy to
github.workflow_shaso 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
overridesforbrace-expansionandjs-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.