Skip to content

Commit 080f330

Browse files
committed
ci(sdk): freeze TypeScript SDK changes in core
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent ecce595 commit 080f330

10 files changed

Lines changed: 53 additions & 50 deletions

File tree

‎.agents/skills/test-release-canary/SKILL.md‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ The host-package jobs exercise fresh installs, not upgrades from a persisted
4343
schema-v1 gateway config. Validate Homebrew and RPM exact-default migration with
4444
the release-tooling and package lifecycle tests before relying on the canary.
4545

46-
The canary does not install or import `@nvidia/openshell-sdk`. TypeScript SDK
47-
validation lives in the `TypeScript SDK` branch check, including a publish
48-
dry-run. The tagged release workflow publishes the package to GitHub Packages;
49-
verify that job directly when diagnosing SDK publication failures.
46+
The canary does not install or import `@nvidia/openshell-sdk`. Core's `TypeScript SDK Freeze` branch check rejects added or modified SDK files and directs SDK development to [ai-openshell/sdk-typescript](https://github.com/ai-openshell/sdk-typescript). Core no longer runs SDK build checks or publish dry-runs on PRs. The tagged release workflow still publishes the package to GitHub Packages until the publishing cutover; inspect that job when diagnosing publication failures.
5047

5148
## Trigger paths
5249

‎.agents/skills/watch-github-actions/SKILL.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Monitor GitHub Actions workflow runs using the `gh` CLI.
1414
- The `gh` CLI must be authenticated (`gh auth status`)
1515
- You must be in a git repository with a GitHub remote
1616

17+
## SDK migration failures
18+
19+
`TypeScript SDK Freeze` rejects additions and modifications under `sdk/typescript/` on PR mirrors. Move those changes to [ai-openshell/sdk-typescript](https://github.com/ai-openshell/sdk-typescript). Core proto changes need no regenerated TypeScript bindings. Deletions are allowed for removal. The job skips merge groups, matching `Python SDK Freeze`.
20+
1721
## Quick Status Check
1822

1923
List recent workflow runs for the current branch:

‎.github/workflows/branch-checks.yml‎

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -726,35 +726,32 @@ jobs:
726726
- name: Lint
727727
run: mise run markdown:lint
728728

729-
sdk-typescript:
730-
name: TypeScript SDK
729+
typescript-sdk-freeze:
730+
name: TypeScript SDK Freeze
731731
needs: pr_metadata
732-
if: needs.pr_metadata.outputs.should_run == 'true'
733-
runs-on: linux-amd64-cpu8
734-
timeout-minutes: 30
735-
container:
736-
image: ghcr.io/nvidia/openshell/ci:9cb72baa2e61a1b5f12407e6e82da7fdba0aa722@sha256:67a9a0c32cb99825e6d3e9d9eec45d67149ea1ff7c11a1b1e1b3480d2d3df684
737-
credentials:
738-
username: ${{ github.actor }}
739-
password: ${{ secrets.GITHUB_TOKEN }}
732+
if: needs.pr_metadata.outputs.should_run == 'true' && github.event_name == 'push'
733+
runs-on: ubuntu-latest
734+
timeout-minutes: 5
740735
steps:
741736
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
737+
with:
738+
fetch-depth: 0
739+
persist-credentials: false
742740

743-
- name: Install tools
744-
run: mise install --locked
745-
746-
- name: Check TypeScript SDK
747-
run: mise run sdk:ts:ci
748-
749-
# Exercise the full release publish path (version stamp, dist-tag,
750-
# prepublishOnly, tarball) without uploading. Uses the off-tag dev
751-
# version, which validates the prerelease dist-tag branch too.
752-
- name: Verify publishable artifact (dry-run)
741+
- name: Reject changes to the TypeScript SDK
753742
env:
754-
OPENSHELL_NPM_PUBLISH_ARGS: --dry-run
743+
BASE_SHA: ${{ needs.pr_metadata.outputs.base_sha }}
755744
run: |
756-
OPENSHELL_NPM_VERSION="$(uv run python tasks/scripts/release.py get-version --npm)" \
757-
mise run sdk:ts:publish
745+
set -euo pipefail
746+
changed=$(git diff --no-renames --name-only --diff-filter=d "${BASE_SHA}...HEAD" -- sdk/typescript)
747+
if [ -z "$changed" ]; then
748+
echo "No added or changed TypeScript SDK files."
749+
exit 0
750+
fi
751+
echo "::error title=TypeScript SDK moved::Open TypeScript SDK changes at https://github.com/ai-openshell/sdk-typescript. Drop sdk/typescript changes from this PR. Core proto changes need no TypeScript bindings here; sdk-typescript generates them from core releases."
752+
echo "Changed TypeScript SDK files:"
753+
echo "$changed"
754+
exit 1
758755
759756
install-script:
760757
name: install.sh

‎AGENTS.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Do not rely on this file for a full inventory. The detailed public and contribut
6262
| `crates/openshell-supervisor-process/` | Process supervisor | Process lifecycle, namespace, and bypass monitoring |
6363
| `crates/openshell-vfio/` | VFIO support | PCI and GPU passthrough preparation and lifecycle |
6464
| `python/openshell/` | Python SDK (frozen) | Moved to ai-openshell/sdk-python; kept until removal |
65-
| `sdk/typescript/` | TypeScript SDK | Native Connect client, curated sandbox API, and generated protobuf types |
65+
| `sdk/typescript/` | TypeScript SDK (frozen) | Development moved to ai-openshell/sdk-typescript; kept until removal |
6666
| `proto/` | Protobuf definitions | gRPC service contracts |
6767
| `tests/testkit/` | E2E testkit | Support library and `#[testkit::test]` attribute for SDK-driven E2E suites |
6868
| `tests/suites/` | E2E suites | One directory per test family, such as `conformance` |
@@ -207,11 +207,10 @@ Follow `CONTRIBUTING.md` and `create-github-pr`. Authors without target-reposito
207207

208208
## TypeScript SDK (`sdk/typescript/`)
209209

210-
- Run `mise run sdk:ts:ci` for codegen, proto lint, Biome lint, type checking, unit tests, coverage, and build validation.
211-
- Proto bindings are generated with `mise run sdk:ts:proto` from the files selected in `sdk/typescript/buf.gen.yaml`.
212-
- Generated files under `sdk/typescript/src/gen/` are build outputs and must not be committed.
213-
- Keep the curated API free of generated wire types; expose full generated messages and RPCs through `@nvidia/openshell-sdk/raw`.
214-
- The release workflow publishes the package to GitHub Packages. Branch checks exercise the publish path with `npm publish --dry-run`.
210+
- Open TypeScript SDK changes in [ai-openshell/sdk-typescript](https://github.com/ai-openshell/sdk-typescript).
211+
- `sdk/typescript/` is frozen at core `v0.1.9`. Branch Checks rejects additions and modifications, including dependency updates. Deletions remain allowed for removal.
212+
- Core proto changes need no TypeScript bindings here. The standalone SDK generates bindings from its pinned core release.
213+
- Core retains the SDK files and release publisher until the separate publishing cutover.
215214

216215
## Python
217216

‎CI.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ Manual admission does not change the bot's automatic trust policy for ready PRs.
1717

1818
Merge queue validation is a second integration gate for `main`. After a PR has passed the required PR-head statuses, a maintainer adds it to the merge queue. GitHub creates a temporary merge-group branch that combines the latest `main`, the queued PR, and any earlier queued PRs. The same required `OpenShell / ...` status contexts are then published against the merge-group SHA before GitHub merges it.
1919

20+
### TypeScript SDK freeze
21+
22+
The `TypeScript SDK Freeze` job rejects additions and modifications under `sdk/typescript/` on PR mirror pushes. It permits deletions for removal and skips merge groups, matching the Python freeze check. A failure blocks the required `OpenShell / Branch Checks` status and directs SDK PRs to [ai-openshell/sdk-typescript](https://github.com/ai-openshell/sdk-typescript). Core proto changes need no TypeScript bindings here.
23+
24+
The freeze replaces the `TypeScript SDK` build and publish dry-run job. Core's aggregate checks no longer run SDK tasks, and `proto:lint` uses the core-owned Buf tool. Core retains release publication until the separate publishing cutover.
25+
2026
### Monitoring dashboards
2127

2228
`Monitoring Mixin` runs in Branch Checks when files under

‎CONTRIBUTING.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,12 @@ These are the primary `mise` tasks for day-to-day development:
422422
| `mise run monitoring:check` | Check and render the monitoring mixin |
423423
| `mise run clean` | Clean build artifacts |
424424

425+
## TypeScript SDK contributions
426+
427+
Open TypeScript SDK PRs in [ai-openshell/sdk-typescript](https://github.com/ai-openshell/sdk-typescript), including dependency and security updates. Core's `sdk/typescript/` is frozen at `v0.1.9`. Branch Checks rejects added or modified files there; deletions remain allowed for removal. Core proto changes need no TypeScript bindings here because the standalone SDK generates bindings from its pinned release.
428+
429+
Core retains its TypeScript SDK files and release publisher until the publishing cutover. Core's aggregate checks no longer build, format, lint, or test the SDK. `proto:lint` uses the core-owned Buf tool.
430+
425431
## Project Structure
426432

427433
| Path | Purpose |
@@ -430,7 +436,7 @@ These are the primary `mise` tasks for day-to-day development:
430436
| `crates/openshell-policy-schema/` | Canonical authored policy DTOs and bounded YAML/JSON parser |
431437
| `crates/openshell-prover-cli/` | Standalone local policy boundary checker |
432438
| `python/` | Python SDK (frozen, moved to ai-openshell/sdk-python) |
433-
| `sdk/typescript/` | TypeScript SDK (Connect client and generated protobuf bindings) |
439+
| `sdk/typescript/` | TypeScript SDK (frozen, development moved to ai-openshell/sdk-typescript) |
434440
| `proto/` | Protocol buffer definitions and [public API conventions](proto/README.md) |
435441
| `tasks/` | `mise` task definitions and build scripts |
436442
| `tests/testkit/` | Support library for SDK-driven end-to-end suites |

‎tasks/ci.toml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ run = [
3737

3838
[check]
3939
description = "Run fast compile and type checks"
40-
depends = ["rust:check", "python:typecheck", "sdk:ts:typecheck"]
40+
depends = ["rust:check", "python:typecheck"]
4141
hide = true
4242

4343
[clean]
@@ -46,7 +46,7 @@ run = "cargo clean"
4646

4747
[fmt]
4848
description = "Format code"
49-
depends = ["rust:format", "python:format", "markdown:format", "sdk:ts:format"]
49+
depends = ["rust:format", "python:format", "markdown:format"]
5050
hide = true
5151

5252
[lint]
@@ -62,7 +62,6 @@ depends = [
6262
"helm:docs:check",
6363
"markdown:lint",
6464
"proto:lint",
65-
"sdk:ts:lint",
6665
]
6766
hide = true
6867

‎tasks/proto.toml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
["proto:lint"]
5+
description = "Lint proto/ with buf (repo-level buf.yaml)"
6+
run = "buf lint"

‎tasks/test.toml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
# Test tasks (Rust + Python + TypeScript SDK)
4+
# Test tasks (Rust + Python)
55

66
[test]
7-
description = "Run all tests (Rust + Python + TypeScript SDK)"
7+
description = "Run all tests (Rust + Python)"
88
depends = [
99
"test:rust",
1010
"test:python",
1111
"test:python-scripts",
12-
"sdk:ts:test",
1312
"test:sbom",
1413
"test:install-sh",
1514
"test:build-env",

‎tasks/typescript.toml‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ dir = "sdk/typescript"
1919
run = "npm run gen"
2020
run_windows = "powershell -NoProfile -ExecutionPolicy Bypass -File ../../tasks/scripts/typescript-proto.ps1"
2121

22-
# Lints the repo-level proto module (buf.yaml at the root) against STANDARD.
23-
# buf ships only in the SDK's devDependencies today, so this depends on the
24-
# SDK install and runs buf from there; the target is all of proto/, not just
25-
# the SDK's client-surface subset.
26-
["proto:lint"]
27-
description = "Lint proto/ with buf (repo-level buf.yaml)"
28-
depends = ["sdk:ts:install"]
29-
run = "./sdk/typescript/node_modules/.bin/buf lint"
30-
run_windows = "sdk\\typescript\\node_modules\\.bin\\buf.cmd lint"
31-
3222
["sdk:ts:typecheck"]
3323
description = "Type-check the TypeScript SDK"
3424
depends = ["sdk:ts:proto"]

0 commit comments

Comments
 (0)